Page 1 of 1
Error copile
Posted: Tue Aug 05, 2025 9:07 pm
by ELECTRONICA67
Hello,
please could you check the following error that flowcode shows me when compiling, I am using the PIC16F1939.
^ (103) #error: "I2C Channel 2 does not have the SSP2IF defined on this chip - does your chip support this feature?"
Re: Error copile
Posted: Tue Aug 05, 2025 9:08 pm
by ELECTRONICA67
mensaje
Re: Error copile
Posted: Tue Aug 05, 2025 9:17 pm
by ELECTRONICA67
I'm using I2C Master for RTC and also LCDI2C Software
Re: Error copile
Posted: Tue Aug 05, 2025 9:27 pm
by mnfisher
It looks like the PIC16F1939 only has one MSSP module - so only one hardware i2c channel?

- Screenshot_20250805_212530_Chrome.jpg (128.02 KiB) Viewed 3145 times
Try using the software channel?
Martin
Re: Error copile
Posted: Tue Aug 05, 2025 9:34 pm
by chipfryer27
Hi
Without seeing your chart it looks like you are attempting to enable an Interrupt on Synchronous Serial Port #2 with the chip only supporting SSP on #1. As far as I am aware, FC only has Channel-1 and Software options, no Channel 2 for that chip.
Regards
Re: Error copile
Posted: Tue Aug 05, 2025 9:35 pm
by chipfryer27
I see Martin beat me to it..... He must have the datasheets open beside him...

Re: Error copile
Posted: Tue Aug 05, 2025 11:28 pm
by ELECTRONICA67
Hello, I see... I think I'm still asleep !!!!! Thank you very much for the observation, Martin.
Best Regards
Enrique
Re: Error copile
Posted: Wed Aug 06, 2025 9:23 am
by mnfisher
Does anyone read anything else?
No problems sleeping for me
It might be the fcd is incorrect if it allowed you to choose channel2?
Martin
Re: Error copile
Posted: Wed Aug 06, 2025 9:42 am
by chipfryer27
Hi
I find "Practical Electronics for Inventors" an exciting read not just for bedtime but holiday sunbed too. Of course if you want glossy magazine racey, you could do worse than Practical Electronics (where there are adverts for exciting things to buy such as FC) and Elektor (which in my head I read as Goldmember from Austin Powers).
Sleep helps with cognative skill so surely Cognac at bedtime will turbocharge the experience?
Whilst you were busy beating me to replying, by sneakily have the datasheet open, I opened up FC and was only allowed Channel 1 or Software, so maybe Enrique needs some turbocharged sleep
Regards
Re: Error copile
Posted: Fri Aug 15, 2025 9:40 pm
by ELECTRONICA67
Hi,
I have to say that I prefer a glass of tequila (Agavero), the drawback is that you forget what you were doing. . . .

but in a previous version of Flowcode I had an RTC connected on channel 1 and an LCDI2C display in software, and it compiled correctly, I'm using the same PIC16F1939; but with another update that was installed, that error stopped appearing, now only too many "warning".
I also added a 4x4 keypad; When you finish the program you save it, but when you open that same program the connections made on the keypad are changed to B0, B1, B2, B3, B4, B5, B6, B7
And again on another Laptop that I have not yet updated Flowcode, no error or warning is generated.
Best Regards