AN101
© Kionix 2019 All Rights Reserved
11 July 2019
Page 18 of 27
3.7.
Activate Tap/Double Tap Engine
-
Write 0x00 to Control Register 1 (CNTL1) to set the accelerometer in stand-by mode.
Register Name
Address
Value
CNTL1
0x1B
0x00
-
Write 0x3F to Interrupt Control 3 register (INC3) to enable tap/double tap from positive and
negative directions of all three axes (+x, -x, +y, -y, +z, -z).
This step is optional as this is also
a default setting.
Register Name
Address
Value
INC3
0x24
0x3F
-
Write 0xA8 to Control 3 register (CNTL3) to set the output data rate for the Directional Tap
function to 400Hz.
This step is optional as this is also a default setting.
Register Name
Address
Value
CNTL3
0x1D
0xA8
-
Write 0x03 to Tap / Double-Tap Register Control register (TDTRC) to enable interrupt on
single tap and double tap. This step is optional as this is also a default setting.
This setting
can be adjusted as needed.
Register Name
Address
Value
TDTRC
0x2A
0x03
-
Write 0x78 to Tap / Double-Tap Counter register (TDTC) to set the counter to 0.3 sec. The
TDTC counts starts at the beginning of the fist tap and it represents the minimum time
separation between the first tap and the second tap in a double tap event. More specifically,
the second tap event must end outside of the TDTC.
This step is optional as this is also a
default setting. This setting can be adjusted as needed.
Register Name
Address
Value
TDTC
0x2B
0x78
-
Write 0x33 (51d) to Tap Threshold High register (TTH). This register represents the 8-bit jerk
high threshold to determine if a tap is detected. Though this is an 8-bit register, the register
value is internally multiplied by two to set the high threshold. This multiplication results in a
range of 0d to 510d with a resolution of two counts. The Performance Index (PI) is the jerk
signal that is expected to be less than this threshold, but greater than the TTL threshold
during single and double tap events.
This step is optional as this is also a default setting. This
setting can be adjusted as needed.
Register Name
Address
Value
TTH
0x2C
0x33