HI!
My progran does not return fron int routine.
My LED in PORTA STAYS OFF!!
I have also read from UDR so the RXC flag is cleared so what is the
problem with it?
amd before i did:"UCSRA&=0x7f" in int routine but it didn't have any
result too!
Please guide me!
Regards,
Ehsan Reihani
#include <mega16.h>
#include <delay.h>
int i;
interrupt [USART_RXC] void USART_RECEIVE_COMPLETE(void)
{
delay_ms(170);
PORTA=0xff;
delay_ms(170);
PORTA=0x00;
i=UDR;
}
void main(void)
{
UBRRL=0x0C;
UCSRB|=0x90;
UCSRC=0x86;
#asm("sei");
PORTA=0xff;
}Message
NO Return from int routine
2004-04-13 by ereihani