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
Thank you for the reply.
That is what I was looking for.
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