Shop OBEX P1 Docs P2 Docs Learn Events
auxio and i2cin/out problem — Parallax Forums

auxio and i2cin/out problem

Michael O'DoulMichael O'Doul Posts: 19
edited 2007-01-27 11:49 in BASIC Stamp
Hi All:

This one is driving me nuts. I'm using a ds1307 i2c RTC with a bs2p40. On the breadboard, the circuit and code worked beautifully. When I moved the hardware to a PCB, I lost functionality. Everything remained exactly the same EXCEPT that I changed the SDA and SCL pins from MAINIO to AUXIO. The hardware is working fine -- I've verified this by using some of Jon Williams old DS1307 code that doesn't use I2CIN/OUT. The clock is humming away and keeping beautiful time, but I can neither write to nor read from it using I2C commands. I can read from and write to it perfectly if I 'hand-code' the communications.

Does anyone have any experience with this problem and/or its solution? I don't have enough code space not to use I2CIN/OUT, and I can't move the clock back to the MAINIO side of the stamp.

Thanks

michael odoul

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-01-27 11:34
    Michael -

    Primative I2C routines are not restricted to only certain pin numbers. The I2CIN and I2COUT commands ARE LIMITED to using either pin 0 or pin 8. Have you kept that restriction in mind?

    Regards.

    Bruce Bates

    Post Edited (Bruce Bates) : 1/27/2007 11:45:49 AM GMT
  • Michael O'DoulMichael O'Doul Posts: 19
    edited 2007-01-27 11:40
    Color me stupid. I've been using i2cin/out for far too long not to have learned this. By the most improbable of circumstances, I've always RANDOMLY ended up using either 0 or 8 in the past, and therefore never noticed that it was a requirement. This lesson just cost me $60.

    Thanks Bruce.

    michael odoul
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-01-27 11:45
    Michael -

    When can I expect the $60.00 check? smile.gif

    Bruce

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • Michael O'DoulMichael O'Doul Posts: 19
    edited 2007-01-27 11:49
    Monday morning if you work for expressPCB.

    Otherwise, can you loan me sixty bucks? I have to pay the stupid tax (again).

    michael odoul smilewinkgrin.gif
Sign In or Register to comment.