Hello!
It seems that I can't use I2C on the hardware support of the pic, I get an error when compiling. If I select I2C software, it compiles correctly, but the display moves very slowly. In FC8 this doesn't happen, but I can't use the fonts from FC10...
I'm using the pic 18F26K20, with the clock and internal mclr, at a frequency of 64 MHz.
I appreciate any help!
I2C Chanel Err (SOLVED)
-
bercioiu
- Posts: 18
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 9:21 pm
- Location: Romania
- Has thanked: 13 times
- Been thanked: 6 times
I2C Chanel Err (SOLVED)
- Attachments
-
- test_blue_10_TMP.fcfx
- (16.65 KiB) Downloaded 152 times
- (view online)
-
- err.png (238.71 KiB) Viewed 1970 times
-
- I2C_Ch1.png (285.43 KiB) Viewed 1970 times
Last edited by bercioiu on Tue Aug 05, 2025 4:18 pm, edited 1 time in total.
-
medelec35
- Valued Contributor
- Posts: 2402
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 768 times
- Been thanked: 828 times
Re: I2C Chanel Err
Hello.
I have fixed the CAL, so you can now use I2C on 18F26K20.
Hopefully I have not broken any other targets in the process.
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.
Place the attached C file.
You will need to reload your project file for the fix to take place.
If you run any library updates, then the PIC_CAL_I2C.c you added will be overwritten, so it will stop working again (unless the PIC_CAL_I2C.c update has been pushed).
I have fixed the CAL, so you can now use I2C on 18F26K20.
Hopefully I have not broken any other targets in the process.
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.
Code: Select all
%ProgramData%\MatrixTSL\FlowcodeV10\CAL\PICYou will need to reload your project file for the fix to take place.
If you run any library updates, then the PIC_CAL_I2C.c you added will be overwritten, so it will stop working again (unless the PIC_CAL_I2C.c update has been pushed).
- Attachments
-
- PIC_CAL_I2C.c
- (31.34 KiB) Downloaded 172 times
Martin