MC96FR116C
124
November, 2018 Rev.1.8
11.8 Key Scan
11.8.1 Overview
Port 0 and Port 1 can be used as key input sources. If KEY interrupt is enabled, this can be a wake-
up source in STOP mode. Usually Port 0(Port 1) is used as output strobe lines, and Port 1(Port 0) is
used as key input sources. The key interrupt triggering mode is selected by KITSR register.
11.8.2 Block Diagram
Internal
Key Scan
Interrupt
0
1
SRLC07
P07
SMRR07
KS7
0
1
SRLC00
P00
SMRR00
KS0
.
.
.
.
.
.
0
1
SRLC17
P17
SMRR17
KS15
0
1
SRLC10
P10
SMRR10
KS8
.
.
.
.
.
.
P0x : Each bit of port 0
P1x : Each bit of port 1
SMRR0x : KEY SCAN enable of P0x
SMRR1x : KEY SCAN enable of P1x
SRLC0x : KEY input polarity of P0x
SRLC1x : KEY input polarity of P1x
KSxx : Each KEY interrupt
Figure 11-35 Block Diagram of KEYSCAN module