Queued Serial Multi-Channel Module
MPC561/MPC563 Reference Manual, Rev. 1.2
15-38
Freescale Semiconductor
NOTE
PCS_IN[3:0] is driven from QSMCM module. PCS_OUT[7:0] will be
driven from the pads to the pins. If the bits PCS4EN, PCS5EN, PCS6EN,
PCS7EN are negated (logic 0), PCS_OUT[3:0] will be the same as
PCS_IN[3:0]. The design assumes that if one of these enable bits is set, PCS
function is selected in QSMCM module.
15.6.5.8
Master Wraparound Mode
Wraparound mode is enabled by setting the WREN bit in SPCR2. The queue can wrap to pointer address
0x0 or to the address pointed to by NEWQP, depending on the state of the WRTO bit in SPCR2.
In wraparound mode, the QSPI cycles through the queue continuously, even while the QSPI is requesting
interrupt service. SPE is not cleared when the last command in the queue is executed. New receive data
overwrites previously received data in receive RAM. Each time the end of the queue is reached, the SPIF
flag is set. SPIF is not automatically reset. If interrupt-driven QSPI service is used, the service routine must
clear the SPIF bit to end the current interrupt request. Additional interrupt requests during servicing can
be prevented by clearing SPIFIE, but SPIFIE is buffered. Clearing it does not end the current request.
Wraparound mode is exited by clearing the WREN bit or by setting the HALT bit in SPCR3. Exiting
wraparound mode by clearing SPE is not recommended, as clearing SPE may abort a serial transfer in
progress. The QSPI sets SPIF, clears SPE, and stops the first time it reaches the end of the queue after
WREN is cleared. After HALT is set, the QSPI finishes the current transfer, then stops executing
commands. After the QSPI stops, SPE can be cleared.
0011
00001000
11110111
0100
00010000
11101111
0101
00100000
11011111
0110
01000000
10111111
0111
10000000
01111111
1000
00000000
11111111
1001
RESERVED
RESERVED
1010
1011
1100
1101
1110
1111
Table 15-22. PCS Enhanced Functionality (continued)
PCS_IN[3:0]
PCS_OUT[7:0] IF PCSV = 0
PCS_OUT[7:0] IF PCSV = 1
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...