Using DS 1307 with PIC

Thread Starter

mre san

Joined Jan 13, 2018
2
Hello

I have this DS1307 like this picture

https://s3-ap-southeast-1.amazonaws.com/a2.datacaciques.com/wm/NDAy/3849027817/626508543.jpg

and I want to link this RTC to my PIC16F877A by wires in breadboad, but I don't know it is possible or no ?

because in a lot of videos on youtube, I see most of people use just this
http://www.rinkydinkelectronics.com/images/libpics/L0034P001310386026.png

and then they connect him with crystal by wires and also they connect him with battery by wires, but me I found all this pieces grouped on one circuit like the first picture and I don't know if it is aivable to use it with PIC or no



Awaiting your replies

Thanks
 

128ITSH

Joined Jul 20, 2017
101
Yes all this I know thank you very much, but just that ds1307
https://s3-ap-southeast-1.amazonaws.com/a2.datacaciques.com/wm/NDAy/3849027817/626508543.jpg


group all the components in one piece, and I want to know with the pic is what it is possible to use as this piece with the pic in a labdec
If the needed pins for communication are "broken out" and available on the board, then you should be able to communicate with the DS1307. Do you have a datasheet for this board? there are any more components on it?
 

spinnaker

Joined Oct 29, 2009
7,835

be80be

Joined Jul 5, 2008
2,042
They added the parts to make it work its now ready to use
The OP has one make the video just shows a chip
There still the same thing the chip does not work without the rest of it the.
The board you have is made for you.
 

shteii01

Joined Feb 19, 2010
4,644
Yes all this I know thank you very much, but just that ds1307
https://s3-ap-southeast-1.amazonaws.com/a2.datacaciques.com/wm/NDAy/3849027817/626508543.jpg


group all the components in one piece, and I want to know with the pic is what it is possible to use as this piece with the pic in a labdec
I see.
Here is what you need to do.
1. Run 5 volts to VCC pin.
2. Run Ground/Common/0 volts to GND pin.
3. I assume that your pic has a library for rtc. Check the library information to find out what pins are used for serial clock signal (SCL) and serial data signal (SDA).
3a. Connect pic serial clock signal pin to CLK pin of the ds1307 module.
3b. Connect pic serial data signal pin to DAT pin of the ds1307 module.

That should be all. The rest is pic software and physical procedure. There is a procedure to load the initial date and time. And there is a different procedure to read date and time from the module. Just follow the steps of each procedure.
 
Top