Hi,
I am trying to get the register values for custom bit rate.
I used below link to generate register values for bit rate calculation for other bit rate settings (standard bit rate settings)
http://www.bittiming.can-wiki.info/
Used Freescale flexCAN option for the same.
Now i want to generate register values for to 33.33Khz with the system is clocked at 30Mhz.
Any help on generating the register values for the same or share the procedure to generate one will be appreciated
Regards
Shyam
Hi,
There are more than one configurations that can achieve the 33.33KHz.
The bit time can be composed of 8 to 25 time quata.
Lets assume that you choose a bit time of 25 time quanta. That means that each quantum should be 25*33.33KHz.
To ahieve that frequency with a 30MHz clock you need a prescaler = 30MHz/(25 * 33.33KHz) = 36.
Therefore the TIME SEGMENT 1 = 16
TIME SEGMENT 2 = 8
With this you can choose the correct values for PROP_SEG, PSEG and PSEG2.
I hope that helps,
Alejandro