PIC16F887 and DS1307


Results 1 to 22 of 22

Threaded View

  1. #10


    Did you find this post helpful? Yes | No

    Default

    well,
    data on 1307 is hex so.......

    SEROUT2 PORTA.0,6,1,[ "_T" ,HEX RTC[6],"/",HEX2 RTC[5],"/20",_
    HEX2 RTC[7]," , ",HEX RTC[3],":",HEX2 RTC[2],":",HEX2 RTC[1]," ",RTC[9],"M _" ]
    ( use your own port etc.)

    the voltage on SCL & SDA (to gnd) has to be +5 at rest, no signal . Thats what the 10k resisters do.

    also, you can check square wave out at 1 HZ with led/resister on the output pin of 1307 as visual check of rtc.
    I2CWRITE SDA,SCL,RTCADW,7,%00010000 'TURN ON SQU WAVE OUT to...1... HZ
    Last edited by amgen; - 28th June 2008 at 04:10.

Similar Threads

  1. Pic16f887 vs ds1307
    By larzazral in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th January 2010, 05:12

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts