FRDM-K22F PIT Clock

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

FRDM-K22F PIT Clock

跳至解决方案
1,046 次查看
jackxu
Contributor III


Hi there,

     I'm can figure the core clock frequency, but can not figure the PIT Clock. Can you shoe me the key point?

2--CoreClock @ 80Hz.png

3--Detail about CoreCLK.png

4--Clocking.png

1--BusCLK case.png

     About the project

5--Project.png

     Thanks in advance!

     Jack!

0 项奖励
回复
1 解答
862 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Jack,

In the void BOARD_BootClockRUN(void) function, the CLOCK_SetSimConfig(&g_defaultClockConfigRun.simConfig) can configure the frequency of the different clocks by setting the divider value of the OUTDIV1, OUTDIV2 and OUTDIV4.

So you can change the clkdiv1 value to change the frequency of the different clocks.

.simConfig =
    {
        .pllFllSel = 1U,    /* PLLFLLSEL select PLL. */
        .er32ksrc=2U,     /* ERCLK32K selection, use RTC. */
        .clkdiv1 = 0x01140000U, /* SIM_CLKDIV1. */
    },


Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
863 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Jack,

In the void BOARD_BootClockRUN(void) function, the CLOCK_SetSimConfig(&g_defaultClockConfigRun.simConfig) can configure the frequency of the different clocks by setting the divider value of the OUTDIV1, OUTDIV2 and OUTDIV4.

So you can change the clkdiv1 value to change the frequency of the different clocks.

.simConfig =
    {
        .pllFllSel = 1U,    /* PLLFLLSEL select PLL. */
        .er32ksrc=2U,     /* ERCLK32K selection, use RTC. */
        .clkdiv1 = 0x01140000U, /* SIM_CLKDIV1. */
    },


Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复