Shop OBEX P1 Docs P2 Docs Learn Events
I2C question — Parallax Forums

I2C question

ArchiverArchiver Posts: 46,084
edited 2002-09-05 20:28 in General Discussion
I'm trying to communicate with a 24LC256 EEPROM with the BS2p40
canned functions, I2CIN and I2COUT.

I'm having problems getting these commands to work for me. When I
trouble shoot the situation on a scope, It appears that the Low Byte
of my address is not being sent out.

I2COUT 0,$A0,0,[noparse][[/noparse]80]
I'm using variations of this statement for the output.

what do I have to include in the I2C command to get the low address
byte to appear on the SDA.

thanks,
Mike

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-09-05 20:26
    Try something like this, I think you are missing your backslash command in
    the address portion.
    I2COUT 0,$A,0/0,[noparse][[/noparse]80]


    Original Message
    From: "lightningshack" <MikDolan54@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, September 05, 2002 2:11 PM
    Subject: [noparse][[/noparse]basicstamps] I2C question


    > I'm trying to communicate with a 24LC256 EEPROM with the BS2p40
    > canned functions, I2CIN and I2COUT.
    >
    > I'm having problems getting these commands to work for me. When I
    > trouble shoot the situation on a scope, It appears that the Low Byte
    > of my address is not being sent out.
    >
    > I2COUT 0,$A0,0,[noparse][[/noparse]80]
    > I'm using variations of this statement for the output.
    >
    > what do I have to include in the I2C command to get the low address
    > byte to appear on the SDA.
    >
    > thanks,
    > Mike
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-09-05 20:28
    Sorry wrong backslash
    Try something like this, I think you are missing your backslash command in
    the address portion.
    I2COUT 0,$A,0\0,[noparse][[/noparse]80]


    Original Message
    From: "lightningshack" <MikDolan54@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, September 05, 2002 2:11 PM
    Subject: [noparse][[/noparse]basicstamps] I2C question


    > I'm trying to communicate with a 24LC256 EEPROM with the BS2p40
    > canned functions, I2CIN and I2COUT.
    >
    > I'm having problems getting these commands to work for me. When I
    > trouble shoot the situation on a scope, It appears that the Low Byte
    > of my address is not being sent out.
    >
    > I2COUT 0,$A0,0,[noparse][[/noparse]80]
    > I'm using variations of this statement for the output.
    >
    > what do I have to include in the I2C command to get the low address
    > byte to appear on the SDA.
    >
    > thanks,
    > Mike
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
    >
Sign In or Register to comment.