Michael Graham

sprintf interaction with timer interrupt

Discussion created by Michael Graham on May 14, 2007
Latest reply on May 15, 2007 by Michael Graham
for the 9S12X chip I am getting the wrong results from the sprintf function if I am running in Large memory model and have a timer interrupt running.  It apears that the GPAGE register is not preserved correctly and the sprintf code fails to do its thing correctly.  Some times the code even locks up and does not return. the code runs in banked memory model without a hitch.  Do I have something set up wrong for the Large memory model?

Outcomes