Content originally posted in LPCWare by 12345 on Mon Aug 01 18:53:39 MST 2011
For the LPC microcontroller....
For example something look like below...
void UART_IRQHandler(void) // not complete
{
NVIC_DisableIRQ(UART_IRQn);
if (IIRValue == IIR_RDA)
{
for(i=0;i<max;i++)
{
if (i<256)
{ucRXBuffer[wReceiveDataEnd++] = LPC_UART->RBR;
}
NVIC_EnableIRQ(UART_IRQn);
}