UG-1262
Rev. B | Page 252 of 312
Bits Bit
Name Settings Description
Reset Access
[2:0] IRQMODE
SPI IRQ Mode Bits. These bits configure when the transmit or receive interrupts occur in a
transfer. For DMA receive transfer, these bits are 0b000.
0x0 R/W
000
Transmit interrupt occurs when 1 byte has been transferred. Receive interrupt occurs
when 1 or more bytes have been received into the FIFO.
001
Transmit interrupt occurs when 2 bytes have been transferred. Receive interrupt occurs
when 2 or more bytes have been received into the FIFO.
010
Transmit interrupt occurs when 3 bytes have been transferred. Receive interrupt occurs
when 3 or more bytes have been received into the FIFO.
011
Transmit interrupt occurs when 4 bytes have been transferred. Receive interrupt occurs
when 4 or more bytes have been received into the FIFO.
100
Transmit interrupt occurs when 5 bytes have been transferred. Receive interrupt occurs
when 5 or more bytes have been received into the FIFO.
101
Transmit interrupt occurs when 6 bytes have been transferred. Receive interrupt occurs
when 6 or more bytes have been received into the FIFO.
110
Transmit interrupt occurs when 7 bytes have been transferred. Receive interrupt occurs
when 7 or more bytes have been received into the FIFO.
111
Transmit interrupt occurs when 8 bytes have been transferred. Receive interrupt occurs
when the FIFO is full.
TRANSFER BYTE COUNT REGISTERS
Address: 0x40004018, Reset: 0x0000, Name: SPI0_CNT
Address: 0x40024018, Reset: 0x0000, Name: SPI1_CNT
This register is only used in master mode.
Table 312. Bit Descriptions for SPI0_CNT, SPI1_CNT
Bits Bit
Name Settings
Description
Reset
Access
15 FRAMECONT
Continue Frame. Use this bit in conjunction with the SPIx_CTL, Bit 11 and SPIx_CNT,
Bits[13:0] fields. This bit is used to control SPI data framing.
0x0 R/W
0
When writing to this bit, if this bit is cleared, the SPI master transfers only one frame
of SPIx_CNT, Bits[13:0]. When reading this bit, if the value bits > 0, stop SPI transfers
after the specified number of bytes.
1
When writing to this bit, the SPI master transfers data in frames of SPIx_CNT,
Bits[13:0] bytes per frame. If SPIx_CNT, Bits[13:0] = 0, this field has no effect because
the SPI master continues with transfers as long as the transmit or receive FIFO is
ready. If SPIx_CTL, Bit 11 = 0, this field has no effect because all SPI frames are a
single byte wide, irrespective of other control fields. When reading this bit, continue
SPI transfers as long as the transmit or receive FIFO is ready.
14 Reserved
Reserved.
0x0 R
[13:0] VALUE
Transfer Byte Count. This field specifies the number of bytes to be transferred. It is
used in both receive and transmit transfer types. This value ensures that a master
mode transfer terminates at the proper time and that 16-bit SPIx_DMA transfers are
byte padded or discarded as required to match odd transfer counts. Reset by
clearing SPIx_CTL, Bit 0 to 0.
0x0 R/W
DMA ENABLE REGISTERS
Address: 0x4000401C, Reset: 0x0000, Name: SPI0_DMA
Address: 0x4002401C, Reset: 0x0000, Name: SPI1_DMA
Table 313. Bit Descriptions for SPI0_DMA, SPI1_DMA
Bits Bit
Name Settings
Description
Reset Access
[15:3] Reserved
Reserved.
0x0
R
2
RXEN
Enable Receive DMA Request.
0x0
R/W
0
Disable receive DMA interrupt.
1
Enable receive DMA interrupt.