Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Dual Time Digital Alarm Clock

Dual Time Digital Alarm Clock

Here we are introducing a simple project using PIC16F873A/876A. A Dual time Digital clock with alarm. The PIC used is a 28 pin high performance RISC microcontroller from Microchip Inc, and having a 4K/8K byte program memory. It is a flash based and a member of PIC16F87XA family of low cost, CMOS, fully static, 8 bit microcontrollers. It requires less external components thus reducing cost and total power consumption.
Features at a glance
Dual time (Standard time + another time – GMT)
Counts seconds, minutes, hours, day, date, month and year
Alarm
12 hour / 24 hour time format
Leap year correction valid up to 2100

Working principle
The heart of this circuit is the inbuilt Timer1 module in PIC16F87XA. It is primarily intended for a 32 KHz crystal, and it will continue to run even in SLEEP. This module can be easily used to implement a real-time clock, an inexpensive 32.768 KHz watch crystal and two 33 pf capacitors are used to complete the circuit. The Timer1 is clocked by this crystal oscillator.
Since Timer1 is a 16 bit counter, the 32.768KHz crystal will cause the Timer1 to overflow in every two seconds or 65536 counts, for this reason TMR1 register pair (TMR1H:TMR1L ) is initialized to 0x8000, so that it will overflows in every seconds. The Timer1 overflow generates an interrupts, and in every interrupt the clock will be updated (in SLEEP, this interrupt will wake up the processor).

Visit Here for more.

 

More Articles to Read

Estimating Power for ADSP-BF561 Blackfin® Processors
Estimating Power for ADSP-BF561 Blackfin® Processors
Teach Your Arduino to Switch Itself Off!
Teach Your Arduino to Switch Itself Off!
Control a tracked robot with your mind (or joystick)
Control a tracked robot with your mind (or joystick)
A 400W (1kW Peak) 100A electronic load using linear MOSFETs
A 400W (1kW Peak) 100A electronic load using linear MOSFETs
Shirt Pocket Transceiver with the Si5351 and OLED
Shirt Pocket Transceiver with the Si5351 and OLED
All metal C930e webcam
All metal C930e webcam
The Soldering Tools That Make Your Life Easier
The Soldering Tools That Make Your Life Easier
App note: Operation evaluation of ultra low ON resistance MOSFET supporting quick charge for 1 c ...
App note: Operation evaluation of ultra low ON resistance MOSFET supporting quick charge for 1 cell Lithium ion battery protection
Synthesized Sidetone
Synthesized Sidetone
App note: Application precautions: Power MOSFET application notes
App note: Application precautions: Power MOSFET application notes

Top




Shares