Does the NuMicro® family provide the flag to check and ensure the internal clock is stable?

Post Reply
Henry
Posts: 41
Joined: 20 Mar 2017, 10:54

24 Mar 2017, 15:15

Yes, all the series except the NUC1xxAN series provide the flag, OSC22M_STB, in the CLKSTATUS register to ensure the internal (HIRC) clock is stable.
Please refer to the related Technical Reference Manual for further information.

Please add the following marked code after the internal clock is enabled.

Case 1:(All series except NUC1xxAN series)
while(SYSCLK->CLKSTATUS.OSC22M_STB == 0); // Check if (HIRC) clock is stable or not

Case 2:(NUC1xxAN series)
DrvSYS_Delay(5000); // Add delay to make sure (HIRC) clock is stable
林昌宏/ Henry
新唐科技 / nuvoTon technology corporation
新竹科學工業園區30077研新三路4號
TEL : (03) 5770066#38077
Email : CHLIN55@nuvoTon.com

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests