Shop OBEX P1 Docs P2 Docs Learn Events
I2C commands with DS1388 RTC — Parallax Forums

I2C commands with DS1388 RTC

Lone_huskyLone_husky Posts: 13
edited 2009-02-09 12:51 in BASIC Stamp
I realize that there is a lot on this forum about I2C and I have done a fair bit of reading, but I'm having some trouble using the I2C commands with a BS2px to control the DS1388 RTC from Maxim. It is similar to the DS1307, which does have some good code written for it without using the I2C commands, but I can't understand how to use the I2C commands I2CIN and I2COUT in this context. After the slave address there is an interval address, but in addition with the DS1388 there is a block and a word address. Do I need to send both to the device? and do I need to append them together or send them separately?

-Vassilios

Comments

  • kelvin jameskelvin james Posts: 531
    edited 2009-02-08 20:26
    You could have a look at this example program for a 1307 and bsp that might give you some idea.

    **
  • Lone_huskyLone_husky Posts: 13
    edited 2009-02-09 12:51
    thank you. I realize the problem is that i wired the two lines SDA and SCL backwards. Unfortunately I don't see a way to re-configure the I2C commands for this reversal.

    thanks again

    -vassilis
Sign In or Register to comment.