EasyManua.ls Logo

Silicon Laboratories EFM8 - 4.5 Using Fast Response Registers; 4.6 Write and Read the FIFOs

Silicon Laboratories EFM8
35 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4.5 Using Fast Response Registers
There are several types of status information that can be read out from the radio faster. The FRR_CTL_x_MODE (where x can be A, B,
C, or D) properties define what status information is assigned to a given fast response register (FRR). The actual value of the registers
can be read by pulling down the NSEL pin, issuing the proper command ID, and providing an additional eight clock pulses on the SCLK
pin. During these clock pulses, the radio provides the value of the addressed FRR. The NSEL pin has to be pulled high after finishing
the register read.
Figure 4.6. Reading a Single Fast Response Register
It is also possible to read out multiple FRRs in a single SPI transaction. The NSEL pin has to be pulled low, and one of the FRRs has to
be addressed with the proper command ID. Providing an additional 8 x N clock cycles will clock out an additional N number of FRRs.
After the fourth byte is read, the radio will provide the value of the registers in a circular manner. The reading stops by pulling the NSEL
pin high.
Figure 4.7. Reading More Fast Response Registers
Note: If the pending interrupt status register is read through the FRR, the NIRQ pin does not go back to high. The pending interrupt
registers have to be read by a get response to a command sequence in order to release the NIRQ pin.
4.6 Write and Read the FIFOs
There are two 64-byte FIFOs for RX and TX data in the Si4x5x.
To fill data into the transmit FIFO, the host MCU should pull the NSEL pin low and send the 0x66 Transmit FIFO Write command ID
followed by the bytes to be filled into the FIFO. Finally, the host MCU should pull the NSEL pin high. Up to 64 bytes can be filled into the
FIFO during one SPI transaction.
AN954: Programming Guide for EFM8 and EZRadio ®
Application Programming Interface
silabs.com | Smart. Connected. Energy-friendly. Rev. 0.1 | 20