Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Simple UART Code

2004-10-06 by upand_at_them

Do AVR's have a receive flag like PIC's do?

If so the pseudo-code would be this:

while 1
...while not receive_flag
...wend
...
...get receive_register data
...put data in transmit_register
wend

Mike


--- In AVR-Chat@yahoogroups.com, Dave VanHorn <dvanhorn@d...> wrote:
> At 12:41 PM 10/6/2004, Daniel Boyer wrote:
> 
> 
> >Does anyone have a simple program, or link to a program for simple
> >interface via uart with a terminal (ASM prefered)? 
> 
> The simplest way, is to set up the uart, and then load bytes into 
the uart tx register, looping till it's empty for the next byte.  Of 
course this is rather wasteful of time.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.