Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
322
If bus clock = 10M, scan_clk = 2.44kHz ~ 10MHz, 999 clock division is suggested
to generate 10k scan clock.
16.3.2
KS_TIM_CFG0
Name:
Key-Scan Timer Configuration 0 Register
Size:
32 bits
Address offset:
0x04
Read/write access:
read/write
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
KS_POST_GUARD_TIMER
RSVD
KS_PRE_GUARD_TIMER
R/W
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RSVD
KS_DEB_TIMER
R/W
Bit
Name
Access
Reset
Description
31:28
RSVD
N/A
--
Reserved
27:24
KS_POST_GUARD_TIMER
R/W
0x3
Post guard time for key column
post guard time = scan_clk * KS_POST_GUARD_TIMER
23:20
RSVD
N/A
-
Reserved
19:16
KS_PRE_GUARD_TIMER
R/W
0x3
Pre guard time for key column
pre guard time = scan_clk * KS_PRE_GUARD_TIMER
15:12
RSVD
N/A
-
Reserved
11:0
KS_DEB_TIMER
R/W
0x0
Debounce timer
debounce timer = scan_clk * (KS_DEB 1)
Debounce timer ranges from 100ns to 1.68s, and 5ms is suggested.
16.3.3
KS_TIM_CFG1
Name:
Key-Scan Timer Configuration 1 Register
Size:
32 bits
Address offset:
0x08
Read/write access:
read/write
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
KS_INTERVAL_TIMER
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RSVD
KS_RELEASE_TIMER
R/W
Bit
Name
Access
Reset
Description
31:28
RSVD
N/A
-
Reserved
27:16
KS_INTERVAL_TIMER
R/W
0x0
Scan interval timer
interval timer = scan_clk * (KS_INTERVAL 1)
Interval timer ranges from 100ns to 1.68s.
15:12
RSVD
N/A
-
Reserved
11:0
KS_RELEASE_TIMER
R/W
0x0
Release detect timer
release timer = scan_clk * (KS_RELEASE 1)
Release timer ranges from 100ns to 1.68s.
16.3.4
KS_CTRL
Name:
Key-Scan Control Register
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03