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

Clearing CR0 interupt

Hi,
Using LPC2129.
I am using timer 0 to interupt on the falling edge of the signal on P0,2 (CAP0.0).
The interupt works fine, however I can't seem to clear the 'CR0 Interrupt' Flag after each interrupt, it just loops (always interrupting).
I have tried setting T0IR to 0x00000000 but this 'CR0 Interrupt' flag just sets it back again.
I can manually untick the flag in debug and this works fine but how do I do it in my code?
Any help would be much appreciated.
Thanks,
Andy.

0