I have done some more testing and found that the change in frequency pops up right after a RTI instruction from an interrupt routine is executed. All the original code is in assembly so I am trying to stick with that for now instead of converting it to C.
The interrupt is from an overflow of one of the TPM timers which is expected. It gets to the routine without problems and executes the code correctly but when the RTI instruction is executed the frequency changes for ~8mhz to 16mhz. Even if i single step over the RTI instruction it will not stop in the code and show the next instruction. I have to hit the Stop arrow in the debugger to get back to code. I'm wondering if maybe the return information is getting stepped on in the interrupt routine.
Thanks for help, I'm a newbee to this processor, more use to the Microchip and zworld stuff.
