| Electronic Components Datasheet Search |
|
AN4650 Datasheet(PDF) 91 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4650 Datasheet(HTML) 91 Page - STMicroelectronics |
|
91 / 102 page ![]() DocID027415 Rev 1 91/102 AN4650 First-in first-out (FIFO) buffer 102 8.5.3 Example 3 Supposing the FIFO is storing data from the gyroscope, accelerometer and magnetometer at different ODRs: Gyroscope ODR = 104 Hz, Accelerometer ODR = 208 Hz, Magnetometer ODR = 52 Hz. If the internal trigger (accelerometer/gyroscope data-ready) is used, it’s recommended to set the ODR_FIFO_[3:0] bits of the FIFO_CTRL5 register to 0101b in order to set the FIFO trigger ODR to 208 Hz. The DEC_FIFO_GYRO[2:0] field of FIFO_CTRL3 register has to be set to 010b (decimation with factor 2 applied to gyroscope data) and the DEC_FIFO_XL[2:0] field has to be set to 001b (no decimation applied to accelerometer data). Assuming that the magnetometer is associated to the 3rd FIFO data set, the DEC_DS3_FIFO[2:0] field of theFIFO_CTRL4 register has to be set to 100b (decimation with factor 4 applied to magnetometer data). The following data pattern is repeated every 21 samples: Gx Gy Gz XLx XLy XLz Mx My Mz (gyroscope, accelerometer, magnetometer data - 9 samples) XLx XLy XLz (accelerometer data - 3 samples) Gx Gy Gz XLx XLy XLz (gyroscope and accelerometer data - 6 samples) XLx XLy XLz (accelerometer data - 3 samples) The FIFO_PATTERN_[9:0] bits will contain a number from 0 to 20, as shown in Table 73. Table 73. Example 3: FIFO_PATTERN_[9:0] bits and next reading Time FIFO_PATTERN_[9:0] Next reading from FIFO output registers t0 0 Gx t0 1 Gy t0 2 Gz t0 3 XLx t0 4 XLy t0 5 XLz t0 6 Mx t0 7 My t0 8 Mz t1 9 XLx t1 10 XLy t1 11 XLz t2 12 Gx t2 13 Gy t2 14 Gz t2 15 XLx t2 16 XLy t2 17 XLz t3 18 XLx t3 19 XLy t3 20 XLz |
|
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 |