Jan-Erik, Something is wrong. I should be getting a one second high on RC4=20 every 15.x seconds. Where x is just a few uSs. I should then get a very=20 short pulse on RC5 also every 15.x seconds. I'm not getting these. I=20 have it narrowed down to the delay and the interrupt not working. Here are the bits for CMCON0 and ANSEL in that order. They are:=20 0b00000111 and 0b00010000. This is a 16f684. I've gone through it at=20 least a dozen different times. I tried the suggestions that James has=20 made and they haven't worked. Hum, I'm lost right now. I'm sorry for=20 being a pain. Thanks, rich! On 7/23/2014 9:17 AM, Jan-Erik Soderholm wrote: > Hi. > That shouldn't be any problem. Simulating timers works > very well in MPSIM. Very little setup, no external > "stimuli" to setup. Just put a breakpoint in the ISR, > open the "watchtimer" window and measure the time between > two stops at the breakpoint. > > - Let the code run to the brakpoint. > - Zero the timer in the watchtimer. > - Let the code run again to the same breakpoint. > > Now the watchtimer should show the number of cycles and > (if the processor frequency has been setup correctly) > the actual time elapsed. > > Jan-Erik. > > > > Richard R. Pope wrote 2014-07-23 14:59: >> --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .