LPC11C CAN Baudrate configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC11C CAN Baudrate configuration

692 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kwinchell on Mon Jun 17 12:21:52 MST 2013

Does anyone know of a document that discusses baudrate configuration for the CAN bus?


I have found some discussion in the users manual, but not enough to know with confidence how to configure the registers.


Given my clock rate, at 48 MHz, and a desired CAN Bit rate of 1 MHz, how do I set up


CANCLKDIV, BRP, SJW TSEG1 TSEG2


Labels (1)
0 Kudos
2 Replies

567 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kwinchell on Thu Jul 11 05:18:50 MST 2013

Thank you for the reply.


That is what I was looking for.

0 Kudos

567 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Mon Jul 01 01:44:45 MST 2013

Hi,


The CAN bitrate timings are well described on the internet, e.g.:


http://www.bosch-semiconductors.de/media/pdf_1/canliteratur/cia99paper.pdf


More convenient is to use a CAN bus bit timing calculator, e.g.:


http://www.kvaser.com/en/support/bit-timing-calculator.html


Select SJA1000, enter the requency at which speed you CAN peripheral is running, the desired baudrate and hit "Calculate". BTQ is BRP, SJW is SJW, T1 is TSEG1 and T2 is TSEG2. CANCLKDIV determines at which speed your CAN peripheral is running.


Regards,


Wouter

0 Kudos