> Thanks for your reply. I have stepped through the code. In fact, here > is the simulator trace from reset. It was formatted to oblivion by your email settings, so I didn't look at it. Someone else has pointed out meanwhile that there apparently is a known bug in the MPLAB simulator regarding timer 0 that I wasn't aware of. Are you seeing problems on the real chip? With the ICD or ICE? ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics