search
FAQ / 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)
FAQ / Can UART wake up CPU in Power-down mode?
https://www.nuvoton.com.cn/support/technical-support/faq/d552952a-04f1-11ea-b113-05daf7eedf03/
Can UART wake up CPU in Power-down mode? 1430989920000 All the NuMicro ™ series chips support the use of CTSn pin to wake up CPU. The user can switch the CTSn pin status to wake up CPU. For some NuMicro ™ series chips, such as the Nano series, the UART data wake-up function is also supported. When receiving incoming data, UART can wake up CPU from Power-down mode, and the received data is stored in the FIFO. NuMicro™ M0/M4 Series with the UART Data Wake-up Function Nano100/110/120/130 Series Nano102/112 Series NUC131 Series M0518 Series M451 Series NUC505 Series
FAQ / 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
FAQ / 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.
FAQ / 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.
FAQ / 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
FAQ / 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)
FAQ / Can the WDT controller wake up the CPU from Power-down mode?
https://www.nuvoton.com.cn/support/technical-support/faq/d57a1a6f-04f1-11ea-b113-05daf7eedf03/
Can the WDT controller wake up the CPU from Power-down mode? 1436422200000 Yes, the WDT controller supports the WDT wake-up function. The user has to set the WDT wake-up enable bit (WTWKE = 1). After the WDT wake-up enable bit is set (WTWKE=1) and WDT counter overflow trigger WDT-timeout event flag is set (WTIF=1), the WDT controller will wake up the CPU form Power-down mode.
FAQ / What is the SPI 2-bit transfer mode and how to use it?
https://www.nuvoton.com.cn/support/technical-support/faq/d57efc72-04f1-11ea-b113-05daf7eedf03/
SPI 2-bit mode What is the SPI 2-bit transfer mode and how to use it? 1436422440000 The 2-bit transfer mode means that the SPI controller transmits 2-bit data output at the same edge of serial clock, and meanwhile it also receives 2-bit data input at the opposite edge of serial clock during a serial clock cycle. Accordingly, one SPI Master controller can access data with two external Slave devices simultaneously.
FAQ / Do the Nu-Link, Nu-Link-Pro and Nu-Link-Me support devices from other companies?
https://www.nuvoton.com.cn/support/technical-support/faq/d58dc98b-04f1-11ea-b113-05daf7eedf03/
Do the Nu-Link, Nu-Link-Pro and Nu-Link-Me support devices from other companies? 1437114660000 No, the Nu-Link, Nu-Link-Pro and Nu-Link-Me only support the NuMicro® Family series.
粤公网安备 44030502010001号