[SOLVED] Lay man question on AVR serial communication.

Status
Not open for further replies.

ark5230

Advanced Member level 3
Joined
Jun 29, 2009
Messages
862
Helped
163
Reputation
324
Reaction score
140
Trophy points
1,323
Location
India
Activity points
6,187
Two simple queries

  1. Is there something like serial data buffer in AVR microcontrollers Atmega 16/32?
  2. If serial input is coming to MCU, the incoming data will not be accessible after the data stream is over?
 

UDR is the register which holds the serial byte. You have to use Serial receive interrupt to read the bytes. If the serial transmission is complete then UDR holds the last byte that was transmitted to AVR.
 
Thanks
UDR holds the latest byte received.
 

Hi,

THE given answer is true. It , relates on UART communication.
There are at least two other serial communication interfaces: SPI and TWI.

In either case you need to read the receive register before a new byte tranfer is complete, else you will loose data.

Klaus
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…