01.08.2013 Views

Chapter 24 Multichannel Serial Port Interface (McSPI).

Chapter 24 Multichannel Serial Port Interface (McSPI).

Chapter 24 Multichannel Serial Port Interface (McSPI).

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.ti.com Use Cases<br />

<strong>24</strong>.3.11.3 Main Program<br />

• Interrupt Initialization: (a) Reset status bits in MCSPI_IRQSTATUS (b) Enable interrupts in<br />

MCSPI_IRQENA.<br />

• Channel Configuration: Write MCSPI_CH(i)CONF.<br />

• Start the channel: Write 0000 0001h in MCSPI_CH(i)CTRL.<br />

• First write request: TX empty - Generate DMA write event/ polling TX empty flag by CPU to write First<br />

transmit word into MCSPI_TX(i).<br />

• End of transfer: Stop the channel by writing 0000 0000h in MCSPI_CH(i)CTRL<br />

The end of transfer depends on the transfer mode.<br />

In multi-channel master mode, be careful not to overwrite the bits of other channels when initializing<br />

MCSPI_IRQSTATUS and MCSPI_IRQENABLE.<br />

<strong>24</strong>.3.12 Interrupt and DMA Events<br />

<strong>McSPI</strong> has two DMA requests (Rx and Tx) per channel. It also has one interrupt line for all the interrupt<br />

requests.<br />

<strong>24</strong>.4 Use Cases<br />

<strong>24</strong>.5 <strong>McSPI</strong> Registers<br />

SPRUH73E–October 2011–Revised May 2012 <strong>Multichannel</strong> <strong>Serial</strong> <strong>Port</strong> <strong>Interface</strong> (<strong>McSPI</strong>)<br />

Submit Documentation Feedback<br />

Copyright © 2011–2012, Texas Instruments Incorporated<br />

4159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!