CHAPTER 16 KEYBOARD INTERFACE UNIT (KIU)
User’s Manual U14272EJ3V0UM
323
16.3.2 KIUSCANREP (0x0B00 0190)
Bit
15
14
13
12
11
10
9
8
Name
KEYEN
Reserved
Reserved
Reserved
Reserved
Reserved
STPREP5
STPREP4
R/W
R/W
R
R
R
R
R
R/W
R/W
RTCRST
0
0
0
0
0
0
0
0
Other resets
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
Name
STPREP3
STPREP2
STPREP1
STPREP0
MSTOP
MSTART
ASTOP
ASTART
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
RTCRST
0
0
0
0
0
0
0
0
Other resets
0
0
0
0
0
0
0
0
Bit
Name
Function
15
KEYEN
KIU enable. This bit enables a KIU operation. When this bit is set to 0, the scan
sequencer and all interrupt requests are disabled.
1 : Enable
0 : Disable
14 to 10
Reserved
0 is returned when read
9 to 4
STPREP(5:0)
Scan sequencer stop count. These bits select the number of scan operation
performed after all keys have been released (0xFF is loaded to KIUDAT registers).
111111 : 63 times
:
000001 : 1 time
000000 : 64 times
3
MSTOP
Scan stop (manual mode). This bit is sampled at the end of each scan operation and
causes the scan sequencer to stop scanning when set to 1.
1 : Stop
0 : Operate
2
MSTART
Manual scan start (manual mode). When this bit is set to 1, the scan sequencer starts
scanning the keyboard.
1 : Start
0 : Stop
1
ASTOP
Auto scan stop (auto mode). When this bit is set to 1, the scan sequencer stops
scanning automatically when all keys have been released for the number of scan
operation specified by the STPREP(5:0) bits.
1 : Auto stop
0 : Manual stop
0
ASTART
Auto Scan mode enable. When this bit is set to 1, the scan sequencer starts
scanning automatically following a key press event.
1 : Enable
0 : Disable