Page 1 of 1

Flowcode8 i2c slave functionality

Posted: Thu Dec 20, 2018 2:52 pm
by davidkilshaw
When using the i2C slave macro I am unsure if the following occurs

When the pic is set to an address and that address is sent via the master device does the pic respond with an ACK after it has received the address?

Thanks

Re: Flowcode8 i2c slave functionality

Posted: Thu Dec 20, 2018 3:28 pm
by LeighM
Hi
You need to read the Slave Status (e.g. in Main loop)
If it indicates that an address has been received then call Slave_RxByte with Last set to 0 to Ack it.
I've attached (a rather old) example.
Hope that helps
Leigh