Quad Serial Peripheral Interface (QuadSPI)
MPC5606S Microcontroller Reference Manual, Rev. 7
Freescale Semiconductor 1027
 
30.4.3.20 Serial Flash Mode Flag Register (QSPI_SFMFR)
The QSPI_SFMFR register provides all available flags about SFM command execution and arbitration 
which may serve as source for the generation of interrupt service requests. Note that the error flags in this 
register do not relate directly to the execution of the transaction in the serial flash device itself but only to 
the behavior and conditions visible in the QuadSPI module. 
1
There are special, vendor-dependent commands that use a special access mode of the attached serial flash device. 
Once this mode is enabled in the serial flash device there are only certain SFM commands allowed until this mode 
is explicitly disabled. Refer to the serial flash device specification for further details. 
Note that a mode bit collision is detected if other SFM commands are sent than those compatible with the special 
access mode. 
Address: QSPI_BASE + 0x160 Write: Enabled mode
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
R
1
1
When not in SFM mode all 0’s are read 
0000TBFFTBUF00000000RBOF RBDF
W w1c w1c w1c w1c
Reset0000100000000000
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
R
1
0 0 0 0 0 0 ABOF 0 IPAEF IPIEF ICEF 0 0 0 0 TFF
W w1c w1c w1c w1c w1c
Reset0000000000000000
Figure 30-20. Serial Flash Mode Flag Register (QSPI_SFMFR)
Table 30-33. QSPI_SFMFR field descriptions 
Field Description
TX Buffer Related Flags
TBFF TX Buffer Fill Flag: Set when the TX Buffer is not full. Refer to Section 30.5.3.6, TX Buffer Operation, 
for details. 
TBUF TX Buffer Underrun Flag: Set when FSM QSPI_IF tried to pull data although TX Buffer was empty. 
The command leading to the TX Buffer underrun is terminated without further write to the serial flash. 
The application must clear the TX Buffer in response to this event by writing a 1 into the 
QSPI_MCR[CLR_TXF] bit. 
RX Buffer Related Flags
RBOF RX Buffer Overflow Flag: Set when not all the data read from the serial flash device could be pushed 
into the RX Buffer. If the command leading to the RX Buffer Overflow is still running it is terminated 
without further reads from the serial flash. The content of the RX Buffer is not changed.