Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

NO Return from int routine

2004-04-13 by ereihani

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;
}

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.