SBC In-System Programming: Information | VisISP-52 ISP Application
SBCMON Monitor/Operating System: Main Page | Manual
SBCMON-based Software: SBCMON Monitor | Keypad Demo | LCD Echo Demo | Hardware Clock | Software Clock
SBCMON-based PS/2 Software: PS/2 Comm Monitor | PS/2 Keyboard | PS/2 Mouse
ORDER 8052.com SBC: PCB, KIT OR BUILT SBC AVAILABLE FOR PURCHASE
Download Digital Clock for SBCMON
You may download either the source code or the ready-to-use Intel-Hex version of the keypad demonstration program. The Intel-Hex version may be loaded into SBCMON's memory using the L or Q commands. Download the source ASM program if you'd like to see the code that makes SBCMON work.
SBCMON Digital Clock Program Source (clock.asm)
SBCMON Digital Clock Intel HEX (clock.hex)
NOTE: This demo program requires SBCMON monitor program to run. Be sure to download SBCMON first, install on your SBC, and then run this demo from within SBCMON itself. This program may require additional modification in order to run without SBCMON.
This program is a simple digital clock that constantly displays the current time and date retrieved from the DS1307 RTC and displays it on the LCD. A typical display for the digital clock is:
Fri Feb 25, 2005 10:31:47Note that the clock must first be set (with the 'C' command, for example) prior to running this program or the clock will be wrong and/or will not be updated. When setting the clock, the day of the week code (1-7) should be 1=Monday, 2=Tuesday, etc.
You may press any key in the PC's terminal program in order to exit the clock.
Concepts Demonstrated by Program
This program demonstrates the following concepts:
- I2C communication.
- Reading the time from the DS1307 RTC.
- Clearing LCD screen.
- Setting LCD cursor position.
- Writing characters to the LCD.