Bill, > I just did an MPLAB sim on your asm version. It works as you=20 > would expect. Great, it worked for both the 16F84 and 16F877 sim' targets and the = 16F84 hardware debugger but not the 16f877 (with small changes between = the software versions for target compatibility). > equates need to be moved up to 0x20 or higher. Right now, they are in = the=20 > middle of the SFRs. Doh! O.K. That was me trying to hack something quick in ASM to prove a = point. The Hitech C version should have all that sorted properly. It may = be masking something however. > is your program really working and your emulator just isn't showing = you or is there really something=20 > wrong? =20 Ummm... I see. Yes I could execute some LED (pin) toggling in the ISR as = a test and measure with my scope. That would prove its rate is fixed or random. > until we can sort out why TMR0 doesn't look like it works. =20 This might be the case. The code did call the ISR function but I didn't = measure the period between calls, only stopped the debugger and checked = the TMR0 register value. It may have just randomly hit 0 and triggered = or in fact counted up and wrapped around as required. > If not, might be time to call your emulator manufacturer and talk to = him. Its the MicroChip made ICD (In Circuit Debugger) with the latest (last = week) downloaded firmware. Thanks for your help Pete -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu