Page 1 of 1

I2C internal address

Posted: Fri May 12, 2017 8:17 am
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!

Re: I2C internal address

Posted: Fri May 12, 2017 8:36 am
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

Re: I2C internal address

Posted: Fri May 12, 2017 10:09 am
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?

Re: I2C internal address

Posted: Tue May 16, 2017 1:42 pm
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....

Re: I2C internal address

Posted: Tue May 16, 2017 1:45 pm
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!