ADuCM310 Hardware Reference Manual
UG-549
Rev. C | Page 143 of 192
Bits
Bit Name
Description
Reset
Access
6
TIM
SPI transfer and interrupt mode.
0x0
RW
0: cleared by user to initiate transfer with a read of the SPI0RX register.
Interrupt only occurs when Rx is full.
1: set by user to initiate transfer with a write to the SPI0TX register.
Interrupt only occurs when Tx is empty.
5
LSB
LSB first transfer enable.
0x0
RW
0: MSB transmitted first.
1: LSB transmitted first.
4
WOM
SPI wired-OR mode.
0x0
RW
1: open circuit data output enable. External pull-ups required on data out pins.
0: normal output levels.
3
CPOL
Serial clock polarity.
0x0
RW
0: serial clock idles low.
1: serial clock idles high.
2
CPHA
Serial clock phase mode.
0x0
RW
1: serial clock pulses at the beginning of each serial bit transfer.
0: serial clock pulses at the end of each serial bit transfer.
1
MASEN
Master mode enable.
0x0
RW
0: enable slave mode.
1: enable master mode.
0
ENABLE
SPI enable.
0x0
RW
0: disable the SPI.
1: enable the SPI.
SPI DMA Enable Register
Address: 0x4002C014, Reset: 0x0000, Name: SPI0DMA
Table 203. Bit Descriptions for SPI0DMA
Bits
Bit Name
Description
Reset
Access
[15:3]
RESERVED
Reserved.
0x0
R
2
IENRXDMA
Enable receive DMA request.
0x0
RW
0: disable Rx DMA interrupt.
1: enable Rx DMA interrupt.
1
IENTXDMA
Enable transmit DMA request.
0x0
RW
0: disable Tx DMA interrupt.
1: enable Tx DMA interrupt.
0
ENABLE
Enable DMA for data transfer. Set by user code to start a DMA transfer.
Cleared by user code at the end of DMA transfer. This bit must be cleared
to prevent extra DMA requests to the µDMA controller.
0x0
RW
Transfer Byte Count Register
Address: 0x4002C018, Reset: 0x0000, Name: SPI0CNT
Table 204. Bit Descriptions for SPI0CNT
Bits
Bit Name
Description
Reset
Access
[15:8]
RESERVED
Reserved.
0x0
R
[7:0]
COUNT
Transfer byte count. COUNT indicates the number of bytes to be transferred.
COUNT is used in both receive and transmit transfer types. The COUNT value
assures that a master mode transfer terminates at the proper time and that
16-bit DMA transfers are byte padded or discarded as required to match
odd transfer counts. Reset by clearing SPI0CON[0] or if SPI0CNT is updated.
0x0
RW