|
Source
Code Below is a link to the complete source code for the LED Clock. It is written to compile using the CCS PIC C compiler. However, the code is written to conform to ANSI C standards and will recompile on most platforms (with the exception of hardware dependent compiler directives). The code has extensive in-line documentation that is compatible with Doxygen. Doxygen is a documentation system for C++, C, Java, Objective-C, IDL (Corba and Microsoft flavors) and to some extent PHP, C# and D. Doxygen generates a very complete set of HTML pages based on the in-line code information. Please provide feedback through my contact page to let know if this was useful and if it aided your understanding of the source code. Two versions of the source code are provided. The master controller firmware is loaded into the display module that has the GPS engine connected. The master controller provides the seconds position (xx:xx:SS) of the current time. The slave controller firmware is loaded into the display modules that do not have a GPS engine connected. The slave controller provides the hours (HH:xx:xx) and minutes (xx:MM:xx) portion of the current time. The modules are connected through an I2C bus. A solder jumper on each board determines if the board displays the hours or minutes portion of the time.
|
Copyright © 2001-2009, KD7LMO |
Web space provided by ESS, Inc. for all your consulting needs. |