AKM AKD4160

[AK4160]
AK4160
16-channel Capacitive Touch Sensor IC
GENERAL DESCRIPTION
The AK4160 is a low operating voltage and low power consumption 16-channel capacitive touch sensor.
Maximum 8 channels out of the 16-channel can be configured to LED drive or GPIO. The AK4160 has a
channel independent automatic correct function of environmental drifts for each sense input. It reduces
false detection by continuous calibration of the internal reference value in the situation when the input
capacitance of the touch switch is changed by the external factors such as hydrothermal conditions. The
automatic initial setting function sets the charge current and charge time according to the size and the
shape of a touch switch. The AK4160 can be configured via serial interfaces, it is suitable for mobile
phones, PCs and home electric applications.
„
„
„
„
„
„
„
„
„
„
„
„
„
„
„
„
„
FEATURE
Up to 16 capacitive sensor inputs
Up to 8 general purpose inputs/outputs with PWM control for LED
Automatic initial setting function for the charge current and time
Independent automatic environmental drifts correct function for each
sense terminal
Independent threshold configuration for each sense terminal
Selectable multi touch feature
Integrated Median Averaging Filter
Selectable 3 interrupt outputs that be able to use as GPIOs
Reset Input pin
I2C Serial Interface
10 bit SAR A/D Converter with S/H circuit
Integrated Regulator
Low Power Consumption: Typ. 3.4uA
(Sampling rate=512ms, 16ch Sensor input Active)
Power Down Current: Typ. 1.0uA
Low Power Operation: VDD = 1.71V ~ 3.6V
Operating Temperature: Ta = -40 ~ 85 °C
Package: 28pin QFN (4.0mm x 4.0mm, pitch 0.4mm)
I2C-bus is a trademark of NXP B.V.
MS1313-E-01
2011/11
-1-
[AK4160]
VDD
VSS
RREF
VREG
Power
Control
Current
Sources
CS0
CS1
RSTN
CS2
Auto
Calibration
SCL
SDA
AD0
CS3
CS4
Serial
Interface
CS5
LED Driver
PWM Logic
AD1
Switch
Matrix
Control
&
Register
CS7
CS8 / GPIO7
Clock
CS9 / GPIO6
GPIO
Logic
CS10 / GPIO5
IRQ0N /
GPIOA
IRQ1N /
GPIOB
CS6
CS11 / GPIO4
IRQ
Output
CS12 / GPIO3
Data
Filter
SAR
ADC
IRQ2N /
GPIOC
CS13 / GPIO2
CS14 / GPIO1
CS15 / GPIO0
Figure 1. Block Diagram
■ Ordering Guide
AK4160EN
AKD4160
−40 ∼ +85°C
28pin QFN (4mm x 4mm, 0.4mm pitch)
AK4160EN Evaluation Board
MS1313-E-01
2011/11
-2-
[AK4160]
CS9 / GPIO6
CS8 / GPIO7
CS7
CS6
CS5
CS4
CS3
■ Pin Layout
21
20
19
18
17
16
15
CS10 / GPIO5 22
14 CS2
CS11 / GPIO4 23
13 CS1
AK4160EN
CS12 / GPIO3 24
12 CS0
11 RREF
CS13 / GPIO2 25
Top View
CS14 / GPIO1 26
10 VSS
2
3
4
5
6
7
SDA
1
AD1
RSTN
SCL
8
AD0
VDD 28
IRQ2N / GPIOC
VREG
IRQ1N / GPIOB
9
IRQ0N / GPIOA
CS15 / GPIO0 27
MS1313-E-01
2011/11
-3-
[AK4160]
PIN/FUNCTION
Pin No.
Pin Name
Type
(Note 1)
I/O
(Note 2)
Function
1
2
3
4
5
6
7
8
IRQ0N / GPIOA
IRQ1N / GPIOB
IRQ2N / GPIOC
AD0
SCL
AD1
SDA
RSTN
D
D
D
D
D
D
D
D
I/O
I/O
I/O
I
I
I
I/O
I
9
VREG
D
O
10
11
VSS
RREF
GND
A
I
12
13
14
15
16
17
18
CS0
CS1
CS2
CS3
CS4
CS5
CS6
A
A
A
A
A
A
A
I/O
I/O
I/O
I/O
I/O
I/O
I/O
Interrupt Bit0 / GPIO PinA
Interrupt Bit1 / GPIO PinB
Interrupt Bit2 / GPIO PinC
I2C Slave Address Bit 0
I2C Serial Clock Input
I2C Slave Address Bit 1
I2C Serial Data Input/ Output
Reset Pin
Internal pull-up by 100kΩ (typ)
Internal Regulator Output
Current must not be taken from this pin.
A 47nF ± 20% capacitor should be connected
between this pin and VSS.
Ground
Reference Resistor Input
A 100kΩ ± 1% resistor should be connected
between this pin and VSS.
Cap Sense Pin0
Cap Sense Pin1
Cap Sense Pin2
Cap Sense Pin3
Cap Sense Pin4
Cap Sense Pin5
Cap Sense Pin6
19
CS7
A
I/O
Cap Sense Pin7
Reset State
RSTN pin = “L”
Hi-z (Input)
Hi-z (Input)
Hi-z (Input)
Hi-z (Input)
Output
Hi-z (Open)
L
L
L
L
L
L
L
Hi-z (Open)
(Note 5)
Hi-z (Input)
Hi-z (Input)
Hi-z (Input)
Hi-z (Input)
Hi-z (Input)
Hi-z (Input)
Hi-z (Input)
Hi-z (Input)
-
20
CS8 / GPIO7
A/D
I/O
Cap Sense Pin8 / GPIO Pin7
21
CS9 / GPIO6
A/D
I/O
Cap Sense Pin9 / GPIO Pin6
22
CS10 / GPIO5
A/D
I/O
Cap Sense Pin10 / GPIO Pin5
23
CS11 / GPIO4
A/D
I/O
Cap Sense Pin11 / GPIO Pin4
24
CS12 / GPIO3
A/D
I/O
Cap Sense Pin12 / GPIO Pin3
25
CS13 / GPIO2
A/D
I/O
Cap Sense Pin13 / GPIO Pin2
26
CS14 / GPIO1
A/D
I/O
Cap Sense Pin14 / GPIO Pin1
27
CS15 / GPIO0
A/D
I/O
Cap Sense Pin15 / GPIO Pin0
28
VDD
PWR
Power Supply : 1.71V ~ 3.6V
Note 1. A (Analog terminal), D (Digital terminal), GND (Ground), PWR (Power)
Note 2. I (Input terminal), O (Output terminal)
Note 3. All digital input pins ( AD0, AD1, SCL, SDA) must not be allowed to float.
Note 4. When GPIO pins (GPIOA ~ GPIOC, GPIO0 ~ GPIO7) are configured to digital inputs without internal pull
resistor, the pins must not be left floating.
Note 5. Outputs “L” after releasing a reset.
■ Handling of Unused Pins
The unused I/O pins must be connected appropriately.
Classification
Pin Name
Digital
IRQ0N / GPIOA ~ IRQ2N / GPIOC
Analog
CS0 ~ CS7
Analog/Digital
CS8 / GPIO7 ~ CS15 / GPIO0
MS1313-E-01
Setting
This pin must be configured with internal
pull-up/down resistor or be connected to
VSS or VDD.
This pin must be open.
This pin must be configured with internal
pull-down resistor or be connected to
VSS.
2011/11
-4-
[AK4160]
ABSOLUTE MAXIMUM RATINGS
(VSS = 0V (Note 6))
Parameter
Symbol
Min
max
Power Supply
VDD
-0.3
4.3
Input Current Any Pins except for supply
IIN
±10
GPIO Source Current per Pin
Isource
12
GPIO Sink Current per Pin
Isink
1.2
Input Voltage (Note 7)
VIN
-0.3
VDD+0.3 or 4.3
Ambient Temperature (power applied)
Ta
-40
85
Storage Temperature
Tstg
-65
150
Note 6. All voltages with respect to ground.
Note 7. For all input pins. The maximum value is smaller value between (VDD+0.3)V and 4.3V.
Unit
V
mA
mA
mA
V
°C
°C
WARNING: Operation at or beyond these limits may result in permanent damage to the device.
Normal operation is not guaranteed at these extremes.
RECOMMEND OPERATING CONDITIONS
(VSS = 0V (Note 6))
Parameter
Symbol
min
typ
Power Supply
VDD
1.71
1.8
Note 6. All voltages with respect to ground.
max
3.6
Unit
V
WARNING: AKM assumes no responsibility for the usage beyond the conditions in this datasheet.
MS1313-E-01
2011/11
-5-
[AK4160]
ANALOG CHARACTERISTICS
(Ta = -40°C ~ 85°C, VDD = 1.8V; unless otherwise specified)
Parameter
Symbol
min
typ
max
Unit
A/D Converter
Resolution
RESO
10
Bits
Touch Sensor
Charge Current Variation Against Nominal Value (Note 8)
ICHG
-5
5
%
Power Supply Current
Measurement Current (All function in active)
IMEAS
0.8
1
mA
Idle Current
IIDLE
3
11
uA
Average Supply Current
IDD
TSR= 4ms, NCH=16, TCHG=2us, NF1S=4
54
uA
TSR= 8ms, NCH=16, TCHG=2us, NF1S=4
29
uA
TSR= 16ms, NCH=16, TCHG=2us, NF1S=4
16
uA
TSR= 32ms, NCH=16, TCHG=2us, NF1S=4
9
uA
TSR= 64ms, NCH=16, TCHG=2us, NF1S=4
6
uA
TSR=128ms, NCH=16, TCHG=2us, NF1S=4
5
uA
TSR=256ms, NCH=16, TCHG=2us, NF1S=4
4
uA
TSR=512ms, NCH=16, TCHG=2us, NF1S=4
3.4
uA
Shutdown Current NCH=0 (Shutdown Mode)
ISHUT
1
9
uA
Note 8. Sense terminal voltage condition: The AD conversion value should be less or equal to VDD-0.2[V].
The charge current is dependent on the operating voltage, and is configured with registers in “0.556 x VDD [uA]”
to “35.028 x VDD [uA]” range.
DC CHARACTERISTICS (Logic I/O)
(Ta = -40°C ~ 85°C, VDD = 1.71V ~ 3.6V; unless otherwise specified)
Parameter
Symbol
min
typ
max
Input Leakage Current (Note 9) (Note 10)
IILH
-1.0
1.0
Input High Voltage
VIH
0.7xVDD
Input Low Voltage
VIL
0.3xVDD
Output High Voltage (Note 11) (Note 14) Io=-10mA
VOHF1
VDD-0.5
Output High Voltage (Note 11) (Note 15) Io=-3.3mA
VOH1
VDD-0.5
Output Low Voltage (Note 11) (Note 14) Io=1mA
VOLF1
0.5
Output Low Voltage (Note 11) (Note 15) Io=0.33mA
VOL1
0.5
Output High Voltage (Note 12) (Note 14) Io=-6mA
VOHF2
VDD-0.5
Output High Voltage (Note 12) (Note 15) Io=-2mA
VOH2
VDD-0.5
Output Low Voltage (Note 12) (Note 14) Io=6mA
VOLF2
0.5
Output Low Voltage (Note 12) (Note 15) Io=2mA
VOL2
0.5
Output Low Voltage (Note 13) Io=3mA
VOL3
0.5
Pull-up Current (Note 11) (Note 12) (Pull-up Setting)
IPU
5
200
Pull-down Current (Note 11) (Note 12) (Pull-down Setting)
IPD
-200
-5
Note 9. GPIO0~GPIO7, AD0, AD1, GPIOA~GPIOC, SCL, SDA
Note 10. Except for the RSTN pin. The RSTN pin has an internal pull-up device, normally 100kΩ.
Note 11. GPIO0~GPIO7
Note 12. IRQ0N~IRQ2N
Note 13. SDA
Note 14. Full Drive Operation
Note 15. 1/3 Drive Operation
MS1313-E-01
Unit
uA
V
V
V
V
V
V
V
V
V
V
V
uA
uA
2011/11
-6-
[AK4160]
SWITCHING CHARACTERISTICS
(Ta = -40°C ~ 85°C, VDD = 1.71V ~ 3.6V; unless otherwise specified)
Parameter
Symbol
min
typ
Touch Sensor
Charge Time (Note 16)
TCHG
-15
Sampling Rate (Note 17)
TSR
-35
PWM
Frequency Accuracy
ACCF
-35
Reset Timing
Reset Pulse Width (Note 18)
tRSTN
10
Reset Pin Pulse Width of Spike Noise
tRSTNS
0.5
Suppressed by Input Filter (Note 19)
Start Up Timing
Power up time (Note 20)
tPU
Power up rise time
tPR
Power up Interval time (Note 21)
tPI
20
I2C
SCL clock frequency
fSCL
Bus Free Time Between Transmissions
tBUF
1.3
Start Condition Hold Time (prior to first Clock pulse)
tHD:STA
0.6
Clock Low Time
tLOW
1.3
Clock High Time
tHIGH
0.6
Setup Time for Repeated Start Condition
tSU:STA
0.6
SDA Hold Time from SCL Falling (Note 22)
tHD:DAT
0
SDA Setup Time from SCL Rising
tSU:DAT
0.1
Rise Time of Both SDA and SCL Lines
tR
Fall Time of Both SDA and SCL Lines
tF
Setup Time for Stop Condition
tSU:STO
0.6
Pulse Width of Spike Noise Suppressed By Input Filter
tSP
50
Capacitive load on bus
Cb
Note 16. Variation against nominal value of TCHG (0.25us to 32us)
Note 17. Variation against nominal value of TSR (4ms to 512ms)
Note 18. The AK4160 can be reset by the RSTN pin = “L”. This is to initialize the AK4160 for sure.
Note 19. Pulse width of spike noise suppressed by input filter of the RSTN pin.
Note 20. Time as the starting point when reached VDD=1.71V and VREG=1.0V, with CREG=47nF.
Note 21. The condition of “VDD=VSS” should be kept during the Power up Interval Time.
Note 22. Data must be held for sufficient time to bridge the 300ns transition time of SCL.
tRSTN
RSTN
max
Units
15
35
%
%
35
%
-
us
-
us
1
20
-
ms
ms
ms
400
0.3
0.3
400
kHz
μs
μs
μs
μs
μs
μs
μs
μs
μs
μs
ns
pF
tRSTNS
VIL
Figure 2. Reset Timing Diagram
MS1313-E-01
2011/11
-7-
[AK4160]
VDD
1.71V
0.0 V
1.00V
VREG
I2CI/F
Enable
tPU
tPR
tPI
Figure 3. Power up Timing Diagram
VIH
SDA
VIL
tBUF
tLOW
tR
tHIGH
tF
tSP
VIH
SCL
VIL
tHD:STA
Stop
tHD:DAT
tSU:DAT
Start
tSU:STA
tSU:STO
Start
Stop
2
Figure 4. I C Interface Timing Diagram
MS1313-E-01
2011/11
-8-
[AK4160]
OPERATION OVERVIEW
■ Operation of Touch Sensor
The touch switch (capacitor) that is connected to the sense input is charged up with direct current during a given period of
time. The switch is connected to ground before the measurement. As a result, the touch switch capacitance is completely
discharged before start being charged. When the touch switch is fully charged, the voltage is inversely proportional to the
capacitance. When the touch switch is touched, this charge voltage decreases because the capacitance value when the
switch is touched is larger than when not touched. The charged voltage is converted to a digital data by ADC. The data is
get through the noise reduction filter, and compared to a touch threshold value. When the measurement value exceeds the
threshold that is corrected environmental drifts, the AK4160 updates the status register to the touch detected state.
VDD
Environmental
Drifts
Correction
Touch Switch
Second
Noise Reduction
Filter
Control Logic
(Touch Detection)
First
Noise Reduction
Filter
SAR
ADC
VSS VSS
Figure 5. Touch Sensor Block Diagram
■ Capacitance – Voltage Converter
The touch switch (capacitance C), that is connected to the sense terminal, is charged with a direct current I during the
period T. The voltage of the sense terminal is V=(I × T)/C, and if the values of I and T are constant, the charged voltage is
inversely proportional to the value of capacitance C. The charge voltage is decreased by V=(I × T)/(C+dC) when the
capacitance C is increased by dC by touching the touch switch comparing with the not touched status. After the voltage is
charged, the AK4160 discharges the sense terminal by a direct current I, during T period. At the same time, the ADC
converts the terminal value. The sense terminal must be connected to ground before the next measurement. The next
measurement should be started when the sense terminal is discharged completely.
Measurement
value
V
T
T
Charge
Discharge
I ×T
(Not Touched)
C
I ×T
V=
(Touched)
C + dC
V=
Next Measurement
Ground
A/D Convert
Figure 6. The Voltage Transaction of a Sense Terminal
MS1313-E-01
2011/11
-9-
[AK4160]
■ Noise Reduction Filter
The voltage of a sense terminal is measured for N consecutive times. Then the first filter calculates the average value,
discarding the minimum and the maximum values. The N of the measurement time is user-selectable from 4, 6, 10, and
18 times. (Address 0x70 NF1S1-0 bits) The sampling rate is dependent on the charge time.
The second filter has the same structure as the first filter. The outputs of the first filter are input to the second filter. The N
of the measurement time is user-selectable from 4, 6, 10, and 18 times independent of the first filter. (Address 0x70
NF2S1-0 bits) The sampling rate of the second filter is user-selectable from 4ms to 512ms in factorial of 2 steps. (Address
0x74 TSR2-0 bits)
The output rate of the second filter is “Sampling Rate × Sample Count”. The output data is compared to “The Noncontact
Reference Value” that output by the calibration circuit for environment changes.
The Voltage of
Sense terminal
Calculation of median averaging after 6 measurement,
repeating charge and discharge.
(6 Sample Setting in the first filter)
CS0
CS1
Sampling Rate
Calculation of median averaging after 4 times acquisition
of the output data from the first filter, and updating to
result
(4 Sample Setting in the second filter)
CS0
Data
CS1
Data
Result Update
Figure 7. The Measurement of a Sense Terminal and The Data Update
MS1313-E-01
2011/11
- 10 -
[AK4160]
■ Correction of Environment Drifts
The Capacitance of a sense terminal is influenced from the hydrothermal condition and the grime of the surface.
The AK4160 monitors the measurement value continuously. If the value is changed by the environment, “The Noncontact
Reference Value” is corrected. The reference value is charged very slowly following the measurement value of not
touched status by the correction circuit. The threshold of touch detection and release detection is synchronized with the
reference value. In case of the touch detection, the reference value is not followed to the measurement value.
The increasing rate and the decreasing rate of the reference value can be configured independently. When a finger
approaches slowly to the touch switch, the measurement value is decreased gradually. The decreasing rate of the reference
value must be configured slower than the increasing rate to avoid false detection.
V
V
Touch
Reference Value
Release Threshould
Touch Threshould
Environmental Drift
Reference Value
Measurement Value
Release Threshould
Touch Threshould
Measurement Value
T
T
Figure 8. The Voltage of Sense Terminal and Automatic Correction of Environmental Drift
The initial reference value after the reset release can be selected from a user configuration and the automatic
configuration that configured to 32/32, 31/32, and 30/32 of the first measurement value. (Address 0x70 RIM1-0 bits)
■ Debounce
The touch status is updated when the output of the second filter is judged as touched or released for N times continuously
for a stabilized touch detection. The count “N” is user-selectable from 0 to 15 times. (Address 0x71 DEBT3-0, DEBR3-0
bits) The Update rate of the touch status is calculated as follows. “Sampling Rate of Second Filter x Sample Count of
Second Filter x Debounce Count”
■ Automatic Initial Setting
The capacitance of a sensor is different according to the size and the shape of a touch switch. The charge current and the
charge period should be configured adequately for optimal sensitivity to every touch switches. (Address 0x45-0x54
CCn5-0 bits, Address 0x55-0x5C CTn2-0 bits) The AK4160 has the automatic initial calibration that configured to the
optimal setting. (Address 0x5F ACC)
■ External Reset
The RSTN pin is input terminal for a low-active asynchronous reset with an internal pull-up resistor. A measurement
operation is aborted and the internal circuit is initialized immediately by the reset. The serial interface transaction is also
aborted. If the reset is executed in a transaction, an unintended access may occur. Therefore, the reset must be executed
without transaction of serial interface.
MS1313-E-01
2011/11
- 11 -
[AK4160]
■ Programmable Interrupt
A state change of a sense terminal or GPIO is notified to the host by the IRQ output. The output driver is selectable from
open-drain type and totem-pole type, and the activate polarity can be configured. The active condition of the IRQ pins is
user-selectable as follows.
1.
2.
3.
4.
5.
State Change
Touch (State Change from release state to touch state at sense terminals)
Release (State Change from touch state to release state at sense terminals)
Measurement Execution (any states)
Input edge detection of GPIO
Three IRQ pins can be independently configured to different conditions. Several user applications can be supported by the
flexible configuration. The unused pin of IRQ pins can simply be configured as a GPIO pin.
■ Multi Touch
The AK4160 supports multi touch operation. The multi touch function can be controlled, improving operability of an
application by enabling and disabling.
· Multi Touch Enabled
The status register reflects a touch detection of each sense terminal directly. Update of the status register is independent
for each sense terminal. The state of a sense terminal is not influenced by the state of other sense terminals.
· Multi Touch Disabled
Update of the status register is executed singularly. This is for an application that expects a single touch. The user can
select a mode shown below.
1.
Release ALL
In this mode, if some sense terminals are touched while all sense terminals are internally released, only the most
pushed sense terminal is detected as touched and other touched sense terminal statuses are not updated to touched.
(Their statuses remain as released, but internally they are judged as touched.) All sense terminals must be
released internally, for a new touch detection in this state.
2.
Release CH
In this mode, if some sense terminals are touched while all sense terminals are internally released, only the most
pushed sense terminal is detected as touched and other touched sense terminal statuses are not updated to touched.
(Their statuses remain as released, but internally they are judged as touched.) The most pushed sense terminal
must be released internally, for a new touch detection in this state. When the most pushed sense terminal is
released, the status of second most pushed sense terminal is updated to touched.
This exclusive update (multi touch disabled) can independently be assigned to each sense terminal. However, Release
ALL or Release CH mode configuration is common to all sense terminals which are assigned as multi touch disabled.
“The most pushed sense terminal” means a sense terminal which has the biggest difference between measured and
reference values. If there was a tie for the biggest difference value, the state of the sense terminal which has the smallest
channel number will be changed. By the user setting, “a touched sense terminal with the smallest channel number” can be
chosen as the condition of Release CH mode instead of the “the most pushed terminal”.
MS1313-E-01
2011/11
- 12 -
[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
Continuous Time
Number of Times
(ms)
0
1
1
4
0.125
2
8
0.25
3
16
0.5
4
32
1
5
64
2
6
128
4
7
256
8
8
512
16
9
1024
32
10
2048
64
11
4096
128
12
8192
256
13
16384
512
14,15
32768
1024
Table 1. Debounce Function Setting
Setting Value
• 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 -
[AK4160]
■ Digital I/F
The AK4160 is controlled by a microprocessor via I2C bus supporting standard mode (100kHz) and fast mode (400kHz).
Note that the AK4160 operates in those two modes and does not support a High speed mode I2C-bus system (3.4MHz).
The AK4160 can operate as a slave device on the I2C bus network. The digital I/O of AK4160 operates off of supply
voltage down to 1.71V in order to connect a low voltage microprocessor.
VDD=1.71V ~ 3.6V
Touch Switch
AD0,AD1
Rp
Rp
“L” or “H”
AK4160
SCL
SDA
MicroProcessor
(µP)
2
I C bus
Controller
IRQ0N/IRQ1N/IRQ2N
Figure 9. Digital I/F
1. WRITE Operations
Figure 10 shows the data transfer sequence for the I2C-bus mode. All commands are preceded by START condition. A
HIGH to LOW transition on the SDA line while SCL is HIGH indicates START condition (Figure 14). After the START
condition, a slave address is sent. This address is 7 bits long followed by the eighth bit that is a data direction bit (R/W).
The most significant five bits of the slave address are fixed as “10100”. The next bits is AD1 and AD0 (device address bit).
These bits identify the specific device on the bus. The hard-wired input pin (AD0, AD1 pin) set this device address bit
(Figure 11). If the slave address matches that of the AK4160, the AK4160 generates an acknowledge and the operation is
executed. The master must generate the acknowledge-related clock pulse and release the SDA line (HIGH) during the
acknowledge clock pulse (Figure 15). R/W bit value of “1” indicates that the read operation is to be executed. “0”
indicates that the write operation is to be executed.
The second byte consists of the control register address of the AK4160. The format is MSB first, and those most
significant two bits are fixed to zeros (Figure 12). The data after the second byte contains control data. The format is MSB
first, 8bits (Figure 13). The AK4160 generates an acknowledge after each byte is received. A data transfer is always
terminated by STOP condition generated by the master. A LOW to HIGH transition on the SDA line while SCL is HIGH
defines STOP condition (Figure 14).
The AK4160 can perform more than one byte write operation per sequence. After receipt of the third byte the AK4160
generates an acknowledge and awaits the next data. The master can transmit more than one byte instead of terminating the
write cycle after the first data byte is transferred. After receiving each data packet the internal 6-bit address counter is
incremented by one, and the next data is automatically taken into the next address. If the address exceeds “9FH” prior to
generating stop condition, the address counter will “roll over” to 00H and the previous data will be overwritten.
The data on the SDA line must remain stable during the HIGH period of the clock. HIGH or LOW state of the data line
can only change when the clock signal on the SCL line is LOW (Figure 16) except for the START and STOP conditions.
MS1313-E-01
2011/11
- 14 -
[AK4160]
S
T
A
R
T
Data (n+x)
P
AK4160
ACK
AK4160
ACK
Data (n+1)
AK4160
ACK
AK4160
ACK
Data (n)
AK4160
ACK
Sub
Address(n)
Slave
Address
S
AK4160
ACK
SDA
S
T
O
P
R/W= “0”
Figure 10. Data Transfer Sequence at the I2C-bus Mode
1
0
1
0
0
AD1
AD0
R/W
(AD0 and AD1 should match with AD0 and AD1 pin.)
Figure 11. The First Byte
A7
A6
A5
A4
A3
A2
A1
A0
D2
D1
D0
Figure 12. The Second Byte
D7
D6
D5
D4
D3
Figure 13. Byte Structure after the second byte
SDA
SCL
S
P
start condition
stop condition
Figure 14. START and STOP Conditions
DATA
OUTPUT BY
TRANSMITTER
not acknowledge
DATA
OUTPUT BY
RECEIVER
acknowledge
SCL FROM
MASTER
1
2
8
9
S
clock pulse for
acknowledgement
START
CONDITION
Figure 15. Acknowledge on the I2C-Bus
MS1313-E-01
2011/11
- 15 -
[AK4160]
SDA
SCL
data line
stable;
data valid
change
of data
allowed
Figure 16. Bit Transfer on the I2C-Bus
2. READ Operations
Set the R/W bit = “1” for the READ operation of the AK4160.
After transmission of data, the master can read the next address’s data by generating an acknowledge instead of
terminating the write cycle after the receipt of the first data word. After receiving each data packet the internal 6-bit
address counter is incremented by one, and the next data is automatically taken into the next address. If the address
exceeds “9FH” prior to generating stop condition, the address counter will “roll over” to 00H and the data of 00H will be
read out. The register read operation allows the master to access any memory location at random. Prior to issuing the slave
address with the R/W bit “1”, the master must first perform a “dummy” write operation. The master issues a start request,
a slave address (R/W bit = “0”) and then the register address to read. After the register address is acknowledged, the
master immediately reissues the start request and the slave address with the R/W bit “1”. The AK4160 then generates an
acknowledge, 1 byte of data and increments the internal address counter by 1. If the master does not generate an
acknowledge but generates stop condition instead, the AK4160 ceases transmission.
Data (n+1)
Data (n)
Data (n+x)
P
MASTR
NACK
Slave
Address
MASTR
ACK
S
MASTR
ACK
Sub
Address(n)
S
T
O
P
R/W= “1”
MASTR
ACK
Slave
Address
S
T
A
R
T
AK4160
ACK
S
AK4160
ACK
SDA
R/W= “0”
AK4160
ACK
S
T
A
R
T
Figure 17. Register Address Read
MS1313-E-01
2011/11
- 16 -
[AK4160]
■ Register Map
Register
Description
Type
Symbol
Address
0x00
Touch Status
0x01
0x02
0x03
GPIO Input Data
0x05
CS0 Data Register
0x06
0x07
CS1 Data Register
TS[8]
0x00
TS[1]
TS[0]
0x00
IRQS
DRDY
TOUCH
REL
ACF
RANGE
GPIN
Reserved
Reserved
0x00
IOVER
Reserved
Reserved
Reserved
Reserved
IRQ2
IRQ1
IRQ0
0x00
R
GPIN
GPIN[7]
GPIN[6]
GPIN[5]
GPIN[4]
GPIN[3]
GPIN[2]
GPIN[1]
GPIN[0]
0x00
R
CSD0
CSD0[15]
CSD0[14]
CSD0[13]
CSD0[12]
CSD0[11]
CSD0[10]
CSD0[9]
CSD0[8]
0x00
CSD0[7]
CSD0[6]
CSD0[5]
CSD0[4]
CSD0[3]
CSD0[2]
CSD0[1]
CSD0[0]
0x00
CSD1
CSD1[15]
CSD1[14]
CSD1[13]
CSD1[12]
CSD1[11]
CSD1[10]
CSD1[9]
CSD1[8]
0x00
CSD1[7]
CSD1[6]
CSD1[5]
CSD1[4]
CSD1[3]
CSD1[2]
CSD1[1]
CSD1[0]
0x00
CSD2
CSD2[15]
CSD2[14]
CSD2[13]
CSD2[12]
CSD2[11]
CSD2[10]
CSD2[9]
CSD2[8]
0x00
CSD2[7]
CSD2[6]
CSD2[5]
CSD2[4]
CSD2[3]
CSD2[2]
CSD2[1]
CSD2[0]
0x00
CSD3
CSD3[15]
CSD3[14]
CSD3[13]
CSD3[12]
CSD3[11]
CSD3[10]
CSD3[9]
CSD3[8]
0x00
CSD3[7]
CSD3[6]
CSD3[5]
CSD3[4]
CSD3[3]
CSD3[2]
CSD3[1]
CSD3[0]
0x00
CSD4
CSD4[15]
CSD4[14]
CSD4[13]
CSD4[12]
CSD4[11]
CSD4[10]
CSD4[9]
CSD4[8]
0x00
CSD4[7]
CSD4[6]
CSD4[5]
CSD4[4]
CSD4[3]
CSD4[2]
CSD4[1]
CSD4[0]
0x00
CSD5
CSD5[15]
CSD5[14]
CSD5[13]
CSD5[12]
CSD5[11]
CSD5[10]
CSD5[9]
CSD5[8]
0x00
CSD5[7]
CSD5[6]
CSD5[5]
CSD5[4]
CSD5[3]
CSD5[2]
CSD5[1]
CSD5[0]
0x00
CSD6
CSD6[15]
CSD6[14]
CSD6[13]
CSD6[12]
CSD6[11]
CSD6[10]
CSD6[9]
CSD6[8]
0x00
CSD6[7]
CSD6[6]
CSD6[5]
CSD6[4]
CSD6[3]
CSD6[2]
CSD6[1]
CSD6[0]
0x00
CSD7
CSD7[15]
CSD7[14]
CSD7[13]
CSD7[12]
CSD7[11]
CSD7[10]
CSD7[9]
CSD7[8]
0x00
CSD7[7]
CSD7[6]
CSD7[5]
CSD7[4]
CSD7[3]
CSD7[2]
CSD7[1]
CSD7[0]
0x00
CSD8
CSD8[15]
CSD8[14]
CSD8[13]
CSD8[12]
CSD8[11]
CSD8[10]
CSD8[9]
CSD8[8]
0x00
CSD8[7]
CSD8[6]
CSD8[5]
CSD8[4]
CSD8[3]
CSD8[2]
CSD8[1]
CSD8[0]
0x00
CSD9
CSD9[15]
CSD9[14]
CSD9[13]
CSD9[12]
CSD9[11]
CSD9[10]
CSD9[9]
CSD9[8]
0x00
CSD9[7]
CSD9[6]
CSD9[5]
CSD9[4]
CSD9[3]
CSD9[2]
CSD9[1]
CSD9[0]
0x00
CSD10
CSD10[15]
CSD10[14]
CSD10[13]
CSD10[12]
CSD10[11]
CSD10[10]
CSD10[9]
CSD10[8]
0x00
CSD10[7]
CSD10[6]
CSD10[5]
CSD10[4]
CSD10[3]
CSD10[2]
CSD10[1]
CSD10[0]
0x00
CSD11
CSD11[15]
CSD11[14]
CSD11[13]
CSD11[12]
CSD11[11]
CSD11[10]
CSD11[9]
CSD11[8]
0x00
CSD11[7]
CSD11[6]
CSD11[5]
CSD11[4]
CSD11[3]
CSD11[2]
CSD11[1]
CSD11[0]
0x00
CSD12
CSD12[15]
CSD12[14]
CSD12[13]
CSD12[12]
CSD12[11]
CSD12[10]
CSD12[9]
CSD12[8]
0x00
CSD12[7]
CSD12[6]
CSD12[5]
CSD12[4]
CSD12[3]
CSD12[2]
CSD12[1]
CSD12[0]
0x00
CSD13
CSD13[15]
CSD13[14]
CSD13[13]
CSD13[12]
CSD13[11]
CSD13[10]
CSD13[9]
CSD13[8]
0x00
CSD13[7]
CSD13[6]
CSD13[5]
CSD13[4]
CSD13[3]
CSD13[2]
CSD13[1]
CSD13[0]
0x00
CSD14
CSD14[15]
CSD14[14]
CSD14[13]
CSD14[12]
CSD14[11]
CSD14[10]
CSD14[9]
CSD14[8]
0x00
CSD14[7]
CSD14[6]
CSD14[5]
CSD14[4]
CSD14[3]
CSD14[2]
CSD14[1]
CSD14[0]
0x00
CSD15
CSD15[15]
CSD15[14]
CSD15[13]
CSD15[12]
CSD15[11]
CSD15[10]
CSD15[9]
CSD15[8]
0x00
R
R
R
R
R
R
R
R
R
CS11 Data Register
R
CS12 Data Register
R
R
R
R
R
CS13 Data Register
R
R
CS14 Data Register
0x22
0x23
TS[9]
TS[2]
R
0x20
0x21
TS[10]
TS[3]
CS10 Data Register
0x1E
0x1F
TS[11]
TS[4]
R
0x1C
0x1D
TS[12]
TS[5]
R
0x1A
0x1B
TS[13]
TS[6]
CS9 Data Register
0x18
0x19
TS[14]
TS[7]
TS
R
CS8 Data Register
0x16
0x17
TS[15]
R
R
CS7 Data Register
0x14
0x15
Value
R
CS6 Data Register
0x12
0x13
D0
R
CS5 Data Register
0x10
0x11
D1
R
CS4 Data Register
0x0E
0x0F
D2
R
CS3 Data Register
0x0C
0x0D
D3
R
CS2 Data Register
0x0A
0x0B
D4
R
0x08
0x09
D5
W/R
0x04
R
R
CS15 Data Register
0x24
Initial
D6
R
IRQ Status
Fields
D7
R
CSD15[7]
CSD15[6]
CSD15[5]
CSD15[4]
CSD15[3]
CSD15[2]
CSD15[1]
CSD15[0]
0x00
0x25
CS0 Touch Threshold
W/R
R
TT0
T8X0
TT0[6]
TT0[5]
TT0[4]
TT0[3]
TT0[2]
TT0[1]
TT0[0]
0x00
0x26
CS0 Release Threshold
W/R
RT0
R8X0
RT0[6]
RT0[5]
RT0[4]
RT0[3]
RT0[2]
RT0[1]
RT0[0]
0x00
0x27
CS1 Touch Threshold
W/R
TT1
T8X1
TT1[6]
TT1[5]
TT1[4]
TT1[3]
TT1[2]
TT1[1]
TT1[0]
0x00
0x28
CS1 Release Threshold
W/R
RT1
R8X1
RT1[6]
RT1[5]
RT1[4]
RT1[3]
RT1[2]
RT1[1]
RT1[0]
0x00
0x29
CS2 Touch Threshold
W/R
TT2
T8X2
TT2[6]
TT2[5]
TT2[4]
TT2[3]
TT2[2]
TT2[1]
TT2[0]
0x00
0x2A
CS2 Release Threshold
W/R
RT2
R8X2
RT2[6]
RT2[5]
RT2[4]
RT2[3]
RT2[2]
RT2[1]
RT2[0]
0x00
0x2B
CS3 Touch Threshold
W/R
TT3
T8X3
TT3[6]
TT3[5]
TT3[4]
TT3[3]
TT3[2]
TT3[1]
TT3[0]
0x00
0x2C
CS3 Release Threshold
W/R
RT3
R8X3
RT3[6]
RT3[5]
RT3[4]
RT3[3]
RT3[2]
RT3[1]
RT3[0]
0x00
0x2D
CS4 Touch Threshold
W/R
TT4
T8X4
TT4[6]
TT4[5]
TT4[4]
TT4[3]
TT4[2]
TT4[1]
TT4[0]
0x00
0x2E
CS4 Release Threshold
W/R
RT4
R8X4
RT4[6]
RT4[5]
RT4[4]
RT4[3]
RT4[2]
RT4[1]
RT4[0]
0x00
0x2F
CS5 Touch Threshold
W/R
TT5
T8X5
TT5[6]
TT5[5]
TT5[4]
TT5[3]
TT5[2]
TT5[1]
TT5[0]
0x00
0x30
CS5 Release Threshold
W/R
RT5
R8X5
RT5[6]
RT5[5]
RT5[4]
RT5[3]
RT5[2]
RT5[1]
RT5[0]
0x00
0x31
CS6 Touch Threshold
W/R
TT6
T8X6
TT6[6]
TT6[5]
TT6[4]
TT6[3]
TT6[2]
TT6[1]
TT6[0]
0x00
0x32
CS6 Release Threshold
W/R
RT6
R8X6
RT6[6]
RT6[5]
RT6[4]
RT6[3]
RT6[2]
RT6[1]
RT6[0]
0x00
0x33
CS7 Touch Threshold
W/R
TT7
T8X7
TT7[6]
TT7[5]
TT7[4]
TT7[3]
TT7[2]
TT7[1]
TT7[0]
0x00
0x34
CS7 Release Threshold
W/R
RT7
R8X7
RT7[6]
RT7[5]
RT7[4]
RT7[3]
RT7[2]
RT7[1]
RT7[0]
0x00
0x35
CS8 Touch Threshold
W/R
TT8
T8X8
TT8[6]
TT8[5]
TT8[4]
TT8[3]
TT8[2]
TT8[1]
TT8[0]
0x00
0x36
CS8 Release Threshold
W/R
RT8
R8X8
RT8[6]
RT8[5]
RT8[4]
RT8[3]
RT8[2]
RT8[1]
RT8[0]
0x00
0x37
CS9 Touch Threshold
W/R
TT9
T8X9
TT9[6]
TT9[5]
TT9[4]
TT9[3]
TT9[2]
TT9[1]
TT9[0]
0x00
0x38
CS9 Release Threshold
W/R
RT9
R8X9
RT9[6]
RT9[5]
RT9[4]
RT9[3]
RT9[2]
RT9[1]
RT9[0]
0x00
0x39
CS10 Touch Threshold
CS10 Release
Threshold
CS11 Touch Threshold
CS11 Release
Threshold
CS12 Touch Threshold
CS12 Release
Threshold
CS13 Touch Threshold
W/R
TT10
T8X10
TT10[6]
TT10[5]
TT10[4]
TT10[3]
TT10[2]
TT10[1]
TT10[0]
0x00
0x00
0x3A
0x3B
0x3C
0x3D
0x3E
0x3F
W/R
RT10
R8X10
RT10[6]
RT10[5]
RT10[4]
RT10[3]
RT10[2]
RT10[1]
RT10[0]
W/R
TT11
T8X11
TT11[6]
TT11[5]
TT11[4]
TT11[3]
TT11[2]
TT11[1]
TT11[0]
0x00
W/R
RT11
R8X11
RT11[6]
RT11[5]
RT11[4]
RT11[3]
RT11[2]
RT11[1]
RT11[0]
0x00
W/R
TT12
T8X12
TT12[6]
TT12[5]
TT12[4]
TT12[3]
TT12[2]
TT12[1]
TT12[0]
0x00
W/R
RT12
R8X12
RT12[6]
RT12[5]
RT12[4]
RT12[3]
RT12[2]
RT12[1]
RT12[0]
0x00
W/R
TT13
T8X13
TT13[6]
TT13[5]
TT13[4]
TT13[3]
TT13[2]
TT13[1]
TT13[0]
0x00
Table 2. AK4160 Register Map (1)
MS1313-E-01
2011/11
- 17 -
[AK4160]
Register
Description
Type
Symbol
Address
0x45
CS13 Release
Threshold
CS14 Touch Threshold
CS14 Release
Threshold
CS15 Touch Threshold
CS15 Release
Threshold
CS0 Charge Current
0x46
CS1 Charge Current
0x47
0x40
0x41
0x42
0x43
Fields
Initial
D7
D6
D5
D4
D3
D2
D1
D0
Value
0x00
W/R
RT13
R8X13
RT13[6]
RT13[5]
RT13[4]
RT13[3]
RT13[2]
RT13[1]
RT13[0]
W/R
TT14
T8X14
TT14[6]
TT14[5]
TT14[4]
TT14[3]
TT14[2]
TT14[1]
TT14[0]
0x00
W/R
RT14
R8X14
RT14[6]
RT14[5]
RT14[4]
RT14[3]
RT14[2]
RT14[1]
RT14[0]
0x00
W/R
TT15
T8X15
TT15[6]
TT15[5]
TT15[4]
TT15[3]
TT15[2]
TT15[1]
TT15[0]
0x00
W/R
RT15
R8X15
RT15[6]
RT15[5]
RT15[4]
RT15[3]
RT15[2]
RT15[1]
RT15[0]
0x00
W/R
CC0
Reserved
Reserved
CC0[5]
CC0[4]
CC0[3]
CC0[2]
CC0[1]
CC0[0]
0x00
W/R
CC1
Reserved
Reserved
CC1[5]
CC1[4]
CC1[3]
CC1[2]
CC1[1]
CC1[0]
0x00
CS2 Charge Current
W/R
CC2
Reserved
Reserved
CC2[5]
CC2[4]
CC2[3]
CC2[2]
CC2[1]
CC2[0]
0x00
0x48
CS3 Charge Current
W/R
CC3
Reserved
Reserved
CC3[5]
CC3[4]
CC3[3]
CC3[2]
CC3[1]
CC3[0]
0x00
0x49
CS4 Charge Current
W/R
CC4
Reserved
Reserved
CC4[5]
CC4[4]
CC4[3]
CC4[2]
CC4[1]
CC4[0]
0x00
0x4A
CS5 Charge Current
W/R
CC5
Reserved
Reserved
CC5[5]
CC5[4]
CC5[3]
CC5[2]
CC5[1]
CC5[0]
0x00
0x4B
CS6 Charge Current
W/R
CC6
Reserved
Reserved
CC6[5]
CC6[4]
CC6[3]
CC6[2]
CC6[1]
CC6[0]
0x00
0x4C
CS7 Charge Current
W/R
CC7
Reserved
Reserved
CC7[5]
CC7[4]
CC7[3]
CC7[2]
CC7[1]
CC7[0]
0x00
0x4D
CS8 Charge Current
W/R
CC8
Reserved
Reserved
CC8[5]
CC8[4]
CC8[3]
CC8[2]
CC8[1]
CC8[0]
0x00
0x4E
CS9 Charge Current
W/R
CC9
Reserved
Reserved
CC9[5]
CC9[4]
CC9[3]
CC9[2]
CC9[1]
CC9[0]
0x00
0x4F
CS10 Charge Current
W/R
CC10
Reserved
Reserved
CC10[5]
CC10[4]
CC10[3]
CC10[2]
CC10[1]
CC10[0]
0x00
0x50
CS11 Charge Current
W/R
CC11
Reserved
Reserved
CC11[5]
CC11[4]
CC11[3]
CC11[2]
CC11[1]
CC11[0]
0x00
0x51
CS12 Charge Current
W/R
CC12
Reserved
Reserved
CC12[5]
CC12[4]
CC12[3]
CC12[2]
CC12[1]
CC12[0]
0x00
0x52
CS13 Charge Current
W/R
CC13
Reserved
Reserved
CC13[5]
CC13[4]
CC13[3]
CC13[2]
CC13[1]
CC13[0]
0x00
0x53
CS14 Charge Current
W/R
CC14
Reserved
Reserved
CC14[5]
CC14[4]
CC14[3]
CC14[2]
CC14[1]
CC14[0]
0x00
0x54
CS15 Charge Current
W/R
CC15
Reserved
Reserved
CC15[5]
CC15[4]
CC15[3]
CC15[2]
CC15[1]
CC15[0]
0x00
0x55
CS1/0 Charge Time
W/R
CT0
Reserved
CT1[2]
CT1[1]
CT1[0]
Reserved
CT0[2]
CT0[1]
CT0[0]
0x00
0x56
CS3/2 Charge Time
W/R
CT2
Reserved
CT3[2]
CT3[1]
CT3[0]
Reserved
CT2[2]
CT2[1]
CT2[0]
0x00
0x57
CS5/4 Charge Time
W/R
CT4
Reserved
CT5[2]
CT5[1]
CT5[0]
Reserved
CT4[2]
CT4[1]
CT4[0]
0x00
0x58
CS7/6 Charge Time
W/R
CT6
Reserved
CT7[2]
CT7[1]
CT7[0]
Reserved
CT6[2]
CT6[1]
CT6[0]
0x00
0x59
CS9/8 Charge Time
W/R
CT8
Reserved
CT9[2]
CT9[1]
CT9[0]
Reserved
CT8[2]
CT8[1]
CT8[0]
0x00
0x5A
CS11/10 Charge Time
W/R
CT10
Reserved
CT11[2]
CT11[1]
CT11[0]
Reserved
CT10[2]
CT10[1]
CT10[0]
0x00
0x5B
CS13/12 Charge Time
W/R
CT12
Reserved
CT13[2]
CT13[1]
CT13[0]
Reserved
CT12[2]
CT12[1]
CT12[0]
0x00
0x5C
CS15/14 Charge Time
W/R
CT14
Reserved
CT15[2]
CT15[1]
CT15[0]
Reserved
CT14[2]
CT14[1]
CT14[0]
0x00
0x5D
GPIO Data
W/R
GPDT
GPDT[7]
GPDT[6]
GPDT[5]
GPDT[4]
GPDT[3]
GPDT[2]
GPDT[1]
GPDT[0]
0x00
0x5E
GPIO Enable
W/R
GPEN
GPEN[7]
GPEN[6]
GPEN[5]
GPEN[4]
GPEN[3]
GPEN[2]
GPEN[1]
GPEN[0]
0x00
0x5F
AC Control
W/R
ACC
ACE
RCE
RCIM
CCO
VS[3]
VS[2]
VS[1]
VS[0]
0x06
0x60
AC Status
R
ACS
ACS[15]
ACS[14]
ACS[13]
ACS[12]
ACS[11]
ACS[10]
ACS[9]
ACS[8]
0x00
ACS[7]
ACS[6]
ACS[5]
ACS[4]
ACS[3]
ACS[2]
ACS[1]
ACS[0]
0x00
MTI[15]
MTI[14]
MTI[13]
MTI[12]
MTI[11]
MTI[10]
MTI[9]
MTI[8]
0x00
MTI[7]
MTI[6]
MTI[5]
MTI[4]
MTI[3]
MTI[2]
MTI[1]
MTI[0]
0x00
GPEN
CLRM
HIGH
DRV[1]
DRV[0]
DSTR
PE
PU
0x08
DRDY
TOUCH
REL
ACF
RANGE
GPIN
Reserved
LVL
0x00
IRQM[15]
IRQM[14]
IRQM[13]
IRQM[12]
IRQM[11]
IRQM[10]
IRQM[9]
IRQM[8]
0x00
IRQM[7]
IRQM[6]
IRQM[5]
IRQM[4]
IRQM[3]
IRQM[2]
IRQM[1]
IRQM[0]
0x00
GPEN
CLRM
HIGH
DRV[1]
DRV[0]
DSTR
PE
PU
0x08
DRDY
TOUCH
REL
ACF
RANGE
GPIN
Reserved
LVL
0x00
IRQM[15]
IRQM[14]
IRQM[13]
IRQM[12]
IRQM[11]
IRQM[10]
IRQM[9]
IRQM[8]
0x00
IRQM[7]
IRQM[6]
IRQM[5]
IRQM[4]
IRQM[3]
IRQM[2]
IRQM[1]
IRQM[0]
0x00
GPEN
CLRM
HIGH
DRV[1]
DRV[0]
DSTR
PE
PU
0x08
DRDY
TOUCH
REL
ACF
RANGE
GPIN
Reserved
LVL
0x00
IRQM[15]
IRQM[14]
IRQM[13]
IRQM[12]
IRQM[11]
IRQM[10]
IRQM[9]
IRQM[8]
0x00
IRQM[7]
IRQM[6]
IRQM[5]
IRQM[4]
IRQM[3]
IRQM[2]
IRQM[1]
IRQM[0]
0x00
0x44
0x61
0x62
R
Multi Touch Inhibit
0x63
0x64
IRQ Control 0
0x65
0x66
IRQ Mask 0
IRQ Control 1
IRQ Mask 1
W/R
IRQM0
W/R
IRQC1
W/R
IRQM1
W/R
IRQ Control 2
0x6D
0x6E
IRQC0
W/R
0x6B
0x6C
W/R
W/R
0x69
0x6A
MTI
W/R
0x67
0x68
W/R
W/R
W/R
IRQC2
W/R
IRQ Mask 2
0x6F
W/R
IRQM2
W/R
0x70
Noise Filter Control
W/R
NFC
NF2S[1]
NF2S[0]
NF1S[1]
NF1S[0]
RIM[1]
RIM[0]
LCH
RCH
0x00
0x71
Debounce Control
W/R
DEB
DEBT[3]
DEBT[2]
DEBT[1]
DEBT[0]
DEBR[3]
DEBR[2]
DEBR[1]
DEBR[0]
0x00
0x72
EF Control
W/R
EFC
EUP[5]
EUP[4]
EUP[3]
EUP[2]
EUP[1]
EUP[0]
EUR[1]
EUR[0]
0x00
EDP[5]
EDP[4]
EDP[3]
EDP[2]
EDP[1]
EDP[0]
EDR[1]
EDR[0]
0x00
0x73
W/R
0x75
Sampling Rate and
Channel Control
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x76
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x77
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x78
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x79
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x7A
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x7B
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x7C
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x7D
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x7E
Soft Reset
W/R
SRST
SRST[7]
SRST[6]
SRST[5]
SRST[4]
SRST[3]
SRST[2]
SRST[1]
SRST[0]
0x00
0x7F
Reserved
-
-
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
0x00
0x74
W/R
SCC
TSR[2]
TSR[1]
TSR[0]
NCH[4]
NCH[3]
NCH[2]
NCH[1]
NCH[0]
0x00
Table 3. AK4160 Register Map (2)
MS1313-E-01
2011/11
- 18 -
[AK4160]
Register
Description
Type
Symbol
Address
0x80
CS0 Reference Data
0x81
0x82
CS1 Reference Data
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF0[9]
REF0[8]
0x00
REF0[7]
REF0[6]
REF0[5]
REF0[4]
REF0[3]
REF0[2]
REF0[1]
REF0[0]
0x00
REF1
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF1[9]
REF1[8]
0x00
REF1[7]
REF1[6]
REF1[5]
REF1[4]
REF1[3]
REF1[2]
REF1[1]
REF1[0]
0x00
REF2
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF2[9]
REF2[8]
0x00
REF2[7]
REF2[6]
REF2[5]
REF2[4]
REF2[3]
REF2[2]
REF2[1]
REF2[0]
0x00
REF3
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF3[9]
REF3[8]
0x00
REF3[7]
REF3[6]
REF3[5]
REF3[4]
REF3[3]
REF3[2]
REF3[1]
REF3[0]
0x00
REF4
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF4[9]
REF4[8]
0x00
REF4[7]
REF4[6]
REF4[5]
REF4[4]
REF4[3]
REF4[2]
REF4[1]
REF4[0]
0x00
REF5
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF5[9]
REF5[8]
0x00
REF5[7]
REF5[6]
REF5[5]
REF5[4]
REF5[3]
REF5[2]
REF5[1]
REF5[0]
0x00
REF6
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF6[9]
REF6[8]
0x00
REF6[7]
REF6[6]
REF6[5]
REF6[4]
REF6[3]
REF6[2]
REF6[1]
REF6[0]
0x00
REF7
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF7[9]
REF7[8]
0x00
REF7[7]
REF7[6]
REF7[5]
REF7[4]
REF7[3]
REF7[2]
REF7[1]
REF7[0]
0x00
REF8
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF8[9]
REF8[8]
0x00
REF8[7]
REF8[6]
REF8[5]
REF8[4]
REF8[3]
REF8[2]
REF8[1]
REF8[0]
0x00
REF9
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF9[9]
REF9[8]
0x00
REF9[7]
REF9[6]
REF9[5]
REF9[4]
REF9[3]
REF9[2]
REF9[1]
REF9[0]
0x00
REF10
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF10[9]
REF10[8]
0x00
REF10[7]
REF10[6]
REF10[5]
REF10[4]
REF10[3]
REF10[2]
REF10[1]
REF10[0]
0x00
REF11
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF11[9]
REF11[8]
0x00
REF11[7]
REF11[6]
REF11[5]
REF11[4]
REF11[3]
REF11[2]
REF11[1]
REF11[0]
0x00
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF12[9]
REF12[8]
0x00
REF12[7]
REF12[6]
REF12[5]
REF12[4]
REF12[3]
REF12[2]
REF12[1]
REF12[0]
0x00
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF13[9]
REF13[8]
0x00
REF13[7]
REF13[6]
REF13[5]
REF13[4]
REF13[3]
REF13[2]
REF13[1]
REF13[0]
0x00
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF14[9]
REF14[8]
0x00
REF14[7]
REF14[6]
REF14[5]
REF14[4]
REF14[3]
REF14[2]
REF14[1]
REF14[0]
0x00
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
REF15[9]
REF15[8]
0x00
REF15[7]
REF15[6]
REF15[5]
REF15[4]
REF15[3]
REF15[2]
REF15[1]
REF15[0]
0x00
REF0
W/R
W/R
CS10 Reference Data
W/R
CS11 Reference Data
W/R
W/R
W/R
W/R
CS12 Reference Data
W/R
REF12
W/R
CS13 Reference Data
W/R
REF13
W/R
CS14 Reference Data
0x9D
0x9E
W/R
CS9 Reference Data
0x9B
0x9C
Value
W/R
CS8 Reference Data
0x99
0x9A
D0
W/R
0x97
0x98
W/R
W/R
0x95
0x96
W/R
CS7 Reference Data
0x93
0x94
W/R
W/R
0x91
0x92
D1
W/R
0x8F
0x90
W/R
CS6 Reference Data
0x8D
0x8E
D2
W/R
CS5 Reference Data
0x8B
0x8C
D3
W/R
CS4 Reference Data
0x89
0x8A
D4
W/R
CS3 Reference Data
0x87
0x88
D5
W/R
CS2 Reference Data
0x85
0x86
W/R
W/R
REF14
W/R
CS15 Reference Data
0x9F
W/R
W/R
Initial
D6
W/R
0x83
0x84
W/R
Fields
D7
REF15
Table 4. AK4160 Register Map (3)
MS1313-E-01
2011/11
- 19 -
[AK4160]
■ Register definition
Touch Status Register
Address 0x00 (R) Default 0x00
Description
D7
TS[15]
Touch Status
Address 0x01 (R) Default 0x00
Description
D7
TS[7]
Touch Status
Bits
15-0
Name
TS
D6
D5
D4
D3
D2
D1
D0
TS[14]
TS[13]
TS[12]
TS[11]
TS[10]
TS[9]
TS[8]
D6
D5
D4
D3
D2
D1
D0
TS[6]
TS[5]
TS[4]
TS[3]
TS[2]
TS[1]
TS[0]
Description
Touch Status for Each Sense Terminal
0: Release
1: Touch
IRQ Status Register
Address 0x02 (R) Default 0x00
Description
D7
DRDY
IRQ Status
Bits
D7
D6
D5
D4
D3
D2
D1
D0
TOUCH
REL
ACF
RANGE
GPIN
Reserved
Reserved
Name
DRDY
Description
Data Ready Interrupt
The DRDY bit is set to “1” in the status of data ready.
When the data ready interrupt is invalid, this bit is fix to “0”.
D6
TOUCH
Touch Interrupt
The TOUCH bit is set to “1” in the status of touch transition.
When touch interrupt is invalid, this bit is fix to “0”. The sense terminal connected
to the interrupt is selected by IRQM register. (Address 0x66~0x67, 0x6A~0x6B,
0x6E~0x6F)
D5
REL
Release Interrupt
The REL bit is set to “1” in the status of release transaction.
When release interrupt is invalid, this bit is fix to “0”. The sense terminal
connected to the interrupt is selected by IRQM register. (Address 0x66~0x67,
0x6A~0x6B, 0x6E~0x6F)
D4
ACF
Automatic Setting Fail Interrupt
The ACF bit is set to “1”, when the measured value of the sense terminal is over
the upper limit at the termination of automatic setting. When the automatic setting
or the automatic setting fail interrupt is invalid, this bit is fix to “0”.
D3
RANGE
Range Over Interrupt
The RANGE bit is set to “1”, when the measured value of the sense terminal is
over the upper limit. When the automatic resetting or the range over interrupt is
invalid, the bit is fix to “0”.
D2
GPIN
GPIO Input Interrupt
The GPIN bit is set to “1” when a GPIO Input Interrupt occurs. When the GPIO
input interrupt is invalid, the bit is fix to “0”.
D1-D0
Reserved
Reserved
When the IRQ bit (Addr 0x03 IRQ2-0 bits) with permission of interrupt is cleared, these bits are also cleared.
MS1313-E-01
2011/11
- 20 -
[AK4160]
Address 0x03 (W/R) Default 0x00
Description
D7
IOVER
IRQ Status
Bits
D7
Name
IOVER
D6-D3
D2-D0
Reserved
IRQ2-0
D6
D5
D4
D3
D2
D1
D0
Reserved
Reserved
Reserved
Reserved
IRQ2
IRQ1
IRQ0
Description
Short Detection of the RREF pin
The IOVER bit is set to “1”, when the RREF pin is shorted to VSS in run mode.
The AK4160 is changed from run mode to shutdown mode for the over current
protection.
The IRQ bit setting to the edge action is fix to the active state. When the IOVER bit
is “1”, run mode is invalid. When the IOVER bit is written “1”, the IOVER bit or
IRQ2-0 bits are cleared.
Reserved: Must write “0”
IRQ Status
· The Edge Action case
The IRQ bits are set to “1”, when an interrupt occurs. There are 2ways to clear
these bits. It is selected by CLRM bit in the IRQCn register.
CLRM bit = “0”: When the lower byte of the IRQ Status register is read.
CLRM bit = “1”: When the related bit (IRQ2-0 bits) is written “1”, the bit is
cleared
· The Level Action case
The IRQ bits are set to the input level of IRQN2-0 terminals. Reading or writing
“1” to the IRQ bits is invalid.
· The GPIO Function
The IRQ bits are set to the level of IRQN2-0 terminals. Reading or writing “1” to
the IRQ bits is invalid.
MS1313-E-01
2011/11
- 21 -
[AK4160]
GPIO Input Data Register
Address 0x04 (R) Default 0x00
Description
D7
GPIN[7]
GPIO Input Data
Bits
D7-D0
Name
GPIN
D6
D5
D4
D3
D2
D1
D0
GPIN[6]
GPIN[5]
GPIN[4]
GPIN[3]
GPIN[2]
GPIN[1]
GPIN[0]
Description
The level output of GPIO
The reading value changes at each setting of GPIO. (Table 5)
Debounce
SRC1-0 bits The Value that returned from GPIO
(Note 25)
(Note 26)
0
Invalid
Terminal Level
Valid
Debounced Level
Output
00
Terminal Level
01, 10, 11
Output Enable
Note 23. This is the setting value at the address 0x5E.
Note 24. This is set by DIR bit at the address 0x35~0x44.
Note 25. This is set by DEB1[3:0] bits and DEB0[3:0] bits at address 0x35~0x44.
Note 26. This is set by SRC1-0 bits at address 0x32~0x44.
Table 5. GPIO Register Value
GPEN
(Note 23)
0
1
Direction
(Note 24)
Input
MS1313-E-01
2011/11
- 22 -
[AK4160]
Capacitor Sense Data Register (CSDn: n=0~15)
Address 0x05/0x07/.../0x23 (R) Default 0x00
Description
D7
D6
CSDn[15] CSDn[14]
CSn Data Register
D5
D4
D3
D2
D1
D0
CSDn[13]
CSDn[12]
CSDn[11]
CSDn[10]
CSDn[9]
CSDn[8]
Address 0x06/0x08/…/0x24 (R) Default 0x00
Description
D7
D6
CSDn[7]
CSDn[6]
CSn Data Register
D5
D4
D3
D2
D1
D0
CSDn[5]
CSDn[4]
CSDn[3]
CSDn[2]
CSDn[1]
CSDn[0]
Bits
15-0
Name
CSDn
CS
CS0
CS1
CS2
CS3
CS4
CS5
CS6
CS7
Description
Measurement Data of each sense terminal
The last measurement data is kept when the operating state is changed from
run-mode to shutdown-mode. Afterwards, the measurement data is updated in
run-mode whenever the data is settled.
Address
CS
0x05 - 0x06
CS8
0x07 - 0x08
CS9
0x09 - 0x0A
CS10
0x0B - 0x0C
CS11
0x0D - 0x0E
CS12
0x0F - 0x10
CS13
0x11 - 0x12
CS14
0x13 - 0x14
CS15
Table 6. Address to each CS pins
MS1313-E-01
Address
0x15 - 0x16
0x17 - 0x18
0x19 - 0x1A
0x1B - 0x1C
0x1D - 0x1E
0x1F - 0x20
0x21 - 0x22
0x23 - 0x24
2011/11
- 23 -
[AK4160]
Threshold Register (THn: n=0~15)
Address 0x25/0x27/…/0x43 (W/R) Default 0x00
Description
D7
D6
T8Xn
TTn[6]
CSn Touch Threshold
Address 0x26/0x28/…/0x44 (W/R) Default 0x00
Description
D7
D6
R8Xn
RTn[6]
CSn Release Threshold
Bits
D7
D6-D0
Name
T8Xn
TTn
Bits
D7
D6-D0
Name
R8Xn
RTn
D5
D4
D3
D2
D1
D0
TTn[5]
TTn[4]
TTn[3]
TTn[2]
TTn[1]
TTn[0]
D5
D4
D3
D2
D1
D0
RTn[5]
RTn[4]
RTn[3]
RTn[2]
RTn[1]
RTn[0]
Description
The touch threshold of the terminal CSn is increased by a factor of eight.
The touch threshold of the terminal CSn is set.
T8Xn=0: The threshold is 0~127 (Step 1)
T8Xn=1: The threshold is 0~1016 (Step 8)
Description
The release threshold of the terminal CSn is increased by a factor of eight.
The release threshold of the terminal CSn is set.
R8Xn=0: The threshold is 0~127 (Step 1)
R8Xn=1: The threshold is 0~1016 (Step 8)
The threshold register should not be updated in run-mode.
When the sense terminal is set to GPIO, the threshold register becomes a GPIO control register GPCn (n=0~7).
Address
0x25 – 0x26
0x27 – 0x28
0x29 – 0x2A
0x2B – 0x2C
0x2D – 0x2E
0x2F – 0x30
0x31 – 0x32
0x33 – 0x34
0x35 – 0x36
0x37 – 0x38
0x39 – 0x3A
0x3B – 0x3C
0x3D – 0x3E
0x3F – 0x40
0x41 – 0x42
0x43 – 0x44
CS
GPIO
CS0 Threshold Register
CS1 Threshold Register
CS2 Threshold Register
CS3 Threshold Register
CS4 Threshold Register
CS5 Threshold Register
CS6 Threshold Register
CS7 Threshold Register
CS8 Threshold Register
GPIO7 Control Register
CS9 Threshold Register
GPIO6 Control Register
CS10 Threshold Register
GPIO5 Control Register
CS11 Threshold Register
GPIO4 Control Register
CS12 Threshold Register
GPIO3 Control Register
CS13 Threshold Register
GPIO2 Control Register
CS14 Threshold Register
GPIO1 Control Register
CS15 Threshold Register
GPIO0 Control Register
Table 7. CS Threshold Register and GPIO Control Register
GPIO Control Register (GPCn: n=0~7)
CS8~CS15 can be used as GPIO by setting GPIO enable register (Addr 0x5E). In this case, the threshold register works as
the GPIO control register. The bit allocation of the GPIO control register at the input setting (DIR bit = “0”) is different
from the allocation at the output setting (DIR bit = “1”).
MS1313-E-01
2011/11
- 24 -
[AK4160]
GPIO Input Control Register
Address 0x35/0x37/…/0x43 (W/R) Default 0x00
Description
D7
D6
DIR
Reserved
GPIO Input Control
D5
D4
D3
D2
D1
D0
Reserved
Reserved
IRQC[1]
IRQC[0]
PE
PU
Address 0x36/0x38/…/0x44 (W/R) Default 0x00
Description
D7
D6
DEB1[3]
DEB1[2]
GPIO Input Control
D5
D4
D3
D2
D1
D0
DEB1[1]
DEB1[0]
DEB0[3]
DEB0[2]
DEB0[1]
DEB0[0]
Bits
D7
D6-D4
D3-D2
Name
DIR
Reserved
IRQC
D1
PE
D0
PU
Bits
D7-D4
Name
DEB1
D3-D0
DEB0
DEB0, DEB1
0000
0001
0010
0011
0100
0101
0110
0111
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
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.
Consecutive
number
1
4
8
16
32
64
128
256
Consecutive
DEB0, DEB1
time (ms)
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
Consecutive
time (ms)
16
32
64
128
256
512
1024
1024
Refer to Table 7 for the correspondence of the register address and the GPIO pin.
MS1313-E-01
2011/11
- 25 -
[AK4160]
GPIO Output Control Register
Address 0x35/0x37/…/0x43 (W/R) Default 0x00
Description
D7
D6
DIR
REL
GPIO Output Control
D5
D4
D3
D2
D1
D0
SRC[1]
SRC[0]
DRV[1]
DRV[0]
INV
DSTR
Address 0x36/0x38/…/0x44 (W/R) Default 0x00
Description
D7
D6
PWM
PRD[1]
GPIO Output Control
D5
D4
D3
D2
D1
D0
PRD[0]
DUTY[4]
DUTY[3]
DUTY[2]
DUTY[1]
DUTY[0]
Bits
D7
D6
Name
DIR
REL
D5-D4
SRC
Description
This bit should be set to “1” at the output setting of GPIO.
The Output Setting (SRC1-0 bits = “01”, “10”, “11”)
0: Touch Status
1: Release Status
The Selection of Output Data
00: The value set by GPDT register (Addr 0x5D) is output.
01: The status value set by REL bit is output.
10: The status value set by REL bit is output in the toggle. (Initial value 0)
11: The status value set by REL bit is output in the toggle. (Initial value 1)
When the touch status (release status) is selected as output data, the terminal
GPIOn outputs the status of terminal CSn (n=0~7). Touch status is recognized as
“0” at shutdown mode.
D3-D2
DRV
D1
D0
INV
DSTR
Bits
D7
D6-D5
Name
PWM
PRD
D4-D0
DUTY
The output value is initialized by writing “0” to corresponding GPDT register
(Addr 0x5D) when SRC1-0 bits = “01”, “10”, “11”.
01: The output value is initialized by “0”.
10: The output value is initialized by “0”.
11: The output value is initialized by “1”.
Output Driver Setting
00: CMOS Output
01: Low Side Output: When Output is “H”, Hi-z (Open Drain)
10: High Side Output: When Output is “L”, Hi-z (Open Drain)
11: CMOS Output (Same as 00 Setting)
The output level is reversed.
The Driving ability of the GPIO output driver is set.
0: 1/3 drive
1: full drive
Description
PWM Output Enable
Cycle of the PWM output is set.
00: 125Hz
01: 250Hz
10: 500Hz
11: 1000Hz
Duty of the PWM output is set.
Duty=(DUTY + 1) / 32: 1/32 ~ 32/32
Refer to Table 7 for the correspondence of the register address and the GPIO pin.
MS1313-E-01
2011/11
- 26 -
[AK4160]
Charge Current Register (CCn: n=0~15)
Address 0x45-0x54 (W/R) Default 0x00
Description
D7
Reserved
Charge Current
Bits
D7-D6
D5-D0
D6
D5
D4
D3
D2
D1
D0
Reserved
CCn[5]
CCn[4]
CCn[3]
CCn[2]
CCn[1]
CCn[0]
Name
Reserved
CCn
Description
Reserved: This bit should be written “0”.
The charge current from the terminal CSn is set. 0.556 x CCn x VDD [uA]
When automatic setting is valid (Addr 0x5F ACE bit = “1”), these bits are
updated after the setting is completed. This value may not be correct during the
automatic setting.
These bits can not be changed by the serial I/F in run-mode.
Charge Time Register (CTn: n=0, 2, 4, 6, 8, 10, 12, 14)
Address 0x55-0x5C (W/R) Default 0x00
Description
D7
Reserved
Charge Time
Bits
D7,D3
D6-D4
D2-D0
D6
D5
D4
D3
D2
D1
D0
CTn+1[2]
CTn+1[1]
CTn+1[0]
Reserved
CTn[2]
CTn[1]
CTn[0]
Name
Reserved
CTn+1
CTn
Description
Reserved: This bit should be written “0”.
The charge time at the terminal CSn is set. 0.25us~32us = 0.25us x 2CTn
When automatic setting is valid (Addr 0x5F ACE bit = “1”), these bits are
updated after the setting is completed. This value may not be correct during the
automatic setting.
These bits can not be changed by the serial I/F in run-mode.
GPIO Date Register (GPDT)
Address 0x5D (W/R) Default 0x00
Description
D7
GPDT[7]
GPIO Data Register
Bits
D7-D0
Name
GPDT
D6
D5
D4
D3
D2
D1
D0
GPDT[6]
GPDT[5]
GPDT[4]
GPDT[3]
GPDT[2]
GPDT[1]
GPDT[0]
Description
GPIO Output Data Setting
When the touch status is output (SRC1-0 bits = “01”, “10”, “11”), the output is
valid according to GPDT7-0 bits = “1”.
GPIO Enable Register (GPEN)
Address 0x5E (W/R) Default 0x00
Description
D7
GPEN[7]
GPIO Enable Register
Bits
D7-D0
Name
GPEN
D6
D5
D4
D3
D2
D1
D0
GPEN[6]
GPEN[5]
GPEN[4]
GPEN[3]
GPEN[2]
GPEN[1]
GPEN[0]
Description
GPIO Enable
Exclusive control is provided for the sense terminal select (SCC Register NCH
bit).
When a pin has already been selected as GPIO, the sense terminal selection is
invalid.
MS1313-E-01
2011/11
- 27 -
[AK4160]
Auto Calibration Control Register (ACC)
Address 0x5F (W/R) Default 0x06
Description
D7
ACE
Auto Calibration Control
Bits
D7
D6
D5
D4
D3
D2
D1
D0
RCE
RIM
CCO
VS[3]
VS[2]
VS[1]
VS[0]
Name
ACE
Description
The automatic setting of the charge current and the charge time is enabled.
The charge current and the charge time is set automatically at the first
measurement, and each register is updated. When the function of automatic
setting is valid, the VS3-0 bits must be configured.
D6
RCE
The automatic reconfiguration is enabled.
The reconfiguration is operated automatically when the measurement data is
over the upper limit.
D5
RIM
Reference value setting of the reconfiguration
0: The first measurement value is set as the initial value of the reference after
reconfiguration.
1: 31/32 of the first measurement value is set as the initial value of the reference
after reconfiguration.
D4
CCO
Automatic Setting of the Charge Current Only
The charge time is not automatically configured, and it is set to the value of CT
register. Only charge current is automatically set.
D3-D0
VS
The Lowest Operation Voltage Setting
The best charge current and charge time in the power supply voltage selected
with these bits are automatically configured.
At the power supply voltage selected by these bits, the charge current and the
charge time are automatically optimized.
The initial value is “0110”. (1.71V ~1.9V)
These bits can not be changed by the serial I/F in run-mode.
VS[3:0]
0000-0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
Lowest Operation
Upper Limit Voltage of
Voltage
Sense Terminals
Reserved
Reserved
VDD ≥ 1.71V
1.50V
VDD ≥ 1.9V
1.70V
VDD ≥ 2.1V
1.90V
VDD ≥ 2.3V
2.10V
VDD ≥ 2.5V
2.30V
VDD ≥ 2.7V
2.50V
VDD ≥ 2.9V
2.70V
VDD ≥ 3.1V
2.90V
VDD ≥ 3.3V
3.10V
VDD ≥ 3.5V
3.30V
Table 9. Reference Value of Automatic Setting
MS1313-E-01
Setting Voltage
Reserved
1.35V
1.53V
1.71V
1.89V
2.07V
2.25V
2.43V
2.61V
2.79V
2.97V
2011/11
- 28 -
[AK4160]
Auto Calibration Status Register (ACS)
Address 0x60 (R) Default 0x00
Description
D7
ACS[15]
Auto Calibration Status
D6
D5
D4
D3
D2
D1
D0
ACS[14]
ACS[13]
ACS[12]
ACS[11]
ACS[10]
ACS[9]
ACS[8]
Address 0x61 (R) Default 0x00
Description
D7
ACS[7]
Auto Calibration Status
D6
D5
D4
D3
D2
D1
D0
ACS[6]
ACS[5]
ACS[4]
ACS[3]
ACS[2]
ACS[1]
ACS[0]
Bits
15-0
Name
ACS
Description
Automatic Setting Status
When the automatic setting is failed or the measurement data is over the upper
limit, these bits are set. When the reconfiguration is valid (Addr 0x5E RCE bit =
“1”), these bits are cleared by the successful reconfiguration.
Multi Touch inhibit Register (MTI)
Address 0x62 (W/R) Default 0x00
Description
D7
MTI[15]
Multi Touch Inhibit
D6
D5
D4
D3
D2
D1
D0
MTI[14]
MTI[13]
MTI[12]
MTI[11]
MTI[10]
MTI[9]
MTI[8]
Address 0x63 (W/R) Default 0x00
Description
D7
MTI[7]
Multi Touch Inhibit
D6
D5
D4
D3
D2
D1
D0
MTI[6]
MTI[5]
MTI[4]
MTI[3]
MTI[2]
MTI[1]
MTI[0]
Bits
15-0
Name
MTI
Description
Prohibition of Multi Touch
Sense terminals to prohibit the multi touch function are selected by these bits.
The operational mode without the multi touch function is controlled by RCH bit
and LCH bit of address “0x70”.
MS1313-E-01
2011/11
- 29 -
[AK4160]
IRQ Control Register (IRQCn: n=0~2)
These are the control registers of the IRQ pins. When the IRQ pins are used as GPIO, the bit allocation is different.
IRQ Interrupt Register (When GPEN bit = “0”)
Address 0x64/0x68/0x6C (W/R) Default 0x08
Description
D7
D6
GPEN
CLRM
IRQ Interrupt
D5
D4
D3
D2
D1
D0
HIGH
DRV[1]
DRV[0]
DSTR
PE
PU
Address 0x65/0x69/0x6D (W/R) Default 0x00
Description
D7
D6
DRDY
TOUCH
IRQ Interrupt
D5
D4
D3
D2
D1
D0
REL
ACF
RANGE
GPIN
Reserved
TSL
Bits
D7
Name
GPEN
D6
CLRM
D5
HIGH
D4-D3
DRV
D2
DSTR
D1
PE
D0
PU
Description
GPIO Enable
This bit should be set to “0” in the IRQ operation.
Clearance Setting of IRQ Status (Addr 0x03 IRQ2-0 bits)
0: Read Clear of IRQ Status
1: Write Clear of IRQ Status (Clear to write “1” to IRQ2-0 bits)
IRQ status is cleared in the edge operation. The status is not changed in the level
operation.
Polarity selection of IRQ pins
0: Active Low
1: Active High]
IRQ pins are always non-active in the shutdown mode.
Output Driver Setting
00: CMOS Output
01: Low Side Output: When Output is “H”, Hi-z (Open Drain)
10: High Side Output: When Output is “L”, Hi-z (Open Drain)
11: CMOS Output (Same as 00 Setting)
The Driving ability of the GPIO output driver is set.
0: 1/3 drive
1: full drive
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
MS1313-E-01
2011/11
- 30 -
[AK4160]
Bits
D7
Name
DRDY
D6
TOUCH
D5
REL
D4
ACF
D3
RANGE
D2
GPIN
D1
D0
Reserved
TSL
Description
Permission of Data Ready Interrupt
This interrupt is generated at the end of a measurement. The measurement value
should be read from CSDn register (Addr 0x05-0x24).
The interrupt interval is “Sampling Rate x Number of Sample”. The “Number of
Sample” is set by NF2S bits in Addr 0x70.
Permission of Touch Interrupt
The intended terminal can be configured by IRQ mask register (Addr
0x66-0x67, 0x6A-0x6B, 0x6E-0x6F).
Permission of Release Interrupt
The intended terminal can be configured by IRQ mask register (Addr
0x66-0x67, 0x6A-0x6B, 0x6E-0x6F).
Permission of Automatic Configuration Fail Interrupt
When the measurement value on automatic configuration is out of the stipulated
range, this interrupt is generated.
Permission of Upper Limit Over Interrupt
When the measurement value is over the upper limit in a measurement operation,
this interrupt is generated.
Permission of GPIO Input Interrupt
When the interrupt function is configured by GPIO control registers (Addr
0x35/0x37/…/0x43 IRQC bit),this interrupt is generated by the factor
occurrence.
Reserved: This bit should be written “0”.
Level Output Operational Mode Selection of Touch Status
0: Edge Operation
The IRQ pin responds to the edge for the interrupt factor selected by DRDY bit,
TOUCH bit, REL bit, ACF bit, RANGE bit, and GPIN bit. The clearance setting,
polarity setting, driver setting, and etc. are configured by Addr 0x65/0x69/0x6D.
1: Level Operation
Touch function or release function is selected by TOUCH bit and REL bit. The
intended terminal can be configured by IRQ mask register (Addr 0x66-0x67,
0x6A-0x6B, 0x6E-0x6F). The other interrupt factor cannot be selected. The
polarity setting, driver setting, and etc. are configured by Addr 0x65/0x69/0x6D.
The status cannot be cleared unlike the edge operation. The IRQ Status (IRQ2-0
bit of Addr 0x03) returns the input level of the IRQ pin.
MS1313-E-01
2011/11
- 31 -
[AK4160]
IRQ GPIO Register (GPEN bit = “1”)
Address 0x64/0x68/0x6C (W/R) Default 0x08
Description
D7
D6
GPEN
DIR
IRQ GPIO
Address 0x65/0x69/0x6D (W/R) Default 0x00
Description
D7
D6
Reserved
Reserved
IRQ GPIO
Bits
D7
Name
GPEN
D6
DIR
D5
DAT
D4-D3
DRV
D2
DSTR
D1
PE
D0
PU
Bits
D7-D0
Name
Reserved
D5
D4
D3
D2
D1
D0
DAT
DRV[1]
DRV[0]
DSTR
PE
PU
D5
D4
D3
D2
D1
D0
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Description
GPIO Enable
This bit should be set to “1” at the GPIO operation.
GPIO Input/Output Selection
0: Input Configuration
1: Output Configuration
GPIO Output Data
When GPIO is output configuration, the output data is setting by this bit.
Output Driver Setting
00: CMOS Output
01: Low Side Output: When Output is “H”, Hi-z (Open Drain)
10: High Side Output: When Output is “L”, Hi-z (Open Drain)
11: CMOS Output (Same as 00 Setting)
The Driving ability of the GPIO output driver is set.
0: 1/3 drive
1: full drive
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
Description
Reserved: This bit should be written “0”.
MS1313-E-01
2011/11
- 32 -
[AK4160]
IRQ Mask Register (IRQMn: n=0~2)
Address 0x66/0x6A/0x6E (W/R) Default 0x00
Description
D7
D6
IRQM[15]
IRQM[14]
IRQ Mask
D5
D4
D3
D2
D1
D0
IRQM[13]
IRQM[12]
IRQM[11]
IRQM[10]
IRQM[9]
IRQM[8]
Address 0x67/0x6B/0x6F (W/R) Default 0x00
Description
D7
D6
IRQM[7]
IRQM[6]
IRQ Mask
D5
D4
D3
D2
D1
D0
IRQM[5]
IRQM[4]
IRQM[3]
IRQM[2]
IRQM[1]
IRQM[0]
Bits
15-0
Name
IRQM
Description
Intended channel setting of Touch/Release Interrupt
0: No Target of Interrupt
1: Target of Interrupt
Noise Filter Control Register (NFC)
Address 0x70 (W/R) Default 0x00
Description
D7
NF2S[1]
Noise Filter Control
Bits
D7-D6
D6
D5
D4
D3
D2
D1
D0
NF2S[0]
NF1S[1]
NF1S[0]
RIM[1]
RIM[0]
LCH
RCH
Name
NF2S
Description
Number of samples at the noise filter (the second filter)
00: 4 samples
01: 6 samples
10: 10 samples
11: 18 samples
D5-D4
NF1S
Number of samples at the noise filter (the first filter)
00: 4 samples
01: 6 samples
10: 10 samples
11: 18 samples
D3-D2
RIM
Initial Reference Setting Selection
00: User Setting (reference value set by Addr 0x80-0x9F REFn bits)
01: First Measurement Value as a Reference
10: 31/32 of First Measurement Value as a Reference
11: 30/32 of First Measurement Value as a Reference
D1
LCH
Priority Setting of sense terminals without multi touch function
0: The sense terminal to touch most strongly is selected.
1: The sense terminal of the youngest number is selected.
D0
RCH
Release Operation Setting of sense terminals without multi touch function
0: The next touch judgment is not executed until all the sense terminals are
released once.
1: When the sense terminal that is judged as touched is released, the next touch
judgment is executed.
These bits can not be changed by the serial I/F in run-mode.
MS1313-E-01
2011/11
- 33 -
[AK4160]
Debounce Control Register (DEB)
Address 0x71 (W/R) Default 0x00
Description
D7
DEBT[3]
Debounce Control
Bits
D7-D4
D6
D5
D4
D3
D2
D1
D0
DEBT[2]
DEBT[1]
DEBT[0]
DEBR[3]
DEBR[2]
DEBR[1]
DEBR[0]
Name
DEBT
Description
Debounce Count Setting of the touch judgment
When the touch recognition is consecutive, it is judged as “Touched”.
The consecutive time is set by these bits.
D3-D0
DEBR
Debounce Count Setting of the release judgment
When the release recognition is consecutive, it is judged as “Released”.
The consecutive time is set by these bits.
The condition to use both the multi touch prohibition function and the debounce function: DEBT ≥ DEBR
These bits can not be changed by the serial I/F in run-mode.
Environment Filter Control Register (EFC)
Address 0x72 (W/R) Default 0x00
Description
D7
EUP[5]
Environment Filter Control
D6
D5
D4
D3
D2
D1
D0
EUP[4]
EUP[3]
EUP[2]
EUP[1]
EUP[0]
EUR[1]
EUR[0]
Address 0x73 (W/R) Default 0x00
Description
D7
EDP[5]
Environment Filter Control
D6
D5
D4
D3
D2
D1
D0
EDP[4]
EDP[3]
EDP[2]
EDP[1]
EDP[0]
EDR[1]
EDR[0]
Bits
D7-D2
Name
EUP
Description
Operation Interval of the Environmental correction filter
(measurement > reference)
Operation at Each “Output Rate × (1+EUP)”, (EUP = 0~63)
Output Rate = Sampling Rate × NF2S (Addr 0x70)
D1-D0
EUR
Operation Coefficient of the Environmental correction filter
(measurement > reference)
reference = reference – (reference – measurement) / (2^(EUR+1)), (EUR = 0~3)
This bits can not be changed by the serial I/F in run-mode.
Bits
D7-D2
Name
EDP
Description
Operation Interval of the Environmental correction filter
(measurement < reference)
Operation at Each “Output Rate × (1+EDP)”, (EDP = 0~63)
Output Rate = Sampling Rate × NF2S (Addr 0x70)
D1-D0
EDR
Operation Coefficient of the Environmental correction filter
(measurement < reference)
reference = reference – (reference – measurement) / (2^(EDR+1)), (EDR = 0~3)
These bits can not be changed by the serial I/F in run-mode.
MS1313-E-01
2011/11
- 34 -
[AK4160]
Sampling Rate & Sense Channel Control Register (SCC)
Address 0x74 (W/R) Default 0x00
Description
D7
Sampling Rate &
TSR[2]
Sense Channel Control
Bits
D7-D5
D6
D5
D4
D3
D2
D1
D0
TSR[1]
TSR[0]
NCH[4]
NCH[3]
NCH[2]
NCH[1]
NCH[0]
Name
TSR
Description
Measurement Sampling Rate Setting
fs = 4ms x 2TSR (4ms~512ms)
D4-D0
NCH
Measurement Channel Setting
Exclusive control is provided for GPIO enable function (Addr 0x5E).
When a pin has already been selected as GPIO, the sense terminal selection is
invalid. Refer to Table 10 for the selection setting.
TSR can be changed in run mode.
NCH
00000
00001
00010
00011
00100
00101
00110
00111
01000
Sense Setting Terminal
NCH
Sense Setting Terminal
No Selection (Shutdown mode)
01001
CS0 ~ CS8
CS0
01010
CS0 ~ CS9
CS0 ~ CS1
01011
CS0 ~ CS10
CS0 ~ CS2
01100
CS0 ~ CS11
CS0 ~ CS3
01101
CS0 ~ CS12
CS0 ~ CS4
01110
CS0 ~ CS13
CS0 ~ CS5
01111
CS0 ~ CS14
10000 CS0 ~ CS6
CS0 ~ CS15
11111
CS0 ~ CS7
Table 10. Sense Setting Terminal
MS1313-E-01
2011/11
- 35 -
[AK4160]
Soft Reset Register (SRST)
Address 0x7E (W/R) Default 0x00
Description
D7
SRST[7]
Soft Reset
Bits
D7-D0
Name
SRST
D6
D5
D4
D3
D2
D1
D0
SRST[6]
SRST[5]
SRST[4]
SRST[3]
SRST[2]
SRST[1]
SRST[0]
Description
When “SRST=0x55” is written, reset is generated.
All registers become the initial values. This register is read as “0x00”.
Reference Data Register (REFn: n=0~15)
Address 0x80/0x82/…/0x9E (W/R) Default 0x00
Description
D7
D6
Reserved
Reserved
Reference Data
D5
D4
D3
D2
D1
D0
Reserved
Reserved
Reserved
Reserved
REFn[9]
REFn[8]
Address 0x81/0x83/…/0x9F (W/R) Default 0x00
Description
D7
D6
REFn[7]
REFn[6]
Reference Data
D5
D4
D3
D2
D1
D0
REFn[5]
REFn[4]
REFn[3]
REFn[2]
REFn[1]
REFn[0]
Bits
15-10
9-0
Name
Reserved
REFn
Description
Reserved: This bit should be written “0”.
Reference value for each sense terminal
MS1313-E-01
2011/11
- 36 -
[AK4160]
SYSTEM DESIGN
Figure 18 and Figure 19 show the system connection diagram for the AK4160. An evaluation board [AKD4160]
demonstrates the optimum layout, power supply arrangements and measurement results.
<16ch Touch Switch>
VDD
SCL
SDA
RSTN
IRQ0N
IRQ1N
IRQ2N
uP
Touch Switch
7
8
9
x
4
5
6
/
1
2
3
+
0
=
AC
–
CS0 ~ CS15
AK4160
AD1
AD0
100Kohm
VREG
RREF
VSS
47nF
Figure 18. Typical Connection Diagram for 16ch Touch Switch
<8ch Touch Switch & 8ch LED Display >
VDD
SCL
SDA
RSTN
IRQ0N
IRQ1N
IRQ2N
uP
Touch Switch
CS0 ~ CS7
VOL
UP
VOL
DN
CH
UP
CH
DN
ON
OFF
MEN U
EXT
MUTE
AK4160
AD1
AD0
LED Display
GPIO0 ~ GPIO7
100Kohm
VREG
RREF
VSS
47nF
Figure 19. Typical Connection Diagram for 8ch Touch Switch & 8ch LED Display
Note:
- These figures are the connection diagram when the AD0 pin = “L” and the AD1 pin = “L”. In case of the
AD0 pin = “H” or the AD1 pin = “H”, their pin must be connected to VDD.
- VSS of the AK4160 should be distributed separately from the ground of external controllers.
- All digital input pins (SCL, SDA, AD0, AD1, RSTN pins) must not be left floating.
MS1313-E-01
2011/11
- 37 -
[AK4160]
PACKAGE
28pin QFN (Unit: mm)
Bottom View
Top View
0.75±0.05
B
2.30±0.10
22
28
C0.3
21
7
15
14
A
0.05MAX
0.40±0.05
4.00±0.05
2.30±0.10
1
8
0.07M C A B
4.00±0.05
0.18±0.05
0.08 C
C
0.40 Ref
Note: The thermal die pad must be open or connected to the ground.
■ Package & Lead frame material
Package molding compound: Epoxy Resin, Halogen (Br, Cl) Free
Lead frame material: Cu Alloy
Lead frame surface treatment: Solder Plate
MS1313-E-01
2011/11
- 38 -
[AK4160]
MARKING
4160
XXXX
Date Code: XXXX (4 digits)
Pin #1 indication
MS1313-E-01
2011/11
- 39 -
[AK4160]
REVISION HISTORY
Date (Y/M/D)
11/07/25
11/11/24
Revision
00
01
Reason
First Edition
Specification
Addition
Error
Correction
Page
Contents
6
DC CHARACTERISTICS
Pull-up Current were added:
5uA (min), 200uA (max)
Pull-down Current were added:
-200uA (min), -5uA (max)
Register definition
Operation interval expression (EUP) was changed:
Output Rate/(1+EUP) → Output Rate×(1+EUP)
Operation interval expression (EDP) was changed:
Output Rate/(1+EDP) → Output Rate×(1+EDP)
34
IMPORTANT NOTICE
z These products and their specifications are subject to change without notice.
When you consider any use or application of these products, please make inquiries the sales office of Asahi Kasei
Microdevices Corporation (AKM) or authorized distributors as to current status of the products.
z Descriptions of external circuits, application circuits, software and other related information contained in this
document are provided only to illustrate the operation and application examples of the semiconductor products. You
are fully responsible for the incorporation of these external circuits, application circuits, software and other related
information in the design of your equipments. AKM assumes no responsibility for any losses incurred by you or third
parties arising from the use of these information herein. AKM assumes no liability for infringement of any patent,
intellectual property, or other rights in the application or use of such information contained herein.
z Any export of these products, or devices or systems containing them, may require an export license or other official
approval under the law and regulations of the country of export pertaining to customs and tariffs, currency exchange,
or strategic materials.
z AKM products are neither intended nor authorized for use as critical componentsNote1) in any safety, life support, or
other hazard related device or systemNote2), and AKM assumes no responsibility for such use, except for the use
approved with the express written consent by Representative Director of AKM. As used here:
Note1) A critical component is one whose failure to function or perform may reasonably be expected to result,
whether directly or indirectly, in the loss of the safety or effectiveness of the device or system containing it, and
which must therefore meet very high standards of performance and reliability.
Note2) A hazard related device or system is one designed or intended for life support or maintenance of safety
or for applications in medicine, aerospace, nuclear energy, or other fields, in which its failure to function or
perform may reasonably be expected to result in loss of life or in significant injury or damage to person or
property.
z It is the responsibility of the buyer or distributor of AKM products, who distributes, disposes of, or otherwise places
the product with a third party, to notify such third party in advance of the above content and conditions, and the buyer
or distributor agrees to assume any and all responsibility and liability for and hold AKM harmless from any and all
claims arising from the use of said product in the absence of such notification.
MS1313-E-01
2011/11
- 40 -