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

Williamjaf
Tue Apr 16 2024, 12:25 pm
best_yyPa
Tue Apr 16 2024, 09:42 am
ErnestoExpop
Tue Apr 16 2024, 02:57 am
Jamesclepe
Mon Apr 15 2024, 11:10 am
Aliciaelora
Mon Apr 15 2024, 07:59 am
btaletvpcu
Mon Apr 15 2024, 04:36 am
UbvpwcTib
Mon Apr 15 2024, 03:13 am
AmyJow
Sun Apr 14 2024, 11:54 pm