free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
gongyoo
Thu Jun 26 2008, 10:44PM

 User Offline
Registered Member #8645
Joined: Thu Jun 26 2008, 10:23PM

Posts: 3
Thanked 0 times in 0 posts
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 .





i can fly~~ i can touch sky~
Back to top


Ajay
Sat Jun 28 2008, 07:09AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4042
Thanked 753 times in 712 posts
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..

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


gongyoo
Sun Jun 29 2008, 07:35PM

 User Offline
Registered Member #8645
Joined: Thu Jun 26 2008, 10:23PM

Posts: 3
Thanked 0 times in 0 posts
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 .

i can fly~~ i can touch sky~
Back to top


Ajay
Tue Sep 16 2008, 11:45AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4042
Thanked 753 times in 712 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems