I2C device_ID

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
kkrause
Flowcode v5 User
Posts: 8
Joined: Fri Apr 17, 2009 7:04 pm
Has thanked: 1 time
Contact:

I2C device_ID

Post by kkrause »

The latest I2C specification says that there are 3 bytes for the Device ID: Manufacturer, part ID, & revision.
The MI2C_send_byte_transaction in Flowcode4 only allows a single byte for this.
Does Flowcode use this byte for something else or in a different way, or am I barking up the wrong tree?

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: I2C device_ID

Post by Dan81 »

Hello kkrause

"Transaction" is useful when you want to read or write an EEPROM with 2 byte address (>= 256).

If you want to read the manufacturer byte, you must use a reserved address (see chapter Device ID) and macros : TransmitByte and ReceiveByte.

Daniel

kkrause
Flowcode v5 User
Posts: 8
Joined: Fri Apr 17, 2009 7:04 pm
Has thanked: 1 time
Contact:

Re: I2C device_ID

Post by kkrause »

Thanks Daniel. I'm actually designing in a GLCD which has an I2C interface. I shall experiment this evening...

Post Reply