24.12.2 USART Control and Status Register n A
Name: | UCSRA |
Offset: | 0xC0 + n*0x08 [n=0..1] |
Reset: | 0x20 |
Property: | - |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RXCn | TXCn | UDREn | FEn | DORn | UPEn | U2Xn | MPCMn | ||
Access | R | R/W | R | R | R | R | R/W | R/W | |
Reset | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
Bit 7 – RXCn USART Receive Complete
Bit 6 – TXCn USART Transmit Complete
Bit 5 – UDREn USART Data Register Empty
Bit 4 – FEn Frame Error
This bit is set if the next character in the receive buffer had a frame error when received. I.e., when the first stop bit of the next character in the receive buffer is zero. This bit is valid until the receive buffer (UDRn) is read. The FEn bit is zero when the stop bit of received data is one. Always set this bit to zero when writing to UCSRnA.
This bit is reserved in Master SPI Mode (MSPIM).
Bit 3 – DORn Data OverRun
This bit is set if a data overrun condition is detected. A data overrun occurs when the receive buffer is full (two characters), it is a new character waiting in the receive shift register, and a new start bit is detected. This bit is valid until the receive buffer (UDRn) is read. Always set this bit to zero when writing to UCSRnA.
This bit is reserved in MSPIM.
Bit 2 – UPEn USART Parity Error
This bit is set if the next character in the receive buffer had a parity error when received and the parity checking was enabled at that point (UCSRnC.UPM1 = 1). This bit is valid until the receive buffer (UDRn) is read. Always set this bit to zero when writing to UCSRnA.
This bit is reserved in MSPIM.
Bit 1 – U2Xn Double the USART Transmission Speed
This bit only has effect for the asynchronous operation. Write this bit to zero when using synchronous operation.
Writing this bit to one will reduce the divisor of the baud rate divider from 16 to 8 effectively doubling the transfer rate for asynchronous communication.
This bit is reserved in MSPIM.
Bit 0 – MPCMn Multi-processor Communication Mode
This bit enables the Multi-processor Communication mode. When the MPCM bit is written to one, all the incoming frames received by the USART receiver n that do not contain address information will be ignored. The transmitter is unaffected by the MPCM setting. Refer to Multi-Processor Communication Mode for details.
This bit is reserved in MSPIM.