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

CAN using pic18f2580 and pca82c250

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



Joined: 17 Nov 2009
Posts: 2

View user's profile Send private message

CAN using pic18f2580 and pca82c250
PostPosted: Tue Nov 17, 2009 9:13 am     Reply with quote

Hi guys I'm new to CAN. I'm trying to establish communication b/w two nodes using pic18f2580 and pca82c250 WITH MY OWN MADE BOARDS. But I'm unable to make nodes talking. The programs are indeed verified and I have also verified code in loopback mode. I'm applying 125 Kb/s.

(1) I'm connecting rs pin directly to ground, if I use resistor at here what should be the nominal value?
(2) I'm using 6-7 cm long TWISTED PAIR UTP cable.
(3) The data sheet uses 124 ohm termination resistor I'm using two 120 ohm (giving can bus resistance of 62 ohm) what difference it could.
(4) Can any one really post any working schematics.
(5) Any sort of test to check transceivers? I'm getting continuously 3.5v on canl and 2.5 on canl pins.
(6) I HAVE USED DIFFERENT BIT TIMING SETTINGS BUT NONE WORKS .
(7) The programs are verified and they are working on other systems.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 17, 2009 1:52 pm     Reply with quote

Are you using the CCS compiler ? If so, then see the following post.
http://www.ccsinfo.com/forum/viewtopic.php?t=39792&start=7
It has instructions and a link to code which will test communication
between two CAN bus boards.
einton



Joined: 17 Nov 2009
Posts: 2

View user's profile Send private message

PostPosted: Tue Nov 17, 2009 11:03 pm     Reply with quote

thanx dear I look over at the link, it is same as I'm working, but I have thoughts over gnd connection. I'm operating both nodes from same power supply so I think it got no issues. Tell me if any, but thanx for your reply. Please tell what are the usual problems when CAN bus is not working.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 17, 2009 11:34 pm     Reply with quote

I don't think you're using the CCS compiler so I can't help very much.
Just check your connections and find a web forum for your compiler.
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