CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

beginner for Can bus using MCP2551

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
HGHK



Joined: 29 Jun 2010
Posts: 33

View user's profile Send private message Yahoo Messenger

beginner for Can bus using MCP2551
PostPosted: Fri Apr 12, 2013 12:34 pm     Reply with quote

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?

Question Exclamation Sad Confused Crying or Very sad
_________________
My Gmail is:
HGholizadehK@Gmail.com
You can send pm for me in it
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 12, 2013 1:00 pm     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Apr 14, 2013 10:04 am     Reply with quote

At the bottom of this page you will find a number of resources for CAN:

http://www.jgscraft.com/microchip.php

Regards,
_________________
Jürgen
www.jgscraft.com
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group