This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cant execute ISR second time

hello frens,

i written code for UART0, where ISR execute when data received from serial port.

 void received(void) __irq
        {
                 unsigned char i;
                 i = U0RBR;
                 UART0_SendByte(i+1);
        }

but it only execute only one time. please help me to solve this problem.

regards,
pankaj Jain

Parents
  • Did you look at any sample code yet? Or checked the user manual for the processor about how to acknowledge interrupts? You still haven't tried to acknowledge the interrupt before returning from the interrupt handler.

    Maybe you should download the code package available for your specific processor from NXP and really spend some time looking at that code. Yes, the quality isn't so good. But it does contain the magic lines you seem to have forgotten.

    How much of the documentation available at:
    ics.nxp.com/.../
    have you looked at?

Reply
  • Did you look at any sample code yet? Or checked the user manual for the processor about how to acknowledge interrupts? You still haven't tried to acknowledge the interrupt before returning from the interrupt handler.

    Maybe you should download the code package available for your specific processor from NXP and really spend some time looking at that code. Yes, the quality isn't so good. But it does contain the magic lines you seem to have forgotten.

    How much of the documentation available at:
    ics.nxp.com/.../
    have you looked at?

Children
No data