Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:32 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : DS1302 RTC

Author Message
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 02:26am 28 Jun 2013
Copy link to clipboard 
Print this post

Hello

I have the DS1302 RTC working on my QL200 board 16F877A

I also have the time being shown on a 6 x 7 segment display HH.MM.SS

Here is an overview of what happens

DS1302 RTC

1. Define three pins - I_O, SCLK and RST
2. Set an address start address to hold time to send and time to read
3. Initialise ports
4. Load up the initial time - to send to RTC
5. Set the time - in multi byte mode ( not just one by one ) sending 8 bytes ROLL RIGHT
6. Manage the pins for the RTC by manipulating the lines one bit at a time
7. Get the time - similar to set time, but this is get time, 7 bytes this time.
8. Use a look up table to form the segment of the 7 segment display
9. Send Hour Minute Second to the 6 x 7 Segment display HH.MM.SS

loop - get time and display

I need to work out how to get the GPS into the equation now .

- Andrew -


Andrew Rich VK4TEC
www.tech-software.net
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024