DS1307 returns incorrect data ???


Results 1 to 18 of 18

Threaded View

  1. #3
    Join Date
    Jul 2008
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    HI there,

    Here's the basic code i use, which seems to work, except for the odd figures i mentioned initially.

    Code:
    I2CWrite PORTC.2,PORTC.3,$D0,$00,[0, 15, 15, 5, 1, 10, 9, 10]	
    'WRITE time and date e.g. this dsets clock to 15:15:00 (3:15pm) on 
    'Thur (5), 1st (1), October (10), 2009 (9), with control set to "10" for 
    'a 1Hz pulseout on pin7.
    
    'and later i send this to serial port....
    SerOut TX,T9600,["Logged at",#RTCHour,":",#RTCMin,":",#RTCSec,",13,10]

    Obviously later, i remmed out the WRITE line, so the pic doesnt keep restarting at the same time/date.


    Happy to be pointed out any wrong byte(s) i'm using or missing
    Marty.
    Last edited by gtvmarty; - 1st October 2009 at 10:44.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 05:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 02:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 03:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 15:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 29th November 2004, 00:56

Members who have read this thread : 0

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