Sie sind auf Seite 1von 18

N76E003

1T 8051
8-bit Microcontroller

Nuvoton 1T 8051-based Microcontroller


NuTiny-SDK-N76E003
User Manual

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

May 09, 2016 Page 1 of 18 Rev 1.00


N76E003

Table of Contents
1 OVERVIEW ......................................................................................... 3
2 NUTINY-SDK-N76E003 INTRODUCTION ..................................................... 4
2.1 Virtual COM Port Switch Description ............................................................... 4
2.2 NuTiny-SDK-N76E003 Power Setting and Connector ........................................... 4
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
2.3 Pin Assignment for Extended Connector .......................................................... 6
2.4 NuTiny-SDK- N76E003 PCB Placement ........................................................... 7
3 How to Start NuTiny-SDK-N76E003 on the Keil C-51 μVision® IDE ....................... 8
3.1 Downloading and Installing Keil C-51 μVision® IDE Software .................................. 8
3.2 Downloading and Installing Nuvoton Nu-Link Driver ............................................. 8
3.3 Hardware Setup ........................................................................................ 8
3.4 Example Program...................................................................................... 8
NUTINY-SDK-N76E003 USER MANUAL

4 NuTiny-EVB-N76E003 Schematic ............................................................. 13


4.1 Nu-Link-Me Schematic ...............................................................................13
4.2 NuTiny-SDK-N76E003 Schematic .................................................................14
5 Downloading NuVOTON 8bit 8051 MCUs Related Files from Nuvoton Website ...... 15
5.1 Downloading Nuvoton Keil C-51 μVision® IDE Driver ...........................................15
5.2 Downloading Nuvoton 8bit 8051 MCUs N76E003 Series Sample Code ....................16
6 REVISION HISTORY ............................................................................ 17

May 09, 2016 Page 2 of 18 Rev 1.00


N76E003

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
2
automatic address recognition, one SPI interface, one I C 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-

NUTINY-SDK-N76E003 USER MANUAL


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.

May 09, 2016 Page 3 of 18 Rev 1.00


N76E003

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.
NUTINY-SDK-N76E003 USER MANUAL

Figure 2-1 NuTiny-SDK-N76E003 (PCB Board)

2.1 Virtual COM Port Switch Description


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”.

2.2 NuTiny-SDK-N76E003 Power Setting and Connector


2.2.1 Power Setting

 J1: USB port in Nu-Link-Me


 JP7 and JP9: VCC33 Voltage connector in NuTiny-EVB-N76E003

May 09, 2016 Page 4 of 18 Rev 1.00


N76E003

Model JPR1 J1USB port JP7 & JP9 VCC33 MCU Voltage

Select VCC33
Model 1 Connect to PC DC 3.3V output DC 3.3V
(default)

DC 2.4 V ~ 5.5 V Voltage by JP7 &


Model 2 X X
Input 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

NUTINY-SDK-N76E003 USER MANUAL


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.

Switch
Function Descriptions
1 2 3 4

Enable Nu-Link-Me virtual


Enable ON ON ON ON COM port function

Disable Nu-Link-Me virtual


Disable OFF OFF OFF OFF COM port function

May 09, 2016 Page 5 of 18 Rev 1.00


N76E003

2.3 Pin Assignment for Extended Connector


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


NUTINY-SDK-N76E003 USER MANUAL

May 09, 2016 Page 6 of 18 Rev 1.00


N76E003

2.4 NuTiny-SDK- N76E003 PCB Placement


User can refer to Figure 2-2 for the NuTiny-SDK-N76E003 PCB placements.

Figure 2-2 NuTiny-SDK-N76E003 PCB Placement

NUTINY-SDK-N76E003 USER MANUAL

May 09, 2016 Page 7 of 18 Rev 1.00


N76E003

3 HOW TO START NUTINY-SDK-N76E003 ON THE KEIL C-51 μVISION® IDE

3.1 Downloading and Installing Keil C-51 μVision® IDE Software


Please connect to the Keil company website (http://www.keil.com) to download the Keil C-51
®
μVision IDE and install the RVMDK.

3.2 Downloading and Installing Nuvoton Nu-Link Driver


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.

3.3 Hardware Setup


The hardware setup is shown as Figure 3-1
NUTINY-SDK-N76E003 USER MANUAL

Figure 3-1 NuTiny-SDK-N76E003 Hardware Setup

3.4 Example Program


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.

May 09, 2016 Page 8 of 18 Rev 1.00


N76E003

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”

NUTINY-SDK-N76E003 USER MANUAL


5
3 4

Enter compile mode interface

May 09, 2016 Page 9 of 18 Rev 1.00


N76E003

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:
NUTINY-SDK-N76E003 USER MANUAL

May 09, 2016 Page 10 of 18 Rev 1.00


N76E003

5. Define Flash programming Tool as “ Nuvoton 8051 Keil C51 Driver”

6. Download the program code to Flash

7. Enter / Exit Debug mode

NUTINY-SDK-N76E003 USER MANUAL


6

Enter Debug mode interface

May 09, 2016 Page 11 of 18 Rev 1.00


N76E003

8. Execute the program


9. The I/O LED on the NuTiny-EVB-N76E003 board will be toggled on.
NUTINY-SDK-N76E003 USER MANUAL

May 09, 2016 Page 12 of 18 Rev 1.00


N76E003

4 NUTINY-EVB-N76E003 SCHEMATIC

4.1 Nu-Link-Me Schematic


VCC USBVBUS ICE CONNECT IF
J1
ICE1 RP1 1 6 VCC
ICELED 2 1 1 2 USB_D- R1 DM 2 VCC SHIELD 7
3 4 USB_D+ DP 3 DM SHIELD 8 VCC
RED 33 R2
5 6 4 DP SHIELD 9 GND
ICP1 33
ISPLED 2 1 7 8 5 NC SHIELD
Y ELLOW GND
IDLE1 8P4R-330 mini USB 5pin L1 VCC_connect
VCC_connect
RED 2 1 ICEDAT
TICEDAT
RED
ICE_USB FERRITE BEAD ICECLK
TICECLK

NUC_RST#
BUSY 1 VCC ICERST
TICERST
GREEN 2 1
ICE_Status ICE_TX
Tiny _TX

12M_O
GREEN PVSS ICE_AVDD ICE_RX

12M_I
Tiny _RX

VCC U1

64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
12M_O R3 33 C1
20p

PVSS
VDD1
VSS1

XT1_In

INT1/PB15
CPP1/PC14
CPN1/PC15
CPP0/PC6

ADC7/PA7
ADC6/PA6
ADC/PA5
CPN0/PC7
STADC/TM0/PB8

/RESET

AVDD
XT1_Out
R4 X1
10K
12MHz

NUC_RST# ICE_RST 1 12M_I C3


2 INT0/PB14 48 20p
1

CPO1/PB13 PA4/ADC4
C2
3
4
5
CPO0/PB12
X32I
PA3/ADC3
PA2/ADC2
47
46
45
VCC 12M Oscillators
10uF/10V
2

6 X32O PA1/ADC1 44
I2C1SCL/PA11 PA0/ADC0
RESET 7
8
9
I2C1SDA/PA10
I2C0SCL/PA9
AVSS
ICE_CLK
43
42
41
ICE_CLK
NUC12SRE3DE ICE_DAT
ICELED 10 I2C0SDA/PA8 ICE_DAT 40 RRSET1 RTCK1 RTDA1
ISPLED 11 RX1/PB4 PA12/PWM0 39 100K 100K 100K
RED 12 TX1/PB5 PA13/PWM1 38 SW3
RTS1/PB6 PA14/PWM2 ADAVSS
GREEN 13 37
14 CTS1/PB7 PA15/PWM3 36 ICERST ICE_TX RXD
15 LDO PC8/SS10 35 ICECLK ICE_RX TXD
VCC
1

C4 C5 16 VDD PC9/SPCLK1 34 RTDA20 ICEDAT VCOM_pin


VSS PC10/SDI10 33 RTDA333
1uF/16V 0.1u PC11/SDO10
PB10/SS01/TM2
2

PB9/SS11/TM1
PC1/SPCLK0

SW DIP-4/SM(EHS104LD)
PC3/SDO00
PC2/SDI00
PB2/RTS0
PB3/CTS0

PB11/TM3
PC0/SS00
PB0/RX0
PB1/TX0

VCOM switch
VDD33
VBUS

PE5
D+
D-

VCC
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

5V VCC 3.3V
5V 3.3V N12
USB_D+
VBUS

JP1
USB_D-

VCOM_pin
1
RXD
TXD

ICE_DAT
USBVBUS

1
2 ICE_CLK
3 ICE_RST UP1 CP1

3
2
1
4 AMS1117_3.3v 10uF/10V

2
5 C6 CB1
NC

GND
OUT

OUT
JPR1
1u 0.1u

IN
USBVBUS PD1 1&2 (0 ohm)
DEBUG 1 2 N13

3
1
2

4
VCC D1 SS24A JP2
SS24A
power switch
1 2 VCC_connect
ICE_AVDD VCC ICEDAT 1 2
ICECLK 3 4
L2FERRITE BEAD USBVBUS 5 6
JP3 ICERST ICE_TX
7 8 ICE_RX Title
L3FERRITE BEAD DM 1 9 10
DP 2 Nu-Link-Me
NC
3

SWD connect

NUTINY-SDK-N76E003 USER MANUAL


Size Document Number Rev
4 A4 1 3.0
ADAVSS NC
Date: Wednesday , April 13, 2016 Sheet 1 of 10

May 09, 2016 Page 13 of 18 Rev 1.00


N76E003

4.2 NuTiny-SDK-N76E003 Schematic


VDD
VDD VDD JP8
JP7 VDD Off-page Connector
R8 1
10K 1 2 JP9 JP10 P[1:20]
P[1:20]

1
SW1 C8 C9 2 3
TICERST 10uF/10V 0.1u 3 4 1 1
4 5 2 2 TICEDAT

2
TICEDAT
1

PUSH BOTTOM (B) 5 NC NC TICECLK


TICERST TICECLK
C14 SIP-2P SIP-2P
Tiny _TX TICERST
10uF/10V NC
2

Tiny _TX
Reset NC
Power Tiny _RX
Tiny _RX

U3
P1 1 20 P20 GND
Tiny _TX P2 2 P0.5/AIN4/T0/IC6/PWM2 IC3/PWM3/STADC/AIN5/P0.4 19 P19
VDD Tiny _RX P3 3 P0.6/AIN3/TXD AIN6/IC5/PWM5/P0.3 18 P18 TICECLK VDD
GPIO1 RED TICERST P4 4 P0.7/AIN2/RXD [SCL]/RXD_1/OCDCK/ICPCK/P0.2 17 P17
LED1 2 5 P2.0/RST MISO/IC4/PWM4/P0.1 16 VDD
1 N3 R9 P5 P16
1K P6 6 P3.0/AIN1/OSCIN/INT0 T1/MOSI/IC3/PWM3/P0.0 15 P15
P7 7 P1.7/AIN0/INT1 SPCLK/IC2/PWM2/P1.0 14 P14
VDD TICEDAT P8 8 GND CLO/AIN7/IC1/PWM1/P1.1 13 P13 LED1
P9 9 P1.6/OCDDA/ICPDA/TXD_1/[SDA] IC0/PWM0/P1.2 12 P12
P10 10 VDD [STADC]/SCL/P1.3 11 P11
P1.5/SS/IC7/PWM5 PWM1/FB/SDA/P1.4
VDD
POWER1GREEN N76E003 TSSOP20
2 1 N1 R10
1K
N76E003
LED

JP4 VDD
JP5 NC
1 2 TICEDAT VCC_connect P1 P1 P20 P20
3 4 TICECLK P2 1 2 P2 P19 19 20 P19
Tiny _TX 5 6 TICERST P3 3 4 P3 P18 17 18 P18
Tiny _RX 7 8 P4 5 6 P4 P17 15 16 P17
9 10 P5 7 8 P5 P16 13 14 P16
P6 9 10 P6 P15 11 12 P15
11 12 9 10
Debug Interface & Off Page P7
P8 13
15
14
16
P7
P8
P14
P13 7
5
8
6
P14
P13
P9 P9 P12 P12
P10 17 18 P10 P11 3 4 P11
19 20 1 2

GPIO
NC JP6

Title
SDK Circuit
Size Document Number Rev
A4 2 1.1
Date: Wednesday , April 13, 2016 Sheet 2 of 10
NUTINY-SDK-N76E003 USER MANUAL

May 09, 2016 Page 14 of 18 Rev 1.00


N76E003

5 DOWNLOADING NUVOTON 8BIT 8051 MCUS RELATED FILES FROM


NUVOTON WEBSITE

5.1 Downloading Nuvoton Keil C-51 μVision® IDE Driver


Step1 Visit the Nuvoton 8bit 8051 MCUs website: http://www.nuvoton.com/8bit-8051-mcus

Click here

Step2

NUTINY-SDK-N76E003 USER MANUAL


Step3

Click here to
Download

Step4 Download the Nuvoton_8051_Keil_uVision_Driver_v1.08

May 09, 2016 Page 15 of 18 Rev 1.00


N76E003

5.2 Downloading Nuvoton 8bit 8051 MCUs N76E003 Series Sample Code
Visit the Nuvoton 8bit 8051 MCUs website: http://www.nuvoton.com/8bit-8051-mcus

Click here

Step1

Step2

Download the N76E003_SampleCode_Keil_C51_V1.0

Step3
NUTINY-SDK-N76E003 USER MANUAL

Click here to
Download

May 09, 2016 Page 16 of 18 Rev 1.00


N76E003

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

NUTINY-SDK-N76E003 USER MANUAL

May 09, 2016 Page 17 of 18 Rev 1.00


N76E003
NUTINY-SDK-N76E003 USER MANUAL

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.

May 09, 2016 Page 18 of 18 Rev 1.00

Das könnte Ihnen auch gefallen