English
Language : 

HE84G762B Datasheet, PDF (51/60 Pages) King blillion Electronics Co.,Ltd. – 8-BIT MICRO-CONTROLLER
KING BILLION ELECTRONICS CO., LTD
駿億電子股份有限公司
21.5.Line Status Register
Bit 7
0
Bit 6
TEMT
Bit 5
THRE
Bit 4
BI
Bit 3
FE
Bit 2
PE
HE84G762B
HE80004 Series
Bit 1
OE
Bit 0
DR
Name
DR
OE
PE
Description
Receiver Data Ready
DR indicates status of RBR. It will be set to logic 1 when RBR data is valid and will
be reset to logic 0 when RBR is empty. When line errors (OE/PE/FE/BI) happen, DR
will also be set to logic 1 and RBR will be updated to reflect the Data bits portion of
the frame.
Overrun Error
This bit will be set when the next character is transferred into RBR before the
previous RBR data is read by the CPU. Even though DR will still be 1 when OE is set
to logic 1, the previous frame data stored in RBR which is not read by the CPU is
trashed and can‘t be recovered.
Parity Error
This bit will be set to logic 1 only when the Parity is enabled and the Parity bit is not
at the logic state it should be. For Even Parity, the Parity bit should be 1 if an odd
number of 1s in the Data bits is received; otherwise, the Parity bit should be 0. For
Odd Parity, the Parity bit should be 1 if an even number of 1s in the Data bits is
received; otherwise, the Parity bit should be 0. For Stick Parity '1', the Parity bit
should be 1. For Stick Parity '0', the Parity bit should be 0.
Framing Error
FE
FE will be reset to logic 0 whenever SIN is sampled high at the center of the first
Stop bit, regardless of how many Stop bits the UART is configured to.
BI
THRE
TEMT
Break Interrupt
BI will be set to logic 1 whenever SIN is low for longer than the whole frame (the
time of Start bit + Data bits + Parity bit + Stop bits), not at the SIN rising edge where
Break is negated. If SIN is still low after BI is reset to logic 0 by reading LSR, BI will
not be set to logic 1 again. Since Break is also a Framing error, FE will also be set to
1 when BI is set.
THR Empty
THRE will be set to logic 1 whenever THR is empty which indicates that the
transmitter is ready to accept new data to transmit.
Both THR and TSR are Empty
This bit will be set to logic 1 when THRE is set to 1 and the last Data bit in the TSR
is shifted out through SOUT.
* The four error flags (OE, PE, FE and BI) of LSR will be reset to logic 0 after a LSR read.
Since the SIN and SOUT of UART pins are shared with PRTD[1..0], users can use the mask option to
enable the UART function and select PRTD[1..0] function.
MO_UART
0 PRTD[1:0] = I/O Pin
1 PRTD[1:0] = UART Pin
June 1, 2004
51
V0.92
This specification is subject to change without notice. Please contact sales person for the latest version before use.