UG-549
ADuCM310 Hardware Reference Manual
Rev. C | Page 140 of 192
REGISTER SUMMARY: SPI0
Table 197. SPI0 Register Summary
Address
Name
Description
Reset
Access
0x4002C000
SPI0STA
Status register
0x0000
R
0x4002C004
SPI0RX
Receive register
0x0000
R
0x4002C008
SPI0TX
Transmit register
0x0000
W
0x4002C00C
SPI0DIV
Baud rate selection register
0x0000
RW
0x4002C010
SPI0CON
SPI configuration register
0x0000
RW
0x4002C014
SPI0DMA
SPI DMA enable register
0x0000
RW
0x4002C018
SPI0CNT
Transfer byte count register
0x0000
RW
REGISTER DETAILS: SPI0
Status Register
Address: 0x4002C000, Reset: 0x0000, Name: SPI0STA
Table 198. Bit Descriptions for SPI0STA
Bits
Bit Name
Description
Reset
Access
15
RESERVED
Reserved.
0x0
R
14
CSRSG
Detected a rising edge on CS, in CONT mode. This bit causes an interrupt. This can
identify the end of an SPI data frame.
0x0
RC
0: cleared to 0 when the status register is read.
1: set to 1 when there was a rising edge in the CS line, when the device was in
master mode, continuous transfer, high frequency mode, and CSIRQ_EN was asserted.
13
CSFLG
Detected a falling edge on CS, in CONT mode. This bit causes an interrupt. This
can identify the start of an SPI data frame.
0x0
RC
0: cleared to 0 when the status register is read.
1: set to 1 when there was a falling edge in the CS line, when the device was in
master mode, continuous transfer, high frequency mode, and CSIRQ_EN was asserted.
12
CSERR
Detected a CS error condition.
0x0
RC
0: cleared to 0 when the status register is read.
1: set to 1 when the CS line was deasserted abruptly, before the full byte of data
was transmitted completely. This bit causes an interrupt.
11
RXS
SPI Rx FIFO excess bytes present.
0x0
R
0: cleared to 0 when the number of bytes in the FIFO is less than or equal to the
number indicated in the MOD bits (SPI0CON[15:14]).
1: set to 1 when the number of bytes in the Rx FIFO is greater than the number
indicated in the MOD bits (SPI0CON[15:14]).
[10:8]
RXFSTA
SPI Rx FIFO status.
0x0
R
000: Rx FIFO empty.
001: 1 valid byte in the FIFO.
010: 2 valid bytes in the FIFO.
011: 3 valid bytes in the FIFO.
100: 4 valid bytes in the FIFO.
7
RXOF
SPI Rx FIFO overflow.
0x0
RC
0: cleared when the SPISTA register is read.
1: set when the Rx FIFO was already full when new data was loaded to the FIFO.
This bit generates an interrupt except when RFLUSH is set in SPI0CON.
6
RX
SPI Rx IRQ. Not available in DMA mode.
0x0
RC
0: cleared when the SPI0STA register is read.
1: set when a receive interrupt occurs. This bit is set when TIM in SPI0CON is
cleared and the required number of bytes have been received.