[AK4160]
■ GPIO
8 out of 16 channels can be allocated to GPIO. In or output modes of GPIO is selected by the user.
• Input Mode
1. Connect a pull-up or pull-down resistor.
2. Debounce Function (Update only for continuous inputs of N times)
3. IRQ Interrupt Permitted or Not Permitted
4. IRQ Interrupt Edge Select (“↑” or “↓”)
The AK4160 monitors terminal level in every 31.25us by the debounce function. When the input levels are the same for
selected number of times continuously, the AK4160 reflects it as an input value.
Continuous
Number of Times
Continuous Time
(ms)
Setting Value
0
1
1
4
-
0.125
0.25
0.5
1
2
8
3
16
4
32
5
64
2
6
128
256
512
1024
2048
4096
8192
16384
32768
4
7
8
8
16
9
32
10
11
12
13
14,15
64
128
256
512
1024
Table 1. Debounce Function Setting
• Output Mode
1. Selected from CMOS, Open Drain (“H” or “L”) outputs
2. Drive Ability Select
3. User setting output or CHn status output from the GPIOn pin.
4. PWM Function
Brightness adjustment of LEDs can be made by PWM function. 125, 250, 500Hz or 1kHz can be configured
independently for each GPIO pin. The duty ratio can be set in 32 levels (5bit). When driving LED, High-side output
should be selected to decrease influences to the measuring result.
MS1313-E-01
2011/11
- 13 -