Public Version
McSPI Basic Programming Model
www.ti.com
Table 20-16. End-of-Transfer Sequences
Transmit Receive
Transmit Only
Receive Only
Interrupt
DMA
Interrupt
DMA
Interrupt
DMA
Master normal
End of
See
See
See
See
See
transfer
sequence
Minimum
1
1
1
1
1
1
number of
words
DMA transfer
w
w
w – 1
size
(1)
Master turbo
End of
See
See
See
See
See
transfer
sequence
Minimum
1
1
1
1
2
3
number of
words
DMA transfer
w
w
w – 2
size
(1)
Slave
End of
See
See
See
See
transfer
sequence
Minimum
1
1
1
1
1
1
number of
words
DMA transfer
w
w
w
w
size
(2)
(1)
w = number of words to transfer
(2)
w = number of words to transfer
The different sequences can be merged in one process to manage transfers of several types. The
end-of-transfer sequences are described from the start of the channel.
In these sequences and in later sections of this chapter, some software variables are used:
•
WRITE_COUNT (= 0 at initialization): Contains the number of words to transfer
•
READ_COUNT (= 0 at initialization): Contains the number of words to receive
•
CHANNEL_ENABLE (= false at initialization)
•
LAST_TRANSFER (= false at initialization): Indicates that the last word is in transmission
•
LAST_REQUEST (= false at initialization): Indicates that the last request is in progress
All variables are initialized before starting the channel.
3014
Multichannel SPI
SWPU177N – December 2009 – Revised November 2010
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 ...