FRDM-K22F PIT Clock

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

FRDM-K22F PIT Clock

Jump to solution
525 Views
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 Kudos
1 Solution
341 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
342 Views
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 Kudos