problem for Core-M4 systemtick clocksource

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

problem for Core-M4 systemtick clocksource

Jump to solution
747 Views
AaronsCook
Contributor III

Hi, All

I have a question what is the Core-M4 systemtick clock source When use K60?

I configure the systick as

SysTick->CTRL  = SysTick_CTRL_CLKSOURCE_Msk |

                           SysTick_CTRL_TICKINT_Msk   |

                           SysTick_CTRL_ENABLE_Msk;  

SysTick_CTRL_CLKSOURCE_Msk means CLKSOURCE = 1

CLKSOURCE Indicate s the clock source:

  0 = external clock

  1 = processor clock.

CLKSOURCE = 1 means select processor clock.

What is processor clock in the K60? It is core clock such as 100Mhz?

Thank you

Best Regards

Wang Song

Labels (1)
0 Kudos
1 Solution
546 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi, Wang Song

    I think this picture from reference manual will help you to understand what is the core clock of MCU.

pastedImage_0.png

Best regards!

Jing

View solution in original post

0 Kudos
3 Replies
547 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi, Wang Song

    I think this picture from reference manual will help you to understand what is the core clock of MCU.

pastedImage_0.png

Best regards!

Jing

0 Kudos
546 Views
AaronsCook
Contributor III

Hi,Jing

Thank you for your help.

Best Regards

Wang song

0 Kudos
546 Views
Paul_Tian
NXP Employee
NXP Employee

Hi, Wang Song

The core clock depends on your clock setting. In our reference manual, you can find core clock is MCGOUTCLK divided by OUTDIV1 clocks the ARM Cortex- M4 core in chapter "clock distribution". So it depends on your MCG module setting.

Hope my reply can help you.

Best Regards

Paul

0 Kudos