This is a demonstration of a complete clock/calendar using the DS1307 RTC for the 16F877a 40 PIN Prototype board.
Install GCB! You are recommended to use GCB@SYN from the Great Cow Basic website.
There are two pushbuttons to control the clock: Mode and Set these equate to Key1 and Key2
During normal operation, the Mode button will toggle between 12- and 24-hours modes.
This has two modes US date and UK date style, change 'clocktype' to 0 for US and 1 for UK in the code to change the configuration.
To set a new date and time, press the Set button which will take you consecutively to Month, Day, Year, Day of the Week, Hour, Minute and Second. Within each of these, press Mode to cycle through the possible values. You may hold the Mode button to increment automatically, or press momentarily for a single increment. Time is always set in 24-hour clock format.
The DS1307 is attached as follows:
- I2C Data line to RC3
- I2C Clock line to RC4
The LCD is attached to the LCD Header.
Enjoy
DS1307 Clock - PIC Development Board + PIC16F877A
Jump to
- Terms & Conditions / Privacy Policy
- ↳ Terms & Conditions
- ↳ Privacy Policy
- General Discussion
- ↳ General Discussion
- ↳ HobbyComponents.com shop
- ↳ Ebay shop
- Hobby Components Branded Products
- ↳ Arduino
- ↳ Development boards
- ↳ Kits
- ↳ 4x4x4 Version 2 Cube Kits
- ↳ Shields
- ↳ mLink
- ↳ SmartRFy
- ↳ Expressive (ESP8266)
- ↳ Prototyping
- ↳ Test Equipment
- ↳ Kits
- ↳ 4x4x4 Version 2 Cube Kits
- ↳ Modules
- ↳ EDTracker
- Development Boards, Programmers & Accessories From Other Manufacturers
- ↳ Arduino
- ↳ Kits
- ↳ Arduino Projects Handbook Kits
- ↳ Arduino Development Boards
- ↳ Arduino Shields
- ↳ Cases
- ↳ ESP32
- ↳ ESP8266
- ↳ Raspberry Pi
- ↳ Atmel
- ↳ Microchip
- ↳ ST Microelectronics
- ↳ Altera
- ↳ Cypress
- ↳ Arm
- ↳ TinyCircuits
- ↳ WeMos
- ↳ Pine64
- ↳ Microduino
- Modules
- ↳ Wireless / Wired
- ↳ Sensors
- ↳ Display
- ↳ Motor drivers
- ↳ Relay
- ↳ Power
- ↳ Adaptor
- ↳ RTC
- ↳ Audio
- ↳ Interface
- ↳ Measurement / Signal Generation
- Home Automation
- ↳ Sonoff
- 3D Printing / CNC
- ↳ 3D Printing / CNC
- Robotics / Mechanical
- ↳ Kits & Parts
- ↳ Motors & Servos
- Radio Control
- ↳ Radio Control
- Security/RFID
- ↳ Security/RFID
- Arcade
- ↳ Arcade
- Other
- ↳ Electronics Kits / Bundles
- ↳ Components
- ↳ ICs
- ↳ Hardware
- ↳ Project / Soldering
- ↳ Test
- ↳ Cables
- ↳ Other
- Software
- ↳ Arduino
- ↳ Microchip PIC
- ↳ Great Cow Basic
- Community Projects