Search the web
Sign In
New User? Sign Up
CANbus · for more info goto www.canbus-info.com
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[CANLIST] Reg CAN Baud Rate Config   Message List  
Reply | Forward Message #7225 of 7412 |
RE: [CANLIST] Reg CAN Baud Rate Config

Such a simple math error.
 
Alan's formula is:
 
     Baudrate = fCAN / ((BRP + 1) * (1 + TSeg1 + TSeg2))
 
and clearly TSeg1 and TSeg2 are integers as is the number '1' in the formula above.
 
if you want to work in micro seconds or seconds then it's important to multiply all terms with the same constant.
 
If you multiply TSeg1 and TSeg2 by 0.0000004 then it's important to also multiply the rest of the numbers by that constant.
 
Substituting, I get
     Baudrate = 40,000,000 / ((15 + 1) * (1 + (5+4)))
                   = 250,000
 

Automation Artisans Inc.
http://www.autoartisans.com/ELS/
Ph. 1 250 544 4950

 



Mon Jul 6, 2009 3:07 pm

johnd@...
Send Email Send Email

Forward
Message #7225 of 7412 |
Expand Messages Author Sort by Date

Hi All, I am in initial phase of CAN Initialization. I have configure to my CAN Baud rate for 250Kbaud, I referred infineon DAvE setting, the preferred values...
Manivannan
manivannan.d@...
Send Email
Jun 24, 2009
5:46 am

My first thought is that you either hit a typo during the calculation or bounced a "9" during the e-mail; after all, 249,991 is reasonably close to 250,000 and...
Allen Pothoof
apothoof@...
Send Email
Jun 25, 2009
6:39 pm

Hi Allen Thanks for your reply but I am bit confused about formula. In the manual the formula mentioned; TSeg1 = (TSEG1 + 1)*tq TSeg2 = (TSEG2 + 1)*tq Where...
Manivannan
manivannan.d@...
Send Email
Jul 3, 2009
9:58 am

Hi Allen Thanks for your reply but I am bit confused about formula. In the manual the formula mentioned; TSeg1 = (TSEG1 + 1)*tq TSeg2 = (TSEG2 + 1)*tq Where...
Manivannan
manivannan.d@...
Send Email
Jul 3, 2009
10:02 am

Such a simple math error. Alan's formula is: Baudrate = fCAN / ((BRP + 1) * (1 + TSeg1 + TSeg2)) and clearly TSeg1 and TSeg2 are integers as is the number '1'...
John Dammeyer
johnd@...
Send Email
Jul 6, 2009
4:20 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help