Page 1
A ROHM Group Company TECHNICAL REFERENCE MANUAL KX132-1211 Rev. 1.0 31-Jul-2019 Kionix, Inc. 36 Thornwood Drive Ithaca, NY 14850 TEL: +1-607-257-1800 http://www.kionix.com info@kionix.com...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Overview This technical reference manual contains information for KX132-1211. Explanation for embedded registers and embedded applications are included. For pin assignment and specifications of the device, please also refer to KX132-1211 Specifications.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Embedded Registers Register Map The KX132-1211 has embedded 8-bit registers that are accessible by the user. This section contains the addresses for all embedded registers and describes bit functions of each register.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 ADP OUTPUT REGISTERS (0x02 – 0x07) Output from the Advanced Data Path is routed to registers 0x02 – 0x07 (XADP_L – ZADP_H) when ADPE bit is set to 1 in CNTL5 register.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 ACCELEROMETER OUTPUT REGISTERS (0x08 – 0x0D) When accelerometer is enabled (PC1 bit is set to 1 in CNTL1 register), the 16-bits of valid acceleration data for each axis is routed to registers 0x08-0x0D (XOUT_L –...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 TILT POSITION REGISTERS (0x14 – 0x15) These two registers report previous and current position data that is updated at the user-defined ODR frequency determined by OTP<1:0>...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 INTERRUPT SOURCE REGISTERS (0x16 – 0x18) These three registers report interrupt state changes. The status is updated when a new interrupt event occurs, and the bit remains set until it is cleared as indicated in each case.
Page 15
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 WMI – Watermark Interrupt bit indicates that user-defined buffer’s sample threshold (watermark) has been exceeded when in FIFO or Stream modes. Not used in Trigger mode. This bit is automatically cleared when buffer is read, and the content is below the watermark.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 INS3 This register reports the axis and direction of detected motion that triggered the wakeup interrupt. WUFS XNWU XPWU YNWU YPWU ZNWU ZPWU...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.10 STATUS_REG (0X19) This register reports the status of the interrupt. WAKE Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Address: 0x19 INT –...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.12 CONTROL REGISTERS (0x1B – 0x20) The main control functions of the accelerometer can be set via CNTL1 – CNTL6 registers. CNTL1 Control register 1.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 CNTL2 Control register 2. Read/write control register that primarily controls tilt position state enabling. This register has also settings to verify proper power up. This register is On-The-Fly (OTF) register and can be written to while the KX132- 1211 is enabled (PC1 bit in CNTL1 register is set to “1”) and the change will be accepted with no interruption in the operation.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 CNTL3 Control register 3. Read/write control register that provides control of the Output Data Rate (ODR) for Tilt, Tap, and Wake-up engines.
Page 21
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 OWUF2 OWUF1 OWUF0 Output Data Rate (Hz) 0.781 1.563 3.125 6.25 12.5 Table 11: Motion Wake Up Function Output Data Rate 36 Thornwood Dr.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 CNTL4 Control register 4. Read/write control register that provides more feature set control. Note that to properly change the value of these registers, the PC1 bit in CNTL1 register must first be set to “0”. C_MODE TH_MODE WUFE...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 CNTL5 Control register 5. Read/write control register that provides more feature set control. This register is On-The-Fly (OTF) register and can be written to while the KX132-1211 is enabled (PC1 bit in CNTL1 register is set to “1”) and the change will be accepted with no interruption in the operation.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 CNTL6 Control register 6. Read/write control register that provides more feature set control. This register is On-The-Fly (OTF) register and can be written to while the KX132-1211 is enabled (PC1 bit in CNTL1 register is set to “1”) and the change will be accepted with no interruption in the operation.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.13 ODCNTL (0X21) Output data control register that configures the acceleration outputs. Note that to properly change the value of these registers, the PC1 bit in CNTL1 register must first be set to “0”.
Page 26
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 FSTUP – Fast Start Up Enable bit. The setting of this bit controls the start up time only when accelerometer operates in High-Performance mode with ODR ≤ 200Hz. If fast start up is disabled (FSTUP=0), the start up time in High-Performance mode would vary with ODR.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.14 INTERRUPT CONTROL REGISTERS (0X22 – 0X27) INC1 Interrupt Control 1. This register controls the settings for the physical interrupt pin INT1. Note that to properly change the value of this register, the PC1 bit in CNTL1 register must first be set to “0”.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 INC2 Interrupt Control 2. This register defines interrupt behavior for the Wake-Up Function (WUF) and Back-to-Sleep (BTS) engines. Note that to properly change the value of this register, the PC1 bit in CNTL1 register must first be set to “0”. Reserved XNWUE XPWUE...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 INC3 Interrupt Control 3. This register controls which axis and direction of tap/double tap can cause an interrupt. If a direction’s bit is set to “1”, a single or double tap in that direction will generate an interrupt.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 INC4 Interrupt Control 4. This register controls routing of an interrupt reporting to physical interrupt pin INT1. Note that to properly change the value of this register, the PC1 bit in CNTL1 register must first be set to “0”.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 INC5 Interrupt Control 5. This register controls the settings for the physical interrupt pin INT2. Note that to properly change the value of this register, the PC1 bit in CNTL1 register must first be set to “0”.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 INC6 Interrupt Control 6. This register controls routing of interrupt reporting to physical interrupt pin INT2. Note that to properly change the value of this register, the PC1 bit in CNTL1 register must first be set to “0”.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.15 TILT_TIMER (0X29) Initial count register for the tilt position state timer (0 to 255 counts). Every count is calculated as 1/ODR delay period, where the ODR is user-defined per Table 9.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 TDTC This register contains counter information for the detection of a double tap event. When the Directional-Tap ODR is 400Hz or less, every count is calculated as 1/ODR delay period. When the Directional-Tap ODR is 800Hz, every count is calculated as 2/ODR delay period.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 This register contains counter information for the detection of any tap event. When the Directional-Tap ODR is 400Hz or less, every count is calculated as 1/ODR delay period. When the Directional-Tap ODR is 800Hz, every count is calculated as 2/ODR delay period.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 This register contains counter information for the detection of single and double taps. When the Directional-Tap is 400Hz or less, every count is calculated as 1/ODR delay period. When the Directional-Tap ODR is 800Hz, every count is calculated as 2/ODR delay period.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 FFCNTL Free Fall Control. This register provides the main control of the free fall engine. Note that to properly change the value of these registers, the PC1 bit in CNTL1 register must first be set to “0”.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.18 TILT ANGLE CONTROL REGISTERS (0X37 – 0X39) The Tilt engine is enabled with TPE bit in CNTL1 register and can be configured via control registers 0x37 – 0x39. Please refer to Orientation Detection Feature section for detailed information on the Tilt engine.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.19 LP_CNTL1 (0X3A) Low Power Control 1: The Averaging Filter Control setting determines both - the number of internal acceleration samples to be averaged in Low Power mode and the number of internal acceleration samples to be averaged for digital engines operation (Directional-Tap / Double-Tap...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.21 WAKE-UP & BACK-TO-SLEEP THRESHOLD AND COUNTER SETUP REGISTERS (0x49 – 0x4D) The threshold and counter values of the Wake-up and Back-to-Sleep engines of the KX132-1211 can be configured via registers 0x49 –...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.23 OUTPUT BUFFER REGISTERS (0x5E – 0x63) BUF_CNTL1 Read/write control register that controls the buffer sample threshold. This register is On-The-Fly (OTF) register and can be written to while the KX132-1211 is enabled (PC1 bit in CNTL1 register is set to “1”) and the change will be accepted with no interruption in the operation.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 BUF_CNTL2 Read/write control register that controls sample buffer operation. This register is On-The-Fly (OTF) register and can be written to while the KX132-1211 is enabled (PC1 bit in CNTL1 register is set to “1”) and the change will be accepted with no interruption in the operation.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 BUF_STATUS_1 and BUF_STATUS_2 These register reports the status of the sample buffer. Note that BUF_STATUS_1 and BUF_STATUS_2 registers may have a delay of up to 1µsec to update the sample level after a buffer read. BUF_STATUS_1 SMP_LEV7 SMP_LEV6 SMP_LEV5 SMP_LEV4 SMP_LEV3 SMP_LEV2 SMP_LEV1 SMP_LEV0...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 1.24 ADVANCED DATA PATH CONTROL REGISTERS (0x64 – 0x76) The advanced data path (ADP) engine of the KX132-1211 can be configured via control registers 0x64 – 0x76 shown below.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Embedded Applications Orientation Detection Feature The orientation detection feature of the KX132-1211 will report changes in face up, face down, ± vertical and ± horizontal orientation.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Device Orientation Angle (Tilt Angle) To ensure that horizontal and vertical device orientation changes are detected, even when it isn’t in the ideal vertical orientation –...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Motion Interrupt Feature Description KX132-1211 features an advanced threshold interrupt by the internal Wake-Up and Back-to-Sleep digital engines. These engines allow the KX132-1211 to trigger interrupts when accelerometer activity falls below a defined threshold window (Back-to-Sleep) or exceeds a threshold window (Wake-Up event).
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Threshold Resolution The motion interrupt threshold values are set by WUFTH<10:0> and BTSTH<10:0> bits in WUFTH, BTSWUFTH, BTSTH registers. The values in these registers are compared to the top 11 bits of the accelerometer 8g output (regardless of GSEL<1:0>...
Page 54
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 reset of the reference sample. At this point, the algorithm starts evaluating the difference between the current and the previous acceleration samples again. On the 9 clock cycle, the difference has exceeded the threshold.
Page 55
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Absolute Threshold Mode 2.2.1.2 The Absolute Threshold Mode of the KX132-1211 operates similar to the Relative Threshold Mode described in details before with the only difference being that each acceleration sample is being compared to the same user defined wake- up threshold (WUFTH) or back-to-sleep threshold (BTSTH) regardless of previous sample.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Directional-Tap Detection Feature Description The Directional-Tap Detection feature of the KX132-1211 recognizes single and double tap inputs and reports the acceleration axis and direction that each tap occurred.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Single Tap Detection The latency timer (TLT) sets the time period that a tap event will only be characterized as a single tap. A second tap must occur outside of the latency timer.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Double-Tap Detection An event can be characterized as a double tap if the second tap crosses the performance index (TTL) inside the TWS period and ends outside the TDTC.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Free fall Detect The KX132-1211 features a Free fall interrupt that sends a flag through the INT1 or the INT2 output pins when the accelerometer senses a Free fall event.
Page 65
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Typical Freefall Interrupt Example (nonLatching) Pos. Motion limit Pos. Freefall limit Neg. Freefall limit Neg. Motion limit Freefall debounce timer Set to 10 counts.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Sample Buffer Feature Description The sample buffer feature of the KX132-1211 accumulates and outputs acceleration data based on how it is configured. There are 3 buffer modes available, and samples can be accumulated at either low (8-bit) or high (16-bit) resolution.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Buffer Operation The following diagrams illustrate the operation of the buffer conceptually. Actual physical implementation has been abstracted to offer a simplified explanation of how the different buffer modes operate. Figure 22 represents a high- resolution 3-axis sample within the buffer.
Page 68
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 The buffer continues to fill sequentially until the Sample Threshold is reached. Index Sample ← FIFO read pointer Data0 Data1 Data2 Data3 Data4...
Page 69
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 In trigger mode, data is accumulated in the buffer sequentially until the Sample Threshold is reached. Once the Sample Threshold is reached, the oldest samples are discarded when new samples are collected. Note in Figure 26 how Data0 was thrown out to make room for Data8.
Page 70
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 In FIFO, Stream, and Trigger (after a trigger event has occurred) modes, the buffer continues filling sequentially after the Sample Threshold is reached. Sample accumulation after the buffer is full depends on the selected operation mode. FIFO and Trigger modes stop accumulating samples when the buffer is full, and Stream mode begins discarding the oldest data when new samples are accumulated.
Page 71
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 In FIFO, Stream, or Trigger mode, reading one sample from the buffer will remove the oldest sample and effectively shift the entire buffer contents up, as seen in Figure 30. Index Sample ←...
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Advanced Data Path Feature Please refer to AN109 Introduction to Advanced Data Path AN097 Getting Started with Advanced Data Path application notes for detailed information about the ADP Engine feature.
PART NUMBER: ± 2g / 4g / 8g / 16g Tri-axis Digital KX132-1211 Accelerometer Technical Rev. 1.0 Reference Manual 31-Jul-2019 Revision History Revision Description Date Production Release. 31-Jul-2019 "Kionix" is a registered trademark of Kionix, Inc. Products described herein are protected by patents issued or pending. No license is granted by implication or otherwise under any patent or other rights of Kionix.
Need help?
Do you have a question about the Kionix KX132-1211 and is the answer not in the manual?
Questions and answers