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

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

Re: [avr-gcc-list] basic UART problem / example


From: Derric Tubbs
Subject: Re: [avr-gcc-list] basic UART problem / example
Date: Fri, 17 Jun 2005 06:13:48 -0700 (PDT)

You're probably having the exact same problem I had
the other day when doing my first UART test case.  You
need to use the SIGNAL interrupt macro instead of
INTERRUPT.  SIGNAL disables global interrupts when it
first enters the routine and enables them again upon
exit, so that your ISR cannot be interrupted itself.  

Tubbs

--- Hugo González Monteverde <address@hidden>
wrote:

> Have you tried polling mode first? There is a common
> gotcha where you 
> have to disable overall interrupts so that you get
> the data from the 
> UART input register and avoid the interrupt to keep
> trigering.
> 
> Maybe if you can post a copy of your ISR...
> 
> 
> Hugo
> 
> Przemek Urbanski wrote:
> > Hey,
> > 
> > I am new to avr programming. I can not get my
> at90s8515 talk to rs232. I
> > wrote basic interrupt driven program for at90s8515
> talking via UART to
> > rs232 on my PC. Compiled using CodeVisionAVR. It
> worked fine.
> > 
> > Now I am using:
> > 
> > avr-gcc (GCC) 3.4.4
> > binutils 2.15
> > avr-libc 1.2.3
> > 
> > on linux (Fedora Core 3)
> > 
> > Could you please send me, or point me any UART
> examples, which works compiled with avr-gcc?
> > 
> > Thnx AVR freaks :>
> > P
> > 
> > 
> > 
> >
>
------------------------------------------------------------------
> > Zobacz projekt nowej strony glownej portalu
> INTERIA.PL
> > 
> >>>http://link.interia.pl/f188f <<
> > 
> > 
> > 
> > 
> > _______________________________________________
> > AVR-GCC-list mailing list
> > address@hidden
> >
>
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> > 
> 
> 
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
>
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> 





reply via email to

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