AT90CAN128-16AE ATMEL Corporation, AT90CAN128-16AE Datasheet - Page 189

no-image

AT90CAN128-16AE

Manufacturer Part Number
AT90CAN128-16AE
Description
8-bit Avr Microcontroller With 128K Bytes of Isp Flash And CAN Controller.flash (Kbytes) 128 Vcc (V) 2.7-5.5 EEPROM (Kbytes) 4 SRAM (bytes) 4K CAN (mess. Obj.) 15
Manufacturer
ATMEL Corporation
Datasheet
USART Register
Description
USART0 I/O Data Register –
UDR0
USART1 I/O Data Register –
UDR1
USART0 Control and Status
Register A – UCSR0A
USART1 Control and Status
Register A – UCSR1A
4250C–CAN–03/04
• Bit 7:0 – RxBn7:0: Receive Data Buffer (read access)
• Bit 7:0 – TxBn7:0: Transmit Data Buffer (write access)
The USARTn Transmit Data Buffer Register and USARTn Receive Data Buffer Regis-
ters share the same I/O address referred to as USARTn Data Register or UDRn. The
Transmit Data Buffer Register (TXBn) will be the destination for data written to the
UDRn Register location. Reading the UDRn Register location will return the contents of
the Receive Data Buffer Register (RXBn).
For 5-, 6-, or 7-bit characters the upper unused bits will be ignored by the Transmitter
and set to zero by the Receiver.
The transmit buffer can only be written when the UDREn flag in the UCSRnA Register is
set. Data written to UDRn when the UDREn flag is not set, will be ignored by the
USARTn Transmitter. When data is written to the transmit buffer, and the Transmitter is
enabled, the Transmitter will load the data into the Transmit Shift Register when the
Shift Register is empty. Then the data will be serially transmitted on the TxDn pin.
The receive buffer consists of a two level FIFO. The FIFO will change its state whenever
the receive buffer is accessed.
• Bit 7 – RXCn: USARTn Receive Complete
This flag bit is set when there are unread data in the receive buffer and cleared when the
receive buffer is empty (i.e., does not contain any unread data). If the Receiver is dis-
abled, the receive buffer will be flushed and consequently the RXCn bit will become
zero. The RXCn flag can be used to generate a Receive Complete interrupt (see
description of the RXCIEn bit).
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
Initial Value
Initial Value
Read/Write
Read/Write
Bit
Bit
0
0
RXC0
RXC1
R/W
R/W
7
0
7
0
R
R
7
7
0
0
TXC0
TXC1
R/W
R/W
R/W
R/W
6
0
6
0
6
6
1
1
UDRE0
UDRE1
R/W
R/W
5
0
5
0
R
R
5
5
0
0
R/W
R/W
FE0
FE1
4
0
4
0
R
R
RXB0[7:0]
RXB1[7:0]
4
4
TXB0[7:0]
TXB1[7:0]
0
0
R/W
R/W
DOR0
DOR1
3
0
3
0
R
R
3
3
0
0
R/W
R/W
UPE0
UPE1
2
0
2
0
R
R
2
2
AT90CAN128
0
0
R/W
R/W
U2X0
U2X1
1
0
1
0
R/W
R/W
1
1
0
0
R/W
R/W
MPCM0
MPCM1
0
0
0
0
R/W
R/W
0
0
UDR0 (Read)
UDR0 (Write)
UDR1 (Read)
UDR1 (Write)
UCSR0A
UCSR1A
189

Related parts for AT90CAN128-16AE