Search found 208 matches

by a_ziliu
31 May 2021, 16:14
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to check the I/O current leakage by PinView?
Replies: 0
Views: 10983

How to check the I/O current leakage by PinView?

Introduction: PinView can check the GPIO status. While PinView detects an abnormal status, PinView will mark the pin number in red color. There are five situation that PinView will mark the abnormal pin. (1) The current leakage for GPIO pin. (2) The value of setting register of multi-function pin is...
by a_ziliu
31 May 2021, 16:14
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to program SPROM in Keil C51?
Replies: 0
Views: 8549

How to program SPROM in Keil C51?

1. Open the “Options for Target” window 2. Set the APROM and SPROM output file on User page. (1) Check the “Run #2” (2) Key in the following statement: ..\..\..\..\Library\Startup\exe\hex2bin.exe .\output\@L.hex 0x0 0x1000 0xFF80 0x80 3. Set the Flash Programming option on Utilities page (1) Press t...
by a_ziliu
31 May 2021, 16:13
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to perform the code optimization of ARM compiler on keil μVision 5?
Replies: 0
Views: 9278

How to perform the code optimization of ARM compiler on keil μVision 5?

Introduction: Perform the code optimization can reduce code size and improve performance. Generally, it will be trade-off between reduce code size and improve performance. 1. During developing phase To prevent the assembly code changed by compiler, do not select any optimize function during developi...
by a_ziliu
31 May 2021, 16:13
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to debug with watchpoint in Keil μVision or IAR EWARM?
Replies: 0
Views: 8738

How to debug with watchpoint in Keil μVision or IAR EWARM?

Introduction: (1) Use watchpoint under debug mode in Keil μVision or IAR EWARM. (2) Watchpoint stops the CPU when a specified data access occurs and any specified expression becomes true. Scenario: (1) Debugging memory access status (2) Debugging parameters with unexpected changes Keil μVision: (1) ...
by a_ziliu
31 May 2021, 16:13
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to check the reset flag?
Replies: 0
Views: 8558

How to check the reset flag?

System Reset Status Register (SYS_RSTSTS) provides specific information for software to identify the happened reset source of chip. There are two ways for checking the reset flag: 1. Call specific API “SYS_GetResetSrc()” in the project 2. Use System Viewer to check “SYS_RSTSTS” register value in Deb...
by a_ziliu
31 May 2021, 16:12
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to use System Viewer to check register status and modify the setting?
Replies: 0
Views: 8779

How to use System Viewer to check register status and modify the setting?

Function: System Viewer is a helpful tool to check register status in KEIL debug mode (1) Monitors register value in real-time (2) Changes register value and becomes effective immediately Scenario: (1) When peripheral does not work as user expected, System Viewer can help user to monitor the registe...
by a_ziliu
31 May 2021, 16:12
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: How to avoid unexpected results while the value of SFRS Register changed before ISR occurs?
Replies: 0
Views: 8463

How to avoid unexpected results while the value of SFRS Register changed before ISR occurs?

On interrupt, user must to be pushed the current SFRS value to the stack. Also on a return from interrupt, the stack is popped to the SFRS register.

Keil C51:


Note: push_(SFRS)以及_pop_(SFRS) are defined in the file.

IAR EW8051:

Note: __sfr __no_init volatile unsigned char SFRS @ 0x91;
by a_ziliu
31 May 2021, 16:11
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: What NuMicro® chip series supports the function mapped interrupt vector table to SRAM?
Replies: 0
Views: 8948

What NuMicro® chip series supports the function mapped interrupt vector table to SRAM?

The following table lists the chip series that supports the function mapped interrupt vector table to SRAM. For related illustration and introduction, please refer to the FMC section or VTOR register on Technical Reference Manual (TRM).
by a_ziliu
31 May 2021, 16:11
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: For Nuvoton's 8051 chips, can the timer be stopped during single-step execution in Keil Debug mode?
Replies: 0
Views: 8557

For Nuvoton's 8051 chips, can the timer be stopped during single-step execution in Keil Debug mode?

Keil can turn off the peripheral clock in Debug mode to achieve the effect of stopping the Timer in a single-step. However, after this setting is made, the peripherals will have no action during single-step execution such as PWM output. To suspend the Timer in Debug mode, please follow the steps bel...
by a_ziliu
31 May 2021, 16:10
Forum: Nuvoton Cortex-M0/M23 MCU
Topic: Can the N76E003AT20 be replaced with the MS51 series?
Replies: 0
Views: 8449

Can the N76E003AT20 be replaced with the MS51 series?

The pin arrangement, pin function and package size of the MS51FB9AE in the MS51 series are fully compatible with those of the N76E003AT20. Therefore, the MS51FB9AE can be directly used instead of the N76E003AT20 without modified any schematics.