Shop OBEX P1 Docs P2 Docs Learn Events
Stampworks experiment 33: RTC, not working on BSp40? — Parallax Forums

Stampworks experiment 33: RTC, not working on BSp40?

jefmjefm Posts: 50
edited 2009-01-13 00:48 in BASIC Stamp
This might be a longshot but I can't get experiment 33 to work right, the debug always shows:

DS1307 Demo
3F:FF:FF
ÿÿÿ

If I hold button zero, it will show 00:00:00 until release, then back to 3F:FF:FF
I removed my 40 pin stamp, installed the BS2, and ran the BS2 code and it worked, so the 1307 should be ok. Tried a completely different Development Board and different BSp40 and it does the same thing. It acts as if the wires connecting it to the DS1307 are gone, I continuity tested them for kicks and reassigned SDA and SCL to different pins in the code/rewired accordingly. None of that seemed to work, any ideas? Thanks for any help!

Comments

  • $WMc%$WMc% Posts: 1,884
    edited 2009-01-11 04:10
    Mr Miller

    Have You looked at the "Reset :" statement? on page 190??

    #IF ($stamp >= BS2P) #THEN
    #ERROR "Please use BS2P version: SW20-EX33-DS1307.BSP"

    *Note the _BSP_ file ext. And not the _BS2_


    _________________$WMc%___________just a thought

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there·········································· E=$WMc%2

    Post Edited ($WMc%) : 1/11/2009 4:18:21 AM GMT
  • kelvin jameskelvin james Posts: 531
    edited 2009-01-11 05:22
    Will save you some time looking for it.


    **
  • jefmjefm Posts: 50
    edited 2009-01-11 15:25
    Thanks for the replies stampers,
    As noted in the OP I'm using the bs2 code for Basic Stamp 2 and the bsp code for the p40. I'll mill through it again today, hopefully it's just something i can figure out.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-01-12 16:52
    Jef,

    Are you using the same pins as those used by the original BSP code? I am wondering if perhaps you have a damaged I/O pin, or you are using a pin above P7?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • jefmjefm Posts: 50
    edited 2009-01-13 00:48
    Hello Chris:
    I'm not sure what changed but I just tried this and it worked. I think I might have confused myself with changing the INA/INB input registers to work alongside another circuit. If I can't rumble that I'll post here again but until then thanks much, sometimes the most helpful stuff is the most obvious :}
Sign In or Register to comment.