Ds3231 rtc usage


Results 1 to 25 of 25

Threaded View

  1. #13
    Join Date
    Mar 2008
    Posts
    59


    Did you find this post helpful? Yes | No

    Default Re: Ds3231 rtc usage

    'DS3231
    'Can anyone tell me why this code does not work?
    settime:
    sda var portb.6
    scl var portb.5
    cntrl CON $10
    rtc CON %11010000
    SecReg CON $00
    hours = $16
    minutes = $40
    seconds = $00
    month = $01
    date = $04
    year = $16
    day = $02
    I2cwrite sda,scl, rtc, $D0, $00,[seconds,minutes,hours,day,date,month,year,cntrl]
    return

    'This line works fine to read from the DS3231
    I2CRead sda,scl, rtc, secreg,[seconds,minutes,hours,day,date,month,year]
    Last edited by n0yox; - 4th January 2016 at 23:56.

Similar Threads

  1. Usage of built-in DAC ?
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 16th December 2014, 05:59
  2. Accurate serin usage?
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th July 2009, 08:36
  3. Interrupt usage
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 20th April 2008, 16:20
  4. Serin usage?
    By champion in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 24th January 2007, 00:57
  5. HPWM usage with the 18F6520
    By slxrti in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th November 2005, 16:57

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