
PIC16F84 12 or 24 Hour Digital Clock Circuit Diagram And Programming
This PIC digital clock is based on a 16F84 microcontroller. it uses four 7-segment displays.The software in the microcontroller allows for very accurate timekeeping.
| PARTS LIST | |
| R1 – R8 | 100Ω |
| R9 | 10kΩ |
| R10 R13 | 10kΩ |
| C1 | 22pF |
| C2 | 22pF |
| D1 | LED |
| U1 – U4 | Common Cathode 7 Segment Display |
| Q1 – Q4 | C828 |
| Xtal1 | 4 MHz Crystal |
| IC1 | 7805 Regulator IC |
| PIC1 | PIC 16F84 OR PIC16F84A |
| PB1 -PB3 | Push to ON push button switch |
PB1 for set minutes.
PB2 for set hours.
PB3 for Reset.
D1 LED indicate seconds.
Notes:
- Design this circuit diagram on veroboard or pcb using 18 pin IC base.
- Program your PIC (pic16f84 or pic16f84a) using PIC Programmer with ic-prog programmer software and this .HEX file. You can follow these instructions.
- Install PIC on IC base.
- Supply power to your circuit and set time using PB1 and PB2.
Thats all.

PIC16F84 Pin Configuration
Also provided asm files, so you can develop or modify this clock circuit.
Download digital clock asm and hex files.
![]() |
![]() |
Please send your ideas, which are very important for our success…




#1 by sara on February 1st, 2011
Thanks for this info! However, it might be a tip to put more comments in the code so the inexperienced user knows what’s going on – for instance which part of the code controls the actual clock? What do the ten or so short lines directly under the header do?
#2 by pido on January 29th, 2011
c828 is npn or pnp transistor?
#3 by srihari on January 24th, 2011
i have constructed this working good with battery but not with home supply, when i switched on and off the appliances in the same room the device is (time) reset whats the problem give me solution
thank you….
#4 by Sofa King on January 18th, 2011
Does somebody know how to reprogram the .asm file?
This is what I want to happen:
If clock strikes 6:00 am, 11:00 am, 16:00 pm, there will be an output that will be triggered.
We are planning to use the circuit for a feeder project. Please help. Thank you.
#5 by Kilroy on November 4th, 2010
can u send me the pcb file plx
#6 by ryan on October 1st, 2010
can you add a pcb for this?? i cant create one, it took me 3hrs but still failed..
#7 by bmx wheels on August 27th, 2010
nice, thank you so much
#8 by SOLOMON ADAH on August 1st, 2010
nice work, i needed just that for my project.
#9 by Certified Nursing Assistant on July 23rd, 2010
Great site. A lot of useful information here. I’m sending it to some friends!
#10 by ultrasound technician on July 21st, 2010
This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks!