CAN Communication Between two PIC microcontrollers

Create new topics, add your comment, remark, bugs...
Post Reply
varunvummaneni
Posts: 1
Joined: Fri Nov 26, 2010 9:23 pm

CAN Communication Between two PIC microcontrollers

Post by varunvummaneni » Fri Nov 26, 2010 9:25 pm

Hi Lubin,
I want to use CAN communication between to dsPICs.
They are 30f4011 and 30f 4013. My aim is to send joystick signals from 4011 to 4013 using CAN. and receive them at PC using UART from 4013. Can u please suggest me how to configure CAN blocks??

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: CAN Communication Between two PIC microcontrollers

Post by LubinKerhuel » Tue Nov 30, 2010 12:07 am

Hello,

I did not build an example with CAN communication yet as I was waiting to suport ECAN to build a demo of CAN peripheral communicating with ECAN. Anyway, I attach the two messy model used at testing time.
I used two 30f4012 dsPIC that communicate throught CAN. I am not sure the two models are in a good shape. The last test I made was I guess to check that one dsPIC could receive the message that it sent. However, modifying just a bit the identifiers reception or emission filters will make you able to make two dsPIC communicating.

Make sure you place the CAN driver chips with the correct pull-up resistor that make the CAN bus workable ! It might be usefull to use a scope for debugging !

Please keep let me know what's happening !
Attachments
CAN231.mdl
(45.45 KiB) Downloaded 531 times
CAN.mdl
(41.19 KiB) Downloaded 485 times

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests