Search found 208 matches

by a_ziliu
06 Dec 2023, 10:18
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: NUC123 Internal oscillator for USB device operation?
Replies: 1
Views: 16053

Re: NUC123 Internal oscillator for USB device operation?

The NUC123 need exteranl 12mhz or 24Mhz crystal function with USB.
The NUC123 have pll can run 48Mhz for USB ip function
by a_ziliu
31 May 2021, 16:25
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: Can the internal reference voltage be greater than the operation voltage?
Replies: 0
Views: 24480

Can the internal reference voltage be greater than the operation voltage?

The internal reference voltage is selected based on the operation voltage, and the value must be less than or equal to the operation voltage. For example, when the operation voltage is 2V, the internal reference voltage must be selected as 1.538V by setting VRFSEL[2:0].
by a_ziliu
31 May 2021, 16:24
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to generate an accurate delay time?
Replies: 0
Views: 12819

How to generate an accurate delay time?

If user wants to generate an accurate delay time, it is recommended to use the __nop() to get the accurate one CPU clock cycle delay. However, because the speed of Flash is lower than CPU, some optimization and cache technology will make the __nop() delay not accurate. Hence, it is recommended to pu...
by a_ziliu
31 May 2021, 16:24
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to keep the status of SRAM and do not initialize it when chip is reset?
Replies: 0
Views: 11831

How to keep the status of SRAM and do not initialize it when chip is reset?

To take the watchdog reset of M031 as an example. When chip is reset, CPU will start to run code from “startup_M031Series.s”. In this code, program counter will jump to “startup_M031Series.c” and execute the System_Init function. After executing, the program counter will jump to __main function. LDR...
by a_ziliu
31 May 2021, 16:20
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to print the value of SFR when SFR and SBUF are on the different SFR pages?
Replies: 0
Views: 12465

How to print the value of SFR when SFR and SBUF are on the different SFR pages?

The recommended solution is to move SFRs to XRAM. Then the SFR page should be set to the UART page to print the value of SFR. The following is demonstration of printing the value of PWM0C1H on ML51EB9AE. Make sure you are on the correct SFR page for the ML51EB9AE when accessing SFRs. Because SBUF an...
by a_ziliu
31 May 2021, 16:20
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: What is the role of the Reset option for each pin in the PinConfigure Tool?
Replies: 0
Views: 12072

What is the role of the Reset option for each pin in the PinConfigure Tool?

In the figure below, if user selects the last row of the list that is named as Reset, the disable operation will be completed. By the way, only the nRESET pin can be configured as the external reset pin to reset whole chip.
by a_ziliu
31 May 2021, 16:20
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to estimate the total ADC conversion time?
Replies: 0
Views: 12386

How to estimate the total ADC conversion time?

The total ADC conversion time follows the equation below: TADC = TSMP + Tconv Where TADC = total conversion time TSMP = sampling time Tconv = conversion time = 1.625us The sampling time follows the equation below: TSMP = where With the condition Fsys = 16MHz, TSMP(min) = = 0.375us The ADC controller...
by a_ziliu
31 May 2021, 16:19
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: Does it lead to programming failed when ICE_DAT and ICE_CLK pins are configured as alternate function in application cod
Replies: 0
Views: 12294

Does it lead to programming failed when ICE_DAT and ICE_CLK pins are configured as alternate function in application cod

No. Taking MS51BA9AE for example, in ICE or ICP mode, GPIO pin 4 and 7 are configured as ICE function. In normal mode, these pins are reconfigured as alternate functions in application code.
by a_ziliu
31 May 2021, 16:19
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to configure UART Rx function if pin has Uart Rx and nRESET functions?
Replies: 0
Views: 12069

How to configure UART Rx function if pin has Uart Rx and nRESET functions?

Take MS51DA9AE for example. After power-on, P2.0 can configure as the external reset pin or an input-only pin. By default, P2.0 is configured as external reset pin. Only when P2.0 is configured as an input-only pin can user select alternate function. Take UART Rx function for example. Please follow ...
by a_ziliu
31 May 2021, 16:18
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to display the SFRs on Memory window in KEIL C51?
Replies: 0
Views: 11546

How to display the SFRs on Memory window in KEIL C51?

The one page of SFR is 128 bytes on 8051. The start address and end address of each page is from 0x80 to 0xFF. User should define the memory location for display the SFR page.
Define memory display location as D(RAM page number): RAM address number.
For example: D00:0x80