Key-Scan
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
321
Fig 16-10 Correct three-key condition
16.3
Registers
The details of Key-Scan register are listed in Table 16-2. The base address of Key-Scan is 0x4800_A000.
Table 16-2 Register map of Key-Scan
Name
Offset
Access
Description
0x00
R/W
Configure Scan clock
0x04
R/W
Configure corresponding Timer (pre/post guard timer, debounce timer)
0x08
R/W
Configure corresponding Timer (interval timer, all release timer)
0x0C
R/W
Enable Key-Scan and interrupt
0x10
R/W
FIFO limit level and threshold level setup
0x14
R/W
Configure keypad columns
0x18
R/W
Configure keypad rows
0x1C
R
Number of data in FIFO
0x20
R
Indicate key # and key event
0x24
R/W
Configure masking of Key-Scan interrupt
0x28
W1C
Write 1 to clear Key-Scan active interrupt
0x2C
R
Return the masked Key-Scan interrupts after masking with the KS_IMR register
0x30
R
Return the raw Key-Scan interrupts
0x34
R/W
Configure interval polarity and enable the discharge of column
16.3.1
KS_CLK_DIV
Name:
Key-Scan Clock Division Register
Size:
32 bits
Address offset:
0x00
Read/write access:
read/write
31
30
29
…
14
13
12
11
10
9
…
2
1
0
RSVD
KS_CLK_DIV
R/W
Bit
Name
Access
Reset
Description
31:12
RSVD
N/A
-
Reserved
11:0
KS_CLK_DIV
R/W
0x0
scan_clk = bus clock/(KS_C1)
The document authorized to
SZ99iot
2019-05-15 10:08:03