Ds3231 rtc usage


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Location
    Ventura, CA
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: Ds3231 rtc usage

    Quote Originally Posted by MichelJasmin View Post
    See attached file. I use it as an include.

    Displaying time is like
    Code:
    '----[ ALIAS }-------------------------
    RTC_SDA         Var PORTB.3
    RTC_SCL         Var PORTB.2
    
    '----[ INCLUDES }-------------------------
    INCLUDE "..\_Include\DS3231.pbp"
    
    ...
    
    gosub GetTime
    HSEROUT2  [hex2 RTCHour, ":", hex2 RTCMin, ":", hex2 RTCSec, 13, 10]
    Michel, I know it's been a long time since this was posted, but doesn't the statement "GOTO OverDS3231" skip over the entire program? Or is this just a case of me not understanding how include files work? -Jeff

  2. #2
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: Ds3231 rtc usage

    Quote Originally Posted by JBKerner View Post
    Michel, I know it's been a long time since this was posted, but doesn't the statement "GOTO OverDS3231" skip over the entire program? Or is this just a case of me not understanding how include files work? -Jeff
    It skips the include file which contains only functions to be called.

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