Can bus clock

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

Can bus clock

861 次查看
songtao8940
Contributor I

Can bus clock must be based on the bus clock is 50Mhz?

0 项奖励
4 回复数

662 次查看
songtao8940
Contributor I

first,Thank you for your answer.My can bus part does not work properly with the download function, the communication speed is based on bus clock is 50MHz. Now my bus clock should not 50, I want to know is the 50MHz is not MK20DX128VLH7 this chip the inherent。

0 项奖励

662 次查看
egoodii
Senior Contributor III

There is no 'inherent' rate for CPU or Bus clock, there are just 'maximums'.  Your general MCG clock setup will determine those.  I recommend running the CAN bit-rate-divisor functions directly from the input (XTAL) clock.

0 项奖励

662 次查看
songtao8940
Contributor I

Thanks,Another problem is just the welded board with downloader not identify them, what way do

0 项奖励

662 次查看
egoodii
Senior Contributor III

A CAN interface must be clocked from a accurate source, so 'crystal based', and at a rate AT LEAST 8x bit-rate for 8 quanta (Tq), preferably 16, to place an accurate sample-point 'late' in the bit-cell.  In my systems I start with an 8MHz crystal, and I let the CAN clock run directly from /2 of that to make 250kbit/s J1939.

You seem to have a LOT of questions about how to make CAN work.  I suggest you look at many of the other recent posts about getting CAN to pass full messages,like this one:

https://community.nxp.com/thread/394516

CAN peripherals are very sophisticated standalone communication links, but the downside is that everything has to work 'perfectly' about the interchange to get ANY indication of 'communication' to the CPU.

0 项奖励