Stampworks experiment 33: RTC, not working on BSp40?
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!
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
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
**
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.
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
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 :}