RCTIME and PAUSE
ChuckC
Posts: 3
Before RCTIME is invoked, the standard appears to be a PAUSE 1. I went up to PAUSE 100 and the values were still climbing.
Is PAUSE 1 (1 ms) the standard for RCTIME? Does RCTIME only measure discharge where the charge is controlled by that PAUSE statement?
Thanks.
Is PAUSE 1 (1 ms) the standard for RCTIME? Does RCTIME only measure discharge where the charge is controlled by that PAUSE statement?
Thanks.
Comments
Normally RCTIME is used to measure the time it takes for the voltage to drop below the 1.4V (BS2) threshold, this usually means a capacitor is incorporated in the circuit.
The ammount of ms you pause after setting the pin to high totally depends on the time it takes your capacitor to charge, that relates to its capacity, smaller capacitors need less time to charge
My 1u capacitor uses a pause of 10ms to charge, tho i totally typed that one over from the text, so it could be less is enough to charge it.
So the duration of the pause would be dependand on how long a high is needed to charge the capacitor in your circuit.
I'm still very new to this all, but i hope this helps you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering