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 Bit rate

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







CAN Bit rate
PostPosted: Thu Mar 29, 2007 6:48 pm     Reply with quote

Hi,
Im trying to set up a CAN node on a 500Khz system. Using a PIC18F4685
@ 20Mhz. Having no success. I think my timing is wrong. I have set up
the bit rate pre-scaler value=0
SJW=2;
phase segment 1=8
phase segment 2 =8
propagation segment =4

any thoughts? I think I got the math right. But no matter what I try I can not get this node to communicate. In loopback mode it works fine.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 29, 2007 7:03 pm     Reply with quote

See my long post in this thread which explains how to do it:
http://www.ccsinfo.com/forum/viewtopic.php?p=41196
It's about 1/3 of the way down in the thread.
rwskinner



Joined: 08 Dec 2006
Posts: 125
Location: Texas

View user's profile Send private message

Re: CAN Bit rate
PostPosted: Mon Apr 02, 2007 1:26 pm     Reply with quote

hawke 11 wrote:
Hi,
Im trying to set up a CAN node on a 500Khz system. Using a PIC18F4685
@ 20Mhz. Having no success. I think my timing is wrong. I have set up
the bit rate pre-scaler value=0
SJW=2;
phase segment 1=8
phase segment 2 =8
propagation segment =4

any thoughts? I think I got the math right. But no matter what I try I can not get this node to communicate. In loopback mode it works fine.

Thanks


Are you subtracting 1 from your desired values?
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