Nuvoton NuTiny-SDK-NUC029LAN User manual

  • Hello, I've reviewed the NuTiny-SDK-NUC029LAN User Manual and I'm ready to assist you. This document describes a development tool that includes both an evaluation board and debug adaptor, allowing to program and verify applications. Feel free to ask any questions you have about its features or how to use it.
  • What does the NuTiny-SDK-NUC029LAN include?
    What is the Nu-Link-Me?
    What is the purpose of the NuTiny-EVB-NUC029LAN?
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 Rev. 1.01
NuTiny-SDK-NUC029LAN User Manual
for NuMicro™ NUC029xAN Series
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.
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 2 of 21 Rev. 1.01
Table of Contents
1 Overview ........................................................................................... 3
2 Introduction to NuTiny-SDK-NUC029LAN ............................................... 3
2.1 NuTiny-SDK-NUC029LAN Jumper Description ................................................ 4
2.2 Pin Assignment for Extended Connectors ...................................................... 5
2.3 NuTiny-SDK-NUC029LAN PCB Placement ...................................................... 6
3 Starting to Use NuTiny-SDK-NUC029LAN on the Keil μVision® IDE ............ 7
3.1 Downloading and Installing Keil μVision® IDE Software ................................... 7
3.2 Downloading and Installing Nuvoton Nu-Link Driver ....................................... 7
3.3 Hardware Setup ......................................................................................... 7
3.4 Example Program ....................................................................................... 8
4 Starting to Use NuTiny-SDK-NUC029LAN on the IAR Embedded Workbench9
4.1 Downloading and Installing IAR Embedded Workbench Software ...................... 9
4.2 Downloading and Installing Nuvoton Nu-Link Driver ....................................... 9
4.3 Hardware Setup ......................................................................................... 9
4.4 Example Program ..................................................................................... 10
5 NuTiny-SDK-NUC029LAN Schematics .................................................. 11
5.1 NuTiny-EVB-NUC029LAN Schematic ........................................................... 11
5.2 Nu-Link-Me Schematic .............................................................................. 12
6 Downloading NuMicro™ Related Files from Nuvoton Website .................. 13
6.1 Downloading NuMicro™ Keil μVision® IDE Driver .......................................... 13
6.2 Downloading NuMicro™ IAR EWARM Driver ................................................. 16
6.3 Downloading NuMicro™ NUC029xAN Series BSP Software Library .................. 19
7 Revision History ............................................................................... 21
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 3 of 21 Rev. 1.01
1 Overview
The NuTiny-SDK-NUC029LAN is a specific development tool for NuMicro™
NUC029xAN series-NUC029LAN/NUC029TAN by which users can develop and verify
the application program easily. The NuTiny-SDK-NUC029LAN includes two portions:
NuTiny-EVB-NUC029LAN (an evaluation board) and Nu-Link-Me (Debug Adaptor).
With the NuTiny-SDK-NUC029LAN, users do not need additional ICE or debug
equipment.
2 Introduction to NuTiny-SDK-NUC029LAN
The following figure shows the NuTiny-SDK-NUC029LAN for NUC029xAN series, in
which the left portion is called NuTiny-EVB-NUC029LAN and the right portion is Debug
Adaptor called Nu-Link-Me.
The NuTiny-EVB-NUC029LAN is similar to other development board. Users can use it
to develop and verify applications to emulate the real behavior. In fact, the real chip
NUC029LAN is mounted on the board. The NuTiny-EVB-NUC029LAN can be a real
system controller to design user target system.
The Nu-Link-Me is a Debug Adaptor which connects the USB port of your PC to your
target system (via Serial Wired Debug Port) and allows you to program and debug
embedded programs on the target hardware. To use the Nu-Link-Me Debug adaptor
with Keil or IAR, please refer to “Nuvoton NuMicro™ IAR ICE Driver User Manual” or
Nuvoton NuMicro™ Keil ICE Driver User Manual” for details.
Target Chip ICE Controller
VCC3.3V or 5V
(JP8)
ICE Controller
USB Connector
(ICEJ2)
VSS
(JP3)
VDD
(JP2)
Reset Key
(SW1)
LQFP-48 pin
Extended Connector
(JP1, JP5)
LQFP-48 pin
Extended Connector
(JP6, JP7)
I/O LED
Power LED
Figure 2-1 NuTiny-SDK-NUC029LAN (Green PCB Board)
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 4 of 21 Rev. 1.01
2.1 NuTiny-SDK-NUC029LAN Jumper Description
2.1.1 Power Settings
JP2: VDD Voltage connecter in NuTiny-EVB-NUC029LAN
ICEJ2: USB port in Nu-Link-Me
Model
JP8
ICEJ2 USB
port
JP2 VDD
MCU Voltage
Model 1
Select VCC33
(default)
Connect to PC
DC 3.3V output
DC 3.3V
Model 2
X
X
DC 2.5 V ~ 5.5 V
Input
Voltage by JP2
input
X: Unused.
2.1.2 Debug Connectors
JP4: Connector in target board (NuTiny-EVB-NUC029LAN) for connecting with
Nuvoton ICE adaptor (Nu-Link-Me)
ICEJP8: Connector in ICE adaptor (Nu-Link-Me) for connecting with a target board
(e.g. NuTiny-EVB-NUC029LAN)
2.1.3 USB Connectors
ICEJ2: Mini USB Connector in Nu-Link-Me connected to a PC USB port
2.1.4 Extended Connectors
JP1, JP5, JP6 and JP7: Show all chip pins in NuTiny-EVB-NUC029LAN
2.1.5 Buttons
SW1: Reset button in NuTiny-EVB-NUC029LAN
2.1.6 Power Connectors
JP2: VDD connector in NuTiny-EVB-NUC029LAN
JP3: VSS connector in NuTiny-EVB-NUC029LAN
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 5 of 21 Rev. 1.01
2.2 Pin Assignment for Extended Connectors
The NuTiny-EVB-NUC029LAN provides the NUC029LAN target chip on board and
the extended connectors (JP1, JP5, JP6 and JP7) for LQFP48-pin. The following
table is the pin assignment for NUC029LAN.
Pin No
Pin No
Pin Name
01
25
P2.5,AD13,PWM5,SDA1
02
26
P2.6,AD14,PWM6,ACMP1_O
03
27
P2.7,AD15,PWM7
04
28
P4.4,nCS,SCL1
05
29
P4.5,ALE,SDA1
06
30
P4.6,ICE_CLK
07
31
P4.7,ICE_DATA
08
32
P0.7,AD7,SCLK1
09
33
P0.6,AD6,MISO_1
10
34
P0.5,AD5,MOSI_1
11
35
P0.4,AD4,SPISS1
12
36
P4.1,PWM1,T3EX
13
37
P0.3,AD3,RTS0,RXD
14
38
P0.2,AD2,CTS0,TXD
15
39
P0.1,AD1,RTS1,RXD1,
ACMP3_N
16
40
P0.0,AD0,CTS1,TXD1,
ACMP3_P
17
41
VDD
18
42
AVDD
19
43
P1.0,AIN0,T2,nWRL
20
44
P1.1,AIN1,T3,nWRH
21
45
P1.2,AIN2,RXD1
22
46
P1.3,AIN3,TXD1
23
47
P1.4,AIN4,SPISS0,ACMP0_N
24
48
P4.2,PWM2
Table 2-1 Pin Assignment for NUC029LAN
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 6 of 21 Rev. 1.01
2.3 NuTiny-SDK-NUC029LAN PCB Placement
The following figure shows the NuTiny-SDK-NUC029LAN PCB placement.
Figure 2-2 NuTiny-SDK-NUC029LAN PCB Placement
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 7 of 21 Rev. 1.01
3 Starting to Use NuTiny-SDK-NUC029LAN on the Keil μVision® IDE
3.1 Downloading and Installing Keil μVision® IDE Software
Please connect to the Keil company website (http://www.keil.com) to download the
Keil μVision® IDE and install the RVMDK.
3.2 Downloading and Installing Nuvoton Nu-Link Driver
Please connect to Nuvoton NuMicro™ website (http://www.nuvoton.com/NuMicro) to
download the NuMicro™ Keil μVision® IDE driver” file. Please refer to section 6.1 for
the detailed download flow. After the Nu-Link driver is downloaded, please unzip the
file and execute the “Nu-Link_Keil_Driver.exe” to install the driver.
3.3 Hardware Setup
The hardware setup is shown in the following figure.
Figure 3-1 NuTiny-SDK-NUC029LAN Hardware Setup
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 8 of 21 Rev. 1.01
3.4 Example Program
This example demonstrates how to download and debug an application on a NuTiny-
SDK-NUC029LAN board.
The example file can be found in the directory list shown in the following figure.
Directory
Figure 3-2 Example Directory
To use this example:
The I/O LED on the NuTiny-EVB-NUC029LAN board will turn on.
Start μVision®
Project Open
Open the SYS.uvproj project file
Project Build
Compile and link the SYS application
Flash Download
Program the application code into on-chip
Flash ROM
Start Debug mode
When using the debugger commands, you
may:
Review variables in the watch
window
Single step through code
Reset the device
Run the application
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 9 of 21 Rev. 1.01
4 Starting to Use NuTiny-SDK-NUC029LAN on the IAR Embedded
Workbench
4.1 Downloading and Installing IAR Embedded Workbench Software
Please connect to IAR company website (http://www.iar.com) to download the IAR
Embedded Workbench and install the EWARM.
4.2 Downloading and Installing Nuvoton Nu-Link Driver
Please connect to Nuvoton Company NuMicro website
(http://www.nuvoton.com/NuMicro) to download “NuMicro™ IAR EWARM Driver” file.
Please refer to section 6.2 for the detail download flow. After the Nu-Link driver is
downloaded, please unzip the file and execute the “Nu-Link_IAR_Driver.exe” to install
the driver.
4.3 Hardware Setup
The hardware setup is shown in the following figure.
Figure 4-1 NuTiny-SDK-NUC029LAN Hardware Setup
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 10 of 21 Rev. 1.01
4.4 Example Program
This example demonstrates how to download and debug an application on a NuTiny-
SDK-NUC029LAN board.
The example file can be found in the directory list shown in the following figure.
Directory
Figure 4-2 Example Directory
To use this example:
The I/O LED on the NuTiny-EVB-NUC029LAN board will turn on.
Start IAR Embedded Workbench
File-Open-Workspace
Open the SYS.eww workspace file
Project - Make
Compile and link the SYS application
Project Download and Debug
Program the application code into on-chip
Flash ROM
Single step through code
Reset the device
Run the application
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 11 of 21 Rev. 1.01
5 NuTiny-SDK-NUC029LAN Schematics
5.1 NuTiny-EVB-NUC029LAN Schematic
CB1
0.1u
0603C
VCC5
DAVDD
R11
330
0603R
12
IO
KPT-2012(RED)
KP-2012 NET2
VCC5
PIN13
U1
NUC029LAN
NUC029LAN
AIN1/T3/P1.1 44
AIN2/RXD1/P1.2 45
AIN3/TXD1/P1.3 46
AIN4/SS0/P1.4 47
P4.2 48
MOSI_0/AIN5/P1.5
1
MISO_0/AIN6/P1.6
2
SCLK0/AIN7/P1.7
3
VSS
17
LDO_CAP
18
P2.0/AD8/PWM0
19
P2.1/AD9/PWM1
20
P2.2/AD10/PWM2
21
P2.3/AD11/PWM3
22
P2.4/AD12/PWM4
23
P4.0
24
P2.6/AD14/PWM6 26
P4.6/ICE_CLK 30
P4.7/ICE_DAT 31
P0.7/AD7/SCLK1 32
P0.6/AD6/MISO_1 33
P0.5/AD5/MOSI_1 34
P0.4/AD4/SS1 35
P4.1 36
P0.3/AD3/RTS0 37
P0.2/AD2/CTS0 38
P0.1/AD1/RTS1 39
RST
4
RXD/P3.0
5
AVSS
6
MCLK/INT1/P3.3
9TXD/P3.1
7
INT0/P3.2
8
SDA/T0/P3.4
10
SCL/T1/P3.5
11
PWM3/P4.3
12
P3.6/WR/CKO
13
P4.5/ALE 29
P4.4/CS 28
AIN0/T2/P1.0 43
AVDD 42
VDD 41
P0.0/AD0/CTS1 40
P3.7/RD
14
XTAL1
16 XTAL2
15
P2.5/AD13/PWM5 25
P2.7/AD15/PWM7 27
PIN48
C2
1uF
TANT-A
TICEVCC TICEVCC
12
POWER
KPT-2012(GREEN)
LED0805
PR
330
0603R
VCC5
NET3
NET1
PIN36
DAVDD
PIN35
PIN34
PIN1
PIN33
PIN2
PIN32
PIN3
PIN31 TICEDAT
PIN4TICERST
PIN30 TICECLK
PIN5
PIN29
PIN6
PIN28
PIN7
ADAVSS
From ICE Bridge's USB Power
PIN8
PIN27
ICE INTERFACE
TICEDAT
TICERST
VCC5
TICEVCC
JP4
HEADER 5X2
HEADER5x2
1 2
3 4
5 6
7 8
910
TICECLK
PIN9
VCC5
C1
10uF/10V
TANT-A
R1
10K
0603R
Reset Circuit
TICERST
SW1
PUSH BOTTOM
SW
PIN26
PIN10
C5
20p
0603C
X2
12MHz
XTAL\LP\SMD
D12MO
C3
20p
0603C
R2
33
0603R
PIN11 PIN25
JP2
HEADER 2
HEADER2
1
2
TP1
SIP/1P
1
JP3
HEADER 2
HEADER2
1
2
PIN12
PIN41
PIN18
Title
Size Document Number Rev
Date: Sheet of
V3.0
Nuvoton NUC029LAN Version V1.0
1 1Friday , June 13, 2014
D12MI
TP2
SIP/1P
1
TICERST
VCC5
ADAVSS
D12MO
D12MI
VCC5
L1
L0603
DAVDD
TP3
SIP/1P
1
JP5
HEADER 6X2
HEADER6X2
1 2
3 4
5 6
7 8
910
11 12
PIN2PIN1 PIN4PIN3
PIN8
PIN6PIN5
PIN11 PIN10PIN9
PIN7
PIN12
PIN14
JP6
HEADER 6X2
HEADER6X2
12 34 56 78 910 1112
PIN26 PIN25
PIN29
PIN28 PIN27
PIN31
PIN30
ADAVSS
PIN33
PIN32
PIN35
PIN34
PIN36
JP1
HEADER 6X2
HEADER6X2
12 34 56 78 910 1112
PIN39
PIN38 PIN37
PIN41
PIN40
PIN45
PIN44 PIN43
PIN42
PIN46 PIN47
PIN15
CB2
0.1u
0603C
L2
L0603
PIN16
Crystal
PIN46
PIN40
PIN48
PIN44
PIN47
PIN39
PIN38
PIN37
PIN45
PIN43
PIN42
PIN13
TICECLK
TICEDAT
TICERST TICERST
TICEDAT
TICECLK
JP7
HEADER 6X2
HEADER6X2
1 2
3 4
5 6
7 8
910
11 12
PIN17
PIN20
PIN19
PIN18
PIN16PIN15 PIN14PIN13
PIN21 PIN20PIN19 PIN18PIN17
PIN24PIN23 PIN22
PIN21
PIN24
PIN23
PIN22
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 12 of 21 Rev. 1.01
5.2 Nu-Link-Me Schematic
VCC33
12
IDLE
KPT-2012(RED)
LED0805
iNET6
RED
ISPLED 12
ICP
KPT-2012(YELLOW)
LED0805
iNET5
12
ICE
KPT-2012(RED)
LED0805 iNET3ICELED
iceRP1
8P4R-330
8P4RA
12 34 56 78
12
BUSY
KPT-2012(GREEN)
LED0805
VCC
GREEN
iceL5
L0603
iNET4
iceC7
20p
0603C
iceR12
33
0603R iceX3
12MHz
XTAL\LP\SMD
iceL4
L0603
iceC6
20p
0603C
ADAVSS
AVDD
DEBUG
VCC
iceR17
10K
0603R
1 2
iceD3
SS24A
RB060L
1 2
iceD4
SS24A
RB060L
iceC9
10uF/10V
TANT-A
VCC5
USBVBUS
VCC
VCC
TICECLK
TICEDAT
TICERST
ICE_RST
VCC
PA4
PA3
PA2
PA1
PA0
iceJP8
HEADER 5X2
HEADER5X2
1 2
3 4
5 6
7 8
910
TICERST
TICEDAT
TICECLK
VCC
iNET8
J1
4 HEADER
1
2
3
4
Reset Circuit
USBVBUS
iNET12
iNET13
iceJP9
HEADER 5
HEADER5
1
2
3
4
5
TICEVCC TICEVCC PA0
ICE_CLK
ICE_DAT
ICE_RST
PA1
iNET7
PA2
PA3
PA4
12M_I
MCU and USB
12M_O
CRYSTAL iceU2
NUC12SRE3AN
PA0/ADC0 44
PA1/ADC1 45
PA2/ADC2 46
PA3/ADC3 47
PA4/ADC4 48
INT0/PB14
1
CPO1/PB13
2
CPO0/PB12
3
VBUS
17
VDD33
18
D-
19
D+
20
PB0/RX0
21
PB1/TX0
22
PB2/RTS0
23
PB3/CTS0
24
PC2/SDI00
26
PC1/SPCLK0
27
PC0/SS00
28
PC11/SDO10 33
PC10/SDI10 34
PC9/SPCLK1 35
PC8/SS10 36
PA15/PWM3 37
PA14/PWM2 38
PA13/PWM1 39
X32I
4
X32O
5
I2C1SCL/PA11
6
I2C0SDA/PA8
9I2C1SDA/PA10
7
I2C0SCL/PA9
8
RX1/PB4
10
TX1/PB5
11
RTS1/PB6
12
CTS1/PB7
13
PC3/SDO00
25
AVSS 43
ICE_CK 42
ICE_DAT 41
PA12/PWM0 40
LDO
14
VSS
16 VDD
15
ADC/PA5 49
ADC6/PA6 50
ADC7/PA7 51
AVDD 52
CPN0/PC7 53
CPP0/PC6 54
CPN1/PC15 55
CPP1/PC14 56
INT1/PB15 57
XT1_Out 58
XT1_In 59
/RESET 60
VSS1 61
VDD1 62
PVSS 63
STADC/TM0/PB8 64
PE5
29
PB11/TM3
30
PB10/SS01/TM2
31
PB9/SS11/TM1
32
iceL6
L0603
iceR16
33
0603R
iceR14
33
0603R
iceJ2
mini USB 5pin
USB_MINI_B
GND
5NC
4DP
3DM
2VCC
1SHIELD 6
SHIELD 7
SHIELD 8
SHIELD 9
ICE CONNECT IF
USBVBUS
USB_D+
iNET11
iNET12
iNET13USB_D-
VCC
RTIDA1
100K
0603R
RICK1
100K
0603R
VCC
CT3
10uF/10V
TANT-A
ICE_RST
U3
RT9164A-3.3v
IN
3
GND
1
OUT
2
OUT
4
VCC33
1 2
iceD2
SS24A
RB060L
PVSS
12M_I
VCC
AVDD
12M_O
iNET15 GREEN
ISPLED
RED
iceCT1
1uF/6.3V
TANT-A
iceCB3
0.1u
0603C
VCC
ICELED
USBVBUS
VBUS
USB_D-
iNET14
USB_D+
iceCB4
0.1u
0603C
iceC8
1u
0603C
RTDA2
0
0603R
TICERST
RTDA3
1K
0603R
RTCK1
100K
0603R
TICECLK
TICERST
RTDA1
100K
0603R
RRSET1
100K
0603R
ADAVSS
iNET9
VCC
ICE_DAT
iNET10
ICE_CLK
iNET2
TICEDAT
JP8
3-W JUMP
1 3
2
POWER
Title
Size Document Number Rev
Date: Sheet of
M0516_TINY_V2.0.DSN V2.0
Nuvoton NUC029LAN Versin V1.0
1 1Friday , June 13, 2014
iNET1
VCC5
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 13 of 21 Rev. 1.01
6 Downloading NuMicro Related Files from Nuvoton Website
6.1 Downloading NuMicro™ Keil μVision® IDE Driver
Step1
Visit the Nuvoton NuMicro website: http://www.nuvoton.com/NuMicro.
Step2
2-1. Move to Support
2-2. Click here to enter
Tool & Software
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 14 of 21 Rev. 1.01
Step3
Click here to enter
Software
download page
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 15 of 21 Rev. 1.01
Step4
Step5
Download the NuMicro Keil μVision® IDE driver.
Click here to
download
the file.
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 16 of 21 Rev. 1.01
6.2 Downloading NuMicro™ IAR EWARM Driver
Step1
Visit the Nuvoton NuMicro website: http://www.nuvoton.com/NuMicro.
Step2
2-1. Move to Support
2-2. Click here to enter
Tool & Software
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 17 of 21 Rev. 1.01
Step3
Click here to enter
Software
download page
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 18 of 21 Rev. 1.01
Step4
Step5
Download the NuMicro IAR EWARM driver.
Click here to
download
the file.
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 19 of 21 Rev. 1.01
6.3 Downloading NuMicro™ NUC029xAN Series BSP Software Library
Step1
Visit the Nuvoton NuMicro website: http://www.nuvoton.com/NuMicro.
Step2
2-1. Move to Support
2-2. Click here to enter
Tool & Software
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 20 of 21 Rev. 1.01
Step3
Step4
Download the NuMicro NUC029xAN Series CMSIS BSP.
Click here to enter
Software
download page
/