Shop OBEX P1 Docs P2 Docs Learn Events
Not sure how to talk to a Maxim DS2404 on 3 wire with BS2 — Parallax Forums

Not sure how to talk to a Maxim DS2404 on 3 wire with BS2

MziskindMziskind Posts: 9
edited 2005-09-08 15:55 in BASIC Stamp
The attached program is my best guess on how to talk to a Maxim "Dallas" DS2404 EconoRAM Time Chip.
I couldn't attach·Dallas's spec sheet. From the Dallas Spec sheet for the DS2404, Figure 6 is what I was told to follow. I'm not sure if I'm using Shiftout & Shiftin correctly with addressing and data variables.·I'm concerned with the word length addresses and their process of writing the control register. I'm also concerned with the way to present the constants so they are have bit 0 first. I can't get this to work. The results are:

int1256ths is always 00000000, and for intSeconds is·0000000000100000 and intSecond2 are 0000000000000000. For the Interval Timer. Int1256ths should contain fractions of a second.

Thank you for your time. Martin

Comments

  • MziskindMziskind Posts: 9
    edited 2005-09-08 15:55
    I solved my problem. I wasn't returning the ES value from the Read ScratchPad on the Copy ScratchPad command. The appended program MZ_DS2404_4 is now dated and incorrect.
Sign In or Register to comment.