常见问答

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: Microcontrollers ,Arm Cortex-M0 MCUs ,M051 Base Series ,M0518 Series ,Mini51 Base Series ,Nano100/102 Base Series ,Nano110/112 LCD Series ,Nano120 USB Series ,Nano130 Advanced Series ,NUC029 Series ,NUC100/200 Advanced Series ,NUC120/122/123/220 USB Series ,NUC130/230 CAN Series ,NUC131/NUC1311 CAN Series ,NUC140/240 Connectivity Series ,Arm Cortex-M4 MCUs ,M451 Base Series ,M451M Series ,M452 USB Series ,M453 CAN Series ,NUC442/472 Series ,NUC505 Series
Applications:
Function: Others
本网站使用cookie作为与网站互动时识别浏览器之用,浏览本网站即表示您同意本网站对cookie的使用及相关隐私权政策