[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] UART again
From: |
Dean Ferreyra |
Subject: |
RE: [avr-gcc-list] UART again |
Date: |
Fri, 02 Nov 2001 11:39:23 -0800 |
Hi Carsten,
> INTERRUPT( SIG_UART_DATA )
> {
> static led = 0;
>
> if( led & 1 )
> sbi( PORTB, 1 );
> else
> cbi( PORTB, 1 );
>
> outp( 0, UDR );
>
> led++;
> }
I suggest that you use SIGNAL( SIG_UART_DATA ) instead. When you use
INTERRUPT( ... ), interrupts are automatically enabled in the prologue code
before your C code is executed and (I think) this leads the MCU to
re-interrupt endlessly.
Dean