Alarm Clock without RTC using AT89C52
This clock works in 12 hour
mode and is configured by programming the microcontroller AT89C52. The program uses a delay
function for producing a delay of 1 second.
On reset, the LCD prompts the user to set time. Only the
hour and minute components can be set by pressing the corresponding switches,
repeatedly. These switches are made active low and so they provide ground to
the corresponding input pins of the controller. The AM/PM mode is set by
toggling the switch between ground and Vcc. Ground would set the clock in AM
mode while Vcc would set it in PM mode. The clock starts when start pin is
connected to Vcc by pressing the switch.
The set time is displayed on LCD screen and changes as the time
passes on. Seconds are increased after every one second by making use of delay
function. As second reaches 59, minute is incremented by one and second is
reset to 0. Similarly, as minute reaches 59, hour is increased by one and
minute is set to 0. After hour reaches 11, minute reaches 59 and second reaches
59, all of them are set to 0 and the AM/PM mode is changed accordingly.
| Circuit Diagram for Alarm clock without RTC |
For more detail and C - code please CLICK HERE.