Suche
Häufig gestellte Fragen / Does the SPI controller support the general SPI mode 0 - 3?
https://www.nuvoton.com.cn/support/technical-support/faq/d52bd332-04f1-11ea-b113-05daf7eedf03/
Does the SPI controller support the general SPI mode 0 - 3? 1429776660000 Yes, it is easy to configure the SPI registers for setting the idle polarity of serial clock, the clock edges to transmit and receive data to match the general SPI mode 0 - 3.
Häufig gestellte Fragen / What needs to be considered in the VREF pin when using an ADC?
https://www.nuvoton.com.cn/support/technical-support/faq/d5357028-04f1-11ea-b113-05daf7eedf03/
What needs to be considered in the VREF pin when using an ADC? 1429777080000 For all NuMicro™ series, the VREF pin must be connected with an external capacitor, and its capacitance value needs to limit power supply ripple to be less than one LSB of ADC to avoid power noise to interfere with ADC accuracy. For example, if the 12-bit ADC and VREF voltage is 3.3V, the size of the ripple should be less than 3.3/(2^12) = 0.8mV.
Häufig gestellte Fragen / How many bits are required to present the accuracy and linearity of conversions when an analog-to-digital converter (ADC) in the NuMicro® series operates at the highest speed?
https://www.nuvoton.com.cn/support/technical-support/faq/d53a522b-04f1-11ea-b113-05daf7eedf03/
How many bits are required to present the accuracy and linearity of conversions when an analog-to-digital converter (ADC) in the NuMicro® series operates at the highest speed? 1432716600000 The absolute accuracy formula is: N - log2 (EA), wherein EA refers to the absolute error; N refers to converter bits. The linearity formula is: N - log2 (INL), wherein INL refers to the Integral nonlinearity error; N refers to converter bits. Refer to the ADC electrical characteristics chapter in the relevant Datasheet. The M051DN/DE series is used as example in the following table for illustration. In the specification, the maximum absolute error is 4 LSB, and the maximum Integral nonlinearity error is 4 LSB. Thus, the absolute accuracy is 12 bit - log2 (4) = 10 bit. The linearity is 12 bit - log2 (4) = 10 bit. For other series, please refer to the relevant Datasheet.
Häufig gestellte Fragen / What is the resolution of a PWM prescaler, a frequency divider, and a timer?
https://www.nuvoton.com.cn/support/technical-support/faq/d543ef21-04f1-11ea-b113-05daf7eedf03/
What is the resolution of a PWM prescaler, a frequency divider, and a timer? 1430989560000 Each PWM in most of the NuMicro™ series consists of an 8-bit prescaler, a 1/2/4/8/16 frequency divider and two 16-bit timers. However, each PWM in the M451 series consists of an 12-bit prescaler and two 16-bit timers.
Häufig gestellte Fragen / How to calculate the PWM frequency and duty cycle?
https://www.nuvoton.com.cn/support/technical-support/faq/d548f834-04f1-11ea-b113-05daf7eedf03/
How to calculate the PWM frequency and duty cycle? 1430989740000 The formula is as follows: PWM frequency = PWM clock source frequency / ((Pre-scale + 1) * frequency divider * (CNR + 1)) Duty Cycle = (CMR + 1) / (CNR + 1) (CNR: 16-bit counter register; CMR: 16-bit comparator register)
Häufig gestellte Fragen / What is the main function of PWM Capture?
https://www.nuvoton.com.cn/support/technical-support/faq/d557772d-04f1-11ea-b113-05daf7eedf03/
What is the main function of PWM Capture? 1432719000000 PWM Capture and PWM Output share the same hardware. When a rising edge or a falling edge occurs, the value of a PWM counter will be latched into the corresponding rising or falling latch register. At this time, whether to reload the PWM counter or an interrupt event occurs can be determined. The PWM Capture is mainly used to measure the input waveform of high level and (or) a high-level pulse width. The following diagram is used as example for illustration: To measure the time W2 from a rising edge to a falling edge (high level), the user can set the PWM counter reload value CN when a rising edge occurs. A falling latch value CFL can be obtained when a falling edge occurs. The time W2 can be calculated using the following formula: (CN+1-CFL)*(prescale+1)*(clock divider)/PWM_CLK Note: prescale: 8-bit prescale clock divider: divider options PWM_CLK: PWM clock source frequency
Häufig gestellte Fragen / How to check if the RAM and ROM used by the program exceed the supported chip size when using Keil development environment?
https://www.nuvoton.com.cn/support/technical-support/faq/d55ca750-04f1-11ea-b113-05daf7eedf03/
How to check if the RAM and ROM used by the program exceed the supported chip size when using Keil development environment? 1432720680000 The Keil development environment supports the function of confirming the RAM and ROM size used by program during compilation. If the RAM and ROM used by the program exceed the chip size, Keil will automatically display warning message. NUC240VE3AN is used as example below to illustrate how to check RAM and ROM: Invoke Target Options. In the Linker tab, enable “Use Memory Layout from Target Dialog”, and remove --first='startup_NUC230_240.o(RESET)' in the Misc Controls field. In the Device tab, select NuMicro Cortex-M Database under the Database pull-down menu, and then select a specific part number. In the Target tab, enable IROM and IRAM1 as default, and then select Startup as IROM1. After completing the steps above, when the RAM and ROM used by the program exceed the supported chip size, Keil will automatically display warning message.
Häufig gestellte Fragen / How to add a breakpoint to stop program execution in the Keil development environment when a register or an address in RAM is changed or read?
https://www.nuvoton.com.cn/support/technical-support/faq/d56559e3-04f1-11ea-b113-05daf7eedf03/
Breakpoint How to add a breakpoint to stop program execution in the Keil development environment when a register or an address in RAM is changed or read? 1441789447157 Please follow the steps below to add a breakpoint in Debug mode: Use Ctrl+B to open the Breakpoints dialog box. Enter a register address or an address in RAM into the “Expression” field of the Breakpoints dialog box. Enable the “Read” or “Write” option, specify the “Size” as 4 for a register, and enable “Bytes” in the “Access” section. Click the “Define” button to add a new breakpoint. Taking the M051 series for example, to see if the value of the UA_THR register of UART0 is written, follow the steps as shown in the figure below: Note1: The “Count” setting could not be changed to control the hit count of breakpoints. Note2: Up to two breakpoints can be set for a register.
Häufig gestellte Fragen / In Power-down mode, how to control a chip to achieve the most energy-efficient state?
https://www.nuvoton.com.cn/support/technical-support/faq/d56ab116-04f1-11ea-b113-05daf7eedf03/
In Power-down mode, how to control a chip to achieve the most energy-efficient state? 1441790029494 In Power-down mode, power consumption of chips can be divided into three parts: CPU and chip peripheral; GPIO pins; Analog modules. Among these, the CPU and chip peripheral consumes the most power, several times more than the sum of the other two. In Normal mode, the power consumption of GPIO pins and analog modules almost can be ignored. The user can also control the power consumption of chip peripheral by adjusting the frequency of clock sources. However, when the system enters Power-down mode, the chip will stop HXT and HIRC operations, that is, the CPU and chip peripheral does not consume any power, and only the GPIO pins and analog modules consume power. If both the GPIO pins and analog modules are set incorrectly, in Power-down mode, leakage problems will occur in the system. To achieve the most energy-efficient state in Power-down mode, the user needs to refer to the following
Häufig gestellte Fragen / How to view code size and SRAM usage in the Keil development environment?
https://www.nuvoton.com.cn/support/technical-support/faq/d574ea4c-04f1-11ea-b113-05daf7eedf03/
How to view code size and SRAM usage in the Keil development environment? 1436421900000 After programming, Keil will display the following message: Program Size: Code=86496 RO-data=9064 RW-data=1452 ZI-data=16116 The parameters have the following meanings: Code The space occupied by the code. RO-data The read-only constant, e.g. const. RW-data (Read Write) The initialized read-write variables. ZI-data (Zero Initialize) The uninitialized read-write variables. ZI-data is not regarded as code because it is not initialized. Note: The unit is Byte. When programming, the occupied space in Flash is: Code+(RO-data)+(RW-data) When a program is running, the space used for the internal SRAM inside the chip is: (RW-data)+(ZI-data)
粤公网安备 44030502010001号