Quad Serial Peripheral Interface (QuadSPI)
MPC5606S Microcontroller Reference Manual, Rev. 7
1032
Freescale Semiconductor
•
Module Disable mode: The mode is used for power management. The clock to the non-memory
mapped logic in the QuadSPI can be stopped while in Module Disable mode.The module enters
the mode by setting QSPI_MCR[MDIS]. See
Section 30.5.4.1, Module Disable mode
, for more
details.
30.5.2
SPI (Serial Peripheral Interface) modes
In the SPI Master and SPI Slave modes, serial data are transferred using a shift register and a selection of
programmable transfer attributes. The SPI frames can be from four to sixteen bits long. The data to be
transmitted can come from queues stored in RAM external to the QuadSPI. Host software or a DMA
Controller can transfer the SPI data from the queues to a First-In First-Out (FIFO) buffer. The received
data is stored in entries in the RX FIFO. Host software or a DMA Controller transfer the received data from
the RX FIFO to memory external to the QuadSPI. The FIFO buffer operations are described in
Section 30.5.2.5, Transmit First In First Out (TX FIFO) Buffering Mechanism
Receive First In First Out (RX FIFO) Buffering Mechanism
. The interrupt and DMA request conditions
Section 30.5.2.10, SPI mode interrupt and DMA requests
There are two different SPI modes: Master mode and Slave mode. The FIFO operations are similar for the
Master mode and Slave mode. The main difference is that in Master mode, the QuadSPI initiates and
controls the transfer according to the fields in the SPI Command field of the TX FIFO entry. In Slave mode,
the QuadSPI only responds to transfers initiated by a bus master external to the QuadSPI and the SPI
Command field of the TX FIFO entry is ignored.
The 16-bit shift register in the Master and the 16-bit shift register in the Slave are linked by the SO and SI
signals to form a distributed 32-bit register. When a data transfer operation is performed, data is serially
shifted a pre-determined number of bit positions. Because the registers are linked, data is exchanged
between the Master and the Slave; the data that was in the Master’s shift register is now in the shift register
of the Slave, and vice versa. At the end of a transfer, the TCF bit in the QSPI_SPISR is set to indicate a
completed transfer.
illustrates how Master and Slave data is exchanged.
Figure 30-23. SPI Serial Protocol Overview
The QuadSPI has eight Peripheral Chip Select (PCS) signals that are used to select which of the Slaves to
communicate with.
Shift Register
Baud Rate
Generator
Shift Register
SI
SI
SO
SO
SCK
SCK
SS
PCSx
SPI Master
SPI Slave
Содержание MPC5602S
Страница 76: ...Overview MPC5606S Microcontroller Reference Manual Rev 7 74 Freescale Semiconductor...
Страница 82: ...Memory Map MPC5606S Microcontroller Reference Manual Rev 7 80 Freescale Semiconductor...
Страница 112: ...Signal Description MPC5606S Microcontroller Reference Manual Rev 7 110 Freescale Semiconductor...
Страница 166: ...Analog to Digital Converter ADC MPC5606S Microcontroller Reference Manual Rev 7 164 Freescale Semiconductor...
Страница 182: ...Boot Assist Module BAM MPC5606S Microcontroller Reference Manual Rev 7 180 Freescale Semiconductor...
Страница 234: ...Clock Description MPC5606S Microcontroller Reference Manual Rev 7 232 Freescale Semiconductor...
Страница 286: ...Crossbar Switch XBAR MPC5606S Microcontroller Reference Manual Rev 7 284 Freescale Semiconductor...
Страница 470: ...e200z0h Core MPC5606S Microcontroller Reference Manual Rev 7 468 Freescale Semiconductor...
Страница 524: ...Enhanced Direct Memory Access eDMA MPC5606S Microcontroller Reference Manual Rev 7 522 Freescale Semiconductor...
Страница 546: ...Error Correction Status Module ECSM MPC5606S Microcontroller Reference Manual Rev 7 544 Freescale Semiconductor...
Страница 669: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 667...
Страница 670: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 668 Freescale Semiconductor...
Страница 716: ...FlexCAN MPC5606S Microcontroller Reference Manual Rev 7 714 Freescale Semiconductor...
Страница 882: ...LIN Controller LINFlex MPC5606S Microcontroller Reference Manual Rev 7 880 Freescale Semiconductor...
Страница 901: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 899...
Страница 902: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 900 Freescale Semiconductor...
Страница 955: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 953...
Страница 956: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 954 Freescale Semiconductor...
Страница 1072: ...Quad Serial Peripheral Interface QuadSPI MPC5606S Microcontroller Reference Manual Rev 7 1070 Freescale Semiconductor...
Страница 1096: ...Reset Generation Module MC_RGM MPC5606S Microcontroller Reference Manual Rev 7 1094 Freescale Semiconductor...
Страница 1106: ...Real Time Clock RTC API MPC5606S Microcontroller Reference Manual Rev 7 1104 Freescale Semiconductor...
Страница 1186: ...Stepper Stall Detect SSD MPC5606S Microcontroller Reference Manual Rev 7 1184 Freescale Semiconductor...
Страница 1213: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1211...
Страница 1214: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 1212 Freescale Semiconductor...
Страница 1238: ...Voltage Regulators and Power Supplies MPC5606S Microcontroller Reference Manual Rev 7 1236 Freescale Semiconductor...
Страница 1252: ...Wakeup Unit WKPU MPC5606S Microcontroller Reference Manual Rev 7 1250 Freescale Semiconductor...
Страница 1258: ...Registers Under Protection MPC5606S Microcontroller Reference Manual Rev 7 1256 Freescale Semiconductor...
Страница 1323: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1321...
Страница 1324: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 1322 Freescale Semiconductor...