Page 1 of 1

Problems PIN selsection internal CAN 18F26k80

Posted: Wed Oct 23, 2019 7:41 am
by CSM2711
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?

Re: Problems PIN selsection internal CAN 18F26k80

Posted: Wed Oct 23, 2019 11:13 am
by Benj
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.

Re: Problems PIN selsection internal CAN 18F26k80

Posted: Thu Oct 24, 2019 6:32 am
by CSM2711
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?

Re: Problems PIN selsection internal CAN 18F26k80

Posted: Fri Oct 25, 2019 3:46 pm
by QMESAR
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