Yahoo Groups archive

AVR-Chat

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

Message

Re: Beginner wants to Program UART in C

2006-12-08 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "pjcxb" <p.j.bro@...> wrote:
> Would someone kindly point me in the right direction to find 
> some introductory information and some "C" code to do this task?
The best way to start is to read the USART section in the mega8 
datasheet; it begins on page 133 of the 10/2006 edition.  Several 
pages into that section, you'll find C code examples for initializeing 
the USART and for transmitting/receiving in polled mode.  Once you 
understand that process and if you have an understanding of Interrupt 
Service Routines in general it is a small step to move on to interrupt 
driven transmission/reception.

Don
ZBasic Microcontrollers
http://www.zbasic.net

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.