MAX32660 User Guide
Maxim Integrated Page 174 of 195
RX FIFO Threshold Level
When the RX FIFO contains more bytes than the value set in this field, a DMA request
is triggered, and the SPI0_INT_FL.rx_level interrupt flag is set. Valid levels for this field
are from 0x00 to 0x1E.
0x00: 1 byte in the RX FIFO generates a SPI0_INT_FL.rx_level interrupt flag.
0x01: 2 bytes in the RX FIFO generates an interrupt.
n: n+1 bytes in the RX FIFO sets the SPI0_INT_FL.rx_level interrupt flag.
0x1E: Maximum allowed value for this field. 0x1F bytes in the RX FIFO set the
SPI0_INT_FL.rx_level interrupt flag.
0x1F is not a valid value.
TX DMA Enable
0: TX DMA is disabled. Any pending DMA requests are cleared
1: TX DMA is enabled
Reserved for Future Use
Do not modify this field.
Number of Bytes in the TX FIFO
Read returns the number of bytes currently in the TX FIFO
Clear the TX FIFO
Set this field to flush the TX FIFO. Write 1 only. Write 0 is ignored.
0: TX FIFO flush not active.
1: Clear the TX FIFO and any pending TX FIFO flags in SPI0_INT_FL. This should be
done when the TX FIFO is inactive.
Note: Writing 0 has no effect.
TX FIFO Enabled
Enable the TX FIFO by setting this field to 1.
0: TX FIFO disabled
1: TX FIFO enabled
Reserved for Future Use
Do not modify this field.
TX FIFO Threshold Level
When the TX FIFO has fewer than the value set in this field, a DMA request is
triggered, and the SPI0_INT_FL.tx_level interrupt flag is set.
Table 13-13: SPI Interrupt Flag Registers
SPI Interrupt Flag Register
Reserved for Future Use
Do not modify this field.
RX FIFO Underrun Flag
Set when a read is attempted from an empty RX FIFO.
RX FIFO Overrun Flag
Set if SPI is in Slave Mode, and a write to a full RX FIFO is attempted. If the SPI is in
Master Mode, this bit is not set as the SPI stalls the clock until data is read from the RX
FIFO.