
QSM
REFERENCE MANUAL
QSPI SUBMODULE
MOTOROLA
4-11
tion of either flag causes the QSPI to send a hardware interrupt to the CPU. When
HMIE is clear, the asserted flag does not cause an interrupt.
HALT — Halt
1 = Halt enabled
0 = Halt not enabled
This bit is used by the CPU to stop the QSPI on a queue boundary. The QSPI halts in
a known state from which it can later be restarted. When HALT is asserted by the CPU,
the QSPI finishes executing the current serial transfer (up to 16 bits) and then halts.
While halted, if the command control bit (CONT of the QSPI RAM) for the last com-
mand was asserted, the QSPI continues driving the peripheral chip-select pins with the
value designated by the last command before the halt. If CONT was clear, the QSPI
drives the peripheral chip-select pins to the value in QSM register PORTQS.
If HALT is asserted during the last command in the queue, the QSPI completes the
last command, asserts both HALTA and SPIF, and clears SPE. If the last queue com-
mand has not been executed, asserting HALT does not set SPIF nor clear SPE. QSPI
execution continues when the CPU clears HALT.
4.3.5 QSPI Status Register (SPSR)
SPSR contains QSPI status information. Only the QSPI can assert the bits in this reg-
ister. The CPU reads this register to obtain status information and writes this register
to clear status flags. CPU writes to CPTQP have no effect.
* SPCR3 — QSPI Control Register 3
SPIF — QSPI Finished Flag
1 = QSPI finished
0 = QSPI not finished
SPIF is set when the QSPI finishes executing the last command determined by the ad-
dress contained in ENDQP in SPCR2. When the address of the command being exe-
cuted matches the ENDQP, the SPIF flag is set after finishing the serial transfer.
If wraparound mode is enabled (WREN = 1), the SPIF is set, after completion of the
command defined by ENDQP, each time the QSPI cycles through the queue. If SPIFIE
in SPCR2 is set, an interrupt is generated when SPIF is asserted. Once SPIF is set,
the CPU may clear it by reading SPSR followed by writing SPSR with a zero in SPIF.
MODF — Mode Fault Flag
1 = Another SPI node requested to become the network SPI master while the QSPI
was enabled in master mode (MSTR = 1), or the PCS0/SS pin was incorrectly
pulled low by external hardware.
0 = Normal operation
SPSR
— QSPI Status Register
$YFFC1F
15
8
7
6
5
4
3
2
1
0
SPCR3*
SPIF
MODF HALTA
0
CPTQP
RESET:
0
0
0
0
0
0
0
0
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.