Hello,
I have some problems using the internal can module of PIC18F26K80.
I get no CAN meesages......
But I wonder in the datasheet and the chip view the CANRX PIN is RC7 and the CAN TX Pin is RC6.
In the can component the PINS B2 and B3 are selescted and it is not possible to select another pin.
Is this a Bug or do I undestand something wrong?
Problems PIN selsection internal CAN 18F26k80
Moderator: Benj
- 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: Problems PIN selsection internal CAN 18F26k80
Hello,
On the K80 devices the CAN pins can be on either B2 and 3 or C6 and 7.
We have chosen the B2 and B3 for the Flowcode device definition.
The pins are selected via the CANMX configuration option in the project options. Can you check this matches the indicated connections in Flowcode.
If you want to use the PortC pins then let us know and we can switch the default pins to this instead.
On the K80 devices the CAN pins can be on either B2 and 3 or C6 and 7.
We have chosen the B2 and B3 for the Flowcode device definition.
The pins are selected via the CANMX configuration option in the project options. Can you check this matches the indicated connections in Flowcode.
If you want to use the PortC pins then let us know and we can switch the default pins to this instead.
Regards 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
-
- Posts: 47
- Joined: Mon Apr 16, 2018 10:28 am
- Location: Germany
- Has thanked: 1 time
- Been thanked: 9 times
- Contact:
Re: Problems PIN selsection internal CAN 18F26k80
Ok I understand.
But i have now another problem...
i wrot a simple test programm (see attachmend) but when I Start my CAN software i will get no data only stuff errors.......
I testetd the same with external CAN (MCP2515) an every thing works fine.
Anyone an Idea?
But i have now another problem...
i wrot a simple test programm (see attachmend) but when I Start my CAN software i will get no data only stuff errors.......
I testetd the same with external CAN (MCP2515) an every thing works fine.
Anyone an Idea?
- Attachments
-
- CANTEST.fcfx
- (12.03 KiB) Downloaded 167 times
-
- Unbenannt.JPG (52.09 KiB) Viewed 2048 times
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Problems PIN selsection internal CAN 18F26k80
Hi.
my guess is you are not running the controller at the speed you think it is running
the OSCTUNE value of 0x72 look suspect to me I would expect 0x70 .
Use a intOSC component on your FC chart to get the right value
Run time menu>> intOSC helper
my guess is you are not running the controller at the speed you think it is running
the OSCTUNE value of 0x72 look suspect to me I would expect 0x70 .
Use a intOSC component on your FC chart to get the right value
Run time menu>> intOSC helper
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR