Ajay Bhargav ajay_bhargav@hotmail.com
If you are looking for the siplest project, you are at the right place.
Figure 1 shows the circuit diagram for the digital clock. Port 1 of the controller (AT89C4051) is used as the data lines for the LCD (starting from pin 7- pin14 of LCD). here i am using a 16 x 2 lines LCD display. In the first line, I'll display "DAY" and "DATE", in the second line, i am displaying "TIME" with am/pm.
Port 3 is used for the clock setting and it also provides the necessary control signals for the LCD. As shown in the diagram, switch3 will be used to select the parameter which need to be changed, switch 1 and 2, are used to increase or decrease the selected parameter value.
When the power supply is switched on it will give you the default date and time, but later you can change it to the desired value.
The source code for the
project is written in C-language, and compiled using Keil C compiler,
you can download the c-code, schematic, and if you don't have a cross
compiler then you can directly burn the HEX file on to your chip,clock.zip.
Figure 2 shows a screenshot of the Digital Clock.
Bill of material requiredSr no.
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
12)
13)Part name
AT89C4051
LM7805
16x2 line LCD
IN4001 diode
11.0592MHz Crystal
10K POT
10K resistors
8.2K resistor
Push Button Switch
30pF capacitors
10uF capacitors
0.1uF capacitors
9V BatteryQuantity
1
1
1
1
1
1
3
1
3
2
2
1
1