Hello sir,
I need to write an ISR for serial interrupt.
void serial_int (void) interrupt 4 //ISR for Serial interrupt
{
if((IE & BIT4) == BIT4) //UART interrupt source
REN = 1; // enables serial port reception { while(RI == 0) {} RI = 0; ucRxChar1 = SBUF; } this is how i have written the ISR... I am unable to run my program... it is giving error... is der any other way to write ISR?
REGARDS MAYURI
Try this to check the interrupt.. that would require that someone had an ICE for the ADUC842, or, at least, an ADUC842. '51 derivatives are NOT identical re I/O
I do not know the ADUC but does it have separate UART interrupts for recieve and transmit? code assumes so
Erik