My application uses the Modulus downcounter to generate interrupts when the count reaches zero to update a real time clock. Calling a subroutine in ppage $22 hangs up the micro unless Modulus interrupts are disabled. The interrupt service routine is in a non-paged location. The same thing happens with serial communications to a LCD display. I've had to change serial operations to a polling mode to avoid those interrupts.
Why can't interrupts be used with the CALL function? The RTI instruction does not seem to restore the ppage value and this may be the reason. Can anyone shed some light on this problem?
The processor is a MC9S12DP512.