MPC5566 FlexCAN

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

MPC5566 FlexCAN

3,703件の閲覧回数
r_james14
Contributor I

Hi There,

 

Could anyone please explain how to calculate the baudrate for the FlexCAN on the MPC5566, currently im lost,

 

I have a 8Mz Crystal and require  buadrate of 1Mz

 

Thanks

ラベル(1)
タグ(2)
0 件の賞賛
返信
2 返答(返信)

3,235件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Have you already  read http://cache.freescale.com/files/microcontrollers/doc/app_note/AN1798.pdf (CAN Bit Timing Requirements)?

BR

Ladislav

0 件の賞賛
返信

3,235件の閲覧回数
chrism
Contributor I

Checkout section 22.4.5.4 "Protocol Timing" of the MPC5566 Reference Manual.

The relevant parameters are set in the CAN Control Register (CAN_CR), described in section 22.3.3.2.

As an example:

To get a bit rate of 1MHz, choose:

CLK_SRC = 0 (crystal source)

PRESDIV = 0

This will set the time quanta frequency, ftq, to 8 MHz

Then, choose a combination of PROPSEG, PSEG1 and PSEG2 to give 8 'time quanta' per bit time

Bit rate will then be

  ftq / num time quanta = 8 Mhz / 8 = 1Mhz, as desired

0 件の賞賛
返信