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

How can I configure CAN bus to work at 250kbps

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



Joined: 08 Sep 2008
Posts: 3

View user's profile Send private message

How can I configure CAN bus to work at 250kbps
PostPosted: Fri Oct 03, 2008 8:51 am     Reply with quote

I know tbit=8xtq and brp 11.

The problem is where I edit this values ?

I'm using #import can-18xxx8.h


ty
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Oct 03, 2008 9:22 am     Reply with quote

You can redefine the CAN_BRG_xxx constants in your code prior to including can-18xxx8.h. The new values then take precendence over the default values. But please don't ask me about the appropriate values, cause I'm not familiar to CAN. I guess you find them in the device user manuals.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 03, 2008 2:28 pm     Reply with quote

See the large post in this thread which gives detailed instructions on how
to setup the bit timing parameters for the CAN bus:
http://www.ccsinfo.com/forum/viewtopic.php?t=22138
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