
MOTOROLA
Chapter 15. Queued Serial Multi-Channel Module
15-17
Queued Serial Peripheral Interface
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
Table 15-12, 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
Figure 1-4 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)
S/U
0x30 501A
QSPI Control Register 1 (SPCR1)
S/U
0x30 501C
QSPI Control Register 2 (SPCR2)