Start the channel:
Set SPIm.MCSPI_CHxCTRL[0] EN bit to 1
Stop the channel:
Set SPIm.MCSPI_CHxCTRL[0] EN bit to 0
Next command
Main process
Interrupt routine
TX empty?
No
RX full?
Yes
No
Return
Write SPIm.MCSPI_IRQSTATUS to reset
channel status bits
Read SPIm.MCSPI_IRQSTATUS
WRITE_COUNT = w\
and
READ_COUNT = w
Write
SPIm.MCSPI_TXx
WRITE= 1
Read
SPIm.MCSPI_RXx
READ= 1
mcspi-033
Yes
Public Version
www.ti.com
McSPI Basic Programming Model
20.6.2.3 Transmit and Receive Procedure
shows the handling procedure for words received and transmitted by interrupt in master and
slave modes. The main process flow shows how the end of the transfer must be done after all words are
received for this mode.
If the requests are configured in DMA, WRITE_COUNT and READ_COUNT are assigned with the value w
when the DMA handler completes w interface accesses.
Figure 20-28. Transmit and Receive (Master and Slave)
3015
SWPU177N – December 2009 – Revised November 2010
Multichannel SPI
Copyright © 2009–2010, Texas Instruments Incorporated
Содержание OMAP36 Series
Страница 174: ...174 List of Tables SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 692: ...692 MPU Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1084: ...1084 IVA2 2 Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1990: ...1990 2D 3D Graphics Accelerator SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2334: ...2334 Memory Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2700: ...2700 Memory Management Units SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2868: ...2868 HDQ 1 Wire SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2974: ...2974 UART IrDA CIR SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3054: ...3054 Multichannel SPI SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3462: ...3462 MMC SD SDIO Card Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3508: ...3508 General Purpose Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3584: ...3584 Initialization SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3648: ...3648 Debug and Emulation SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...