Page 3 of 3

Re: FLOWCODE 9 MCP23017 PROBLEM

Posted: Sat Dec 26, 2020 11:34 pm
by DAVIDJOINER
Hi

Thanks for update

I tried the modification

Unfortunately still does not work on FC9 but as before works on FC8

Anyway suspect your FC8 MCP23017 component must have already had this built in other wise it would not have worked either

I have enclosed the compilation report for both the FC8 & FC9 runs
I do notice that the data memory is different for both ie fc8 utilizes .nss amd nbss Data memory whereas FCP9 just uses nbss
Presume the compilers are slightly different ?
But not sure if this is relevant ?

Note I have also modified your program slightly for convenience by adding an additional delay so i can more easily see if port B flashes

Note these tests all carried out using dspic

Any further suggestions

David

Re: FLOWCODE 9 MCP23017 PROBLEM

Posted: Mon Jan 04, 2021 10:57 pm
by DAVIDJOINER
Hi

Any further suggestions re my last post as getting rather frustrated that having purchased FC9 i still cannot appear to get MCP23017 I2C working correctly on FCP whilst on FC8 it is fine

David

Re: FLOWCODE 9 MCP23017 PROBLEM

Posted: Tue Jan 05, 2021 3:53 pm
by BenR
Hi David I'm really sorry I have received the chip now and it's been sat on my desk. I'll look at it now for you.

Re: FLOWCODE 9 MCP23017 PROBLEM

Posted: Wed Jan 06, 2021 10:42 am
by BenR
Hi David,

Right I have now rigged up the chip and tested using my interface board and that has passed, so it looks like the component code itself is working fine.
Test.jpg
Test.jpg (18.95 KiB) Viewed 8515 times
MCP23017Tester.fcfx
(17.04 KiB) Downloaded 655 times
I'll try in an embedded context now just to be sure that everything is ok there with the specific CAL and the transaction code.

edit. Found and resolved the problem now, will post a fix shortly. Ended up not being a problem with the component at all but the underlying CAL and it's nice we've found and fixed it as it would have had big implications in v8 and v9. Wasn't easy to spot but thanks very much for bearing with us while we got to the bottom of it. I've fixed the problem in both v8 and v9 now and will roll out the fix to the update system ASAP.

Re: FLOWCODE 9 MCP23017 PROBLEM

Posted: Wed Jan 06, 2021 12:26 pm
by DAVIDJOINER
Hi

Many thanks look forward to seeing the update

David

Re: FLOWCODE 9 MCP23017 PROBLEM

Posted: Wed Jan 06, 2021 12:26 pm
by BenR
Hi David,

Should be there for you now.

Re: FLOWCODE 9 MCP23017 PROBLEM

Posted: Thu Jan 07, 2021 3:55 pm
by DAVIDJOINER
Hi

Many thanks just tried your updated cal file

Now works fine both in FC8 & FC9

DAVID