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)!
FC10 Hardware I2C on MCP23017 not working
-
- Posts: 17
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 31, 2020 2:14 pm
- Been thanked: 3 times
-
- 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
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.
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