How to achieve baud rate of 500kbps with the bus clock frequecy of 25.6 MHz for MSCAN

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

How to achieve baud rate of 500kbps with the bus clock frequecy of 25.6 MHz for MSCAN

1,799 次查看
krishnakarthik
Contributor I

I am using the MM9Z1_638 micro controller for batter management.

 

I am not able to achieve 500 Kbps baud rate when i am using the bus clock as the input to the MSCAN and my bus clock is set to frequency of 25.6 Mhz

标签 (1)
0 项奖励
3 回复数

1,229 次查看
RadekS
NXP Employee
NXP Employee

Hi krishna,

I am afraid that you cannot set exact 500kbps CAN bus clock with 25.6MHz bus clock source.

I would like to highly recommend use external oscillator instead of PLL for real CAN nodes. PLL as clock source is fine for debugging, however we cannot be sure with clock accuracy due to PLL unlock range up to 2.5%. 8 or 16MHz crystal should be fine; 4MHz is probably too slow for 500kbps.

Optionally you could trim IRC oscillator to 1MHz instead of 1.024MHz. However I am afraid that this do not brings equivalent benefit in compare to amount of work for trimming.

In attachment you could look at CAN baudrate calculator.


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励

1,228 次查看
krishnakarthik
Contributor I

Hi Radek,

Thanks for info

0 项奖励

1,229 次查看
kef2
Senior Contributor IV

Not likely to be possible.

Is it possible to switch MSCAN clock source on MM9Z1 to oscillator clock? Perhaps it is more suitable?

0 项奖励