timer ?
Jurgen
Posts: 8
Hi,
I'm looking for a solution to let my BS2 know when an exact time has elapsed.
Does anyone have a suggestion what hardware I need to let my BS2 know when for example exactly 4 minutes have elapsed since it performed a certain action?
I guess this can't be done through software?
To use PAUSE for 4 minutes is of course not the solution, in the meanwhile my BS2 has other jobs to do
I'm looking for a solution to let my BS2 know when an exact time has elapsed.
Does anyone have a suggestion what hardware I need to let my BS2 know when for example exactly 4 minutes have elapsed since it performed a certain action?
I guess this can't be done through software?
To use PAUSE for 4 minutes is of course not the solution, in the meanwhile my BS2 has other jobs to do
Comments
http://www.parallax.com/detail.asp?product_id=604-00005
It might be a little more than you need, but it'd work.
Another option is to use a 555 and a counter. Setup the 555 to pulse at, say, 1 second intervals. Have the BS2 periodically read the counter (which is being increased for every 555 pulse), and when the counter hits 240, you're at 4 minutes.
Dave
AG
DEBUG "I'm going to pause", CR
PAUSE 60000
DEBUG "I'm done pausing", CR
The above will display the first message, then nothing for 60 seconds, then the second message. Nothing else happens on the stamp in the interim. If you need to do other tasks while waiting for the time to expire you can't use the PAUSE.
Jim
For my application I need to timestamp data at .01 second intervals, so the 555 timer will not work.· I'm looking at the DS1994 iButton from Dallas Semiconductors.· Has anyone·used the DS1994 and if so how difficult is it to program?