FRDM-K22F PIT Clock

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,037件の閲覧回数
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 解決策
853件の閲覧回数
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 返信
854件の閲覧回数
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 件の賞賛
返信