Does anyone know of a method in which I can use to send the
information received from a DS1307 RTC into their individual digits, so
that I can place these digits on their respective 7-Segment Led Displays.
I have four 7-Segment Led displays and would like to display the time on
these. But I don't know how to single out the individual digits after the
information is received from the DS1307.
Any advice or suggestions would be grately appreciated.
I am limit to C and PIC, If you could give more detail or example code
would be gradely appreciated.
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Fri Aug 26, 2005 8:39 am
Hum... as I recall the data is BCD so it should be easy. Each nibble would be a digit.
Guest
Posted: Fri Aug 26, 2005 9:18 am
Any simple example?
Thanks..
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Fri Aug 26, 2005 11:56 am
There is already code posted for DS1307. That code will allow you to read the registers from the DS1307. We have no idea how you are driving your 7 segment LEDs but if you know how to display a number then it should be trivial to display the time.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Aug 26, 2005 11:57 am
Just do a web search with http://www.google.com for this string:
ds1307 CCS segment OR segments
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum