Christian Winter

Real-time Interrupt on HC12 and Pulse Accumulator

Discussion created by Christian Winter on Mar 22, 2006
Latest reply on Mar 22, 2006 by Christian Winter

I am trying to use the real-time interrupt on the HC12. Currently, it interrupts every 32 ms and after about 5 seconds it toggles Port A. However, when it gets to the part where it toggles Port A, I got a pulse accumulator overflow exception. Do I need to do anything with the pulse accumulator to use the real-time interrupt? I just set the RTI Control Register and I set the RTI Flag whenever the interrupt is called to clear the interrupt.

My code is at:

The first time the label TOGGLE is called, the PA overflows.

Thanks for all and any help.

Message Edited by cjw on 03-21-200606:12 PM