Shop OBEX P1 Docs P2 Docs Learn Events
Timekeeping chip problem — Parallax Forums

Timekeeping chip problem

TabiriTabiri Posts: 23
edited 2011-01-03 16:32 in BASIC Stamp
All my timekeeping chip displays on the debug screen is
SUN 01/01/00 00:00:80.
I think the problem is the crystal, but even after replacing it nothing has changed, and i've triple checked all my other wiring.

Comments

  • $WMc%$WMc% Posts: 1,884
    edited 2010-12-27 17:43
    Tabiri wrote: »
    All my timekeeping chip displays on the debug screen is
    SUN 01/01/00 00:00:80.
    I think the problem is the crystal, but even after replacing it nothing has changed, and i've triple checked all my other wiring.
    '
    Need more info.
    '
    What timekeeping chip are you using?
    '
    What Stamp.
    '
    What program, (Post-it if its your own and need help with it)
    '
    Is this the RTC on the BasicStampPro.Dev.Board? ( If so there is a thin clear piece of tape on the watch battery for shipping)
    '
    Else need more info.
  • TabiriTabiri Posts: 23
    edited 2010-12-29 12:52
    Sorry.
    I'm using the DS1302, BS2. I'm currently using the timekeeping template from Chris' thread.

    http://forums.parallax.com/showthread.php?77867-DS1302-Demo-Code-%28Updated%29&highlight=chris+savage+ds1302

    I'm using the board of education.

    Hope that helps :)
  • $WMc%$WMc% Posts: 1,884
    edited 2010-12-31 16:04
    Tabiri wrote: »
    Sorry.
    I'm using the DS1302, BS2. I'm currently using the timekeeping template from Chris' thread.

    http://forums.parallax.com/showthread.php?77867-DS1302-Demo-Code-%28Updated%29&highlight=chris+savage+ds1302

    I'm using the board of education.

    Hope that helps :)
    '
    Tabiri:
    '
    I dug-up a DS1302 RTC. If I can find a 32.768KHz Xtal in my drawer of Xtals, I'll lay this out on my Pro. Dev.Board and see what I come up with.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-12-31 17:12
    One thing to look at is if you hook up the DS1302 pin to pin on the Basic Stamp The that way I hook mine up instead of the way the demo has it hook up



    Demo code
    DataIO          PIN     0               ' DS1302.6
    Clock           PIN     1               ' DS1302.7
    CS1302          PIN     2               ' DS1302.
    

    The that way I hook mine up

    I hope this helps
    DataIO          PIN     1               ' DS1302.6
    Clock           PIN     0               ' DS1302.7
    CS1302          PIN     2               ' DS1302.5
    
  • stamptrolstamptrol Posts: 1,731
    edited 2011-01-01 05:15
    Its unlikely the crystal is the problem unless its been hit with a hammer or crushed in a vice.
    The crystal does have to be connected as close to the chip as possible for long term accuracy. (I solder mine directly to the chip pins).
    Chris's demo program works fine. Sam_sam_sam noted there may be a cross-up in the pin assignments in the demo. I used different Stamp pins so can't confirm that.
    Do you have any other circuitry connected?
  • TabiriTabiri Posts: 23
    edited 2011-01-03 16:32
    Sam: Yeah, I did have to change the pins around, but I'm pretty sure that they're good now.

    Stamp: I've got the datalogger as well as the ping ultrasonic sensor connected to my board.

    The strange thing was, I did get the demo program working for about a day, but the next time I tried it it didn't work anymore.
Sign In or Register to comment.