CAN Bit rate calculation for IMX6 solo processor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CAN Bit rate calculation for IMX6 solo processor

1,062 次查看
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 回复

838 次查看
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 项奖励
回复