I2C internal address

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
gaaborkun
Posts: 4
Joined: Tue Mar 07, 2017 7:19 am
Contact:

I2C internal address

Post by gaaborkun »

Hi everybody!

A technical question about Flowcode7 and I2C master component.
I have a slave device with just one byte internal address.
The question: How can I work with Rx or Tx ByteTransaction macro when I haven't 2 byte internal address?
If I leave blank the AddrH or AddrL line, it makes an error massage.

Has anyone a solution for this problem?

Thanks!

User avatar
LeighM
Matrix Staff
Posts: 2136
Joined: Tue Jan 17, 2012 10:07 am
Contact:

Re: I2C internal address

Post by LeighM »

Rather than using the Transactions, you will need to build up your own protocol, to match what the device requires,
such as Start, TransmitByte, Restart, ReceiveByte, Stop

User avatar
petesmart
Valued Contributor
Valued Contributor
Posts: 395
Joined: Thu May 06, 2010 11:42 am
Location: Sydney, Australia
Contact:

Re: I2C internal address

Post by petesmart »

Have you tried this on hardware?

I have had experience in which the slave device ignores the hi byte addr - it work by setting the addr 0

just a thought it possibly hardware dependent?
sorry about that Chief!

gaaborkun
Posts: 4
Joined: Tue Mar 07, 2017 7:19 am
Contact:

Re: I2C internal address

Post by gaaborkun »

petesmart wrote:Have you tried this on hardware?

I have had experience in which the slave device ignores the hi byte addr - it work by setting the addr 0

just a thought it possibly hardware dependent?

Thanks, I will try it....

gaaborkun
Posts: 4
Joined: Tue Mar 07, 2017 7:19 am
Contact:

Re: I2C internal address

Post by gaaborkun »

LeighM wrote:Rather than using the Transactions, you will need to build up your own protocol, to match what the device requires,
such as Start, TransmitByte, Restart, ReceiveByte, Stop
Hi, yes I usually use this method what you wrote. I have asked, because maybe there is a comfortable solution. Thanks!

Post Reply