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

App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: Noise analysis for high-speed op amps
App note: Noise analysis for high-speed op amps
Skill Sunday: Arrays
Skill Sunday: Arrays
App note: Infrared remote control implementation with MSP430FR4xx
App note: Infrared remote control implementation with MSP430FR4xx
Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown
Blinking Christmas Lights
Blinking Christmas Lights
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
Qinsi-QS5100 Sn63Pb37 solder profile
Qinsi-QS5100 Sn63Pb37 solder profile
Water Detection System
Water Detection System
Professional Hi-Fi 15W Tube Amplifier circuit
Professional Hi-Fi 15W Tube Amplifier circuit
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits

Top


Shares