| 전자부품 데이터시트 검색엔진 |
|
AN3393 데이터시트(PDF) 94 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3393 데이터시트(HTML) 94 Page - STMicroelectronics |
|
94 / 103 page ![]() First-in first-out (FIFO) buffer AN3393 94/103 DocID018750 Rev 4 read the FIFO content at any time because it is maintained unchanged until Bypass mode is selected. The read is composed of a 32-sample set of 6 bytes for a total of 192 bytes and retrieves data starting from the oldest sample stored in FIFO (F0). The overrun interrupt and the OVRN bit are reset when the first sample set has been read. The Bypass mode setting resets FIFO and allows the user to enable FIFO mode again. 10.3.3 Stream mode In Stream mode FIFO continues filling and when the buffer is full, the FIFO index restarts from the beginning and older data is replaced by the current. The oldest values continue to be overwritten until a read operation frees FIFO slots. Host processor reading speed is most important in order to free slots faster than new data is made available. FMODE[2:0] Bypass configuration is used to stop this mode. Follow these steps for FIFO mode configuration: 1. Turn on FIFO by setting the FIFO_EN bit to “1” in control register 6 (25h). After this operation the FIFO buffer is enabled but isn’t collecting data, output registers are frozen to the last samples set loaded. 2. Set overrun or watermark interrupt through P1_OVERRUN and P1_WTM bits in CTRL_REG6 (25h). 3. Activate Stream mode by setting the FMODE[2:0] field to “010” in the FIFO control register (2Eh). As described for the FIFO mode, data can be retrieved when the interrupt overrun event occurs, by performing a 32-sample set read of the output registers. Data can be retrieved also on the watermark interrupt event, when the application requires a lower number of samples. Figure 30. Stream mode fast reading behavior In Stream mode, the FIFO buffer fills continuously (from F0 to F31) at the selected output data rate. When the buffer is full, the OVRN flag goes high and the recommended solution is to read all FIFO samples (192 bytes) faster than 1*ODR in order to free FIFO slots for the new acceleration data. This allows avoiding loss of data and limits intervention by the host processor which increases system efficiency. Three different cases can be observed: |
|
링크 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 |