Home     Prjects     Microtools     Circuit     books     Software    Link us    
Books Topics
Analog circuit books
Digital  circuit books
 
 

AT89C4051 AS RTC DIGITAL CLOCK

Its a digial clock which make use of AT89C4051 to work as a Real time clock.
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

 
 

Figure1. SCH of aplication circuit
 

Figure2. Demo digital clock display

 

NOTE: If you think that there is a problem in the availability of the chip mentioned in the schematic, then you can also use AT89C51/AT89C52, make sure that you are using the same port for LCD and switches which are there in the C-file or in the schematic.
The schematic contains the power supply module also, which is not shown in the figure above.
For any help regarding the project please mail me anytime.


 


Bill of material require
Sr no.
Part name
Quantity
1
AT89C4051
1
2
LM7805
1
3
16*2 Line lcd
1
4
1n4001 diode
1
5
11.0592Mhz  Crytal
1
6
10k POT
1
7
10K resistor
3
8
8.2k resistor
1
9
Push Botton Switch
3
10
30pF capacitor
2
11
10uF capacitor
2
12
0.1uF capacitor
1
13
9V Battery
1
 
DOWN LOAD

 
 
Copyright(c) 2006 circuitseed.com, All right reserved.
              Best view @ 800X600, IE 6.0 up