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
i have enabled all interrupts.
Am i suppose to include any registry/look up table or something?
Am i missing out something?
Regards Mayuri
Basic study of the 8051 architecture, and how to use it?
The 8051 has been around for years - there are plenty of examples, tutorials, etc; eg,
http://www.keil.com/books/8051books.asp http://www.keil.com/download/list/c51.htm
http://www.8052.com/tutorial www.8052.com/.../120112