Queued Serial Multi-Channel Module
MPC561/MPC563 Reference Manual, Rev. 1.2
15-16
Freescale Semiconductor
A dedicated 160-byte RAM is used to store received data, data to be transmitted, and a queue of
commands. The CPU can access these locations directly. This allows serial peripherals to be treated like
memory-mapped parallel devices.
The command queue allows the QSPI to perform up to 32 serial transfers without CPU intervention. Each
queue entry contains all the information needed by the QSPI to independently complete one serial transfer.
A pointer identifies the queue location containing the data and command for the next serial transfer.
Normally, the pointer address is incremented after each serial transfer, but the CPU can change the pointer
value at any time. Support for multiple-tasks can be provided by segmenting the queue.
The QSPI has four peripheral chip-select pins. The chip-select signals simplify interfacing by reducing
CPU intervention. If the chip-select signals are externally decoded, 16 independent select signals can be
generated.
Wrap-around mode allows continuous execution of queued commands. In wraparound mode, newly
received data replaces previously received data in the receive RAM. Wrap-around mode can simplify the
interface with A/D converters by continuously updating conversion values stored in the RAM.
Continuous transfer mode allows transfer of an uninterrupted bit stream. From 8 to 512 bits can be
transferred without CPU intervention. Longer transfers are possible, but minimal intervention is required
to prevent loss of data. A standard delay of 17 IMB3 clocks (0.8 µs with a 40-MHz IMB3 clock) is inserted
between the transfer of each queue entry.
15.6.1
QSPI Registers
The QSPI memory map, shown in
, includes the QSMCM global and pin control registers, four
QSPI control registers (SPCR[0:3]), the status register (SPSR), and the QSPI RAM. Registers and RAM
can be read and written by the CPU. The memory map can be divided into supervisor-only data space and
assignable data space. The address offsets shown are from the base address of the QSMCM module. Refer
to
for a diagram of the MPC561/MPC563 internal memory map.
Table 15-12. QSPI Register Map
Access
1
Address
MSB
2
0
LSB
15
S/U
0x30 5018
QSPI Control Register 0 (SPCR0)
See <XrefBlue>Table 15-13 for bit descriptions.
S/U
0x30 501A
QSPI Control Register 1 (SPCR1)
See <XrefBlue>Table 15-15 for bit descriptions.
S/U
0x30 501C
QSPI Control Register 2 (SPCR2)
See <XrefBlue>Table 15-16 for bit descriptions.
S/U
0x30 501E/
0x30 501F
QSPI Control Register 3 (SPCR3)
See <XrefBlue>Table 15-17 for bit descrip-
tions.
QSPI Status Register (SPSR)
See <XrefBlue>Table 15-18 for bit descrip-
tions.
S/U
0x30 5140 –
0x30 517F
Receive Data RAM (32 half-words)
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...