Jim Kueneman wrote: > .. > I get exactly 22us from the btfsc instruction to the next btfsc > instruction. If I place a break and use F9 Run I also get 22us. By > manually counting the instructions it should work as well. > > BUT, If I try to use F8 and step over the call _Process I get 22.4us > (10Mhz clock) It seems like F8 returns from the call instruction with 1 > cycle to many. Anyone else noticed this or am I missing something obvious? Step-over will cause the timer to count one extra instruction. This is a by-product of the way that step-over is done for PICMASTER. Single stepping is usually not recommended for timing, especially for the 12-bit core parts. If you set breakpoints and run at full speed, the stopwatch will be accurate. Or if you use the trace window or complex breakpoint dialog trace with MPLAB-SIM, you will get accurate timings on the time stamp. -- ___________________________ | Darrel Johansen | | tempe, arizona | | darrelj@primenet.com | |_________________________|