Hello
Why i can not connect to port f?
I use a 18F6722
Regards Wolfgang
i2c Master
Moderator: Benj
-
saschech@gmx.de
- Posts: 714
- Joined: Wed Jan 31, 2007 12:41 pm
- Has thanked: 1 time
- Been thanked: 26 times
-
saschech@gmx.de
- Posts: 714
- Joined: Wed Jan 31, 2007 12:41 pm
- Has thanked: 1 time
- Been thanked: 26 times
- 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
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.
Change to suit your connections.
eg
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 %heg
Code: Select all
#define %i_MX_PORT portf
#define %i_MX_TRIS trisf
#define %i_MX_SCL 0
#define %i_MX_SDA 1Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel