i2c Master

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times

i2c Master

Post by saschech@gmx.de »

Hello

Why i can not connect to port f?
I use a 18F6722

Regards Wolfgang
Attachments
i2c port F.gif
(62.08 KiB) Downloaded 575 times

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times

Re: i2c Master

Post by saschech@gmx.de »

Hello
Nobody have a answer for these?

Regards Wolfgang

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

Re: i2c Master

Post by Benj »

Hello Wolfgang,

I think this is currently a limitation of the component properties which does not take into account larger chips with that many ports.

You can assign port F by using the custom code feature.

Edit the Defines function and look for the following lines.

Code: Select all

#define %i_MX_PORT		  	%e
#define %i_MX_TRIS  		%f
#define %i_MX_SCL  			%g
#define %i_MX_SDA  			%h
Change to suit your connections.

eg

Code: Select all

#define %i_MX_PORT		  	portf
#define %i_MX_TRIS  		trisf
#define %i_MX_SCL  			0
#define %i_MX_SDA  			1

Post Reply