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

C166 vs. ARM7 interrupt clearing

Hello,
I have been reading the details concerning interrupt handling in the ARM core. I see how nested/not nested interrupts work, and that it is important to clear the interrupt in the handler to prevent an infinite loop. I see the assembly instruction for that, too. But why don't I see something similar when I compile the code for a C166? What did I miss?

Thanks in advane,
Cactus Blip

Parents
  • I don't know the ARM but on the C166 most interrupts are cleared automatically by the hardware when you vector to the ISR. Interrupts are still active and if any interrupt becomes active that has a higher level then the current one it will vector to it. There are exceptions such as the NMI which will result in an endless loop unless the software clears the flag.

    I don't know why you are reading an ARM manual and wondering why the C166 does act the same way. In my opinion it is like comparing apples to oranges.

Reply
  • I don't know the ARM but on the C166 most interrupts are cleared automatically by the hardware when you vector to the ISR. Interrupts are still active and if any interrupt becomes active that has a higher level then the current one it will vector to it. There are exceptions such as the NMI which will result in an endless loop unless the software clears the flag.

    I don't know why you are reading an ARM manual and wondering why the C166 does act the same way. In my opinion it is like comparing apples to oranges.

Children