Best way to time events
pmcgee
Posts: 6
Hi
I'm pretty new at this, so you'll have to forgive me if I get completely lost. My question is, what's the easiest and most accurate ways of timing events? I have a professional development board as well as a BS2, BS2p40 and a BS2px. Thanks.
Paul
I'm pretty new at this, so you'll have to forgive me if I get completely lost. My question is, what's the easiest and most accurate ways of timing events? I have a professional development board as well as a BS2, BS2p40 and a BS2px. Thanks.
Paul
Comments
Alot depends on how many events you need to time at whatever resolution you need to have. The longer the time periods the more timers you can keep track of, but you still only need one clock unless you need resolution in the us or ms range.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
Sorry to bring this back up again after a while, but I now have a better idea of what my end goal is. I would like a way of measuring the time between the rising edges of two separate inputs. For instance, I am currently using a USBee DX test pod to generate signals on two pins. I'm not sure I really understand how to use the COUNT command to time things. It is my understanding that I must supply the COUNT with a duration of time and it would spit back the number of cycles. How would I be able to manipulate it to return the duration? I first thought that this whole timing thing would be quite trivial, but the further I get into it the more obstacles I find. There's a good chance I'm missing something obvious here so that's why I'm seeking the help of some experienced experts. I'm looking to achieve accuracy on the level of microseconds, if possible.
How can I measure time between the two rising edges?
__________________| |_______________________________
___________________________________| |____________
Thanks for all your help.
Paul
Edit: You'll have to excuse my little stick diagram.
Post Edited (pmcgee) : 7/25/2007 4:23:07 PM GMT
The COUNT statement counts the number of input pulses occurring during a specified time period ... not what you want (sorry for the wrong suggestion).
flip-flop, one of your signals to set it and the other to reset it, and time the single pulse Q output.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Paul
The easiest thing would be to go over to Radio Shack and buy a CD4001 or a 74HC02, quad NOR gate, and make an SR flip flop. It would set and reset on the rising edges of the two pulses.
P.S. How long is the event, the time between the two triggers? The PULSIN command on the vanilla BS2 can measure pulses of duration up to 0.131 second with a resolution of 2 microseconds.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Post Edited (Tracy Allen) : 7/25/2007 9:35:37 PM GMT
Paul
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com