Hi,
I have a problem that I have to urgently solve. I am using LPC3250. I want to handle the IRQ interrupt for the receive data. I mean, when data comes to the receive fifos, I want to get an IRQ interrupt and handle the tasks.
I wrote the following codes to enable the interrupt:
MIC_ER = 0x200; // enable uart5 interrupts UNIER = 0x01; // enable receive data available interrupt. UNFCR = 0x06; // reset the transmit and receive fifos UNLCR = 0x00; // Reset DLAB to 0.
However, when I proceed in main, the code suddenly goes to the irq handler, although no data comes to fifo. In continuously takes irq interrupt and never stops at all. What may be the problem? Am I doing anything wrong in enabling bits?
I'll be very glad to hear from you. Thanks for your helps..