SM39R16A3
内嵌 16KB
具有 ISP 功能的 Flash
和 512B RAM 的 8 位控制器
15. KBI –
键盘接口
键盘接口(KBI) 可被连接一个 4 x n 矩阵键盘或任何普通的设备. 具有4路输入高或低的可编程的中断能力. 该4路接口可通
过外部中断从IDLE和STOP模式中退出. 且输出相互彼此独立,但共享同一中断向量5Bh.
Input
circuitry
KBI0
Input
circuitry
KBI1
OR
Input
KBI2
KBI3
KBIIF: KBI interrupt flag
circuitry
IEKBI: KBI interrupt enable
Input
circuitry
图 15-1: 键盘接口框图
250KHz
KBIx
0
1
De-bounce
KBF.x
KBD[1:0]
KBLS.x
KBE.x
图 15-2: 键盘输入电路
KBI
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
描述
地址
重置值
KBI function
KBI level
selection
KBLS
93h
-
-
-
-
KBLS3 KBLS2 KBLS1 KBLS0
00H
KBE
KBF
KBI input enable
KBI flag
KBI De-bounce
control register
94h
95h
-
-
-
-
-
-
-
KBE3
KBF3
KBE2
KBF2
KBE1
KBF1
KBE0
KBF0
00H
00H
-
KBDE
N
KBD
96h
-
-
-
-
-
KBD1
KBD0
00H
符号: KBLS
地址: 93h
Reset
7
6
5
4
3
2
1
0
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M066 Ver C SM39R16A3 04/20/2013
- 67 -