Upload
others
View
22
Download
0
Embed Size (px)
Citation preview
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
VCC:3.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 Name Pin No Pin Name
01 P1.5,MOSI_0,AIN5, ACMP0_P
25 P2.5,AD13,PWM5,SDA1
02 P1.6,MISO_0,AIN6, ACMP2_N
26 P2.6,AD14,PWM6,ACMP1_O
03 P1.7,SCLK0,AIN7, ACMP2_P
27 P2.7,AD15,PWM7
04 /RST 28 P4.4,nCS,SCL1
05 P3.0,RXD,ACMP1_N 29 P4.5,ALE,SDA1
06 AVSS 30 P4.6,ICE_CLK
07 P3.1,TXD,ACMP1_P 31 P4.7,ICE_DATA
08 P3.2,nINT0,STADC,T0EX 32 P0.7,AD7,SCLK1
09 P3.3,nINT1,MCLK,T1EX 33 P0.6,AD6,MISO_1
10 P3.4, T0,SDA0 34 P0.5,AD5,MOSI_1
11 P3.5,T1,SCL0,CKO 35 P0.4,AD4,SPISS1
12 P4.3,PWM3 36 P4.1,PWM1,T3EX
13 P3.6,nWR,CKO, ACMP0_O
37 P0.3,AD3,RTS0,RXD
14 P3.7,nRD 38 P0.2,AD2,CTS0,TXD
15 XTAL2 39 P0.1,AD1,RTS1,RXD1, ACMP3_N
16 XTAL1 40 P0.0,AD0,CTS1,TXD1, ACMP3_P
17 VSS 41 VDD
18 LDO_CAP 42 AVDD
19 P2.0,AD8,PWM0 43 P1.0,AIN0,T2,nWRL
20 P2.1,AD9,PWM1 44 P1.1,AIN1,T3,nWRH
21 P2.2,AD10,PWM2 45 P1.2,AIN2,RXD1
22 P2.3,AD11,PWM3 46 P1.3,AIN3,TXD1
23 P2.4,AD12,PWM4,SCL1 47 P1.4,AIN4,SPISS0,ACMP0_N
24 P4.0,PWM0,T2EX 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
VCC5DAVDD
R11
3300603R
12
IO
KPT-2012(RED)KP-2012 NET2
VCC5
PIN13
U1
NUC029LAN
NUC029LAN
AIN
1/T
3/P
1.1
44
AIN
2/R
XD
1/P
1.2
45
AIN
3/T
XD
1/P
1.3
46
AIN
4/S
S0
/P1
.447
P4
.248
MOSI_0/AIN5/P1.51
MISO_0/AIN6/P1.62
SCLK0/AIN7/P1.73
VS
S17
LD
O_
CA
P18
P2
.0/A
D8
/PW
M0
19
P2
.1/A
D9
/PW
M1
20
P2
.2/A
D1
0/P
WM
221
P2
.3/A
D1
1/P
WM
322
P2
.4/A
D1
2/P
WM
423
P4
.024
P2.6/AD14/PWM626
P4.6/ICE_CLK30P4.7/ICE_DAT31P0.7/AD7/SCLK132P0.6/AD6/MISO_133P0.5/AD5/MOSI_134P0.4/AD4/SS135P4.136
P0
.3/A
D3
/RT
S0
37
P0
.2/A
D2
/CT
S0
38
P0
.1/A
D1
/RT
S1
39
RST4
RXD/P3.05
AVSS6
MCLK/INT1/P3.39
TXD/P3.17
INT0/P3.28
SDA/T0/P3.410
SCL/T1/P3.511
PWM3/P4.312
P3
.6/W
R/C
KO
13
P4.5/ALE29
P4.4/CS28
AIN
0/T
2/P
1.0
43
AV
DD
42
VD
D41
P0
.0/A
D0
/CT
S1
40
P3
.7/R
D14
XT
AL
116
XT
AL
215
P2.5/AD13/PWM525
P2.7/AD15/PWM727
PIN
48
C21uF
TANT-A
TICEVCCTICEVCC
12
POWER
KPT-2012(GREEN)LED0805
PR
3300603R
VCC5
NET3
NET1
PIN36
DAVDD
PIN35PIN34
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
TICEVCCJP4
HEADER 5X2HEADER5x2
1 23 45 67 89 10
TICECLK
PIN9
VCC5
C1
10uF/10V
TANT-A
R1
10K
0603R
Reset Circuit
TICERST
SW1
PUSH BOTTOM
SW
PIN26PIN10
C520p
0603C
X212MHz
XTAL\LP\SMD
D12MO
C320p
0603C
R2
33
0603R
PIN11PIN25
JP2
HEADER 2HEADER2
12
TP1SIP/1P
1
JP3
HEADER 2HEADER2
12
PIN12
PIN
41
PIN18
Title
Size Document Number Rev
Date: Sheet of
V3.0
Nuvoton NUC029LAN Version V1.0
1 1Friday , June 13, 2014
D12MI
TP2SIP/1P
1
TICERST
VCC5
ADAVSS
D12MOD12MI
VCC5
L1
L0603
DAVDD
TP3SIP/1P
1
JP5
HEADER 6X2HEADER6X2
1 23 45 67 89 1011 12
PIN2PIN1PIN4PIN3
PIN8PIN6PIN5
PIN11PIN10PIN9
PIN7
PIN12
PIN
14
JP6
HEADER 6X2HEADER6X2
12345678910
1112
PIN26 PIN25
PIN29PIN28 PIN27
PIN31PIN30
ADAVSS
PIN33PIN32
PIN35PIN34PIN36
JP1HEADER 6X2HEADER6X2
12
34
56
78
910
11
12
PIN
39
PIN
38
PIN
37
PIN
41
PIN
40
PIN
45
PIN
44
PIN
43
PIN
42
PIN
46
PIN
47
PIN
15
CB2
0.1u
0603C
L2
L0603
PIN
16
CrystalP
IN4
6
PIN
40
PIN
48
PIN
44
PIN
47
PIN
39
PIN
38
PIN
37
PIN
45
PIN
43
PIN
42
PIN
13
TICECLKTICEDAT
TICERSTTICERST
TICEDATTICECLK
JP7
HEADER 6X2
HEADER6X2
12
34
56
78
910
11
12
PIN
17
PIN
20
PIN
19
PIN
18
PIN
16
PIN
15
PIN
14
PIN
13
PIN
21
PIN
20
PIN
19
PIN
18
PIN
17
PIN
24
PIN
23
PIN
22
PIN
21
PIN
24
PIN
23
PIN
22
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
12345678
12
BUSY
KPT-2012(GREEN)LED0805
VCC
GREEN
iceL5L0603
iNET4
iceC720p
0603C
iceR1233
0603R
iceX312MHz
XTAL\LP\SMD
iceL4L0603
iceC620p
0603C
ADAVSS
AVDD
DEBUG
VCC
iceR17
10K
0603R
12 iceD3
SS24ARB060L
1 2
iceD4SS24A
RB060L
iceC9
10uF/10V
TANT-A
VCC5
USBVBUS
VCC
VCC
TICECLKTICEDAT
TICERST
ICE_RST
VCC
PA4PA3PA2PA1PA0
iceJP8
HEADER 5X2HEADER5X2
1 23 45 67 89 10
TICERST
TICEDATTICECLK
VCC
iNET8
J1
4 HEADER
1234
Reset Circuit
USBVBUS
iNET12iNET13
iceJP9
HEADER 5
HEADER5
12345
TICEVCCTICEVCC PA0
ICE_CLKICE_DAT
ICE_RST
PA1iNET7
PA2PA3PA4
12M_I
MCU and USB
12M_O
CRYSTAL iceU2
NUC12SRE3AN
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_CK42
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
iceL6L0603
iceR16330603R
iceR14330603R
iceJ2
mini USB 5pin
USB_MINI_B
GND5 NC4 DP3 DM2 VCC1
SHIELD6
SHIELD7
SHIELD8
SHIELD9
ICE CONNECT IF
USBVBUS
USB_D+
iNET11
iNET12iNET13USB_D-
VCC
RTIDA1
100K
0603R
RICK1
100K
0603R
VCC
CT310uF/10VTANT-A
ICE
_R
ST
U3RT9164A-3.3v
IN3
GN
D1
OU
T2
OU
T4
VCC33
12
iceD2
SS24ARB060L
PVSS
12M
_I
VCC
AVDD
12M
_O
iNET15GREEN
ISPLEDRED
iceCT1
1uF/6.3V
TANT-A
iceCB30.1u
0603C
VCC
ICELED
USBVBUS
VB
US
USB_D-
iNET14
USB_D+
iceCB40.1u
0603C
iceC8
1u
0603C
RTDA2
00603R
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
JP83-W JUMP
1 32
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
NuTiny-SDK-NUC029LAN User Manual
Dec. 24, 2014 21 of 21 Rev. 1.01
7 Revision History
Revision Date Description
1.00 Jun. 19, 2014 First version.
1.01 Dec. 24, 2014 Fix the typo on 6.3 Downloading NuMicro™ NUC029xAN Series BSP Software Library Step4.
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.