![NXP Semiconductors MKL27Z128VFM4 Reference Manual Download Page 688](http://html1.mh-extra.com/html/nxp-semiconductors/mkl27z128vfm4/mkl27z128vfm4_reference-manual_1721847688.webp)
UARTx_S1 field descriptions (continued)
Field
Description
0
Receive data buffer is empty.
1
Receive data buffer is full.
4
IDLE
Idle Line Flag
After the IDLE flag is cleared, a frame must be received (although not necessarily stored in the data buffer,
for example if C2[RWU] is set). To clear IDLE, read UART status S1 with IDLE set and then read D.
IDLE is set when either of the following appear on the receiver input:
• 10 consecutive logic 1s if C1[M] = 0
• 11 consecutive logic 1s if C1[M] = 1 and C4[M10] = 0
• 12 consecutive logic 1s if C1[M] = 1, C4[M10] = 1, and C1[PE] = 1
Idle detection is not supported when7816Eis set/enabled and hence this flag is ignored.
NOTE: When RWU is set and WAKE is cleared, an idle line condition sets the IDLE flag if RWUID is set,
else the IDLE flag does not become set.
0
Receiver input is either active now or has never become active since the IDLE flag was last cleared.
1
Receiver input has become idle or the flag has not been cleared since it last asserted.
3
OR
Receiver Overrun Flag
OR is set when software fails to prevent the receive data register from overflowing with data. The OR bit is
set immediately after the stop bit has been completely received for the dataword that overflows the buffer
and all the other error flags (FE, NF, and PF) are prevented from setting. The data in the shift register is
lost, but the data already in the UART data registers is not affected. If the OR flag is set, no data is stored
in the data buffer even if sufficient room exists. Additionally, while the OR flag is set, the RDRF and IDLE
flags are blocked from asserting, that is, transition from an inactive to an active state. To clear OR, read
S1 when OR is set and then read D. See functional description for more details regarding the operation of
the OR bit. In 7816 mode, it is possible to configure a NACK to be returned by programing
C7816[ONACK].
0
No overrun has occurred since the last time the flag was cleared.
1
Overrun has occurred or the overrun flag has not been cleared since the last overrun occured.
2
NF
Noise Flag
NF is set when the UART detects noise on the receiver input. NF does not become set in the case of an
overrun. To clear NF, read S1 and then read D.
0
No noise detected.
1
Noise detected in the received character in D.
1
FE
Framing Error Flag
FE is set when a logic 0 is accepted as the stop bit. FE does not set in the case of an overrun. FE inhibits
further data reception until it is cleared. To clear FE, read S1 with FE set and then read D. The last data in
the receive buffer represents the data that was received with the frame error enabled. Framing errors are
not supported when 7816E is set/enabled. However, if this flag is set, data is still not received in 7816
mode.
0
No framing error detected.
1
Framing error.
0
PF
Parity Error Flag
PF is set when PE is set and the parity of the received data does not match its parity bit. The PF is not set
in the case of an overrun condition. To clear PF, read S1 and then read D.
Table continues on the next page...
Memory map and registers
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
688
Freescale Semiconductor, Inc.