Page 1 of 1

I2C component faulty

Posted: Mon Oct 06, 2025 1:02 pm
by jollybv
Hi Guys I'm having a problem with the I2C component in V7 as it wont let me select the SDA and SCL pins when i click on the dropdown menus it is blank how can i sort this out? as i deleted flowcode downloaded it again reloaded it still the same thing is happening
I2C.jpg
I2C.jpg (37.31 KiB) Viewed 144 times

Re: I2C component faulty

Posted: Mon Oct 06, 2025 1:38 pm
by BenR
Hello,

What chip are you using? Can you attached your project file?

I've just tried the 16F18877 in v7 and it appears to be working correctly there.

Would using a software channel or upgrading to v10 be an option?

Re: I2C component faulty

Posted: Tue Oct 07, 2025 3:39 pm
by jollybv
Hi Ben
I'm using the 18F47K40 I have V9 as well but the program wont compile in V9 so i have to use V7 as i really don't have the time to reprogram the whole project. V10 I would like to get but to expensive for me at the moment as i live in South Africa its like 20 to 1 exchange rate.

I have fired up my old PC and tried programming there on both machines I'm running V7.3.0.5 What I have found on the old machine I can set channel 1 and 2 of the I2C. On the 18F47K40 chip I'm using its connected to clock C3, Data C4, but if i set it to channel 1 or 2 it just hangs on the first read memory. If i set it to software on the first read it works but when you try to write a bite to memory using the SendByte Transaction it goes through all the motions but dos not store. If I write a number of bytes using the TransmitBite method it writes to memory without a problem.

I hope I'm making sense

My board has been working for a few years without problems so really not sure what could of caused this as the program has not been changed in a while
E-P_U6_V-6-0-1_WasWorking_01-12-24_For-A7682E.fcfx
(904.41 KiB) Downloaded 5 times

Re: I2C component faulty

Posted: Wed Oct 08, 2025 7:37 am
by jollybv
Another thing is if i try to program the chip from my new PC the compiler hangs. I thought that the compiler was corrupt so i copied from old machine into new machine still no luck. I Have done a windows 11 repair as i thought something might be corrupt with windows then i removed V7 and reloaded it still no luck not sure where to go from here now
Compiler message.jpg
Compiler message.jpg (38.56 KiB) Viewed 48 times