background image

 
 
 

 

  

  

AN092 

 

 

 

© Kionix 2019 All Rights Reserved 

11 July 2019 

Page 23 of 27 

                            

 

 

4.

 

Timing Requirements 

 

 

There  are  several  timing  requirements  that  developers  should  keep  in  mind  when  working  with 
the KX126 accelerometer: 

 
 

I²C Clock - The I²C Clock can support Fast Mode up to 

400 KHz

 and High Speed mode up to 

3.4 

MHz

 

SPI Clock - The SPI Clock can support up to 

10 MHz

 
 

Enable to Valid Outputs (Start-Up Time) - After the part is enabled (PC1 bit in Control Register 1 
is  asserted),  it  takes  from

  2  ms 

to

  1300  ms

  depending  on  the  ODR  and  Power  Mode  setting 

before the acceleration outputs are valid. (See the relevant

 

Product Specification for details) 

 

 

 

 

Power-Up Time (Time from VDD and IO_VDD valid to device boot completion) - After  a  Power-
up, the part takes between 

20 ms

 to 

50 ms

 before it is ready for communication. 

 
 

Software Reset Delay - After  a  Software  Reset,  the  part  takes 

2  ms

  before  it  is  ready  for 

communication. 

 
 

Standby to Operation Delay - Please allow 1.5/ODR delay time when transitioning from stand-by 
PC1 = 0 to operating mode PC1 = 1 to allow new settings to load. 

 

Содержание Kionix KX132

Страница 1: ...ensure that our accelerometers will meet design expectations by default but it is not possible to provide default setting to work in every environment Depending on the intended application it is very...

Страница 2: ...pers refine their application requirements 3 1 Asynchronous Reading This example configures and enables the accelerometer to start outputting sensor data that can be asynchronously read from the outpu...

Страница 3: ...he latched interrupt will auto clear by default Register Name Address Value INC1 0x22 0x30 Write 0x10 to Interrupt Control 4 INC4 to set the Data Ready interrupt to be reported on physical interrupt p...

Страница 4: ...et the Output Data Rate ODR of the accelerometer to 50 Hz This step is optional as this is also a default setting Register Name Address Value ODCNTL 0x21 0x06 Write 0xE0 to Control 1 CNTL1 to set the...

Страница 5: ...Write 0x40 to Interrupt Control 4 INC4 to set the Buffer Full interrupt to be reported on physical interrupt pin INT1 Register Name Address Value INC4 0x25 0x40 Write 0xE0 to Buffer Control 2 BUF_CNTL...

Страница 6: ...er Name Address Value ODCNTL 0x21 0x06 Write 0x30 to Interrupt Control INC1 to enable physical interrupt pin INT1 set the polarity of the physical interrupt to active high and configure for latched op...

Страница 7: ...ta can be captured both before and after an event external trigger tap wakeup freefall Write 0x00 to Control 1 CNTL1 to set the accelerometer in stand by mode Register Name Address Value CNTL1 0x1B 0x...

Страница 8: ...set the output data rate for the back to sleep engine to its default of 0 781Hz Register Name Address Value CNTL4 0x1E 0x60 Write 0x01 to Control 5 CNTL5 to put the sensor into sleep mode MAN_SLEEP 1...

Страница 9: ...a which corresponds to 86 unique acceleration data samples The data set will include all the data prior to the trigger event plus all the data after the event 3 4 4 Buffer Reading Tips a The accelerat...

Страница 10: ...e high and configure for latched operation Register Name Address Value INC1 0x22 0x30 Write 0x02 to Interrupt Control 4 INC4 to set the Wakeup Function Interrupt WUFI1 1 to be reported on physical int...

Страница 11: ...ister Name Address Value WUFTH 0x49 0x80 BTSWUFTH 0x4A 0x00 Write 0xE0 to Control 1 CNTL1 to set the accelerometer into operating mode PC1 1 full power mode RES 1 data ready enabled DRDYE 1 range to 2...

Страница 12: ...WUFS bit in the Interrupt Status 3 INS3 Write 0x01 to Control 5 CNTL5 to force sleep state MAN_SLEEP 1 With Back to Sleep engine disabled this step is required in order to be able to detect additional...

Страница 13: ...ure for latched operation Register Name Address Value INC1 0x22 0x30 Write 0x0A to Interrupt Control 4 INC4 to set the Back to Sleep Interrupt BTSI 1 and Wakeup Interrupt WUFI1 to be reported on physi...

Страница 14: ...Wake up interrupt is triggered The following formula is used WUFC counts Desired Delay Time sec x OWUF Hz WUFC counts 0 1 sec x 50 Hz 5 counts Register Name Address Value WUFC 0x4D 0x05 Write 0x80 to...

Страница 15: ...A N A Continue to monitor the physical interrupt INT1 of the accelerometer if the lack of acceleration input profile satisfies the criteria previously established for the 0 5g of no motion detect thre...

Страница 16: ...register Here we assume an 80 msec timer will be sufficient Note that each count value written to this register is calculated as 1 Tilt Position ODR 1 12 5Hz 80 msec Register Name Address Value TILT_...

Страница 17: ...terrupt 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 re...

Страница 18: ...e 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...

Страница 19: ...otal amount of time that the two taps in a double tap event can be above the PI threshold TTL This step is optional as this is also a default setting This setting can be adjusted as needed Register Na...

Страница 20: ...function Register Name Address Value CNTL1 0x1B 0xC4 Monitor the physical interrupt INT1 of the accelerometer if the acceleration input profile satisfies the criteria previously established for Tap Do...

Страница 21: ...ts 0 0625 g count 0 5 g Register Name Address Value FFTH 0x32 0x08 Write 0x04 to Free Fall Counter Register FFC to set the Free fall delay detection to 0 320 sec Note that the period of the free fall...

Страница 22: ...atisfies the criteria previously established for the 0 5g free fall detect threshold level in both positive and negative directions of the X Y Z axis for more than 0 320 second then there should be a...

Страница 23: ...in Control Register 1 is asserted it takes from 2 ms to 1300 ms depending on the ODR and Power Mode setting before the acceleration outputs are valid See the relevant Product Specification for detail...

Страница 24: ...ister must be read in order to clear the physical interrupt pin This will also clear the Interrupt Source Registers and the INT bit 0x10 in the Status Register Microcontroller GPIO Interrupt Handling...

Страница 25: ...WUFE bit in Control Register 4 Make sure that the Back to Sleep engine is enabled BTSE bit in Control Register 4 If Back to Sleep function is not used BTSE bit in Control Register 3 left at 0 the sle...

Страница 26: ...nt effect on tap double tap direction resolution If tap detection is desired the part should be placed as far away from the edges of the device housing as possible with the ideal location being at the...

Страница 27: ...ing Automatic sleep mode Step counting pedometer 9 Theory of Operation Kionix MEMS linear tri axis accelerometers function on the principle of differential capacitance Acceleration causes displacement...

Отзывы: