Reg : dsPIC33FJ256GP710 board CAN communication problem.

Please check the frequently asked questions before posting to the forum.
Post Reply
Author
Message
murugans
Posts: 15
Joined: 02 Aug 2012 06:53
Location: chennai

Reg : dsPIC33FJ256GP710 board CAN communication problem.

#1 Post by murugans » 02 Aug 2012 07:14

I am using dsPIC33FJ128GP710 and dsPIC33FJ256GP710 development boards. The 128 development board CAN communication is good but the 256 development board CAN communication is problem.

while i am using same oscillator configuration, CAN configuration settings. ie., the 256 development board transmitting the CAN message with some other identifier and datas. This CAN message frame is also not matching with 128 CAN message frame.

Please help me....

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Reg : dsPIC33FJ256GP710 board CAN communication problem.

#2 Post by janko.kaljevic » 03 Aug 2012 12:05

Hello,

Both controllers use the same ECAN library. So there is no reason for any difference in behavior.
Please check all of the settings and configurations.

Also you can check our CAN examples for dsPIC33FJ128GP710 and dsPIC33FJ256GP710A in examples folder in compiler.
Those are the same example and they work fine.

Best regards.

murugans
Posts: 15
Joined: 02 Aug 2012 06:53
Location: chennai

Re: Reg : dsPIC33FJ256GP710 board CAN communication problem.

#3 Post by murugans » 04 Aug 2012 11:07

Hi janko,

I am using microC PRO for dsPIC compiler and same code for both dsPIC33FJ128GP710 and dsPIC33FJ256GP710 boards.
The 128 TX board send CAN message contains
ID = 0x01
DLC = 0x08
Datas = 0x01,0x02,0x40,0x80,0x10,0x20,0x40 and 0x80

These ID,DLC and datas are received in another 128 RX board. The same setup is not working with 256 board.
The 256 TX send some other ID,DLC and datas....

here i am attached my CAN TX and RX code file...
Please check it and Thanks for your replay.....
Attachments
ECAN_RX.rar
(88.74 KiB) Downloaded 323 times
ECAN_TX.rar
(85.53 KiB) Downloaded 343 times

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Reg : dsPIC33FJ256GP710 board CAN communication problem.

#4 Post by janko.kaljevic » 07 Aug 2012 16:39

Hello,

I was able to make the dsPIC33FJ256GP710A work with your project without any issues.

I really do not see what cause cause the problem at your side.
Please if you can post here your project with dsPIC33FJ256 controller.

Best regards.

murugans
Posts: 15
Joined: 02 Aug 2012 06:53
Location: chennai

Re: Reg : dsPIC33FJ256GP710 board CAN communication problem.

#5 Post by murugans » 08 Aug 2012 08:49

Hi Janko,

I have not included CAN communication in my project yet. Before including the CAN communication code in my project, i have just checked CAN communication. We are using dsPIC33FJ256GP710 instead of dsPIC33FJ256GP710A

Is there any difference between dsPIC33FJ256GP710 and dsPIC33FJ256GP710A Microcontroller in CAN communication...?


Thanks for your reply.

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Reg : dsPIC33FJ256GP710 board CAN communication problem.

#6 Post by janko.kaljevic » 09 Aug 2012 08:04

Hello,

I have tested your code with dsPIC33FJ256GP710A controller and it works fine.
Also Microchip recommends this controller instead of dsPIC33FJ256GP710.

And you can and should check errata documents for both controllers to see differences between them.

Best regards.

murugans
Posts: 15
Joined: 02 Aug 2012 06:53
Location: chennai

Re: Reg : dsPIC33FJ256GP710 board CAN communication problem.

#7 Post by murugans » 10 Aug 2012 08:08

Hi Janko,

I saw both dsPIC33FJ256GP710 and dsPIC33FJ256GP710A errata documents. In dsPIC33FJ256GP710 MC having this incorrect ID and data
transmission problem. But dsPIC33FJ256GP710A MC is also having some other ECAN issues...

I get one dsPIC33FJ256GP710A MC, then i will check my code on this MC for ECAN communication...

Thank you and your supporting team....

Mirghani
Posts: 1
Joined: 29 Dec 2016 07:38

Re: Reg : dsPIC33FJ256GP710 board CAN communication problem.

#8 Post by Mirghani » 29 Dec 2016 07:52

Hello... I have a code working on dspic33fj256gp710 but unable to work on dspic33fj256gp710A.... Can someone help me and tell me what is the difference please?

User avatar
nadir.celebic
mikroElektronika team
Posts: 465
Joined: 15 Jun 2016 13:19

Re: Reg : dsPIC33FJ256GP710 board CAN communication problem.

#9 Post by nadir.celebic » 29 Dec 2016 16:31

Hi @Mirghani,

Please check on the link below:
http://www.microchip.com/wwwproducts/Pr ... J256GP710A

I have answered you on the ticket.
I suggest to continue our correspondence there.

Regards,
Nadir

Post Reply

Return to “mikroPascal FAQ”