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

85434

  Rating
 

Comments

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

Conversation

Thu Aug 27 2015, 10:06 PM
1
-1'
Thu Aug 27 2015, 10:05 PM
1
1
Thu Aug 27 2015, 10:03 AM
Nilesh Thakre
anybody please help me ,i face problem reading a message and identify the string of read message (8051 uc with sim300 gsm modem i have use)
ajay_bhargav
Thu Aug 27 2015, 07:17 AM
@KRIZZA, make the circuit, and load hex file you're done.
Thu Aug 27 2015, 03:39 AM
sk nawal
arm control ckt
Mon Aug 24 2015, 02:11 AM
KRIZZA
@ExperimenterUK BUILD PROJECT LIKE THIS
gkn06
Thu Aug 20 2015, 03:17 AM
hello anybody please
Wed Aug 19 2015, 09:48 AM
Kiruba
I am new to ARM Development..I need help
Tue Aug 18 2015, 09:34 AM
mairja naser
pic30f2010 ic usb copy
ExperimenterUK
Mon Aug 17 2015, 10:32 PM
@krizza build what ?

Downloads

Comments

syahaikas102
Wed Aug 26 2015, 02:03 PM
iscode
Fri Aug 21 2015, 11:19 PM
JunkmanXL
Thu Aug 20 2015, 11:55 AM
pari@3120
Thu Aug 20 2015, 07:07 AM
gkn06
Wed Aug 19 2015, 09:50 AM
mopatihanuman
Tue Aug 18 2015, 12:47 PM
gebrish
Thu Aug 13 2015, 08:26 AM
casha
Fri Aug 07 2015, 07:42 AM

Online

Guests: 37, Members: 0 ...

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

Members: 37687
Newest member: syahaikas102
Forum Activity
pravin_35 Avatar
Posted By pravin_35
Sat Aug 29 2015, 08:25 AM
Hi every one ,I need a help how to compare the Usa...
gkn06 Avatar
Posted By gkn06
Thu Aug 27 2015, 02:52 PM
ok! to start with which IDE or compiler you're pla...
ajay_bhargav Avatar
Posted By ajay_bhargav
Thu Aug 27 2015, 07:05 AM
ok! to start with which IDE or compiler you're pla...
abdul991 Avatar
Posted By abdul991
Sat Aug 22 2015, 06:07 PM
1. Its a pratical task...2. SNMP manager is implem...
gkn06 Avatar
Posted By gkn06
Wed Aug 19 2015, 10:18 AM
My project is to interface several serial interfac...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Aug 17 2015, 10:13 PM
Let me start by saying that I have no experience w...
abdul991 Avatar
Posted By abdul991
Thu Aug 13 2015, 12:33 PM
Hi all.... I'm trying to implement a Atmega2560 as...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Jul 23 2015, 08:14 PM
Try this link.Basically find the tacho output pin...
seoulmak Avatar
Posted By seoulmak
Mon Jul 20 2015, 03:44 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Mon Jul 20 2015, 04:42 AM
Ok then, check if you did not mention "LCD_ClearSc...