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 CCS Technical Support

Guide to BUS CAN ? Help for beginners

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







Guide to BUS CAN ? Help for beginners
PostPosted: Sun Jan 13, 2008 9:38 am     Reply with quote

Hello

We are going to try a communication between two 18f448 via a CAN Bus to test the connection of PIC to the CAN network.

We use 2 easypic4 + MCP2551

We would like just to send a data (2 bytes) from one to the other.

The 2nd node should respond by sending back the data incremented by 1. This (1st) node then does the same and sends incremented data back to 2nd node, etc.

Someone has this kind of source codes in his pocket ?...

Or maybe something similar ??

Thanks

Stephane
FRANCE
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 13, 2008 10:09 am     Reply with quote

Here's a test program for two boards to talk to each other:
http://www.ccsinfo.com/forum/viewtopic.php?t=29627&start=7

How to calculate CAN bus bit-timing values by using a free
program which you can download at the link given in this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=22138&start=8

General trouble-shooting of CAN bus problems:
http://www.ccsinfo.com/forum/viewtopic.php?t=27936

Examples of problems when learning the CAN bus:
http://www.ccsinfo.com/forum/viewtopic.php?t=26733
http://www.ccsinfo.com/forum/viewtopic.php?t=26442
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