English
Language : 

AK4160 Datasheet, PDF (25/40 Pages) Asahi Kasei Microsystems – 16-channel Capacitive Touch Sensor IC
[AK4160]
GPIO Input Control Register
Address 0x35/0x37/…/0x43 (W/R) Default 0x00
Description
D7
D6
D5
D4
D3
D2
D1
D0
GPIO Input Control
DIR
Reserved Reserved Reserved IRQC[1] IRQC[0]
PE
PU
Address 0x36/0x38/…/0x44 (W/R) Default 0x00
Description
D7
D6
GPIO Input Control
DEB1[3] DEB1[2]
D5
DEB1[1]
D4
DEB1[0]
D3
DEB0[3]
D2
DEB0[2]
D1
DEB0[1]
D0
DEB0[0]
Bits
D7
D6-D4
D3-D2
D1
D0
Name
DIR
Reserved
IRQC
PE
PU
Description
This bit should be set to “0” at the input setting of GPIO.
Reserved: This bit should be written by “0”, when writing.
GPIO Interrupt Setting
00: No Interrupt
01: Interrupt on a rising edge
10: Interrupt on a falling edge
11: Interrupt on both edges
Pull-up, Pull-down Enable
0: Invalid
1: Valid. The direction is fixed by PU bit.
Pull-up / Pull-down Selector
0: Pull-down
1: Pull-up
Bits
D7-D4
D3-D0
Name
DEB1
DEB0
Description
Debounce Setting at Rising Edge
When “1” is detected “2 x 2DEB1” times in a row with 31.25us of the sampling
frequency, the result of input is set to “1”. (Table 8)
However, when DEB1[3:0] bits = “0”, the result is updated by detecting “1” one
time.
Debounce Setting at Falling Edge
When “1” is detected “2 x 2DEB0” times in a row with 31.25us of the sampling
frequency, the result of input is set to “0”. (Table 8)
However, when DEB0[3:0] bits = “0”, the result is updated by detecting “1” one
time.
DEB0, DEB1
0000
0001
0010
0011
0100
0101
0110
0111
Consecutive
number
1
4
8
16
32
64
128
256
Consecutive
time (ms)
DEB0, DEB1
-
1000
0.125
1001
0.25
1010
0.5
1011
1
1100
2
1101
4
1110
8
1111
Table 8. Debounce Setting
Consecutive
number
512
1024
2048
4096
8192
16384
32768
32768
Refer to Table 7 for the correspondence of the register address and the GPIO pin.
Consecutive
time (ms)
16
32
64
128
256
512
1024
1024
MS1313-E-01
- 25 -
2011/11