Quote Originally Posted by Acetronics View Post
Hi, Scootie

First thought ...

WHICH Pic are you using

Second thought ...

Your FULL program ( " copied and pasted " - not re-written - ) would be useful here

Third Thought ...

a nice FULL SCHEME would be interesting to verify everything

Alain
... and what crystal you are using???

From the manual


RCTIME may be used to read a potentiometer (or some other resistive
device). Resistance can be measured by discharging and timing the
charge (or vice versa) of a capacitor through the resistor (typically 5K to
50K).

The resolution of RCTIME is dependent upon the oscillator frequency. If
a 4MHz oscillator is used, the time in state is returned in 10us
increments. If a 20MHz oscillator is used, the time in state will have a
2us resolution. Defining an OSC value has no effect on RCTIME. The
resolution always changes with the actual oscillator speed.