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!
I2C internal address
Moderator: Benj
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: I2C internal address
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
such as Start, TransmitByte, Restart, ReceiveByte, Stop
- petesmart
- Valued Contributor
- Posts: 395
- Joined: Thu May 06, 2010 11:42 am
- Location: Sydney, Australia
- Has thanked: 187 times
- Been thanked: 140 times
- Contact:
Re: I2C internal address
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?
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!
Re: I2C internal address
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
Hi, yes I usually use this method what you wrote. I have asked, because maybe there is a comfortable solution. Thanks!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