Output clock on imxrt1064

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

Output clock on imxrt1064

276 次查看
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?

 

标签 (1)
0 项奖励
1 回复

272 次查看
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);