Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3393 Datasheet(PDF) 99 Page - STMicroelectronics

Part # AN3393
Description  This document is intended to provide information
PDF  103 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3393 Datasheet(HTML) 99 Page - STMicroelectronics

Back Button AN3393 Datasheet HTML 95Page - STMicroelectronics AN3393 Datasheet HTML 96Page - STMicroelectronics AN3393 Datasheet HTML 97Page - STMicroelectronics AN3393 Datasheet HTML 98Page - STMicroelectronics AN3393 Datasheet HTML 99Page - STMicroelectronics AN3393 Datasheet HTML 100Page - STMicroelectronics AN3393 Datasheet HTML 101Page - STMicroelectronics AN3393 Datasheet HTML 102Page - STMicroelectronics AN3393 Datasheet HTML 103Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 99 / 103 page
background image
DocID018750 Rev 4
99/103
AN3393
First-in first-out (FIFO) buffer
103
10.4
Watermark
The watermark is a configurable flag that can be used to generate a specific interrupt in
order to know when the FIFO buffer contains at least the number of samples defined as the
watermark level. The user can select the desired level in a range from 0 to 31 using the
WTMP[4:0] field in the FIFO control register while the FIFO source register FSS[4:0] is
related to the number of samples in the FIFO. If FSS[4:0] is greater than WTMP[4:0], the
WTM bit is set high in the FIFO source register; on the contrary, WTM is driven low when the
FSS[4:0] field becomes lower than WTMP[4:0]. FSS[4:0] increases by one step at the ODR
frequency and decreases by one step every time that a read of the sample set is performed
by the user.
FIFO depth can be limited to the watermark value by setting the WTM_EN bit to “1” in
CTRL_REG6 register (25h). When this feature is activated both WTM and OVERRUN flags
in the FIFO_SRC register have the same behavior.
Figure 36. Watermark behavior - WTMP[4:0] = 10
In Figure 36, the first row indicates the FSS[4:0] value, the second row indicates the relative
FIFO slot and the last row shows the incremental FIFO data. Assuming WTMP[4:0] = 10,
the WTM flag changes from “0” to “1” when the eleventh FIFO slot is filled (F10). If the
output registers are read, the WTM flag goes low when the value of the FSS[4:0] bits is
lower than WTMP[4:0].
The watermark flag (WTM) can be enabled to generate a dedicated interrupt on the INT1
pin by setting the P1_WTM bit high in CTRL_REG6 (25h).
10.5
Retrieving data from FIFO
When FIFO is enabled and the mode is different from Bypass, reading the output registers
(28h to 2Dh) returns the oldest FIFO sample set.
Note:
To correctly retrieve data from the FIFO, the BDU bit in CTRL_REG4 (20h) register must be
set to “0”.
Synchronous reading on the interrupt pin is required. Either the overrun or the watermark
interrupt must be set through P1_OVERRUN and P1_WTM bits in CTRL_REG6 (25h). The
recommended reading procedure to avoid data loss or duplicated data reading depends on
the FIFO configuration:



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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