Programming delay less than 1ms w/BS2 - ANSWERED & CLOSED
davejames
Posts: 4,047
Hi All,
I'm in need of programming a delay less than 1ms using a BS2.
The interval of delay for the PAUSE command is milli seconds with the range being between 0 - 65535.
That 'zero value' I'm guessing means "wait as long as it takes to execute the PAUSE command".· If so, does anyone know the value of that time?
Granted all timing with this beastie is based off a resonator with +/- 1% tolerance.· I'm not looking for anything exact, but I do need something smaller than 1ms.
Thanks much,
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Instead of:
"Those who can, do.· Those who can't, teach." (Shaw)
I prefer:
"Those who know, do.· Those who understand, teach." (Aristotle)
Post Edited (davejames) : 8/12/2009 10:40:07 PM GMT
I'm in need of programming a delay less than 1ms using a BS2.
The interval of delay for the PAUSE command is milli seconds with the range being between 0 - 65535.
That 'zero value' I'm guessing means "wait as long as it takes to execute the PAUSE command".· If so, does anyone know the value of that time?
Granted all timing with this beastie is based off a resonator with +/- 1% tolerance.· I'm not looking for anything exact, but I do need something smaller than 1ms.
Thanks much,
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Instead of:
"Those who can, do.· Those who can't, teach." (Shaw)
I prefer:
"Those who know, do.· Those who understand, teach." (Aristotle)
Post Edited (davejames) : 8/12/2009 10:40:07 PM GMT
Comments
A bunch o'stuff tucked away here at Mr. Allen's site there is!
This timing info should be in the Stamp Programming Reference...
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Instead of:
"Those who can, do.· Those who can't, teach." (Shaw)
I prefer:
"Those who know, do.· Those who understand, teach." (Aristotle)
·
Please do not hijack an unrelated forum thread. If you have a question, please start a thread in the appropriate forum. For questions related to Stamps, use the Stamp forum. For general questions, use the Sandbox forum. If you can draw a schematic using a schematic drawing program, please do so and post a PDF file of the printout as an attachment to your message (use the Post Reply button or New Topic button and the Attachment Manager). If you can hand draw a schematic and scan it in, that would be a good alternative. The more information you provide about what you're trying to do and what you've tried, the better. If you have an uppercase / lowercase keyboard, use both rather than all uppercase. It's easier to read.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Instead of:
"Those who can, do.· Those who can't, teach." (Shaw)
I prefer:
"Those who know, do.· Those who understand, teach." (Aristotle)
·
With the information Erco provided, I found that for a BS2 the PAUSE command with a value of 0 will generate a 230us delay. This will definitely be different on the other versions of Stamps.
Also, a "dummy" PULSEOUT with a value of 0 takes about 208us to execute, again for a BS2.
Good stuff!
I'm calling this thread answered and closed.
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Instead of:
"Those who can, do.· Those who can't, teach." (Shaw)
I prefer:
"Those who know, do.· Those who understand, teach." (Aristotle)
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
I've saved the link to my favorites for reference.
DJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Instead of:
"Those who can, do.· Those who can't, teach." (Shaw)
I prefer:
"Those who know, do.· Those who understand, teach." (Aristotle)
·