dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS [solved]

An area to discuss 16-bit PIC specific problems and examples

Moderator: Benj

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Post by celebriums »

Hi
GetRxIdent 16 bit function is correct working. (Use Mask and Filter)
Problem 1 solved.
Thank you.

Problem 2: If I add a new variable, CANBUS can not read the line. (Example; byte8 = ABC)

Problem 3: If you add a new variable and send only data, it sends wrong value.
(0x12FE1240; buffer:0, DLC: 8,1,1,1,1,1,1,1,1 instead of 0x12FCBF41; Buffer8, DLC:4,1,1,1,1,1,1,1,1) as if it had shifted value.
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
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: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Post by Benj »

Hello Sadik,
Problem 2: If I add a new variable, CANBUS can not read the line. (Example; byte8 = ABC)
We're not too sure what you mean by this. Can you provide a simple example so we can better see what you mean.

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Post by celebriums »

Hi Benj
I'il explain it now. After the GetRXIdent function works, I added a new variable from the left menu.
Variable>add new> Create a New Variable
Name of New variable: ABC
initial value: 0
Byte(number in the range: 0,255)

In this case, the GetRXIdent function does not work.
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Post by LeighM »

Hi,
Could you post a flowcode project with the variable added?
Thanks

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Post by LeighM »

Hi,
Reading back through your posts again, I think I see the issue, could you try the attached file please?
Attachments
PIC16BIT_CAL_CAN.c
(68.8 KiB) Downloaded 278 times

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: dsPIC33EP128MC506, MC502 and dsPIC33EP256MU806 CANBUS problem (SOLVED)

Post by celebriums »

Dear LeighM

Problem 2 and Problem 3 te seems to have solved the problem.

The update is working correctly.

Thank you very much for your help and support.

:D
Last edited by celebriums on Mon Apr 09, 2018 11:25 am, edited 1 time in total.
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

Post Reply