Discussion in "Project Addition or Changes" started by    gongyoo    Jun 27, 2008.
Fri Jun 27 2008, 11:14 am
#1
hello, everybody! now I have a project about real time clock DS1302 and LCD. I want to write a c programming to display the time and date in the LCD using DS1302 real time clock.anyone can provide some code or sample c programming to run this project??thanks .

Sat Jun 28 2008, 07:39 pm
#2
you have to start yourself. We will provide you all help you need for your project. Just download Datasheet from Dallas website and try to implement reading of internal registers of DS1302.

for any help we are here..
Mon Jun 30 2008, 08:05 am
#3
hi
ths for your reply. actually I read the data sheet already.I still some confused about the subfunction about the DS1302 .my project is quite urgent . can you provide the whole project . I want to learn the sample program about just using 1602 LCD display DS1302. so can you provide the whole programming ??
thanks for your help .
Wed Sep 17 2008, 12:15 am
#4
gongyoo, i wish i could provide the code direcly, but its not according to rules of forum. But I am here to help you out.
DS1302 works on very simple 3-wire interface.
the format of reading and writing from clock is given on page 6.
first you send a byte in following format
Bit 0 : Read/Write
Bit 1- Bit5 : A0 - A5 : Address Bits
Bit 6: RC (ram or clock)
Bit 7: always 1

after you send this byte, your next byte will be either data you want to write or read. Please try it once, try writing something.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am