SV: [basicstamps] Re: Turn on a led for two minutes each 13 minutes all day lon
Archiver
Posts: 46,084
Greeting!
Whynot use the 'alarm pin'?
Just hook it to an input on the BS2 and run a loop with a SLEEP
instruction.
Then, just check the level of the input to decide if the time has come
or not...
Or buy a BS2P and use the POLLIN command?
:-)
Trygve
Opprinnelig melding
Fra: Allan Lane [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=LxY8nWYXlwV8euv9yT_hO_Hka23nNNHuPZIWBg-qCk6FpZryeHzVuQ9EpnEkEkzw80nBjxc3xPKWGkwrjZacLY05]allan.lane@h...[/url
Sendt: 28. april 2003 15:27
Til: basicstamps@yahoogroups.com
Emne: [noparse][[/noparse]basicstamps] Re: Turn on a led for two minutes each 13 minutes
all day long...
I believe the DS1305 does have an alarm pin -- but this
doesn't help much with the BS2, which has no interrupt
inputs.
One approach would be to set up a DS1302 time chip,
'sleep' the BS2 for some period, then on wake up ask
the time chip what time it REALLY is, and cycle on
that until the desired time occurs.
--- In basicstamps@yahoogroups.com, "Rodent" <daweasel@s...> wrote:
> I thought the RTC chips had an alarm feature as well?
>
>
>
Original Message
>
> > This would be my guidance. If time-of-day isn't required by the
project,
> I
> > would simply reset the clock to midnight at the beginning of each
cycle,
> then
> > check the time in my main loop. In this manner, the LED control
becomes a
> > "background" process since the timing is handled by the RTC.
>
> > > What about using a clock chip? you would just need to see if
the time
> has
> > > passed, and if so process the logic??
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Whynot use the 'alarm pin'?
Just hook it to an input on the BS2 and run a loop with a SLEEP
instruction.
Then, just check the level of the input to decide if the time has come
or not...
Or buy a BS2P and use the POLLIN command?
:-)
Trygve
Opprinnelig melding
Fra: Allan Lane [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=LxY8nWYXlwV8euv9yT_hO_Hka23nNNHuPZIWBg-qCk6FpZryeHzVuQ9EpnEkEkzw80nBjxc3xPKWGkwrjZacLY05]allan.lane@h...[/url
Sendt: 28. april 2003 15:27
Til: basicstamps@yahoogroups.com
Emne: [noparse][[/noparse]basicstamps] Re: Turn on a led for two minutes each 13 minutes
all day long...
I believe the DS1305 does have an alarm pin -- but this
doesn't help much with the BS2, which has no interrupt
inputs.
One approach would be to set up a DS1302 time chip,
'sleep' the BS2 for some period, then on wake up ask
the time chip what time it REALLY is, and cycle on
that until the desired time occurs.
--- In basicstamps@yahoogroups.com, "Rodent" <daweasel@s...> wrote:
> I thought the RTC chips had an alarm feature as well?
>
>
>
Original Message
>
> > This would be my guidance. If time-of-day isn't required by the
project,
> I
> > would simply reset the clock to midnight at the beginning of each
cycle,
> then
> > check the time in my main loop. In this manner, the LED control
becomes a
> > "background" process since the timing is handled by the RTC.
>
> > > What about using a clock chip? you would just need to see if
the time
> has
> > > passed, and if so process the logic??
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/