Basic Level     Skills: Not specified    


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

75.55 kB





16 May 2021: 00:28 AM
[Pending Approval]
(Required; Min length 5)
(Required; will not be displayed)


Sat May 15 2021, 11:47 AM
Derek Wolcott
Geometric Energy Corporation announced the dogecoin-funded mission on Sunday, with DOGE-1 representing a 40 kilogram cube satellite flying as a payload on a Falcon 9 rocket.
Thu May 13 2021, 07:18 PM
Pretty section of content. I just stumbled upon your weblog and in accession capital to assert that I get actually enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently quickly. Trisha Trisha
Wed May 12 2021, 01:23 PM
Jed Roan
Now you can promote your site all over the internet for FREE:
Wed May 12 2021, 08:20 AM
If some one wants to be updated with most recent technologies afterward he must be visit this web page and be up to date every day. annual credit report
Wed May 12 2021, 06:11 AM
Great website. A lot of useful information here. I'm sending it to some pals ans also sharing in delicious. And of course, thanks on your effort! annual credit report



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 108, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123