avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Serial Communication


From: Jamie Morken
Subject: Re: [avr-gcc-list] Serial Communication
Date: Wed, 28 Jan 2004 17:24:05 -0800

Hi,

This is the way to do it in avr-gcc:

SIGNAL(SIG_UART_RECV)
{
    //Store the received character
 data = inp(UDR);

}





----- Original Message -----
From: "ks_347" <address@hidden>
To: <address@hidden>
Sent: Wednesday, January 28, 2004 6:06 AM
Subject: [avr-gcc-list] Serial Communication


> Hello,
>
> I wanted to write this simple program of throwing "Hello" to the computer
through serial comm(using UART of the ucontroller). I am using ATMEGA162 and
STK500. I wrote the program using polling. Its working fine. Anybody has an
interrupt version? Or any suggestions/guidance on writing the interrupt
driven program. I am writing in C programming. I don't have any clue about
how to write interrupt handling routines.
>
> Thanks
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list



reply via email to

[Prev in Thread] Current Thread [Next in Thread]