| Electronic Components Datasheet Search |
|
AN4650 Datasheet(PDF) 55 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4650 Datasheet(HTML) 55 Page - STMicroelectronics |
|
55 / 102 page ![]() DocID027415 Rev 1 55/102 AN4650 Android embedded functions 102 When the maximum value 16777215 LSB (corresponding to FFFFFFh) is reached and low resolution (TIMER_HR = 0) is used, the counter is automatically reset to 000000h and continues to count. When the maximum value is reached and high resolution (TIMER_HR = 1) is used, the counter is not automatically reset to 0 and freezes at FFFFFFh. In any case, the timer count can be reset to zero at any time by writing the reset value AAh in the TIMESTAMP_REG2 register. An interrupt signal is generated when the timer step count reaches the value of 16776960 LSB (corresponding to FFFF00h). This interrupt signal can be driven to the INT1 pin by setting to 1 the INT1_TIMER bit of the MD1_CFG register. Once the interrupt pin is asserted, it must be reset to zero by writing AAh in the TIMESTAMP_REG2 register. The time stamp count can be stored in FIFO as a fourth data set along with the step counter data (see Section 8.9 for details). A basic SW routine to enable the time stamp counter is shown below. 1 Write 50h into CTRL1_XL // Turn on the accelerometer // ODR_XL = 208 Hz, FS_XL = 2g 2 Write 80h into TAP_CFG // Enable time stamp count 3 Write 10h into WAKE_UP_DUR // Time stamp resolution = 25us 4 Write 01h into MD1_CFG // End counter interrupt driven to INT1 pin |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |