CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

7-segments with DS1307

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
newpic



Joined: 09 Aug 2005
Posts: 32

View user's profile Send private message

7-segments with DS1307
PostPosted: Fri Aug 26, 2005 7:26 am     Reply with quote

Hello to everyone,

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

View user's profile Send private message Send e-mail

PostPosted: Fri Aug 26, 2005 8:39 am     Reply with quote

Hum... as I recall the data is BCD so it should be easy. Each nibble would be a digit.
Guest








PostPosted: Fri Aug 26, 2005 9:18 am     Reply with quote

Any simple example?

Thanks..
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Aug 26, 2005 11:56 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Aug 26, 2005 11:57 am     Reply with quote

Just do a web search with http://www.google.com for this string:
ds1307 CCS segment OR segments

http://www.rentron.com/CCS_C/SERLED_C.htm

Source code for this one is at the bottom of the page:
http://www.sixca.com/eng/articles/clock/
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group