Basic Level     Skills: Not specified    
Author

Description

DS1302 based Digital Clock with Calendar



Here is another great submission from Victor (ugoo5000). We do have many digital clock projects on website but I again wanted to add this one to our list because there are two new and interesting things in it. There are good things to learn from this project. So I summarize all of them here:

  1. DS1302 as Time keeping IC
  2. Interrupt based keypad


The DS1302 trickle-charge timekeeping chip contains a real-time clock/calendar and 31 bytes of static RAM. It communicates with a microprocessor via a simple serial interface. The real-time clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator. DS1302 communicates with microcontroller using a 3 wire interface a very similar to SPI. So this is one new thing to learn in this project.

Now second interesting thing which got my attention is interrupt based keypad. All codes we have seen till now uses keypad scanning. This one uses interrupt based approach for scanning keys. As soon as a key an interrupt is generated though an AND gate connected to all the rows, which indicate controller that a key is pressed. So scanning is done in ISR routine where key is detected. I am sure this way of using a keypad must be helpful fo many of us when making our new projects.

You can download this project from link below
  Filesize

75.55 kB

  Downloads

18715

  Rating
 

Comments

(Required; Min length 5)
(Required; will not be displayed)

Downloads

Comments

carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am
utaletxcyw
Wed Apr 17 2024, 10:21 am