Basic Level     Skills: Not specified    
Author
Author email
[email protected]
Author website
www.rickeyworld.info

Description



DS1307 is a hardware realtime clock, which works on I2C protocol. Better graphics using the same old fashioned alphanumeric LCD (type HD44780). Icons which shows the status for Alarm ON/OFF state, which gives a nice and cute look to the clock.

There are four switches connected to the uC, as shown in the figure. Function of the keys are same as clear from their names.

When the power supply is switched on it will give you the default date and time, but later you can change it to the desired value. After setting once, the backup battery will keep the clock ticking even after the power is not there.

A little about I2C:
There are basically four main conditions in I2C protocol.
1) Start Condition
2)Stop Condition
3)Data Validity
4)Acknowledgement

1)Start Condition:
when SCL is high and SDA H->L, will be taken as start condition for the communication.
2)Stop Condition:
when SCL is high and SDA L->H, will generate a stop condition.
3)Data Validity:
When SCL is high there should be no chande in SDA line only then the data is valid, the data change should be made only when SCL is low.
4)Acknowledgement:

After sending of one byte of data the reciever has to acknowledge the sender for the successful reception. for this the sender make the SDA line high and reciever pulls down the SDA low, which tells the sender that data has reached safely.

Now the source code written in assembly, basically implements the I2C protocol. the assembly source written for Keil download here clock.asm and the direct hex file for programming the controller from here clock.hex. The schematic for the Digital clock is available in PDF format can be downloaded from here clock.pdf.

Project code has been revised and updated. Bug fixes regarding corrupt display.

History:
First Upload date:
08/05/2006
  Filesize

  Downloads

84704

  Rating
 

Comments

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

Conversation

Sat Apr 25 2015, 11:29 PM
1
-1'
Sat Apr 25 2015, 11:29 PM
-1'
1
Sat Apr 25 2015, 06:16 AM
rohan_verma
sir this circuit is tested?can i use it directly on developing PCB
Sat Apr 25 2015, 06:13 AM
rohan_verma
MSCOMM32.ocx cannot be copied in the systems folder even with administration rights.
Fri Apr 24 2015, 01:58 AM
mostfa
please fix the LCD Interfacing Tutorial as all pictures is gone
Fri Apr 24 2015, 01:57 AM
mostfa
LCD Interfacing Tutorial
Qasim359
Tue Apr 21 2015, 07:31 AM
hello every one i have made pic industrial and domestic timer and i can,t understand c code written in Hi-Tech please send me Mikroc code for this project anyone...................
ExperimenterUK
Wed Apr 15 2015, 05:07 PM
@Bibek.. and everyone. Create threads if you need help. The chat box is just for chat
ExperimenterUK
Wed Apr 15 2015, 05:06 PM
@mohd atif ..login..create a post/thread,then I can post a copy of the missing file
Mon Apr 13 2015, 07:03 PM
mohd atif
@experimenteruk I didn't get you

Downloads

Comments

Seven
Thu Apr 23 2015, 12:02 AM
killbillpandey
Wed Apr 22 2015, 09:07 PM
Qasim359
Tue Apr 21 2015, 07:06 AM
lumines
Sat Apr 18 2015, 11:30 PM
[email protected]
Sat Apr 18 2015, 05:02 PM
arvindarunoday
Sat Apr 18 2015, 04:26 PM
samarhbk
Sat Apr 18 2015, 12:57 PM
chitty789
Tue Apr 14 2015, 06:14 PM

Online

Guests: 42, Members: 0 ...

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

Members: 37629
Newest member: Seven
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Apr 25 2015, 06:03 PM
plz tell me how i edit this code file in MPLAB if ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Apr 23 2015, 08:00 PM
gsdvprasad Avatar
Posted By gsdvprasad
Thu Apr 23 2015, 12:49 PM
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Apr 21 2015, 04:37 PM
I doubt anyone has Mikroc code.It is probably more...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Apr 21 2015, 04:24 PM
A multimeter won't help :(The most practical way i...
ankitbajaj01 Avatar
Posted By ankitbajaj01
Tue Apr 21 2015, 03:21 PM
As I don't have CRO, Can we test the crystal with ...
Qasim359 Avatar
Posted By Qasim359
Tue Apr 21 2015, 07:26 AM
i can,t understand C Code written in Hi-Tech pleas...
gaurav7577 Avatar
Posted By gaurav7577
Mon Apr 20 2015, 07:04 AM
k..let me make all this simple for u so u can add...
ajay_bhargav Avatar
Posted By ajay_bhargav
Sun Apr 19 2015, 06:50 PM
Please zip and attach the code in future. You forg...
ajay_bhargav Avatar
Posted By ajay_bhargav
Sun Apr 19 2015, 06:48 PM
It is really hard to say which course and/or insti...