PHXSYS wrote: > I tried your suggested code modification and was still not able to > make it work. I must be overlooking something. I wasn't really > sure of what to do with the " goto cleanup". Hi, Nichole. Sorry... I must have left out the label when I typed up that code. The "CLEANUP" label should appear just before the "MOVF PULSE1S,W" line (right after the two line of comments). > I have checked my hardware and its ok. The program you suggested > just returned the 250 overflow value. How long does it take for the capacitor to discharge in your circuit? At 4 MHz, the value in PULSE1S will be equal to 1 count per 6 microseconds... So if the cap takes longer than 1.5 milliseconds to discharge, that PULSE1S value will be 250. -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499