![Atmel AT90S8414 Manual Download Page 54](http://html1.mh-extra.com/html/atmel/at90s8414/at90s8414_manual_3003427054.webp)
4-54
AT90S8414
Preliminary
where a transmitting application must enter receive mode and free the communications bus immediately after completing
the transmission.
When the TXCIE bit in UCR is set, setting of TXC causes the UART Transmit Complete interrupt to be executed. TXC
is cleared by hardware when executing the corresponding interrupt handling vector. Alternatively, the TXC bit is cleared
(zero) by first reading USR while TXC is set and then writing UDR.
This bit is set (one) during reset to indicate that the transmitter is not busy transmitting anything.
Bit 5 - UDRE : UART Data Register Empty:
This bit is set (one) when a character written to UDR is transferred to the Transmit shift register. Setting of this bit
indicates that the transmitter is ready to receive a new character for transmission.
When the UDRIE bit in UCR is set, setting of UDRE causes the UART Transmit Complete interrupt to be executed.
UDRE is cleared by hardware when executing the corresponding interrupt handling vector. Alternatively, the UDRE bit
is cleared (zero) by first reading USR while UDRE is set and then writing UDR.
UDRE is set (one) during reset to indicate that the transmitter is ready.
Bit 4 - FE : Framing Error:
This bit is set if a Framing Error condition is detected, i.e. when the stop bit of an incoming character is zero.
The FE bit is cleared (zero) by first reading USR while FE is set and then reading UDR.
Bit 3 - OR : OverRun:
This bit is set if an Overrun condition is detected, i.e. when a character already present in the UDR register is not read
before the next character is transferred from the Receiver Shift register.
The OR bit is cleared (zero) by first reading USR while OR is set and then reading UDR.
Bits 2..0 - Res : Reserved bits:
These bits are reserved bits in the AT90S8414 and will always read as zero.
THE UART CONTROL REGISTER - UCR
Bit
7
6
5
4
3
2
1
0
$0A
RXCIE
TXCIE
UDRIE
RXEN
TXEN
CHR9
RXB8
TXB8
UCR
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R
W
Initial value
0
0
0
0
0
0
0
0
Bit 7 - RXCIE : RX Complete Interrupt Enable:
When this bit is set (one), a setting of the RXC bit in USR will cause the Receive Complete interrupt routine to be
executed provided that global interrupts are enabled.
Bit 6 - TXCIE : TX Complete Interrupt Enable:
When this bit is set (one), a setting of the TXC bit in USR will cause the Transmit Complete interrupt routine to be
executed provided that global interrupts are enabled.