Turn on a Led after 12000 seconds using a BS2 and perhaps the DS1302
Archiver
Posts: 46,084
Hi,
I need to turn on a led after a period of
time.
I was using the DS1302 but the
DS1302 source code has to many variables.
( LOWNIB , HIGHNIB, ..... )
I am triying to use a simple "word" variable
like W2 and turn the led on after
24600 seconds (exapmple)
Something like :
If w2 = 24600 then led
.
.
.
Led:
high 8. ..
.
.
Is the DS1302 good for that?
( I don't need minutes, only second!! )
Any help is welcome. Thanks: Joe
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
I need to turn on a led after a period of
time.
I was using the DS1302 but the
DS1302 source code has to many variables.
( LOWNIB , HIGHNIB, ..... )
I am triying to use a simple "word" variable
like W2 and turn the led on after
24600 seconds (exapmple)
Something like :
If w2 = 24600 then led
.
.
.
Led:
high 8. ..
.
.
Is the DS1302 good for that?
( I don't need minutes, only second!! )
Any help is welcome. Thanks: Joe
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
Comments
to access or worry about all of the registers either. If your project
doesn't care about the actually time of day and you're simply using the
DS1302 as a timing element, then just grab the seconds and minutes
registers. You'll have to do a small bit of math to get to a single
word, but that's a no-brainer.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: joe terk [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=UEzkraaJ8K_yOHg8apxP3lCRrl6WhxbYwCJNu8yOk7LTn-wZQtSSN9zg7IB2en1sxD-iF3G9YJfqBwoUbw]joeterk1@y...[/url
Sent: Saturday, June 26, 2004 1:47 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Turn on a Led after 12000 seconds using a BS2 and
perhaps the DS1302
Hi,
I need to turn on a led after a period of
time.
I was using the DS1302 but the
DS1302 source code has to many variables.
( LOWNIB , HIGHNIB, ..... )
I am triying to use a simple "word" variable
like W2 and turn the led on after
24600 seconds (exapmple)
Something like :
If w2 = 24600 then led
.
.
.
Led:
high 8. ..
.
.
Is the DS1302 good for that?
( I don't need minutes, only second!! )
Any help is welcome. Thanks: Joe
Do you know where can I begin to understand how to grab
seconds, because I am having seconds only up to 9 ?
Is there an example? , I will try to understand .
Thanks in advance: Joe
Jon Williams <jwilliams@p...> wrote:
You can't change the rules of access for the DS1302; and you don't have
to access or worry about all of the registers either. If your project
doesn't care about the actually time of day and you're simply using the
DS1302 as a timing element, then just grab the seconds and minutes
registers. You'll have to do a small bit of math to get to a single
word, but that's a no-brainer.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: joe terk [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=5FI-AYXOhdaSs7kbcMubJosklavEJXUxOaA303uW5Jjy_v1xcsC0aQdTrFaO93wIaovsAmaVwz5QbQ]joeterk1@y...[/url
Sent: Saturday, June 26, 2004 1:47 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Turn on a Led after 12000 seconds using a BS2 and
perhaps the DS1302
Hi,
I need to turn on a led after a period of
time.
I was using the DS1302 but the
DS1302 source code has to many variables.
( LOWNIB , HIGHNIB, ..... )
I am triying to use a simple "word" variable
like W2 and turn the led on after
24600 seconds (exapmple)
Something like :
If w2 = 24600 then led
.
.
.
Led:
high 8. ..
.
.
Is the DS1302 good for that?
( I don't need minutes, only second!! )
Any help is welcome. Thanks: Joe
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.
Yahoo! Groups Links
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
[noparse][[/noparse]Non-text portions of this message have been removed]
adjust it as required. You're not likely to find code to do exactly
what you want -- you're going to have to do it yourself.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: joe terk [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=2-FRnnQyKL_ZiafjF0KdM0E00OMgBG4xgHCCaXP08U3rrid3lMztqkLQS1jGNZa4c17scGuMOFs6ln0L]joeterk1@y...[/url
Sent: Saturday, June 26, 2004 2:32 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Turn on a Led after 12000 seconds using a BS2
and perhaps the DS1302
Thanks, Jon,
Do you know where can I begin to understand how to grab seconds, because
I am having seconds only up to 9 ?
Is there an example? , I will try to understand .
Thanks in advance: Joe
Jon Williams <jwilliams@p...> wrote:
You can't change the rules of access for the DS1302; and you don't have
to access or worry about all of the registers either. If your project
doesn't care about the actually time of day and you're simply using the
DS1302 as a timing element, then just grab the seconds and minutes
registers. You'll have to do a small bit of math to get to a single
word, but that's a no-brainer.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: joe terk [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=2-FRnnQyKL_ZiafjF0KdM0E00OMgBG4xgHCCaXP08U3rrid3lMztqkLQS1jGNZa4c17scGuMOFs6ln0L]joeterk1@y...[/url
Sent: Saturday, June 26, 2004 1:47 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Turn on a Led after 12000 seconds using a BS2 and
perhaps the DS1302
Hi,
I need to turn on a led after a period of
time.
I was using the DS1302 but the
DS1302 source code has to many variables.
( LOWNIB , HIGHNIB, ..... )
I am triying to use a simple "word" variable
like W2 and turn the led on after
24600 seconds (exapmple)
Something like :
If w2 = 24600 then led
.
.
.
Led:
high 8. ..
.
.
Is the DS1302 good for that?
( I don't need minutes, only second!! )
Any help is welcome. Thanks: Joe
Of course I have do it my self, but, my problem is
that
I am not an expert and I don't have enough knowledge
to know if the chip 1302 plus a BS2 could be used
to count more than 9 seconds (like 12000)
using one variable.
Any way many thanks, I am going to follow your
recommendations.
Thanks, Joe
--- Jon Williams <jwilliams@p...> wrote:
> Most DS1302 examples do more than you need, so just
> pare one down and
> adjust it as required. You're not likely to find
> code to do exactly
> what you want -- you're going to have to do it
> yourself.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: joe terk [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=hNqwKydvdGlcQEzX84fD3iD0oF_WBgt6W4LRTul1xqnO29axfBIc0d_NN2NxlZyOADgUd9ZcVxZJyw]joeterk1@y...[/url
> Sent: Saturday, June 26, 2004 2:32 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]basicstamps] Turn on a Led after 12000
> seconds using a BS2
> and perhaps the DS1302
>
>
> Thanks, Jon,
>
> Do you know where can I begin to understand how to
> grab seconds, because
> I am having seconds only up to 9 ?
>
> Is there an example? , I will try to understand .
>
> Thanks in advance: Joe
>
> Jon Williams <jwilliams@p...> wrote:
> You can't change the rules of access for the DS1302;
> and you don't have
> to access or worry about all of the registers
> either. If your project
> doesn't care about the actually time of day and
> you're simply using the
> DS1302 as a timing element, then just grab the
> seconds and minutes
> registers. You'll have to do a small bit of math to
> get to a single
> word, but that's a no-brainer.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: joe terk [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=hNqwKydvdGlcQEzX84fD3iD0oF_WBgt6W4LRTul1xqnO29axfBIc0d_NN2NxlZyOADgUd9ZcVxZJyw]joeterk1@y...[/url
> Sent: Saturday, June 26, 2004 1:47 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Turn on a Led after 12000
> seconds using a BS2 and
> perhaps the DS1302
>
>
> Hi,
>
> I need to turn on a led after a period of
> time.
> I was using the DS1302 but the
> DS1302 source code has to many variables.
>
> ( LOWNIB , HIGHNIB, ..... )
>
> I am triying to use a simple "word" variable
> like W2 and turn the led on after
> 24600 seconds (exapmple)
>
> Something like :
> If w2 = 24600 then led
> .
> .
> .
> Led:
> high 8. ..
> .
> .
>
> Is the DS1302 good for that?
> ( I don't need minutes, only second!! )
>
> Any help is welcome. Thanks: Joe
>
>
> 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.
>
> Yahoo! Groups Links
>
>
> basicstamps-unsubscribe@yahoogroups.com
>
>
>
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail