problem for Core-M4 systemtick clocksource

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

problem for Core-M4 systemtick clocksource

跳至解决方案
1,557 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,356 次查看
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 项奖励
回复
3 回复数
1,357 次查看
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 项奖励
回复
1,356 次查看
AaronsCook
Contributor III

Hi,Jing

Thank you for your help.

Best Regards

Wang song

0 项奖励
回复
1,356 次查看
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 项奖励
回复