| Electronic Components Datasheet Search |
|
AN4662 Datasheet(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4662 Datasheet(HTML) 13 Page - STMicroelectronics |
|
13 / 43 page ![]() AN4662 Startup sequence 3 Startup sequence Once the device is powered up, it automatically downloads the calibration coefficients from the embedded flash to the internal registers. When the boot procedure is completed, i.e. after approximately 20 milliseconds, the device automatically enters power-down mode. To turn on the device and gather acceleration data, it is necessary to select one of the Active modes (Table 2: "Data rate configuration") and to enable at least one of the axes through the CTRL1 register. The following general-purpose sequence can be used to configure the device: 1. Write CTRL1 = 3Fh // X, Y, Z, enabled, ODR = 100 Hz, BDU enabled 2. Write CTRL3 = 01h // Data Ready Interrupt on INT1 3.1 Reading acceleration data 3.1.1 Using the status register The device is provided with a STATUS register which should be polled to check when a new set of data is available. The read procedure should be the following: 1. Read STATUS 2. If STATUS(ZYXDA) == 0 then go to 1 3. If STATUS(ZYXOR) == 1 then some data have been overwritten 4. Read OUTX_L 5. Read OUTX_H 6. Read OUTY_L 7. Read OUTY_H 8. Read OUTZ_L 9. Read OUTZ_H 10. Data processing 11. Go to 1 The check performed at step #3 allows understanding whether the read rate is adequate compared to the data production rate. If one or more acceleration samples have been overwritten by new data, due to a slow read rate, the ZYXOR bit of STATUS register is set to 1. The overrun bits are automatically cleared when all the data present inside the output registers have been read and new data have not been produced in the meantime. DocID027579 Rev 1 13/43 |
|
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 |