EasyManua.ls Logo

Allwinner A20 - Page 804

Allwinner A20
812 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
A20 User Manual (Revision 1.2) Copyright © 2013 Allwinner Technology Co., Ltd. All Rights Reserved. Page 804 / 812
Offset: 0x00
Register Name: KP_CTL
Default Value: 0x0000_0000
Bit
Read/Write
Default
Description
0: Disable
1: Enable
6.17.3.2. KEYPAD TIMING REGISTER
Offset: 0x04
Register Name: KP_TIMING
Default Value: 0x0200_0100
Bit
Read/Write
Default
Description
31:16
R/W
0x200
DBC_CYCLE
Keypad Debounce Clock Cycle n
It is used for filter switching noises. When row input is low
level, the Keypad Interface would delay (n+1) clock to check
whether it is still keeping on low level. If it is true, the Keypad
Interface would scan the external keypad’s state and get these
state into internal registers. After scan, the interrupt is
generated if enabled.
Notes: The value below 0x10 can’t be used.
15:0
R/W
0x100
SCAN_CYCLE
Keypad Scan Period Clock Cycle n
When the Keypad Interface is enabled, it would scan the
external keypad in period. The period time is 8*(n+1)/kp_clk.
The kp_clk is input clock for Keypad Interface from CCU.
Notes: The value below 0x10 can’t be used.
6.17.3.3. KEYPAD INTERRUPT CONFIGURE REGISTER
Offset: 0x08
Register Name: KP_INT_CFG
Default Value: 0x0000_0000
Bit
Read/Write
Default
Description
31:2
/
/
/
1
R/W
0
REDGE_INT_EN
Keypad input rising edge (key release) interrupt enable
0: Disable

Table of Contents