Any bugs you encounter with Flowcode should be discussed here.
DAVIDJOINER
Posts: 140 Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times
Post
by DAVIDJOINER » Mon Dec 14, 2020 7:56 am
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: 1936 Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times
Post
by BenR » Mon Dec 14, 2020 2:14 pm
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
Post
by DAVIDJOINER » Mon Dec 14, 2020 2:23 pm
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: 1936 Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times
Post
by BenR » Tue Dec 15, 2020 3:54 pm
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
Post
by DAVIDJOINER » Tue Dec 15, 2020 11:51 pm
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
Post
by DAVIDJOINER » Fri Dec 18, 2020 3:40 pm
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
Post
by DAVIDJOINER » Mon Dec 21, 2020 10:24 pm
Hi Ben
Any progress as i am having yo use FC8 until this is fixed
David
BenR
Matrix Staff
Posts: 1936 Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times
Post
by BenR » Tue Dec 22, 2020 10:40 am
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: 186 Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 54 times
Been thanked: 26 times
Post
by Alan_37 » Fri Dec 25, 2020 3:04 pm
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 10887 times
Attachments
LCD_MCP23017_-TESTR_REV01.fcfx
(10.95 KiB) Downloaded 690 times