![Texas Instruments C2000 Piccolo LaunchPad Workshop Manual And Lab Manual Download Page 295](http://html.mh-extra.com/html/texas-instruments/c2000-piccolo-launchpad/c2000-piccolo-launchpad_workshop-manual-and-lab-manual_1094583295.webp)
Serial Peripheral Interface (SPI)
C2000 Microcontroller Workshop - Communications
13 - 5
SPI Block Diagram
SPIRXBUF.15-0
SPIDAT.15-0
SPICLK
SPISOMI
SPISIMO
LSPCLK
baud
rate
clock
polarity
clock
phase
C28x - SPI Master Mode Shown
SPITXBUF.15-0
LSB
MSB
TX FIFO_0
TX FIFO_3
RX FIFO_0
RX FIFO_3
SPI Transmit / Receive Sequence
1.
Slave writes data to be sent to its shift register (SPIDAT)
2.
Master writes data to be sent to its shift register (SPIDAT or SPITXBUF)
3.
Completing Step 2 automatically starts SPICLK signal of the Master
4.
MSB of the Master’s shift register (SPIDAT) is shifted out, and LSB of the Slave’s shift
register (SPIDAT) is loaded
5.
Step 4 is repeated until specified number of bits are transmitted
6.
SPIDAT register is copied to SPIRXBUF register
7.
SPI INT Flag bit is set to 1
8.
An interrupt is asserted if SPI INT ENA bit is set to 1
9.
If data is in SPITXBUF (either Slave or Master), it is loaded into SPIDAT and transmission
starts again as soon as the Master’s SPIDAT is loaded
Summary of Contents for C2000 Piccolo LaunchPad
Page 74: ...Interrupts 4 18 C2000 Microcontroller Workshop Reset and Interrupts ...
Page 100: ...Lab 5 System Initialization 5 26 C2000 Microcontroller Workshop System Initialization ...
Page 218: ...Lab 8 IQmath FIR Filter 8 42 C2000 Microcontroller Workshop Numerical Concepts ...
Page 334: ...F28069 controlCARD A 4 C2000 Microcontroller Workshop Appendix A Experimenter s Kit SW2 ...
Page 336: ...F28035 controlCARD A 6 C2000 Microcontroller Workshop Appendix A Experimenter s Kit SW2 SW3 ...