Dallas Semi 1302 RTC
Archiver
Posts: 46,084
Forgive me if this is a FAQ...
I just recently purchased some Basic Stamps, and this is my first
experience with Yahoo groups... I've been playing with electronics
for quite a while now (many years), and I've got a problem regarding
the DS1302 chip, interfacing with the Basic Stamp 2.
I've built a clock to get familiar with the Stamp and the RTC. My
circuit has the BS2, the DS1302, and 10 LEDs. I cycle through four
digits (2 for the hour, 2 for the minute). The LEDs represent the
digits 0-9. So, an LEd will flash the second LED, the third LED, the
fourth LED, the fifth LED to represent "12:34" as the time (in 24
hour format). I've noticed that when the time rolls over from 23:59,
I get 24:00 instead of 00:00 like I expect!
What the heck is going on here? There isn't 25 hours in the day!
Please let me know where I'm going wrong. I've adapted my code from
the example code in AppKit_DS1302_Real_Time_Clock.pdf from Parallax's
web site.
Thanks!
Stve
I just recently purchased some Basic Stamps, and this is my first
experience with Yahoo groups... I've been playing with electronics
for quite a while now (many years), and I've got a problem regarding
the DS1302 chip, interfacing with the Basic Stamp 2.
I've built a clock to get familiar with the Stamp and the RTC. My
circuit has the BS2, the DS1302, and 10 LEDs. I cycle through four
digits (2 for the hour, 2 for the minute). The LEDs represent the
digits 0-9. So, an LEd will flash the second LED, the third LED, the
fourth LED, the fifth LED to represent "12:34" as the time (in 24
hour format). I've noticed that when the time rolls over from 23:59,
I get 24:00 instead of 00:00 like I expect!
What the heck is going on here? There isn't 25 hours in the day!
Please let me know where I'm going wrong. I've adapted my code from
the example code in AppKit_DS1302_Real_Time_Clock.pdf from Parallax's
web site.
Thanks!
Stve
Comments
area as 1302.bs2.
Does it go from 24:00:00 to 00:00:01?
The 1302 may not think there is an hour '0' in the day.
Does it go from 24:59:59 to 01:00:00?
--- In basicstamps@yahoogroups.com, "Steve" <zman97211@y...> wrote:
> Forgive me if this is a FAQ...
>
> I just recently purchased some Basic Stamps, and this is my first
> experience with Yahoo groups... I've been playing with electronics
> for quite a while now (many years), and I've got a problem
regarding
> the DS1302 chip, interfacing with the Basic Stamp 2.
>
> I've built a clock to get familiar with the Stamp and the RTC. My
> circuit has the BS2, the DS1302, and 10 LEDs. I cycle through four
> digits (2 for the hour, 2 for the minute). The LEDs represent the
> digits 0-9. So, an LEd will flash the second LED, the third LED,
the
> fourth LED, the fifth LED to represent "12:34" as the time (in 24
> hour format). I've noticed that when the time rolls over from
23:59,
> I get 24:00 instead of 00:00 like I expect!
>
> What the heck is going on here? There isn't 25 hours in the day!
>
> Please let me know where I'm going wrong. I've adapted my code from
> the example code in AppKit_DS1302_Real_Time_Clock.pdf from
Parallax's
> web site.
>
> Thanks!
> Stve