I have school project that I must connect PICs by CAN bus. I have not so much source about can bus. Please help me.
As I search I must use MCP2551 to connect to CAN L&H line. So I have PIC16F877A, PIC18F452 & PIC18F458. For example in PIC18F452 I must use can-18xxx8.c.
So I don't know how I must use it to communication and if I use it is it need to connect with MCP2515 to MCP2551. What about other PICs ?
Is it a training about it?
_________________ My Gmail is:
[email protected]
You can send pm for me in it
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Apr 12, 2013 1:00 pm
Quote:
For example in PIC18F452 I must use can-18xxx8.c.
That is not correct. 18F452 does not have a built-in CAN bus module.
The can-18xxx8.c file will not work with 18F452.
For PICs that do not have a built-in CAN bus module, you must use
an external CAN bus chip, such as MCP2515.
It's easier if you use PICs with a built-in CAN bus module, such as
18F458, or 18F4580, etc. Then you only need to add the MCP2551
transceiver chip.
jgschmidt
Joined: 03 Dec 2008 Posts: 184 Location: Gresham, OR USA
Posted: Sun Apr 14, 2013 10:04 am
At the bottom of this page you will find a number of resources for CAN:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum