RC Time
Eric R
Posts: 225
Does anyone have a magical formula for cap/resist. combinations and their resulting time? I need to reliably and with a some accuracy measure 1/10th of a second. How accurate is the BS2 for repatition using RC time? Would I be better off with a 555 generating my clock pulse?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Another possibility is the sMT series of co-processors. I think you can program it to give you a clock edge every 10 mSec, and use that to synchronize your BS2 program.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
I think I will break out the BOE and try a couple of your suggestions!
RCTime on the BOE (BS2 IC) with a 10k pot and a .1uf cap in debug gave me a result of 1 up to 800+
What am I seeing here? mS? uS? How does this compare to time?
I also noted that·a temperature change·affected this reading greatly. Is there a way to get a fairly stable reading from around 50 - 110 degrees F?
Sorry guys, I guess I am missing the boat here...
Each unit from RCTIME when using a BS2 is 2 microseconds. Caps are temp senstive; it would be best not to use RCTIME ove such a great range is temp stability is a requirement.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
In the "Understanding Signals" manual I found this
DEBUG HOME, "(time/1000)*2 = ", DEC3 (time/1000)*2
and plan to try it in the morning. ·will also look into the ADC0831 in hopes of a more temp stable setup.
Bean.
I got it after thinking about what I was doing. I wanted to create a steady 1/10th of·a second pulse and compare it to a frequency then compare to a threshold value. I found my problem. It would be much wiser to use the count function for the frequency and specify the time within that command then compare the value to the threshold. Once I accepted the accuracy of RCTime and moved on to the second step of the project, I caught my own error. Forgive me for taking it one step at a time and thank you ALL for your input!