atmega323l ATMEL Corporation, atmega323l Datasheet - Page 83

no-image

atmega323l

Manufacturer Part Number
atmega323l
Description
Atmega323 8-bit Avr Microcontroller With 32k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
Parity Generator
Disabling the Transmitter
1457G–AVR–09/03
Empty Interrupt, otherwise a new interrupt will occur once the interrupt routine
terminates.
The Transmit Complete (TXC) Flag bit is set one when the entire frame in the Transmit
Shift Register has been shifted out and there are no new data currently present in the
Transmit Buffer. The TXC Flag bit is automatically cleared when a Transmit Complete
Interrupt is executed, or it can be cleared by writing a one to its bit location. The TXC
Flag is useful in half-duplex communication interfaces (like the RS-485 standard), where
a transmitting application must enter Receive mode and free the communication bus
immediately after completing the transmission.
When the Transmit Compete Interrupt Enable (TXCIE) bit in UCSRB is set, the USART
Transmit Complete Interrupt will be executed when the TXC Flag becomes set (pro-
vided that global interrupts are enabled). When the Transmit Complete Interrupt is used,
the interrupt handling routine does not have to clear the TXC Flag, this is done automat-
ically when the interrupt is executed.
The Parity Generator calculates the parity bit for the serial frame data. When parity bit is
enabled (UPM1 = 1), the Transmitter control logic inserts the parity bit between the last
data bit and the first stop bit of the frame that is sent.
The disabling of the Transmitter (setting the TXEN to zero) will not become effective
until ongoing and pending transmissions are completed, i.e., when the Transmit Shift
Register and Transmit Buffer Register does not contain data to be transmitted. When
disabled, the Transmitter will no longer override the TxD pin.
ATmega323(L)
83

Related parts for atmega323l