| Electronic Components Datasheet Search |
|
AN3393 Datasheet(PDF) 91 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3393 Datasheet(HTML) 91 Page - STMicroelectronics |
|
91 / 103 page ![]() DocID018750 Rev 4 91/103 AN3393 First-in first-out (FIFO) buffer 103 The trigger used to activate Stream-to-FIFO, Bypass-to-Stream and Bypass-to-FIFO modes is related to the INT_SM2 bit value of the STAT register and does not depend on the interrupt pin value and polarity. The trigger is generated also if the selected interrupt is not driven to an interrupt pin. The WTMP[4:0] bits define the watermark level. 10.2.3 FIFO source register (2Fh) This register is updated at every ODR and provides information about the FIFO buffer status. WTM bit is set high when the value of the FSS[4:0] bits exceeds the watermark level in the WTMP[4:0] bits of the FIFO_CTRL register. The WTM bit is reset when FIFO data are read and the content of the FSS bits in the FIFO_SRC register becomes lower than the watermark level (WTMP bits in FIFO_CTRL register). OVRN bit is set high when the FIFO buffer is full; this means that the FIFO buffer contains 32 unread samples. At the following ODR a new sample set replaces the oldest FIFO value. EMPTY flag is set high when all FIFO samples have been read and FIFO is empty. FSS[4:0] values provide information about the number of samples in the FIFO, as shown in Table 101. When FIFO is enabled, this value increases at the ODR frequency until the buffer is full, whereas, it decreases every time that one sample set is retrieved from FIFO. When the EMPTY bit is “0”, FSS[4:0] is the number of samples in the FIFO - 1. When the EMPTY bit is “1”, FSS[4:0] has no meaning and is always equal to “0”. Register content is updated synchronous to the FIFO write and read operation. Table 100. FIFO_SRC_REG b7 b6 b5 b4 b3 b2 b1 b0 WTM OVRN EMPTY FSS4 FSS3 FSS2 FSS1 FSS0 Table 101. FIFO_SRC_REG behavior assuming WTMP[4:0] = 15 WTM OVRN Empty FSS[4:0] FIFO samples Timing 0 0 1 00000 0 t0 0 0 0 00000 1 t0 + 1/ODR 0 0 0 00001 2 t0 + 2/ODR ... ... ... ... ... ... 0 0 0 01110 15 t0 + 15/ODR 0 0 0 01111 16 t0 + 16/ODR 1 0 0 10000 17 t0 + 17/ODR ... ... ... ... ... ... 1 0 0 11110 31 t0 + 31ODR |
|
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 |