Search found 45 matches

by kennethnilsen69
Tue Jun 09, 2026 7:29 pm
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug

Image

thanks for the help everyone. The problem is solved and the problem was 2 defective 120 resistors on the 250 kbit/s bus. with new resistor it worked :-)

I will start a new thread about the use of interrupt on CAN RX and the advantages of this. I would like to learn a little more about this
by kennethnilsen69
Tue Jun 09, 2026 11:02 am
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug

This is the hardware I use. R3 and R4 are not used as this is connected to a bus that has 2 resistors in it.

I still can't get can2 to work.
by kennethnilsen69
Mon Jun 08, 2026 11:58 am
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug


Hello,

Your program all looks ok. The only key difference is can2 is half the speed of can1 which could potentially be causing the issues you're seeing with your analyser?


CAN1 is set to 500 bus rate and can2 is set to 250 bus rate which is what they should be :-)

I am making a can device ...
by kennethnilsen69
Mon Jun 08, 2026 8:25 am
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug

Thanks for the help so long. I understand that PIC16BIT_CAL_CAN.c is ok as you mentioned. But I don't understand this with interrupt and DMA.

To be able to send a can message out on can2 should be straight forward and work the same way as sending a can message out on can1. I'm not too concerned ...
by kennethnilsen69
Fri Jun 05, 2026 9:32 pm
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug

Hi Ben, thanks for the help, but how do I enable interrupts for the CAN RX? I can't find anything about this in can properties.

The reason I haven't set up any receive calls is just because this is a test program to get both CAN buses working :-)

Sorry but need a little more input to understand ...
by kennethnilsen69
Thu Jun 04, 2026 9:33 pm
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug

Thanks for the feedback Bob but I didn't understand much of it. I have no idea where to find the INIT codes in an fc project


Hi,
I was looking for code for a PIC24 device (not using FC) and found this which I recall the poster had a similar issue.

I have no idea how/if I can see the INIT code ...
by kennethnilsen69
Thu Jun 04, 2026 9:24 pm
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug

Here is the FC11 test program attached.

canbus1 becomes like this:
http://ev-power.mine.nu/EV-POWER-NORWAY/FC/can1.jpg

canbus2 becomes like this:
http://ev-power.mine.nu/EV-POWER-NORWAY/FC/can2.jpg

In addition, canbus1 becomes worse and more unstable at reading canbus messages on the bus when ...
by kennethnilsen69
Thu Jun 04, 2026 8:19 pm
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug

Just downloaded FC11 and same problem there
by kennethnilsen69
Thu Jun 04, 2026 5:05 pm
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

Re: CAN (Internal, MCP2515) Problem/Bug

Another problem is that if I initialize can2, can1 becomes very unstable and is unable to read can messages as it should.
by kennethnilsen69
Thu Jun 04, 2026 2:42 pm
Forum: General
Topic: CAN (Internal, MCP2515) Problem/Bug
Replies: 17
Views: 2168

CAN (Internal, MCP2515) Problem/Bug

Hi I have problems using the CAN component.

I will use both channels Internal1 and Internal2 on an ECIO40P16 (DSPIC33EP256MU806-IMR chip)

Here is the test I am doing: http://ev-power.mine.nu/EV-POWER-NORWAY/FC/FC9_1.jpg
http://ev-power.mine.nu/EV-POWER-NORWAY/FC/FC9_2.jpg

see the attached ...