cubeberg 540 Posted May 17, 2013 Share Posted May 17, 2013 I'm working on incorporating the option to sync time from a GPS source for my VFD clock. I wrote the code stand-alone for testing - thought it might be useful for some others on the forum. The code is based on oPossum's RTC clock code. Date/Time values are BCD. It could probably be converted to decimal time as well, but BCD works best for my application. A main time variable is available - and would normally be updated through a 1hz timer interrupt, although the interrupt isn't included in this code (I'll probably add that later as an update - but the code to do that is pretty easy). The rtc_tick_bcd function in time.c can be called from the 1hz timer to perform the needed update. Enjoy! GPS_Clock.zip spirilis and bluehash 2 Quote Link to post Share on other sites
cubeberg 540 Posted May 17, 2013 Author Share Posted May 17, 2013 Oh - and this was written for the GPS Boosterpack. Other GPS modules that output NMEA strings should work as well. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.