Not sure how to talk to a Maxim DS2404 on 3 wire with BS2
Mziskind
Posts: 9
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
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