Queued Serial Multi-Channel Module
MPC561/MPC563 Reference Manual, Rev. 1.2
15-20
Freescale Semiconductor
15.6.1.3
QSPI Control Register 2 (SPCR2)
SPCR2 contains QSPI queue pointers, wraparound mode control bits, and an interrupt enable bit. The CPU
has read/write access to SPCR2, but the QSPI has read access only. Writes to this register are buffered.
New SPCR2 values become effective only after completion of the current serial transfer. Rewriting
NEWQP in SPCR2 causes execution to restart at the designated location. Reads of SPCR2 return the
current value of the register, not the buffer.
15.6.1.4
QSPI Control Register 3 (SPCR3)
SPCR3 contains the loop mode enable bit, halt and mode fault interrupt enable, and the halt control bit.
The CPU has read/write access to SPCR3, but the QSPI has read access only. SPCR3 must be initialized
before QSPI operation begins. Writing a new value to SPCR3 while the QSPI is enabled disrupts operation.
MSB
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
LSB
15
Field SPIFIE WREN WRTO
ENDQP
—
NEWQP
SRESET
0000_0000_0000_0000
Addr
0x30 501C
Figure 15-13. SPCR2 — QSPI Control Register 2
Table 15-16. SPCR2 Bit Descriptions
Bits
Name
Description
0
SPIFIE
SPI finished interrupt enable. Refer to
Section 15.6.4.2, “QSPI Interrupts
.”
0 QSPI interrupts disabled
1 QSPI interrupts enabled
1
WREN
Wrap enable. Refer to
Section 15.6.5.8, “Master Wraparound Mode
0 Wraparound mode disabled.
1 Wraparound mode enabled.
2
WRTO
Wrap to. When wraparound mode is enabled and after the end of queue has been reached,
WRTO determines which address the QSPI executes next. The end of queue is determined by
an address match with ENDQP.
0 Wrap to pointer address 0x0
1 Wrap to address in NEWQP
3:7
ENDQP
Ending queue pointer. This field determines the last absolute address in the queue to be
completed by the QSPI. After completing each command, the QSPI compares the queue pointer
value of the just-completed command with the value of ENDQP. If the two values match, the QSPI
sets SPIF to indicate it has reached the end of the programmed queue. Refer to
” for more information.
8:10
—
Reserved
11:15
NEWQP
New queue pointer value. This field contains the first QSPI queue address. Refer to
Section 15.6.4, “QSPI Operation
” for more information.
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...