| Electronic Components Datasheet Search |
|
CC2500 Datasheet(PDF) 38 Page - Texas Instruments |
|
|
|
|||||||||||||||||||||||||||||
CC2500 Datasheet(HTML) 38 Page - Texas Instruments |
|
38 / 76 page ![]() CC2500 Preliminary Data Sheet (rev.1.1.) SWRS040 Page 38 of 77 20 Data FIFO The CC2500 contains two 64 byte FIFOs, one for received data and one for data to be transmitted. The SPI interface is used to read from the RX FIFO and write to the TX FIFO. Section 10.4 contains details on the SPI FIFO access. The FIFO controller will detect overflow in the RX FIFO and underflow in the TX FIFO. When writing to the TX FIFO it is the responsibility of the MCU to avoid TX FIFO overflow. A TX FIFO overflow will result in an error in the TX FIFO content. Likewise, when reading the RX FIFO the MCU must avoid reading the RX FIFO past its empty value, since an RX FIFO underflow will result in an error in the data read out of the RX FIFO. The chip status byte that is available on the SO pin while transferring the SPI address contains the fill grade of the RX FIFO if the address is a read operation and the fill grade of the TX FIFO is the address is a write operation. Section 10.1 on page 20 contains more details on this. The number of bytes in the RX FIFO and TX FIFO can also be read from the status registers RXBYTES.NUM_RXBYTES and TXBYTES.NUM_TXBYTES respectively. If receiving data while reading the last byte in the RX FIFO, the RX FIFO pointer is not updated, resulting in a duplication of the last byte read. To avoid this problem one should never empty the RX FIFO before the last byte of the packet is received. The following software fix can be used: 1. Read RXBYTES.NUM_RXBYTES 2. If RXBYTES.NUM_RXBYTES < packet length, read RXBYTES.NUM_RXBYTES-1 bytes from the FIFO 3. Repeat until RXBYTES.NUM_RXBYTES = number of remaining bytes of the packet 4. Read the remaining bytes from the FIFO The 4-bit FIFOTHR.FIFO_THR setting is used to program threshold points in the FIFOs. Table 29 lists the 16 FIFO_THR settings and the corresponding thresholds for the RX and TX FIFOs. The threshold value is coded in opposite directions for the RX FIFO and TX FIFO. This gives equal margin to the overflow and underflow conditions when the threshold is reached. A flag will assert when the number of bytes in the FIFO is equal to or higher than the programmed threshold. The flag is used to generate the FIFO status signals that can be viewed on the GDO pins (see Section 28 on page 45). Figure 15 shows the number of bytes in both the RX FIFO and TX FIFO when the threshold flag toggles, in the case of FIFO_THR=13. Figure 14 shows the flag as the respective FIFO is filled above the threshold, and then drained below. 53 54 55 56 53 54 55 56 57 6 7 8 9 6 7 8 9 10 NUM_RXBYTES GDO NUM_TXBYTES GDO Figure 14: FIFO_THR=13 vs. number of bytes in FIFO (GDOx_CFG=0x00 in Rx and GDOx_CFG=0x02 in Tx) FIFO_THR Bytes in TX FIFO Bytes in RX FIFO 0 (0000) 61 4 1 (0001) 57 8 2 (0010) 53 12 3 (0011) 49 16 4 (0100) 45 20 5 (0101) 41 24 6 (0110) 37 28 7 (0111) 33 32 8 (1000) 29 36 9 (1001) 25 40 10 (1010) 21 44 11 (1011) 17 48 12 (1100) 13 52 13 (1101) 9 56 14 (1110) 5 60 15 (1111) 1 64 Table 29: FIFO_THR settings and the corresponding FIFO thresholds |
|
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 |