[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] lack of interruption
From: |
jeffrey traer bernstein |
Subject: |
Re: [avr-gcc-list] lack of interruption |
Date: |
23 Nov 2004 14:21:11 -0500 |
thanks!
On Tue, 2004-11-23 at 01:28, Julius Luukko wrote:
> On Monday 22 November 2004 20:34, jeffrey traer bernstein wrote:
> > #include <avr/io.h>
> > #include <avr/interrupt.h>
> >
> > void SIGNAL( SIG_OVERFLOW0 )
> > {
> > PORTA = 0x00;
> > }
> >
> >
> > int main()
> > {
> > DDRA = 0xff;
> > PORTA = 0x01;
> >
> > TIMSK = _BV(TOIE0);
> > TCCR0 = 0x05;
> > TCNT0 = 0;
> >
> > sei();
> >
> > while ( 1 );
> >
> > return 0;
> > }
>
> Hello,
>
> Your code lacks
>
> #include <avr/signal.h>
>
> and additionally the ISR should be defined as
>
> SIGNAL( SIG_OVERFLOW0 )
> {
> PORTA = 0x00;
> }
>
> Your version did not put anything into the interrupt vector table.