PIC8F47J53 I2C Channel 1 incorrect ports/pins

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

streammaster
Posts: 78
Joined: Mon Jul 31, 2017 11:14 am
Has thanked: 7 times
Been thanked: 13 times
Contact:

PIC8F47J53 I2C Channel 1 incorrect ports/pins

Postby streammaster » Thu Aug 09, 2018 10:05 am

Hi Ben,

I just spotted that the definition file appears to be incorrect for PIC8F47J53:

I noticed that the I2C port Channel 1 have incorrect association of the SCL and SDA pins.

Channel 1:
SCL currently $PORTC.3 should be $PORTB.4
SDA currently $PORTC.4 should be $PORTB.5

How this can be corrected.

I'm not sure if I use this config on new project would create a problem?

One thing: it appears that this setting has no issue with compiler, on the project which i originally have done in FV V7 and didnt touch the configuration but opened it in FC8. It compiles correctly for the physical hardware.
I do not understand the concept in your DCFX files so i need your help to configure it correctly.

Thanks,

Igor
These users thanked the author streammaster for the post:
Benj (Thu Aug 09, 2018 10:24 am)
Rating: 5%
 

User avatar
Benj
Matrix Staff
Posts: 14676
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4660 times
Been thanked: 4284 times
Contact:

Re: PIC8F47J53 I2C Channel 1 incorrect ports/pins

Postby Benj » Thu Aug 09, 2018 10:22 am

Hello Igor,

Many thanks for letting us know. I have now fixed the problem and added the fix to the v8 updates system.

See here for details on using the system.
https://www.matrixtsl.com/wiki/index.ph ... ic_Updates
These users thanked the author Benj for the post:
streammaster (Thu Aug 09, 2018 10:51 am)
Rating: 5%
 

streammaster
Posts: 78
Joined: Mon Jul 31, 2017 11:14 am
Has thanked: 7 times
Been thanked: 13 times
Contact:

Re: PIC8F47J53 I2C Channel 1 incorrect ports/pins

Postby streammaster » Thu Aug 09, 2018 10:49 am

Thanks for doing this!

Any chance to disclose what have you changed?

User avatar
Benj
Matrix Staff
Posts: 14676
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4660 times
Been thanked: 4284 times
Contact:

Re: PIC8F47J53 I2C Channel 1 incorrect ports/pins

Postby Benj » Thu Aug 09, 2018 10:56 am

Hello,

This was the change in the definition FCDX XML.

FCD_XML.jpg
FCD_XML.jpg (13.18 KiB) Viewed 1068 times