MOTOROLA
PROGRAMMING REFERENCE
MMC2001
C-14
REFERENCE MANUAL
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.
Figure C-17 Keypad Control Register
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.
Figure C-18 Keypad Status Register
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.
KPCR — Keypad Control Register
10003000
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
KCO7
KCO6 KCO5 KCO4
KCO3
KCO2
KCO1 KCO0
KRE7
KRE6
KRE5
KRE4
KRE3
KRE2
KRE1
KRE0
W
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
KPSR — Keypad Status Register
10003002
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
KRIE
KDIE
0
0
0
0
0
0
KPKR KPKD
W
KRSS KDSC
RESET:
0
0
0
0
0
0
Freescale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..