Keypad Control Register (Kpcr; Keypad Status Register (Kpsr; Keypad Control Register; Keypad Status Register - Motorola Freescale Semiconductor M-Core MMC2001 Reference Manual

Table of Contents

Advertisement

C.4.1 Keypad Control Register (KPCR)
The keypad control register (KPCR) determines which of the eight possible column
strobes are to be open drain when configured as outputs and which of the eight row
sense lines are considered in generating an interrupt to the core.
The KPCR register is byte or halfword addressable.
KPCR — Keypad Control Register
15
14
13
12
R
KCO7 KCO6 KCO5 KCO4 KCO3 KCO2 KCO1 KCO0 KRE7 KRE6 KRE5 KRE4 KRE3 KRE2 KRE1 KRE0
W
RESET:
0
0
0
0
KCOx — Keypad Column Strobe Open-Drain Enable x
0 = Column strobe output x is totem-pole drive (P-channel enabled).
1 = Column strobe output x is open drain (P-channel disabled).
KREx — Keypad Row Enable x
0 = Row x is not included in keypad key press detect.
1 = Row x is included in keypad key press detect.
C.4.2 Keypad Status Register (KPSR)
The keypad status register (KPSR) reflects the state of the keypress detect circuit.
The KPSR register is byte or halfword addressable.
KPSR — Keypad Status Register
15
14
13
12
R
0
0
0
W
RESET:
KRIE — Key Release Interrupt Enable
0 = No interrupt request is generated when KPKR is set
1 = An interrupt request is generated when KPKR is set
KDIE — Key Depress Interrupt Enable
0 = No interrupt request is generated when KPKD is set
1 = An interrupt request is generated when KPKD is set
KRSS — Key Release Synchronizer Set
The key release synchronizer is set by writing a logic one into this bit. Reads return a
value of zero.
MOTOROLA
C-14
All manuals and user guides at all-guides.com
Freescale Semiconductor, Inc.
11
10
9
0
0
0
Figure C-17 Keypad Control Register
11
10
9
0
0
0
KRIE
KDIE
0
Figure C-18 Keypad Status Register
PROGRAMMING REFERENCE
For More Information On This Product,
Go to: www.freescale.com
8
7
6
5
0
0
0
0
8
7
6
5
0
0
0
0
10003000
4
3
2
1
0
0
0
0
10003002
4
3
2
1
0
0
0
KPKR KPKD
KRSS KDSC
0
0
0
MMC2001
REFERENCE MANUAL
0
0
0
0

Advertisement

Table of Contents
loading

Table of Contents