Get the microcontroller clock frequency

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

Get the microcontroller clock frequency

1,317 次查看
曾经怀念
Contributor II

Hi all,

 

      How can I Getting the microcontroller clock frequency. So, I could use to change the CAN or LIN baud

 

Regards

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

952 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

which device do you use?

Regards,

Lukas

0 项奖励
回复

952 次查看
曾经怀念
Contributor II

Hi Lukas,

     MPC5606B

Regards

0 项奖励
回复

952 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

By default, the device is running at system clock frequency given by internal RC oscillator 16MHz. Then it's a matter of your software. Take a look at this example to see how to initialize mode and clocks:

https://community.nxp.com/docs/DOC-329441

Here you can find PLL calculator which can help you to do own configuration:

https://community.nxp.com/docs/DOC-332694

If you want to confirm the system clock frequency by measurement, use CLKOUT pin (must be configured by SW, see reference manual for more details).

Regards,

Lukas

0 项奖励
回复