McSPI Registers
24.3.11.3 Main Program
•
Interrupt Initialization: (a) Reset status bits in MCSPI_IRQSTATUS (b) Enable interrupts in
MCSPI_IRQENA.
•
Channel Configuration: Write MCSPI_CH(i)CONF.
•
Start the channel: Write 0000 0001h in MCSPI_CH(i)CTRL.
•
First write request: TX empty - Generate DMA write event/ polling TX empty flag by CPU to write First
transmit word into MCSPI_TX(i).
•
End of transfer: Stop the channel by writing 0000 0000h in MCSPI_CH(i)CTRL
The end of transfer depends on the transfer mode.
In multi-channel master mode, be careful not to overwrite the bits of other channels when initializing
MCSPI_IRQSTATUS and MCSPI_IRQENABLE.
24.3.12 Interrupt and DMA Events
McSPI has two DMA requests (Rx and Tx) per channel. It also has one interrupt line for all the interrupt
requests.
24.4 McSPI Registers
24.4.1 SPI Registers
lists the McSPI registers.
Table 24-10. SPI Registers
Offset
Address
Acronym
Register Name
Section
000h
MCSPI_REVISION
McSPI revision register
110h
MCSPI_SYSCONFIG
McSPI system configuration register
114h
MCSPI_SYSSTATUS
McSPI system status register
118h
MCSPI_IRQSTATUS
McSPI interrupt status register
11Ch
MCSPI_IRQENABLE
McSPI interrupt enable register
124h
MCSPI_SYST
McSPI system register
128h
MCSPI_MODULCTRL
McSPI module control register
12Ch
MCSPI_CH0CONF
McSPI channel i configuration register
130h
MCSPI_CH0STAT
McSPI channel i status register
134h
MCSPI_CH0CTRL
McSPI channel i control register
138h
MCSPI_TX0
McSPI channel i FIFO transmit buffer register
13Ch
MCSPI_RX0
McSPI channel i FIFO receive buffer register
140h
MCSPI_CH1CONF
McSPI channel i configuration register
144h
MCSPI_CH1STAT
McSPI channel i status register
148h
MCSPI_CH1CTRL
McSPI channel i control register
14Ch
MCSPI_TX1
McSPI channel i FIFO transmit buffer register
150h
MCSPI_RX1
McSPI channel i FIFO receive buffer register
154h
MCSPI_CH2CONF
McSPI channel i configuration register
158h
MCSPI_CH2STAT
McSPI channel i status register
15Ch
MCSPI_CH2CTRL
McSPI channel i control register
160h
MCSPI_TX2
McSPI channel i FIFO transmit buffer register
164h
MCSPI_RX2
McSPI channel i FIFO receive buffer register
168h
MCSPI_CH3CONF
McSPI channel i configuration register
16Ch
MCSPI_CH3STAT
McSPI channel i status register register
170h
MCSPI_CH3CTRL
McSPI channel i control register
4032Multichannel Serial Port Interface (McSPI)
SPRUH73H – October 2011 – Revised April 2013
Copyright © 2011–2013, Texas Instruments Incorporated