English
Language : 

SM59R16A5 Datasheet, PDF (68/89 Pages) SyncMOS Technologies,Inc – Two serial peripheral interfaces in full duplex mode
SM59R16A5/SM59R09A5/SM59R05A5
8-Bit Micro-controller
64KB/36KB/20KB with ISP Flash
& 2KB RAM embedded
16. KBI – Keyboard Interface
Keyboard interface (KBI) can be connected to an 8 x n matrix keyboard or any similar devices. It has 8 inputs with
programmable interrupt capability on either high or low level. These 8 inputs are through P2 or P0 and can be the external
interrupts to leave from the idle and stop modes. The 8 inputs are independent from each other but share the same
interrupt vector 5Bh.
KBI0
KBI1
KBI2
KBI3
KBI4
KBI5
KBI6
KBI7
Input
circuitry
Input
circuitry
Input
circuitry
Input
circuitry
Input
circuitry
Input
circuitry
Input
circuitry
Input
circuitry
OR
KBIIF: KBI interrupt flag
IEKBI: KBI interrupt enable
Figure 16.1 keyboard interface block diagram
250KHz
KBIx
KBD[1:0]
Mnemonic
Description
AUX
KBLS
KBE
KBF
KBD
Auxiliary register
KBI level
selection
KBI input enable
KBI flag
KBI De-bounce
control register
De-bounce
0
KBF.x
1
KBLS.x
Figure 16.2 keyboard input circuitry
KBE.x
Direct
91h
Bit 7
BRGS
Bit 6 Bit 5
KBI function
-
P4SPI
Bit 4
P4UR
1
Bit 3
P4IIC
Bit 2 Bit 1
P0KBI
P2PW
M
Bit 0
DPS
93h KBLS7 KBLS6 KBLS5 KBLS4 KBLS3 KBLS2 KBLS1 KBLS0
94h KBE7 KBE6 KBE5 KBE4 KBE3 KBE2 KBE1 KBE0
95h KBF7 KBF6 KBF5 KBF4 KBF3 KBF2 KBF1 KBF0
96h KBDEN -
-
-
-
-
KBD1 KBD0
RESET
00H
00H
00H
00H
00H
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M047
68
Ver.H SM59R16A5 04/2015