Output clock on imxrt1064

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

Output clock on imxrt1064

244 Views
zemlemer
Contributor I

Hi.

I have a problem with output clocks on a dedicated pin  clk1p (N13).

The CCOSR register configured to enable system clock output / 2 and divided by 5. Using clko1.

CCM->CCOSR = 0;
CCM->CCOSR = CCM_CCOSR_CLKO1_SEL(0x01) | CCM_CCOSR_CLKO1_DIV(4);
CCM->CCOSR |= CCM_CCOSR_CLKO1_EN(1);

On a N13 pin i do not see any clock, only high level. May be i missed something?

 

Labels (1)
0 Kudos
1 Reply

240 Views
jay_heng
NXP Employee
NXP Employee

CCM_CLK1_P (N13) is one of PLL input sources.

What you want is GPIO_SD_B0_04 (H2), the alt6 function is CCM_CLKO1, add below code in your app:

IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B0_04_CCM_CLKO1, 0U);