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
CAN num in "CAN receive" block
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: CAN num in "CAN receive" block
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
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
- Attachments
-
- CAN.zip
- Two model to make two dsPIC send/receive CAN trame.
- (20.28 KiB) Downloaded 927 times
Re: CAN num in "CAN receive" block
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
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
Who is online
Users browsing this forum: No registered users and 31 guests