Get the microcontroller clock frequency

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get the microcontroller clock frequency

995 Views
曾经怀念
Contributor II

Hi all,

 

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

 

Regards

Labels (1)
Tags (1)
0 Kudos
3 Replies

630 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

which device do you use?

Regards,

Lukas

0 Kudos

630 Views
曾经怀念
Contributor II

Hi Lukas,

     MPC5606B

Regards

0 Kudos

630 Views
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 Kudos