N76E003
May 09, 2016 Page 1 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
1T 8051
8-bit Microcontroller
Nuvoton 1T 8051-based Microcontroller
NuTiny-SDK-N76E003
User Manual
The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
Nuvoton is providing this document only for reference purposes of NuMicro microcontroller based system design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation.
www.nuvoton.com
N76E003
May 09, 2016 Page 2 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
Table of Contents
1 OVERVIEW ......................................................................................... 3
2 NUTINY-SDK-N76E003 INTRODUCTION ..................................................... 4
Virtual COM Port Switch Description ............................................................... 4 2.1
NuTiny-SDK-N76E003 Power Setting and Connector ........................................... 4 2.2
2.2.1 Power Setting ................................................................................................... 4
2.2.2 Debug Connector ............................................................................................... 5
2.2.3 ICE USB Connector ............................................................................................ 5
2.2.4 Extended Connector ........................................................................................... 5
2.2.5 Reset Button ..................................................................................................... 5
2.2.6 Power Connector ............................................................................................... 5
2.2.7 Virtual COM Port Function Switch ........................................................................... 5
Pin Assignment for Extended Connector .......................................................... 6 2.3
NuTiny-SDK- N76E003 PCB Placement ........................................................... 7 2.4
3 How to Start NuTiny-SDK-N76E003 on the Keil C-51 μVision® IDE ....................... 8
Downloading and Installing Keil C-51 μVision® IDE Software .................................. 8 3.1
Downloading and Installing Nuvoton Nu-Link Driver ............................................. 8 3.2
Hardware Setup ........................................................................................ 8 3.3
Example Program ...................................................................................... 8 3.4
4 NuTiny-EVB-N76E003 Schematic ............................................................. 13
Nu-Link-Me Schematic ............................................................................... 13 4.1
NuTiny-SDK-N76E003 Schematic ................................................................. 14 4.2
5 Downloading NuVOTON 8bit 8051 MCUs Related Files from Nuvoton Website ...... 15
Downloading Nuvoton Keil C-51 μVision® IDE Driver ........................................... 15 5.1
Downloading Nuvoton 8bit 8051 MCUs N76E003 Series Sample Code .................... 16 5.2
6 REVISION HISTORY ............................................................................ 17
N76E003
May 09, 2016 Page 3 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
1 OVERVIEW
NuTiny-SDK-N76E003 is the specific development tool for 8-bit high performance 1T 8051-based microcontroller N76E003 series. User can use NuTiny-SDK-N76E003 to develop and verify the application program easily.
NuTiny-SDK-N76E003 includes two portions. One is NuTiny-EVB-N76E003 and the other is Nu-Link-Me. NuTiny-EVB-N76E003 is the evaluation board and Nu-Link-Me is its Debug Adaptor. Thus, user does not need other additional ICE or debug equipment.
The Nuvoton 1T 8051-based microcontroller N76E003 series is function compatible with the N76E616 and N76E885 series, the 8-bit high performance 1T 8051-based microcontroller. The instruction set is fully compatible with the standard 80C51 and performance enhanced. The N76E003 series can bridge the gap and replace the cost equivalent to traditional 4T, 6T and 12T 8-bit microcontroller by 1T 8-bit high performance and rich functions. With high performance CPU core and rich well-designed peripherals, the N76E003 benefits to meet a general purpose, home appliances, or motor control system accomplishment.
The N76E003 series can run up to 16 MHz, and operate at a wide voltage range of 2.4V ~ 5.5V and temperature range of -40℃ ~ +105℃. For the N76E003 series, the embedded program flash
size is up to 18 Kbytes, SRAM is 256 bytes, and 768 Bytes of auxiliary RAM (XRAM). The N76E003 series also offers size configurable 4K/3K/2K/1K/0K bytes flash of LDROM for the ISP, which provides flexibility to user developed Boot Code.
The N76E003 series has many high-performance peripheral functions, such as 16 MHz high-speed internal RC oscillator (trimmed to ±1% when VDD 5.0V, ±2% in all conditions), I/O port with up to 18 pins, four 16-bit timers, two full-duplex UARTs ports with frame error detection and automatic address recognition, one SPI interface, one I
2C interface, up to five enhanced 16-bit
PWM output channels, 8 channels 12-bit ADC, Watchdog Timer, Self Wake-up Timer, and a Brown-out Detector. The peripherals are equipped with 18 sources with 4-level-priority interrupts capability. All these peripherals have been incorporated into the N76E003 series to reduce component count, board space and system cost.
Additionally, the N76E003 series is equipped with ISP (In-System Programming) and ICP (In-Circuit Programming) functions, which allow the user to update the program memory without removing the chip from the actual end product. The N76E003 series also supports In-Application-Programming (IAP) function, user switches the code executing without the chip reset after the embedded flash updated.
N76E003
May 09, 2016 Page 4 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
2 NUTINY-SDK-N76E003 INTRODUCTION
NuTiny-SDK-N76E003 uses the N76E003AT20 as the target microcontroller. Figure 2-1 is NuTiny-SDK-N76E003 for the N76E003 series, the left portion is called NuTiny-EVB-N76E003 and the right portion is Debug Adaptor called Nu-Link-Me.
NuTiny-EVB-N76E003 is similar to other development boards. User can use it to develop and verify applications to emulate the real behavior. The on-board chip covers N76E003 series features. The NuTiny-EVB-N76E003 can be a real system controller to design user’s target systems.
Nu-Link-Me is a Debug Adaptor. The Nu-Link-Me Debug Adaptor connects your PC's USB port to the user’s target system (via Serial Wired Debug Port) and allows user to program and debug embedded programs on the target hardware. To use Nu-Link-Me Debug adaptor with Keil, please refer to “Nuvoton Nu-Link debug adapter user manual” in detail. This document will be stored in the local hard disk when user installs each driver. Nu-Link-Me also supports virtual COM port function. User can use Nu-Link-Me as a USB to UART virtual COM port, which connects to on-board N76E003AT20 UART0.
Figure 2-1 NuTiny-SDK-N76E003 (PCB Board)
Virtual COM Port Switch Description 2.1
The switch in Nu-Link-Me, SW3, determines that the virtual COM port function is enabled or disabled. When user turns on all of the positions of switch, the virtual COM port function will be enabled. By using virtual COM port function, user can access the USB device in the same way as it would access a standard COM port to N76E003AT20 UART0. To use this function, user needs to install “VCOM Driver” at first. User can get “VCOM Driver” from NuMicroDVD www.nuvoton.com\NuMicroDVD in folder “Software Utilities”.
NuTiny-SDK-N76E003 Power Setting and Connector 2.2
2.2.1 Power Setting
J1: USB port in Nu-Link-Me JP7 and JP9: VCC33 Voltage connector in NuTiny-EVB-N76E003
N76E003
May 09, 2016 Page 5 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
Model JPR1 J1USB port JP7 & JP9 VCC33 MCU Voltage
Model 1 Select VCC33
(default) Connect to PC DC 3.3V output DC 3.3V
Model 2 X X DC 2.4 V ~ 5.5 V
Input Voltage by JP7 &
JP9 input
2.2.2 Debug Connector
JP4: Connector in target board (NuTiny-EVB-N76E003) for connecting with Nuvoton ICE adaptor (Nu-Link-Me)
JP2: Connector in ICE adaptor (Nu-Link-Me) for connecting with a target board (for example NuTiny-EVB-N76E003)
2.2.3 ICE USB Connector
J1: Mini USB Connector in Nu-Link-Me connected to a PC USB port
2.2.4 Extended Connector
JP5 and JP6: Show all chip pins in NuTiny-EVB-N76E003
2.2.5 Reset Button
SW1: Reset button in NuTiny-EVB-N76E003
2.2.6 Power Connector
JP7 and JP9: 3.3 VCC connector in NuTiny-EVB-N76E003 JP8 and JP10: GND connector in NuTiny-EVB-N76E003
2.2.7 Virtual COM Port Function Switch
SW3: Switch ON/OFF to enable or disable Nu-Link-Me virtual COM port function.
Function Switch
Descriptions 1 2 3 4
Enable ON ON ON ON Enable Nu-Link-Me virtual
COM port function
Disable OFF OFF OFF OFF Disable Nu-Link-Me virtual
COM port function
N76E003
May 09, 2016 Page 6 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
Pin Assignment for Extended Connector 2.3
NuTiny-EVB-N76E003 provides N76E003AT20 on board and the extended connector for TSSOP-20 pin. Table 2-1 is the pin assignment for N76E003AT20.
Pin No Pin Function Pin No Pin Function
01 PWM2/IC6/T0/AIN4/P0.5 11 P1.4/SDA/FB/PWM1
02 TXD/AIN3/P0.6 12 P1.3/SCL/[STADC]
03 RXD/AIN2/P0.7 13 P1.2/PWM0/IC0
04 RST/P2.0 14 P1.1/PWM1/IC1/AIN7/CLO
05 INT0/OSCIN/AIN1/P3.0 15 P1.0/PWM2/IC2/SPCLK
06 INT1/AIN0/P1.7 16 P0.0/PWM3/IC3/MOSI/T1
07 GND 17 P0.1/PWM4/IC4/MISO
08 [SDA]/TXD_1/ICPDA/OCDDA/P1.6 18 P0.2/ICPCK/OCDCK/RXD_1/[SCL]
09 VDD 19 P0.3/PWM5/IC5/AIN6
10 PWM5/IC7/SS/P1.5 20 P0.4/AIN5/STADC/PWM3/IC3
Table 2-1 Pin Assignment for N76E003AT20
N76E003
May 09, 2016 Page 7 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
NuTiny-SDK- N76E003 PCB Placement 2.4
User can refer to Figure 2-2 for the NuTiny-SDK-N76E003 PCB placements.
Figure 2-2 NuTiny-SDK-N76E003 PCB Placement
N76E003
May 09, 2016 Page 8 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
3 HOW TO START NUTINY-SDK-N76E003 ON THE KEIL C-51 μVISION® IDE
Downloading and Installing Keil C-51 μVision® IDE Software 3.1
Please connect to the Keil company website (http://www.keil.com) to download the Keil C-51 μVision
® IDE and install the RVMDK.
Downloading and Installing Nuvoton Nu-Link Driver 3.2
Please connect to Nuvoton 8bit 8051 MCUs website (http://www.nuvoton.com/8bit-8051-mcus) to download the “Nu-Link_Keil_Driver” file. Please refer to section 5.1 for the detailed download flow. After the Nu-Link driver is downloaded, please unzip the file for example execute the “Nu-Link_Keil_Driver 2.03.6674” to install the driver.
Hardware Setup 3.3
The hardware setup is shown as Figure 3-1
Figure 3-1 NuTiny-SDK-N76E003 Hardware Setup
Example Program 3.4
This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-N76E003 board. It can be found on Figure 3-2 list directory and downloaded from Nuvoton 8bit 8051 MCUs website.
The example file can be found in the directory list shown in Figure 3-2.
N76E003
May 09, 2016 Page 9 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
Directory
Figure 3-2 Example Directory
To use this example:
1. Open a project from the N76E003 sample code installation folder (default as C:\Nuvoton)
using the following path:
\N76E003_SampleCode_Keil_C51_V1.0\Sample_Code\1.GPIO
2. Execute “GPIO.uvproj”
Enter compile mode interface
3 4 5
N76E003
May 09, 2016 Page 10 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
3. Compiler
4. Define Debug Tool as “Nuvoton 8051 Keil C51 Driver
Press “Setting” buttom to confirm the connect is correct as show following window for example:
N76E003
May 09, 2016 Page 11 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
5. Define Flash programming Tool as “ Nuvoton 8051 Keil C51 Driver”
6. Download the program code to Flash
7. Enter / Exit Debug mode
Enter Debug mode interface
6
N76E003
May 09, 2016 Page 12 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
8. Execute the program
9. The I/O LED on the NuTiny-EVB-N76E003 board will be toggled on.
N76E003
May 09, 2016 Page 13 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
4 NUTINY-EVB-N76E003 SCHEMATIC
Nu-Link-Me Schematic 4.1
TICEDAT
N12
L3FERRITE BEAD
12M Oscillators
RED
ISPLED
ICELED
GREEN
VCC
X1
12MHz
Title
Size Document Number Rev
Date: Sheet of
1 3.0
Nu-Link-Me
A4
1 10Wednesday , April 13, 2016
TICECLK
ADAVSS
ICE_AVDD
RTDA1100K
VCC
JP2
NC
1 23 45 67 89 10
C4
1uF/16V
12
ICEDAT
ICE_RST
VCC
C210uF/10V
12
VCC
3.3V
12
IDLE1
RED ICECLK
RTCK1100K
VCC_connect
J1
mini USB 5pin
GND5 NC4 DP3 DM2 VCC1
SHIELD6
SHIELD7
SHIELD8
SHIELD9
VCC
VCC
RX
D
USBVBUS
RTDA333
SWD connect
TX
D
SW3
SW DIP-4/SM(EHS104LD)
JP1
NC
12345
NUC_RST#
ICE_USB
1 2
D1 SS24A
RRSET1100K
RXD
ICERSTTICERST
GND
RESET
power switch
C120p
R410K
ICE_CLKICE_DAT
ICE_RST
ICE_TX
ICE_TX
5V
VCC
ICE CONNECT IF
DEBUG
12
ICP1
YELLOW
TXD
CP110uF/10V
12
C320p
ICERST
12M_I
ICE_RX
C5
0.1u
12M_O
ICE_RX
VCC_connectVCC_connect
DM
U1
NUC12SRE3DE
PA0/ADC044PA1/ADC145PA2/ADC246PA3/ADC347PA4/ADC448INT0/PB14
1
CPO1/PB132
CPO0/PB123
VB
US
17
VD
D33
18
D-
19
D+
20
PB
0/R
X0
21
PB
1/T
X0
22
PB
2/R
TS
023
PB
3/C
TS
024
PC
2/S
DI0
026
PC
1/S
PC
LK
027
PC
0/S
S00
28
PC11/SDO1033PC10/SDI1034PC9/SPCLK135PC8/SS1036PA15/PWM337PA14/PWM238PA13/PWM139
X32I4
X32O5
I2C1SCL/PA116
I2C0SDA/PA89
I2C1SDA/PA107
I2C0SCL/PA98
RX1/PB410
TX1/PB511
RTS1/PB612
CTS1/PB713
PC
3/S
DO
00
25
AVSS43
ICE_CLK42
ICE_DAT41
PA12/PWM040
LDO14
VSS16 VDD15
AD
C/P
A5
49
AD
C6/P
A6
50
AD
C7/P
A7
51
AV
DD
52
CP
N0/P
C7
53
CP
P0/P
C6
54
CP
N1/P
C15
55
CP
P1/P
C14
56
INT
1/P
B15
57
XT
1_O
ut
58
XT
1_In
59
/RE
SE
T60
VS
S1
61
VD
D1
62
PV
SS
63
ST
AD
C/T
M0/P
B8
64
PE
529
PB
11/T
M3
30
PB
10/S
S01/T
M2
31
PB
9/S
S11/T
M1
32
ICECLK
DP
VCOM_pin
Tiny _TXICE_TXICE_RX
Tiny _RX
ICECLK
JP3
NC
1234
DPDM
USBVBUS
RTDA20
L1
FERRITE BEAD
PVSS
12M
_I
12M
_O
NU
C_R
ST
#VCC
ICE_AVDD
RP1
8P4R-330
1 23 45 67 8
1 2PD1
SS24A
GREENREDISPLEDICELED
VCC
US
B_D
+
VB
US
USBVBUS US
B_D
-
ICERST
ADAVSS
ICE_DATICE_CLK
VCC
R133 R233
USBVBUS
5V
N13
ICEDAT
VCC
ICEDAT
JPR1
1&2 (0 ohm)
123UP1AMS1117_3.3v
IN3
GN
D1
OU
T2
OU
T4
3.3VVCOM_pin
12
BUSY1
GREEN ICE_Status
CB1
0.1u
L2FERRITE BEAD
C6
1u
VCOM switch
12
ICE1
RED
R3 33
USB_D-USB_D+
N76E003
May 09, 2016 Page 14 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
NuTiny-SDK-N76E003 Schematic 4.2
VDD
Tiny _RXTiny _TX
TICEDAT
GND
TICECLKTICEDAT
VDD
VDD
Tiny _RXTiny _TX
Off-page Connector
TICERSTTICERSTTICECLK
P[1:20]P[1:20]
C810uF/10V
12
C90.1u
JP5
NC
1 23 45 67 89 1011 1213 1415 1617 1819 20
P3P2P1
P8P7P6P5P4
P10P9
P17P18P19P20
P13P14P15P16
P12P11
JP6
NC
1 23 45 67 89 1011 1213 1415 1617 1819 20
Title
Size Document Number Rev
Date: Sheet of
2 1.1
SDK Circuit
A4
2 10Wednesday , April 13, 2016
P6P5P4P3P2P1
P10P9P8P7
R810K
C1410uF/10V
12
SW1
PUSH BOTTOM (B)
12
GPIO1 REDLED1 N3 R9
1K
VDD
N112
POWER1GREENR101K
P16
P18P17
P19
P11P12P13P14P15
P20
P1
VDD
VDD
TICERST
TICEDAT
JP4
1 23 45 67 89 10
Debug Interface & Off Page
Tiny _TXTICECLK
VCC_connect
Tiny _RX
Power
VDDVDD
P2Tiny _TX
P5P4TICERSTP3Tiny _RX
P8TICEDATP7P6
P10P9
JP7
NC
12345
VDDJP8
NC
12345
JP10
NCSIP-2P
12
JP9
NCSIP-2P
12
VDD
N76E003
U3
N76E003 TSSOP20
P0.6/AIN3/TXD2
P0.7/AIN2/RXD3
P2.0/RST4
P3.0/AIN1/OSCIN/INT05
P1.7/AIN0/INT16
GND7
P1.6/OCDDA/ICPDA/TXD_1/[SDA]8
VDD9
P1.5/SS/IC7/PWM510
PWM1/FB/SDA/P1.411
AIN6/IC5/PWM5/P0.319IC3/PWM3/STADC/AIN5/P0.420
[STADC]/SCL/P1.312IC0/PWM0/P1.213CLO/AIN7/IC1/PWM1/P1.114SPCLK/IC2/PWM2/P1.015T1/MOSI/IC3/PWM3/P0.016MISO/IC4/PWM4/P0.117[SCL]/RXD_1/OCDCK/ICPCK/P0.218
P0.5/AIN4/T0/IC6/PWM21
LED
GPIO
P11
P14P13 LED1
P16P17P18 TICECLKP19P20
P15
Reset
P12
TICERST
N76E003
May 09, 2016 Page 15 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
5 DOWNLOADING NUVOTON 8BIT 8051 MCUS RELATED FILES FROM NUVOTON WEBSITE
Downloading Nuvoton Keil C-51 μVision® IDE Driver 5.1
Step1 Visit the Nuvoton 8bit 8051 MCUs website: http://www.nuvoton.com/8bit-8051-mcus
Step2
Step3
Step4 Download the Nuvoton_8051_Keil_uVision_Driver_v1.08
Click here to Download
Click here
N76E003
May 09, 2016 Page 16 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
Downloading Nuvoton 8bit 8051 MCUs N76E003 Series Sample Code 5.2
Step1
Visit the Nuvoton 8bit 8051 MCUs website: http://www.nuvoton.com/8bit-8051-mcus
Step2
Step3
Download the N76E003_SampleCode_Keil_C51_V1.0
Click here
Click here to Download
N76E003
May 09, 2016 Page 17 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
6 REVISION HISTORY
Date Revision Description
2016.07.28 1.00 1. Preliminary version.
2018.01.10 1.01 1. Added Debug tool and Flash download tool setting description
N76E003
May 09, 2016 Page 18 of 18 Rev 1.00
NU
TIN
Y-S
DK
-N76
E00
3 U
SE
R M
AN
UA
L
Important Notice
Nuvoton Products are neither intended nor warranted for usage in systems or equipment, any malfunction or failure of which may cause loss of human life, bodily injury or severe property damage. Such applications are deemed, “Insecure Usage”.
Insecure usage includes, but is not limited to: equipment for surgical implementation, atomic energy control instruments, airplane or spaceship instruments, the control or operation of dynamic, brake or safety systems designed for vehicular use, traffic signal instruments, all types of safety devices, and other applications intended to support or sustain life.
All Insecure Usage shall be made at customer’s risk, and in the event that third parties lay claims to Nuvoton as a result of customer’s Insecure Usage, customer shall indemnify the damages and liabilities thus incurred by Nuvoton.