![Freescale Semiconductor MPC5632M Скачать руководство пользователя страница 1179](http://html.mh-extra.com/html/freescale-semiconductor/mpc5632m/mpc5632m_manual_23306591179.webp)
MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
1179
Preliminary—Subject to Change Without Notice
State transitions from RUNNING to STOPPED occur on the next frame boundary if a transfer is in
progress, or on the next system clock cycle if no transfers are in progress.
26.5.3
Serial Peripheral Interface (SPI) Configuration
The SPI Configuration transfers data serially using a shift register and a selection of programmable
transfer attributes. The DSPI is in SPI Configuration when the DCONF field in the DSPI_MCR is 0b00.
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 DSPI. 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 Receive FIFO
(RX FIFO) buffer. Host software or a DMA Controller transfer the received data from the RX FIFO to
memory external to the DSPI. The FIFO buffer operations are described in
First In First Out (TX FIFO) Buffering Mechanism
,” and
Section 26.5.3.5, “Receive First In First Out (RX
.” The interrupt and DMA request conditions are described in
Section 26.5.10, “Interrupts/DMA Requests
The SPI Configuration supports two block-specific 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 DSPI initiates and controls the transfer according to the fields in the SPI command field of the TX FIFO
entry. In Slave mode the DSPI only responds to transfers initiated by a bus master external to the DSPI
and the SPI command field of the TX FIFO entry is ignored.
26.5.3.1
Master Mode
In SPI Master Mode the DSPI initiates the serial transfers by controlling the Serial Communications Clock
(SCK) and the Peripheral Chip Select (PCS) signals. The SPI command field in the executing TX FIFO
entry determines which CTAR registers will be used to set the transfer attributes and which PCS signal to
assert. The command field also contains various bits that help with queue management and transfer
protocol. See
Section 26.4.2.6, “DSPI PUSH TX FIFO Register (DSPI_PUSHR)
command fields. The data field in the executing TX FIFO entry is loaded into the shift register and shifted
out on the Serial Out (SOUT) pin. In SPI Master Mode, each SPI frame to be transmitted has a command
associated with it allowing for transfer attribute control on a frame by frame basis.
1
STOPPED
RUNNING
The DSPI is started (DSPI transitions to RUNNING) when all of
the following conditions are true:
• EOQF bit is clear
• Debug mode is unselected or the FRZ bit is clear
• HALT bit is clear
2
RUNNING
STOPPED
The DSPI stops (transitions from RUNNING to STOPPED) after
the current frame for any one of the following conditions:
• EOQF bit is set
• Debug mode is selected and the FRZ bit is set
• HALT bit is set
Table 26-32. State Transitions for Start and Stop of DSPI Transfers
Transition #
Current State
Next State
Description
Содержание MPC5632M
Страница 22: ...MPC563XM Reference Manual Rev 1 22 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 62: ...MPC563XM Reference Manual Rev 1 62 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 92: ...MPC563XM Reference Manual Rev 1 92 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 168: ...MPC563XM Reference Manual Rev 1 168 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 242: ...MPC563XM Reference Manual Rev 1 242 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 302: ...MPC563XM Reference Manual Rev 1 302 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 410: ...MPC563XM Reference Manual Rev 1 410 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 440: ...MPC563XM Reference Manual Rev 1 440 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 464: ...MPC563XM Reference Manual Rev 1 464 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 554: ...MPC563XM Reference Manual Rev 1 554 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 590: ...MPC563XM Reference Manual Rev 1 590 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 622: ...MPC563XM Reference Manual Rev 1 622 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 716: ...MPC563XM Reference Manual Rev 1 716 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1114: ...MPC563XM Reference Manual Rev 1 1114 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1144: ...MPC563XM Reference Manual Rev 1 1144 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1266: ...MPC563XM Reference Manual Rev 1 1266 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1316: ...MPC563XM Reference Manual Rev 1 1316 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1348: ...MPC563XM Reference Manual Rev 1 1348 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1362: ...MPC563XM Reference Manual Rev 1 1362 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1382: ...MPC563XM Reference Manual Rev 1 1382 Freescale Semiconductor Preliminary Subject to Change Without Notice ...