DS_1217F_002
73S1217F Data Sheet
1.7.14 Keypad Interface
The 73S1217F supports a 30-button (6 row x 5 column) keypad (SPST Mechanical Contact Switches)
interface using 11 dedicated I/O pins. Figure 13 shows a simplified block diagram of the keypad
interface.
KORDERL / H Registers
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
VDD
COL4:0
Keypad Clock
Column Value
Scan
5
7
6
5
4
3
2
1
0
KCOL Register(1)
VDD
KSIZE Register
7
6
5
4
3
2
1
0
Keypad Clock
Row Value
6
Debouncing
7
6
5
4
3
2
1
0
KROW Register
If smaller keypad than 6x 5 is to be
Hardware Scan Enable
implemented, unused row inputs
should be connected to VDD. Unused
column outputs should be left
unconnected.
7
6
5
4
3
2
1
0
6
KSTAT Register
(1) KCOL is normally used as Read only
register. When hardware keyscan mode
is disabled, this register is to be used by
firmware to write the column data to
handle firmware scanning.
(2) 1kHz internal clock signal can be
selected either from the PLL (= from the
12MHz main clock), or from the 32kHz
system clock.
0
1
2
3
4
5
6
7
KSCAN Register
1kHz (2)
Dividers
73S1217F
Figure 13: Simplified Keypad Block Diagram
There are five drive lines (outputs) corresponding to columns and six sense lines (inputs) corresponding
to rows. Hysteresis and pull-ups are provided on all inputs (rows), which eliminate the need for external
resistors in the keypad. Key scanning happens by asserting one of the 5 column lines low and looking for
a low on a sense line indicating that a key is pressed (switch closed) at the intersection of the drive/sense
(column/row) line in the keypad. Key detection is performed by hardware with an incorporated debounce
timer. Debouncing time is adjustable through the KSCAN register. Internal hardware circuitry performs
Rev. 1.2
67