Page 1 of 1

i2c Master

Posted: Fri Nov 26, 2010 7:38 am
by saschech@gmx.de
Hello

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

Regards Wolfgang

Re: i2c Master

Posted: Mon Nov 29, 2010 10:36 am
by saschech@gmx.de
Hello
Nobody have a answer for these?

Regards Wolfgang

Re: i2c Master

Posted: Mon Nov 29, 2010 11:48 am
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