CAN Bit rate calculation for IMX6 solo processor

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CAN Bit rate calculation for IMX6 solo processor

1,238件の閲覧回数
shyam
Contributor I

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

0 件の賞賛
返信
1 返信

1,014件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

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

0 件の賞賛
返信