| 전자부품 데이터시트 검색엔진 |
|
AN2381 데이터시트(PDF) 37 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2381 데이터시트(HTML) 37 Page - STMicroelectronics |
|
37 / 47 page ![]() AN2381 Application information 37/47 6 Application information 6.1 Start-up 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. approximately after 5 milli-seconds, the device automatically enters power-down mode. To turn-on the device and gather acceleration data it is necessary to write C7h inside CTRL_REG1. With this command the three acceleration channels (i.e. X, Y and Z axis) are enabled. 6.2 Reading acceleration data 6.2.1 Using the Status Register The device is provided with a STATUS_REG which should be polled to check when a new set of data is available. The reading procedure should be the following: The check performed at step 3 allows to understand whether the reading rate is adequate compared to the data production rate. In case one or more acceleration samples have been overwritten by new data because of a reading rate too slow, the bit STATUS_REG(7) will be set to 1. The overrun bit are automatically cleared when all the data present inside the device have been read and new data have not been produced in the meanwhile. 6.2.2 Using the Data-Ready Signal The device may be configured to have one HW signal (RDY, pin #6) to determinate when a new set of measurement data is available for reading. This signal is represented by STATUS_REG(3) content. The signal is active high (data available) and it returns to logic zero when the higher part of the data of all the enabled channels have been read. To use the RDY signal, it is necessary to set the CTRL_REG2 to xxxx 01xx. 1 read STATUS_REG 2 if STATUS_REG(3)=0 then goto 1 3 if STATUS_REG(7)=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 goto 1 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |