example code for DS1337


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    John,

    I'm not sure which pin you've connected SQW to, but ...
    Code:
          TRISA =%00000000 
          TRISB =%00000000 
          TRISC =%00000000 
          TRISD =%00000000
    One of the first things you do is set almost all the pins to output.
    That would stop any signal from SQW.
    <br>
    DT

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    If you think it is a capacitor issue and you are ordering more parts you may want to look at the DS1337C. Everything is built in.

    What voltage are you running the RTC on?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Talking Stupid me!

    Quote Originally Posted by Darrel Taylor View Post
    I'm not sure which pin you've connected SQW to, but ...
    One of the first things you do is set almost all the pins to output.
    That would stop any signal from SQW.
    <br>
    I seem to be having a lot of senior moments lately...this being another one. I should have caught that....once I set TRISB to provide for inputs on the pins I had connected to SQW/_INTB and _INTA the alarms worked as intended, thus indicating to me that current time and alarms were being correctly set at programming time even though I couldn't see that they were because of lack of a LCD.
    Thanks again Darrel!

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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