AN101
© Kionix 2019 All Rights Reserved
11 July 2019
Page 17 of 27
-
Write 0x30 to Interrupt Control Register (INC1) to output the physical interrupt of the
previously defined Tilt Position function. This value will create an active high and latched
interrupt.
Register Name
Address
Value
INC1
0x22
0x30
-
Write 0x01 to Interrupt Control Register 4 (INC4) to set the Tilt Position interrupt (TPI1) to be
reported on physical interrupt pin INT1.
Register Name
Address
Value
INC4
0x25
0x01
-
Write 0xC1 to Control Register 1 (CNTL1) to set the accelerometer in operating mode, high
performance (full power), G-range to ±8g, and enable the Tilt Position function.
Register Name
Address
Value
CNTL1
0x1B
0xC1
-
Monitor the physical interrupt INT1 of the accelerometer. If changes in the tilt position satisfies
the criteria previously established, then there should be a positive latched interrupt present.
Also, the interrupt would be reflected in bit 4 of STATUS_REG (INT bit), bit 0 of INS2 (TPS
bit), and Current Tilt Position register TSCP as well as Previous Tilt Position register TSPP.
-
Read Interrupt Latch Release (INT_REL) register to unlatch (clear) the output interrupt
created by the Tilt Position function. The read value is dummy.
Register Name
Address
Value
INT_REL
0x1A
N/A
3.6.2.
Face Detect Position
-
As was noted above, the current orientation of the sensor can be read from TSCP register at
any time. Assuming tilt detection was not changed from its default setting (detect positive and
negative directions of all three axes (+x, -x, +y, -y, +z, -z)), one of the bits in TSCP register
will be set to 1 to indicate the current orientation of the sensor.