RCTIME Question?
MichelB
Posts: 154
Hi all, in BASIC Stamp Manual and in Help of BASIC Stamp Editor v2.4.2 we can see:
time = -tau x (ln(Vfinal / Vinitial))
Time = -1 x 10E-3 x (ln(5.0v / 1.4v)) = 1.273 x 10E-3, Where the sign "-" gone?
time = -tau x (ln(Vfinal / Vinitial))
Time = -1 x 10E-3 x (ln(5.0v / 1.4v)) = 1.273 x 10E-3, Where the sign "-" gone?
Comments
Vfinal=1.4
Vinitial=5
ln(1.4/5) = ln(0.28) = -1.272965675813
and
-1E-3 * -1.272965675813 = +1.272965675813 E-3
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I have an article on the high resolution mode of the DS1620 posted at www.emesys.com/OL2d1620.htm#DS1620-HR. Dallas Semi revised the DS1620 so that the counts per degree is now fixed at 16, rather than a higher but variable number. The code still works, with either the old or the new version of the chip.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
-Stephanie Lindsay
Editor, Parallax Inc.
Best regards.