Yes, but it depends on the part No.
The measurement frequency will be Fin/2^1 to Fin/2^16, 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)
Does the NuMicro® family provide the clock output pin to measure the internal or external clock?
林昌宏/ Henry
新唐科技 / nuvoTon technology corporation
新竹科學工業園區30077研新三路4號
TEL : (03) 5770066#38077
Email : CHLIN55@nuvoTon.com
新唐科技 / nuvoTon technology corporation
新竹科學工業園區30077研新三路4號
TEL : (03) 5770066#38077
Email : CHLIN55@nuvoTon.com
-
- Information
-
Who is online
Users browsing this forum: No registered users and 19 guests