FAQ

FAQ

Does the NuMicro™ family provide the clock output pin to measure the internal or external clock?  Issue Date:2015-02-09

Yes, but it depends on the part No. The measurement frequency will be Fin/21 to Fin/216, where Fin is the input clock frequency to the clock divider. Please check the pin configuration and get further information in the related Technical Reference Manual.

Please refer to the following flow to measure the internal or external clock from clock out (CLKO) pin.

Example: (NUC100 Series)

/* Set GPIO pin as CLKO pin */

SYS->GPBMFP.CPO0_CLKO_AD0 = 1; 

SYS->ALTMFP.PB12_CLKO = 1;    
 

/* Frequency Divider Output */

SYSCLK->CLKSEL2.FRQDIV_S = 0;    // select Fin source form 12 MHz

SYSCLK->APBCLK.FDIV_EN = 1;     // FRQDIV_CLK enable

SYSCLK->FRQDIV.FDIV_EN = 1;     // Divider enable

SYSCLK->FRQDIV.FSEL = 0;        // CLKO = Fin / 2(N+1)

000002001

000002002

Products: 마이크로컨트롤러(MCU) ,Arm Cortex-M0 MCUs ,M051 시리즈 ,M0518 시리즈 ,Mini51 시리즈 ,Nano100/102 시리즈 ,Nano110/112 LCD 시리즈 ,Nano120 USB 시리즈 ,Nano130 어드밴스드 시리즈 ,NUC029 시리즈 ,NUC100/200 어드밴스드 시리즈 ,NUC120/122/123/220 USB 시리즈 ,NUC130/230 CAN 시리즈 ,NUC131/NUC1311 CAN 시리즈 ,NUC140/240 연결(Connectivity) 시리즈 ,Arm Cortex-M4 MCUs ,M451 시리즈 ,M451M 시리즈 ,M452 USB 시리즈 ,M453 CAN 시리즈 ,NUC442/472 시리즈 ,NUC505 시리즈
Applications:
Function: Others
本网站使用cookie作为与网站互动时识别浏览器之用,浏览本网站即表示您同意本网站对cookie的使用及相关隐私权政策