| Electronic Components Datasheet Search |
|
AD5940 Datasheet(PDF) 97 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD5940 Datasheet(HTML) 97 Page - Analog Devices |
|
97 / 130 page ![]() Data Sheet AD5940 Rev. 0 | Page 97 of 130 READING DATA FROM THE DATA FIFO There are two methods to read back data from the data FIFO: read the DATAFIFORD register as described in the Writing to and Reading from Registers section, or implement a fast FIFO read protocol. If there are less than three results in the data FIFO, the data can be read back from the DATAFIFORD register. However, if there are more than three results in the FIFO, a more efficient SPI transaction protocol is implemented. The following section describes this protocol and is illustrated in Figure 44. Read Data from Data FIFO To read data from the data FIFO, take the following steps: 1. Drive CS low. 2. Send an 8-bit command byte: SPICMD_READFIFO. 3. Transmit six dummy bytes on the SPI bus before valid data can be read back. 4. Continuously read the DATAFIFORD register until only two results are left. 5. Read back the last two data points using a nonzero offset. 6. Pull CS high. The transaction protocol is shown in Figure 44. Six dummy reads are required before valid data is returned on the advanced peripheral bus (APB). The diagram also illustrates why the last two FIFO results are read back with a nonzero offset. In Figure 44, the APB reads Data C when the SPI bus is transferring Data B. Assuming APB Read B is the last data in the FIFO, the read offset (ROFFSETC) is set to a nonzero value. Then, the APB reads a different register than the DATAFIFORD register. If the APB continues to read the DATAFIFORD register, the data FIFO underflows, which causes an underflow error. MOSI MISO CMD SSTATUS0 ROFFSETA SSTATUS1 ROFFSETA SSTATUS2 ROFFSETA SSTATUS3 ROFFSETA SSTATUS4 ROFFSETB SSTATUS5 SSTATUS6 ROFFSETB ROFFSETB RDATA3 A ROFFSETB RDATA2 A ROFFSETC RDATA1 A ROFFSETC ROFFSETC ROFFSETC ROFFSETC APB READ A 6 DUMMY READS BEFORE VALID DATA APB READ B APB READ C RDATA1 A0 RDATA3 B RDATA2 B RDATA1 B Figure 44. Data FIFO Read Protocol |
|
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 |