Using DS 1307 with PIC

Discussion in 'Embedded Systems and Microcontrollers' started by mre san, Jan 13, 2018 at 6:31 PM.

  1. mre san

    Thread Starter New Member

    Saturday
    2
    0
    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
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    4,080
    638
  3. mre san

    Thread Starter New Member

    Saturday
    2
    0
  4. 128ITSH

    Member

    Jul 20, 2017
    47
    8
    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?
     
  5. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    6,374
    2,632
  6. be80be

    AAC Fanatic!

    Jul 5, 2008
    1,110
    196
    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.
     
  7. shteii01

    AAC Fanatic!

    Feb 19, 2010
    4,080
    638
    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.
     
Loading...