Since the CLKSTATUS register did not exist in the NUC100An series, when the program executes
while((CLK->CLKSTATUS & CLK_CLKSTATUS_OSC22M_STB_Msk) == 0);
this will cause the program to enter an infinite loop.
The user can change to delay 5ms
CLK_SysTickDelay(5000);
to ensure a stable clock source.
Search found 207 matches
- 27 Mar 2017, 14:08
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: During the program development of the NUC100AN series using the BSP V3.0 or later version, why does the user get stuck i
- Replies: 0
- Views: 2541
- 27 Mar 2017, 14:07
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: How to set the I2S sampling frequency and select an external crystal?
- Replies: 0
- Views: 2532
How to set the I2S sampling frequency and select an external crystal?
The following table lists common sampling frequency in accordance with the formula of I?S clock sources. If the system only requires a sampling frequency, the clock source can be determined by an external crystal. If two or more sampling frequencies are required, most of the chips will be limited to...
- 27 Mar 2017, 14:07
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: How can a user know which set of UART transmission is used when processing messages through printf ()?
- Replies: 0
- Views: 2575
How can a user know which set of UART transmission is used when processing messages through printf ()?
In the process of developing applications, user often needs to use printf () to process messages for debugging. If the UART supported by the NuMicro? series is more than one, it can be determined by defining "retarget.c" in DEBUG PORT that printf() uses which set of UART for transmission. The defaul...
- 27 Mar 2017, 14:06
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: Before entering Power-down mode, how does a user configure I/O pins to avoid the leakage problem?
- Replies: 0
- Views: 2524
Before entering Power-down mode, how does a user configure I/O pins to avoid the leakage problem?
Before entering Power-down mode, the user needs to configure I/O pins based on the setting of peripheral applications. If the I/O pin function is set as PWM output, the output is high or low level depending on the state of the peripheral Power-down mode (at this time, it cannot be configured by GPIO...
- 27 Mar 2017, 14:05
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: How does a user check the state before entering hard fault when a hard fault occurs on a M0/M4 microcontroller (MCU)?
- Replies: 0
- Views: 2553
How does a user check the state before entering hard fault when a hard fault occurs on a M0/M4 microcontroller (MCU)?
Since the hard fault is an exception interrupt, user can search code address from the memory address recorded by a stack pointer before entering a hardfault handler, and find the hard fault according to the address. The steps are as follows: Get a starting address of the stack pointer in Debug mode;...
- 27 Mar 2017, 14:05
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: What is the advantage of Hardware divider (HDIV)? Which series in the NuMicro? Family can support HDIV?
- Replies: 0
- Views: 2398
What is the advantage of Hardware divider (HDIV)? Which series in the NuMicro? Family can support HDIV?
The hardware divider (HDIV) can use hardware circuit to perform division operation directly. Software is not required to translate division instructions into a large number of alternative operation instructions. In the applications requiring high degree of numerical computation, such as sensor value...
- 27 Mar 2017, 14:05
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: Is the NuMicro? family chip provided with an internal LDO (Low Dropout Regulator) to supply 3.3V to a USB transceiver?
- Replies: 0
- Views: 2499
Is the NuMicro? family chip provided with an internal LDO (Low Dropout Regulator) to supply 3.3V to a USB transceiver?
Some NuMicro? family series that support USB function are provided with the internal LDO which can convert 5V input voltage of VBUS into 3.3V output voltage and supply the 3.3V to a USB transceiver. When the USB function is used, the LDO output pin VDD33 needs to connect to the LDO output voltage ha...
- 27 Mar 2017, 14:04
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: Does the LDO (Low Dropout Regulator) in the NuMicro? Family need to connect to an external capacitor?
- Replies: 0
- Views: 2391
Does the LDO (Low Dropout Regulator) in the NuMicro? Family need to connect to an external capacitor?
To stabilize the LDO output voltage in a chip, an external capacitor needs to be connected to the LDO output pin LDO_CAP. The capacitor needs to be close to the LDO_CAP pin. If the chip series has multiple LDO output pins, each LDO output pin requires an external capacitor. According to different Nu...
- 27 Mar 2017, 14:03
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: What is the function of LDO (Low Dropout Regulator) in the NuMicro? Family? Can LDO output be used to drive other extern
- Replies: 0
- Views: 2384
What is the function of LDO (Low Dropout Regulator) in the NuMicro? Family? Can LDO output be used to drive other extern
The LDO mainly provides a stable operating voltage of 1.8V for use in internal circuit of a chip, including RC oscillator, SRAM, and Flash.
In consideration of chip operational stability, it is not recommended that LDO output be used to drive other external chips.
In consideration of chip operational stability, it is not recommended that LDO output be used to drive other external chips.
- 27 Mar 2017, 14:03
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: What is the default state of the general purpose I/O (GPIO)?
- Replies: 0
- Views: 2391
What is the default state of the general purpose I/O (GPIO)?
Depending on the NuMicro? Family series, there is a different default state of the GPIO for selection. Users can select the default state of a GPIO by setting the CIOINI(Config0[10]).
The following table lists the settings of CIOINI for each NuMicro? Family series:
The following table lists the settings of CIOINI for each NuMicro? Family series:
