Shop OBEX P1 Docs P2 Docs Learn Events
DS1302 running slow — Parallax Forums

DS1302 running slow

BobValBobVal Posts: 48
edited 2008-11-26 11:56 in General Discussion
Hello:

I took all the parts off my breadboard and soldered them onto my super carrier board and now my clock is ticking very slow.

Software wise everything seems to be working fine.·

The clock I have displaying is ticking very slowly which leads me to believe that I did something to the DS1302 or the Crystal.·
Everything worked fine on the breadboard (clock kept perfect time for days, now off in minutes)

Should I start with the Crystal or DS1302.

Is it possible to install the clock crystal (I believe it is the··XTAL-32.768 kHz), backwards?· Or did I just burn it out?

Bob

·

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-11-24 08:18
    The crystal is non-polarized so you cannot have it backwards.
    Check all the solder joints. See if you can recreate the schematic
    from the soldered connections and see if that matches your
    original schematic. It·may be·that you made an incorrect
    connection or left a connection out.
    If you write· a value into a ram register, do you read the same value back?
    Try different values.

    regards peter
  • JFReyesJFReyes Posts: 10
    edited 2008-11-24 12:46
    I also had the same problem and ended up soldering the crystal directly on the chip's pins (very carefully). Problem solved.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jos
  • BobValBobVal Posts: 48
    edited 2008-11-24 14:49
    Tried touching up the solder joints on the crystal, still runs slow (checked all contacts with a meter and everything seems fine).

    De-soldered the old crystal and soldered one right onto the chip.

    Now everything is working perfect.

    Thanks
  • BobValBobVal Posts: 48
    edited 2008-11-24 15:04
    PS: I think the problem could have been I pulled the crystal too close to the board and was making contact with the shell (the shell was not grounded to anything) and the solder pad.

    Not sure if that would cause a problem but maybe
  • JFReyesJFReyes Posts: 10
    edited 2008-11-26 11:56
    ...And therefore introduced additional capacitance that would slow its oscillations down. The length of the connection is critical, even if it's good electrically. Glad you solved it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jos
Sign In or Register to comment.