DIGITAL CLOCK PIC
This circuit is based on a digital clock project by Dan Matthews published by Microchip.Fortunately and thanks to Dennis Crawley the original program for the pic 16C54 has been adapted and can be used with a newer pic, the 16F84A, keeping the same circuit. We have made some hardware modifications on the original circuit, making it even simpler.
Supplies
SCHEMATIC DIAGRAM
Here we will see the electronic circuit or schematic diagram to better understand the system
FUNCTIONING
I will not explain the HEX code in detail but I will explain the operation in detail. We have 4 configuration buttons, the first controls the hours in 12H format, the second the minutes and the third we can see the seconds and finally the fourth we reset to 12 hours again.
To see how it works, we will first have to feed our PCB with a 9V to 12V source. Internally, our PCB has a 5V regulator for the PIC, so we connect the source and then by default it will set 12 hours and there we will have to configure with the buttons. of hours and minutes
common cathode displays have been used to visualize the numbers.
ELECTRONIC COMPONENTS
4 COMMON CATHODE DISPLAYS
4 PNP TRANSISTORS BT3906 SMD
8 RESISTORS 1206 1K SMD
4 RESISTORS 1206 10K SMD
8 RESISTORS 1206 220ohm SMD
2 DIODES 1N5819 SMD
1 DC JACK
1 OSCILLATOR 4MHz
1 VOLTAGE REGULATOR 7805 SMD
PIC 16F84A
2 CAPACITORS 1206 100NF
2 ELECTROLYTE CAPACITORS 100UF25V
4 PUSHBUTTONS NO 4 PINS
2 CAPACITORS 22PF
1 PCB
FEATURES
VIN 9V - 12V DC
IMAX INPUT 200mA
4 configuration buttons
configurable precise clock
ideal for offices
HEX PROGRAM
:100000000128850186018316003085008600833033
:10001000810083120C3084008001840A4F30040276
:10002000031D0C280030860001308100FE308E0058
:1000300000308F009000910092000C309300C4308B
:100040009400C4309500FF30960000308D00010808
:10005000031D2728930F5D280C3093008D1F452822
:100060000D1A4528C43094007F3093008D1E3E2821
:10007000AF309300950F3E28C43095008D1A692843
:10008000960F6928F430960069280D148D15940F89
:100090005D28C43094008D148D1509309302950F9E
:1000A0005D28C43095000D158D1522309307960FED
:1000B0005D28F4309600033093028D1D9A280D1EA2
:1000C00069280030900091009200C43014028F0023
:1000D0007228003092009000F33016029100C43074
:1000E00015028F00023098000F30840079281130FB
:1000F00084000A30800203187F2880078328840A3E
:10010000800A84037928980B77280F308400043004
:1001100098000008CE208000840A980B89287E3041
:100120001202031D9528003092000D1E98289100A0
:10013000F0308D05FF30850083160E308600831267
:100140000F30000000008D0506089700971CAB28B3
:100150008D150D168D17171DB0288D158D168D1741
:10016000971DB5288D150D178D1783160030860045
:100170008312003086000E1C12088E1C11080E1D02
:1001800010088E1D0F088600931B06140E088500AC
:100190008E008E0D0E140E1E0E10272882077E3440
:1001A0000C34B6349E34CC34DA34FA340E34FE34A3
:0201B000CE344B
:02400E00F13F80
:00000001FF
EasyEda
we will see the design of the pcb and the 3D image that we have made in the EASYEDA program
PCBWay
10pcbs at $5 order them here www.pcbway.com
We thank PCBWAY for the professional pcb they provide us for this project.
GERBER PCB:
https://mega.nz/file/ndRnADyY#5Ctb5EkmZRL4gcjT3P5b1qnzKUBkZzLHlLCt9GBlDWA