Page 2 of 3
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Fri Dec 11, 2020 10:42 am
by p.erasmus
Team
Much appreciated ,a company that listen to its users for many years Thank you for this MATRIX

Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Mon Dec 14, 2020 7:56 am
by DAVIDJOINER
Hi Ben
Getting back to the MCP23017 issue
last Monday you advised
I'll test the component tomorrow when I'm back in the office and have access to the hardware. I've looked again and so far haven't spotted any problems.
Have you made any progress on this
David
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Mon Dec 14, 2020 2:14 pm
by BenR
Hi David,
Sorry I didn't pick one up when I was there. Annoyed about that.
Is it urgent for you to get this working? If it is then I can head on over and pick one up for you.
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Mon Dec 14, 2020 2:23 pm
by DAVIDJOINER
Hi Ben
Some time later this week would be okay as appreciate you are likely ultra busy at this time
and I am still anyway battling with another separate issue at present ie ESP32 installation
Best Regards
David
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Tue Dec 15, 2020 3:54 pm
by BenR
Hi David,
I went back into the office for you and picked up the board. However on getting back home I realised I had the MCP23S17 the SPI version and that worked fine as is!!! I'm back in tomorrow so I'll endevour to test while I'm there.
I have looked at the code again and can't find any problems but it's sometimes easier to spot things when you've got the hardware in front of you.
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Tue Dec 15, 2020 11:51 pm
by DAVIDJOINER
Hi Ben
I have been investigating this further on the Arduino UNO using Flowkit 2 tonight
I have been checking the I2C operation using
1 FC9 I2C backpack LCD component which works
2 New FC9 MCP23017 which appears not to work
In simulation mode and linking to the FC9 oscilloscope
Both LCD & MCP23017 simulations provide data pulses on SDA & SCL which is correct
However when run on chip
When LCD is running I see pulses on SDA & SCL as expected
However when running MCP23017 see pulses on SCL but not on SDA
So I expect this should now give you a clue where the issues is within the MCP23017 component
David
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Fri Dec 18, 2020 3:40 pm
by DAVIDJOINER
Hi Ben
Any luck yet
Have again tried running exactly the same program in F8 and F9
MCP23017 still works fine inn F8 but not in FP9
Would like to get this resolved as really need it for my current Project
David
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Mon Dec 21, 2020 10:24 pm
by DAVIDJOINER
Hi Ben
Any progress as i am having yo use FC8 until this is fixed
David
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Tue Dec 22, 2020 10:40 am
by BenR
Hi David,
I've got some chips on order now and they will arrive tomorrow so I'll let you know how I get on.
Re: FLOWCODE 9 MCP23017 PROBLEM
Posted: Fri Dec 25, 2020 3:04 pm
by Alan_37
Hi David,
I just started playing with the MCP23017 according to the datasheet you have to set
Port B in your case to be an OUTPUT, this is done by writing the IODIRB register.
Putting a value of 0 will set the entire Port B to be an Output.
Working fine on the STM32, I hope this helps.
-

- reg.png (90.06 KiB) Viewed 10886 times