Suche
Häufig gestellte Fragen / How can a user know which set of UART transmission is used when processing messages through printf ()?
https://www.nuvoton.com.cn/support/technical-support/faq/d5e05682-04f1-11ea-b113-05daf7eedf03/
How can a user know which set of UART transmission is used when processing messages through printf ()? 1444979220000 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 default is UART0. The user can change the definition of DEBUG PORT and the printf () transmission port to comply with the system architecture.
Häufig gestellte Fragen / How to set the I2S sampling frequency and select an external crystal?
https://www.nuvoton.com.cn/support/technical-support/faq/d5e7a985-04f1-11ea-b113-05daf7eedf03/
How to set the I2S sampling frequency and select an external crystal? 1446449340000 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 hardware restrictions. Each sampling frequency can only be the result of I2S clock source divider. In the NUC140 series, for example, the I2S selects 12.288 MHz as clock source and 16 bits, and the available sampling frequency are 96K, 48K, 32K, 24K, 19.2K, 16K, 12K, 9.6K, 8K and 6K. As to the 44.1K, 22.05K and 11.025K, the clock source must be changed to 5.6448 MHz. I2S_BCLK = I2S_CLK /(2x(BCLK_DIV + 1)) = SR * Length * 2 Sampling Rate I2S_BCLK (8-bit) I2S_BCLK (16-bit) I2S_BCLK (32-bit) I2S_CLK 192000 3072000 6144000 12288000 24576000 96000 1536000 3072000 6144000 12288000 48000 768000 1536000 3072000
Häufig gestellte Fragen / What should be considered when using PWM output function in the NuMicro® family?
https://www.nuvoton.com.cn/support/technical-support/faq/d5ff0221-04f1-11ea-b113-05daf7eedf03/
What should be considered when using PWM output function in the NuMicro® family? 1446450540000 When using the PWM output function in the NuMicro® family, the users not only sets the corresponding pin to the PWM output function, but makes sure the PWM clock source is turned on, initializes and enables the PWM output function. Otherwise, the unstable state of the output pin may lead to leakage phenomenon. In the M451 series, for example, the user can follow the steps below to set the PWM output function: Enable PWM clock: CLK_EnableModuleClock(PWM0_MODULE); Select PWM clock source: CLK_SetModuleClock(PWM0_MODULE, CLK_CLKSEL2_PWM0SEL_PCLK0, NULL); Reset PWM function: SYS_ResetModule(PWM0_RST); Set the pin or PWM function: SYS->GPC_MFPL = (SYS->GPC_MFPL & (~SYS_GPC_MFPL_PC0MFP_Msk)); SYS->GPC_MFPL |= SYS_GPC_MFPL_PC0MFP_PWM0_CH0; Set the PWM output function: PWM_ConfigOutputChannel(PWM0, 0, 180000, 50); Enable PWM output: PWM_EnableOutput(PWM0, PWM_CH_0_MASK); Start the PWM output:
Häufig gestellte Fragen / Why is the observed variable displayed as “not in scope” in Debug mode under the Keil development environment?
https://www.nuvoton.com.cn/support/technical-support/faq/d6040b34-04f1-11ea-b113-05daf7eedf03/
Why is the observed variable displayed as “not in scope” in Debug mode under the Keil development environment? 1446450840000 When interrupted in Debug mode, the user wants to check the variable value but see ”not in scope” on the Watch window, as shown below: This is because the compiler would put variables into R1 registers after optimization, but the Watch window could only get the value from the internal memory. Therefore, “not in scope” will be displayed. There are three solutions: Set the variable as a global variable. Set the variable as volatile. Set ”Optimization“ of ”C/C++” in the ”Options for Target…” as ”Level 0 (-O0)”, as shown below:
Häufig gestellte Fragen / What should be considered when using NuMicro® microcontrollers (MCUs) for I²C development and using polling to send data?
https://www.nuvoton.com.cn/support/technical-support/faq/d60bac57-04f1-11ea-b113-05daf7eedf03/
What should be considered when using NuMicro® microcontrollers (MCUs) for I²C development and using polling to send data? 1446451140000 When using the NuMicro® microcontrollers (MCUs) for I²C development while using polling instead of interrupts, the user needs to consider the following condition. After the I²C bus issues a STOP signal, the user should wait for some time and check the status of the bus to make sure that the START signal can only be issued after the end of the STOP signal. Otherwise, it may cause program error.
Häufig gestellte Fragen / How to erase/write Flash data in the BOD interrupt function?
https://www.nuvoton.com.cn/support/technical-support/faq/d610b56a-04f1-11ea-b113-05daf7eedf03/
How to erase/write Flash data in the BOD interrupt function? 1446451320000 After the system enters the BOD interrupt function, to erase/write Flash data, the user needs to disable the BOD function and clear BODOUT. After the erase/write is complete, the user can enable the BOD function again.
Häufig gestellte Fragen / How to execute a new program when using the IAP (In-Application Programming) function of the NuMicro® family?
https://www.nuvoton.com.cn/support/technical-support/faq/d615e58d-04f1-11ea-b113-05daf7eedf03/
How to execute a new program when using the IAP (In-Application Programming) function of the NuMicro® family? 1450679940000 When using the IAP (In-Application Programming) function of the NuMicro® family series, you can execute a new program in two ways: Perform System Reset after vector remapping: FMC_SetVectorPageAddr(Application_BASE); NVIC_SystemReset(); Use a function pointer to point to the new program after vector remapping: func = (void (*)(void)) M32(Application_BASE + 4); __asm __set_SP(Application_BASE); func(); __asm __set_SP(uint32_t _sp) { MSR MSP, r0 BX lr } The following table shows the support condition of System Reset/CPU Reset or Function Pointer for each NuMicro® family series: NuMicro® Family Series System Reset or CPU Reset Function Pointer Mini51 Yes Yes Mini58 Yes Yes M051 BN No Yes M051 DN No Yes M051 DE Yes Yes M058S No Yes M0518 Yes Yes M0519 Yes Yes NUC029xAN No Yes NUC029FAE Yes Yes NUC100/120 No Yes NUC130/140 No Yes NUC122* No No NUC123 AN No Yes NUC123
Häufig gestellte Fragen / Is there any ADC feature comparison table for each NuMicro® family series?
https://www.nuvoton.com.cn/support/technical-support/faq/d61aeea0-04f1-11ea-b113-05daf7eedf03/
Is there any ADC feature comparison table for each NuMicro® family series? 1450681560000 The ADC features provided by each of the NuMicro® family series may vary. Please refer to the following table for details: Series ADC Channel and Resolution AVDD (V) Max. ADC Clock (MHz) Max. Conversion Rate (SPS) Temperature Sensor (mV) Input Voltage Range(V) Vref Pin Differential Analog Input Sample time (ADC clock) Operating Mode Single Single-Cycle Scan Continuous Scan Burst Simultaneous Mini51 8x10bit 2.5~5.5 4.2 300k - 0~AVDD - - ADJ* V - - - - Mini58 8x10bit 2.5~5.5 4.2 300k - 0~AVDD - - ADJ* V - - - - M051 8x12bit 2.5~5.5 20 1M -1.65T+725 0~AVDD - V 20 V V V V - M058S 8x12bit 3~5.5 16 760k -1.76T+725 0~Vref V V 20 V V V - - M0518 8x12bit 3~5.5 21 1M - 0~Vref V V 20 V V V - - M0519 AVDD=5V 16x12bit 2.5~5.5 16 800k -1.76T+720 0~Vref V - ADJ* V V V - V AVDD=3V 8 400k NUC029xAN 8x12bit 2.5~5.5 20 1M -1.65T+725 0~AVDD - V 20 V V V V - NUC029FAE 8x10bit 2.5~5.5 4.
Häufig gestellte Fragen / If the watchdog (WDT) function is enabled in the config bit, will it affect ISP upgrade procedure?
https://www.nuvoton.com.cn/support/technical-support/faq/d646b9a8-04f1-11ea-b113-05daf7eedf03/
If the watchdog (WDT) function is enabled in the config bit, will it affect ISP upgrade procedure? 1464846060854 If the watchdog (WDT) function is enabled in the config bit, the watchdog will start automatically. The default clock source is internal low speed 10 kHz clock. Reset Time = Overflow Time + Delay Time = (2 ^ 18 + 1026) /10k=26.3 seconds. The Nuvoton ISP Boot Loader program did not include the watchdog function. If the watchdog (WDT) function is enabled in the config bit and the ISP upgrade time is more than 26.3 seconds, there will be a watchdog reset, and ISP upgrade will fail. Therefore, if the user needs to enable the watchdog (WDT) function in the config bit when using the Nuvoton ISP Boot Loader, please be sure to add the watchdog reset function to the ISP Boot Loader; otherwise, when the ISP operation time is more than 26.3 seconds, because the upgrade time is too long, more than a watchdog reset time, it will cause chip reset and ISP upgrade failed.
Häufig gestellte Fragen / Why did the phenomenon of data sent by PDMA being displaced occur?
https://www.nuvoton.com.cn/support/technical-support/faq/d650cbce-04f1-11ea-b113-05daf7eedf03/
Why did the phenomenon of data sent by PDMA being displaced occur? 1467017876725 When the source or destination address is set as the array starting address, the user must check whether the array starting address is word aligned. In the following example, the starting address of a buffer is 0x2000_0039. Since the ordering of memory is determined by a compiler, the non-word aligned situation may occur. unsigned int test2; unsigned char test1; unsigned char buffer[100]; When the PDMA source or destination address is set as buffer (0x2000_0039), PDMA hardware will be set as word accessed (0x2000_0038). If using the PDMA with UART to send data, the data to be sent will be 0x01, 0x03 …, instead of starting from 0X03. In the case that memory is not word aligned, aligned (4) can be used such that the array can be aligned with the byte in memory. unsigned char buffer[100] __attribute__ ((aligned (4))); The starting address of the array buffer will be arranged and aligned with 4 bytes.
粤公网安备 44030502010001号