Page 1 of 1

CAN num in "CAN receive" block

Posted: Mon Apr 20, 2009 7:02 pm
by Toro480
Hello,
in my project I use CAN BUS between 2 dsPIC. The 2 boards are already built with connection on CAN2.
But when I add a "CAN Receiver block" I can't choice number 2 (only num CAN 1). Is it a bug?

PS : if someone have an example of model which works with CAN blocks, will be possible to share it?
Thanks for your answers.

Best regards,
Florent

Re: CAN num in "CAN receive" block

Posted: Mon Apr 20, 2009 11:38 pm
by LubinKerhuel
Hello Florent,

I worked on CAN more than one year ago. (Not ECAN yet !)
I find the two models I used to develop the CAN blocks. These models were working last year. It was very funny to see on the oscilloscope two CAN trame sent by each dsPIC to cross over. When you see it, you'll find that CAN is a smart system.
I was wondering to publish a nice example, but I didn't find time for it. I was also wondering to mix an ECAN peripheral with a CAN peripheral. Anyway, If anybody is motivated to publish a nice CAN system on the wiki, it's open !

I hope theses model will help to see how it works. I have not been using CAN since then. I am not sure I could provide lots of information.

Please let me know which dsPIC you are using. There may be an error that makes only the CAN 1 available.

Lubin

Re: CAN num in "CAN receive" block

Posted: Tue Apr 21, 2009 10:44 am
by Toro480
Hi Lubin,
thanks for your answer. I will study these models.
I use two dsPIC30F6014A. I want to create CAN communication between the two dsPIC.
The num 1 is not available in CAN Receiver block.

Florent