FAQ
- M051 Base Series(95)
- M0518 Series(97)
- M0519 Series(43)
- M0564 Series(1)
- Mini51 Base Series(90)
- Nano100/102 Base Series(101)
- Nano103 Base Series(10)
- Nano110/112 LCD Series(100)
- Nano120 USB Series(111)
- Nano130 Advanced Series(110)
- NUC029 Series(94)
- NUC100/200 Advanced Series(102)
- NUC120/122/123/220 USB Series(116)
- NUC121/125 Series(1)
- NUC126 USB Series(2)
- NUC130/230 CAN Series(103)
- NUC131/NUC1311 CAN Series(98)
- NUC140/240 Connectivity Series(114)
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)