FLOWCODE 9 MCP23017 PROBLEM

Any bugs you encounter with Flowcode should be discussed here.
User avatar
p.erasmus
Posts: 434
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by p.erasmus »

Team

Much appreciated ,a company that listen to its users for many years Thank you for this MATRIX :D
Regards Peter - QME Electronics

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post 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

BenR
Matrix Staff
Posts: 1786
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 455 times
Been thanked: 621 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post 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.

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post 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

BenR
Matrix Staff
Posts: 1786
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 455 times
Been thanked: 621 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post 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.

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post 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

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post 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

DAVIDJOINER
Posts: 140
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post by DAVIDJOINER »

Hi Ben

Any progress as i am having yo use FC8 until this is fixed

David

BenR
Matrix Staff
Posts: 1786
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 455 times
Been thanked: 621 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post 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.

Alan_37
Posts: 141
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 43 times
Been thanked: 19 times

Re: FLOWCODE 9 MCP23017 PROBLEM

Post 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
reg.png (90.06 KiB) Viewed 5245 times
Attachments
LCD_MCP23017_-TESTR_REV01.fcfx
(10.95 KiB) Downloaded 191 times

Post Reply