interfacing rtc with pic18

Status
Not open for further replies.

adm1

Junior Member level 1
Joined
Jan 5, 2010
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,381
Hi,

I am doing this for the first time and getting stuck. cAN anyone please help me out in this -
I need to interface a pic microcontroller (preferably pic18) with a real time clock- either using ds1307 or any other RTC chip.
My e-mail id is adi265ster@gmail.com
 

Hi,

You need to first read datasheet of ds 1307. How it gives date and time. Make hardware, connect two wire interface to ds 1307. Write code to read the addresses of ds 1307. Code is attached.

NIKS
 

Thank you, I shall try it.
But only the header files are there in the attachment, how do i use it ?
do i use a software like mikroc or sumthing?

Anyways thank you.
 

Yes, you have to use any compiler and call this function in your main source files. These are tested headers.

NIKS
 

thank you so much to all...
after two months of struggle, i managed to write data into rtc and read data from it. it usually takes much lesser time for experts...but i am still a beginner, and doing a project for the first time.

my next challenge is to store the date and time into a memory card... i really need some help on this --

thank you nikunj and tahmid...
 

The DS3232 is also a good IC if you want to try
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…