FC10 Hardware I2C on MCP23017 not working

For general Flowcode discussion that does not belong in the other sections.
Post Reply
pschoon
Posts: 17
http://meble-kuchenne.info.pl
Joined: Thu Dec 31, 2020 2:14 pm
Been thanked: 3 times

FC10 Hardware I2C on MCP23017 not working

Post by pschoon »

Hi,

Developed a small PIC16F18877 control board with MC23017 IO expander on it.
I2C to expander is working in software mode but not in hardware mode (channel 1)!
IO_Switch_V100.fcfx
(25.49 KiB) Downloaded 329 times

medelec35
Matrix Staff
Posts: 1951
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 624 times
Been thanked: 656 times

Re: FC10 Hardware I2C on MCP23017 not working

Post by medelec35 »

Hello.
Thank you for the bug report.
I will be looking into this as soon as I can.
Martin

medelec35
Matrix Staff
Posts: 1951
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 624 times
Been thanked: 656 times

Re: FC10 Hardware I2C on MCP23017 not working

Post by medelec35 »

Hello.
The issue is caused by forcing the I2C pins low your expander is connected to.
It is a bad idea to force I2C high or low.
What you need to do is select Advance options of both outputs to port C and select:
Output to: Single Bit: 0

As this is not an I2C bug I have moved the topic to a more suitable location.
Martin

Post Reply