Search found 207 matches
- 31 May 2021, 16:14
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: How to program SPROM in Keil C51?
- Replies: 0
- Views: 3897
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...
- 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: 4265
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...
- 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: 3933
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) ...
- 31 May 2021, 16:13
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: How to check the reset flag?
- Replies: 0
- Views: 3800
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...
- 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: 3862
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...
- 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: 3804
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;
Keil C51:
Note: push_(SFRS)以及_pop_(SFRS) are defined in the file.
IAR EW8051:
Note: __sfr __no_init volatile unsigned char SFRS @ 0x91;
- 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: 4293
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).
- 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: 3762
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...
- 31 May 2021, 16:10
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: Can the N76E003AT20 be replaced with the MS51 series?
- Replies: 0
- Views: 3801
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.
- 31 May 2021, 16:10
- Forum: Nuvoton Cortex-M0/M23 MCU
- Topic: How to use UART RX Time Out interrupt?
- Replies: 0
- Views: 3796
How to use UART RX Time Out interrupt?
To use UART RX Time Out interrupt, take UART0 as an example. When UART0 is initialized, call UART_SetTimeoutCnt to set the RX Time Out time, as shown below:
The RX Time Out setting has a valid value 40~255. The detailed description is as follows:
The RX Time Out setting has a valid value 40~255. The detailed description is as follows:
