Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top