Nuvoton NuTiny-SDK-NUC029FAE User manual

Type
User manual
NuTiny-SDK-NUC029FAE User Manual
Dec. 24, 2014 Rev. 1.01
NuTiny-SDK-NUC029FAE User Manual
for NuMicro™ NUC029FAE 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-NUC029FAE User Manual
Dec. 24, 2014 2 of 21 Rev. 1.01
Table of Contents
1 Overview ........................................................................................... 3
2 Introduction to NuTiny-SDK-NUC029FAE ............................................... 3
2.1 NuTiny-SDK-NUC029FAE Jumper Description ................................................ 4
2.2 Pin Assignment for Extended Connectors ...................................................... 5
2.3 NuTiny-SDK-NUC029FAE PCB Placement....................................................... 6
3 Starting to Use NuTiny-SDK-NUC029FAE 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-NUC029FAE on the IAR Embedded Workbench 9
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-NUC029FAE Schematics .................................................. 11
5.1 NuTiny-EVB-NUC029FAE 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™ NUC029FAE Series BSP Software Library ................... 19
7 Revision History ............................................................................... 21
NuTiny-SDK-NUC029FAE User Manual
Dec. 24, 2014 3 of 21 Rev. 1.01
1 Overview
The NuTiny-SDK-NUC029FAE is a specific development tool for NuMicro™
NUC029FAE series-NUC029FAE by which users can develop and verify the application
program easily. The NuTiny-SDK-NUC029FAE includes two portions: NuTiny-EVB-
NUC029FAE (an evaluation board) and Nu-Link-Me (Debug Adaptor). With the NuTiny-
SDK-NUC029FAE, users do not need additional ICE or debug equipment.
2 Introduction to NuTiny-SDK-NUC029FAE
The following figure shows the NuTiny-SDK-NUC029FAE for NUC029xAE series, in
which the left portion is called NuTiny-EVB-NUC029FAE and the right portion is Debug
Adaptor called Nu-Link-Me.
The NuTiny-EVB-NUC029FAE 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
NUC029FAE is mounted on the board. The NuTiny-EVB-NUC029FAE 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)
GND
(JP3)
VCC
(JP1)
Reset Key
(SW1)
TSSOP-20 pin
Extended Connector
(J4)
TSSOP-20 pin
Extended Connector
(J3)
I/O LED
Power LED
VCC
(JP5)
GND
(JP6)
Figure 2-1 NuTiny-SDK-NUC029FAE (Green PCB Board)
NuTiny-SDK-NUC029FAE User Manual
Dec. 24, 2014 4 of 21 Rev. 1.01
2.1 NuTiny-SDK-NUC029FAE Jumper Description
2.1.1 Power Settings
JP1 and JP5: VCC Voltage connecter in NuTiny-EVB-NUC029FAE
ICEJ2: USB port in Nu-Link-Me
Model
JP8
ICEJ2 USB
port
JP1 and JP5
VCC
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 JP1
and JP5 input
X: Unused.
2.1.2 Debug Connectors
JP4: Connector in target board (NuTiny-EVB-NUC029FAE) 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-NUC029FAE)
2.1.3 USB Connectors
ICEJ2: Mini USB Connector in Nu-Link-Me connected to a PC USB port
2.1.4 Extended Connectors
J3 and J4: Show all chip pins in NuTiny-EVB-NUC029FAE
2.1.5 Buttons
SW1: Reset button in NuTiny-EVB-NUC029FAE
2.1.6 Power Connectors
JP1 and JP5: VCC connector in NuTiny-EVB-NUC029FAE
JP3 and JP6: GND connector in NuTiny-EVB-NUC029FAE
NuTiny-SDK-NUC029FAE User Manual
Dec. 24, 2014 5 of 21 Rev. 1.01
2.2 Pin Assignment for Extended Connectors
The NuTiny-EVB-NUC029FAE provides the NUC029FAE target chip on board and
the extended connectors (J3 and J4) for TSSOP20-pin. The following table is the pin
assignment for NUC029FAE.
Pin No
Pin No
Pin Name
01
11
VSS
02
12
P2.4,PWM2
03
13
P2.5,PWM3
04
14
P4.6,ICE_CLK
05
15
P4.7,ICE_DAT
06
16
P0.7,SPICLK0
07
17
P0.6,MISO_0
08
18
P0.5,MOSI_0
09
19
P0.4,SPISS0,PWM5
10
20
VDD
Table 2-1 Pin Assignment for NUC029FAE
NuTiny-SDK-NUC029FAE User Manual
Dec. 24, 2014 6 of 21 Rev. 1.01
2.3 NuTiny-SDK-NUC029FAE PCB Placement
The following figure shows the NuTiny-SDK-NUC029FAE PCB placement.
Figure 2-2 NuTiny-SDK-NUC029FAE PCB Placement
NuTiny-SDK-NUC029FAE User Manual
Dec. 24, 2014 7 of 21 Rev. 1.01
3 Starting to Use NuTiny-SDK-NUC029FAE 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-NUC029FAE Hardware Setup
NuTiny-SDK-NUC029FAE 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-NUC029FAE 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-NUC029FAE board will be toggled on.
Start μVision®
Project Open
Open the led.uvproj project file
Project Build
Compile and link the LED 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-NUC029FAE User Manual
Dec. 24, 2014 9 of 21 Rev. 1.01
4 Starting to Use NuTiny-SDK-NUC029FAE 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-NUC029FAE Hardware Setup
NuTiny-SDK-NUC029FAE 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-NUC029FAE 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-NUC029FAE board will be toggled on.
Start IAR Embedded Workbench
File-Open-Workspace
Open the led.eww workspace file
Project - Make
Compile and link the LED 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-NUC029FAE User Manual
Dec. 24, 2014 11 of 21 Rev. 1.01
5 NuTiny-SDK-NUC029FAE Schematics
5.1 NuTiny-EVB-NUC029FAE Schematic
J3
SIPSOC-10 (NC)
1
2
3
4
5
6
7
8
9
10
Reset Circuit
VCC
VCC
VCC VCC
VCC
J4
SIPSOC-10 (NC)
1
2
3
4
5
6
7
8
9
10
TICERST
JP1
HEADER 5PX1 (NC)
1
2
3
4
5
JP3
HEADER 5PX1 (NC)
1
2
3
4
5
JP5
HEADER 2PX1 (NC)
1
2
JP6
HEADER 2PX1 (NC)
1
2
PIN1
R11
330
R0603
12
IO
RED
LED0805
PIN12
PIN2
PIN3
PIN4
PIN5
PIN6
PIN7
Title
Size Document Number Rev
Date: Sheet of
NUC029FAE.SCH V1.0
NuTiny-EVB-NUC029FAE
Custom
2 2Friday , June 13, 2014
PIN8
12
POWER
GREEN
LED0805
PR
330
R0603
XTAL1
PIN9
PIN10
VCC
PIN11
PIN12
PIN14
PIN13
From ICE Bridge's USB Power
VCC
PIN15
ICE Interface
TICEDAT
TICERST
TICEVCC
JP4
HEADER 5PX2(NC)
1 2
3 4
5 6
7 8
910
TICECLK
C1
10uF/10V
TANT-A
R1
10K
R0603SW1
PUSH BOTTOM
SW
PIN16
C5
20p
C0603
X2
12MHz
XTAL\LP\SMD
R4
1M
R0603
XTAL2
C3
20p
C0603
R2
33
R0603
TP1
Test_Point (NC)
1
PIN17
PIN1
PIN11
PIN2
PIN19
PIN3
PIN20
PIN4
PIN18
TICERSTPIN5
PIN6
TP2
Test_Point (NC)
1
PIN6
U1
NUC029FAE_TOSSOP20
ACMP0_P,RXD,AIN2,P1.2
1
ACMP0_P,TXD,AIN3,P1.3
2
ACMP0_N,AIN4,P1.4
3
ACMP0_N,AIN5,P1.5
4
nRST
5
ACMP1_P,T0EX,STADC,nINT0,P3.2
6
ACMP1_P,SDA0,T0,P3.4
7
ACMP1_P,SCL0,T1,P3.5
8
XTAL2,P5.1
9
XTA1, P5.0
10
VDD 20
P0.4,SPISS0,PWM5 19
P0.5,MOSI_0 18
P0.6,MISO_0 17
P0.7,SPICLK0 16
P4.7,ICE_DAT 15
P4.6,ICE_CLK 14
P2.5,PWM3 13
P2.4,PWM2 12
VSS 11
PIN7
PIN8
PIN20
TICERST
TP3
Test_Point (NC)
1
PIN19
PIN18
PIN17
PIN16 TICEDATPIN15
PIN13
XTAL1 PIN10 PIN12
PIN11
XTAL2 PIN9
Crystal
TICECLKPIN14
TICECLK
TICEDAT
TICERST TICERST
TICEDAT
TICECLK
TICEVCC TICEVCC
NuTiny-SDK-NUC029FAE User Manual
Dec. 24, 2014 12 of 21 Rev. 1.01
5.2 Nu-Link-Me Schematic
VCC33
USB_D+
USB_D-
VCC
12 IDLE
RED
LED0805
RED
ICPLED 12 ICP
YELLOW
LED0805
12 ICE
RED
LED0805
ICELED iceRP1
8P4R-330
8P4RA
12 34 56 78
12 BUSY
GREEN
LED0805
VCC
GREEN
iceL5
L0603
iceC7
20p
C0603
iceR12
33
R0603 iceX3
12MHz
XTAL\LP\SMD
iceR13
1M/DNE
R0603
iceL4
L0603
iceC6
20p
C0603
ADAVSS
AVDD
DEBUG
J1
HEADER 4PX1 (NC)
1
2
3
4
DM
DP
VCC
TICEVCC
TICEVCC
iceR17
10K
R0603
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 iceJP8
HEADER 5PX2 (NC)
1 2
3 4
5 6
7 8
910
TICERST
TICEDAT
TICECLK
VCC
Reset Circuit
iceJP9
HEADER 5PX1 (NC)
1
2
3
4
5
(YELLOW)
(RED)
(GREEN)
(RED)
ICE_CLK
ICE_DAT
ICE_RST
12M_I
MCU and USB
12M_O
Crystal iceU2
NUC12SRE3AN_LQFP64
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
R0603
iceR14
33
R0603
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+ DP
DMUSB_D-
VCC
RTIDA1
100K
R0603
RICK1
100K
R0603
VCC
ICE_RST
U3
AMS1117-3.3V
IN
3
GND
1
OUT
2
OUT
4
VCC33
1 2
iceD2
SS24A
RB060L
12M_I
VCC
AVDD
12M_O
RED
ICPLED
GREEN
iceCB3
0.1uF
C0603
ICELED
USBVBUS
VBUS
iceCB4
0.1u
C0603
iceC8
1uF
C0603
RTDA2
0
R0603
TICERST
RTDA3
33
R0603
RTCK1
100K
R0603
TICECLK
RTDA1
100K
R0603
RRSET1
100K
R0603
ADAVSS
TICEDAT
VCC
ICE_DAT
ICE_CLK
JP8
3-W JUMPER
1 3
2
USBVBUS
CT3
10uF/10V
TANT-A
iceCT1
10uF/10V
TANT-A
Title
Size Document Number Rev
Date: Sheet of
ICE_LQFP64.SCH V2.0
Nu-Link-Me V2.0
Custom
1 2Wednesday, May 21, 2014
POWER
VCC5
NuTiny-SDK-NUC029FAE 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-NUC029FAE User Manual
Dec. 24, 2014 14 of 21 Rev. 1.01
Step3
Click here to enter
Software
download page
NuTiny-SDK-NUC029FAE 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-NUC029FAE 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-NUC029FAE User Manual
Dec. 24, 2014 17 of 21 Rev. 1.01
Step3
Click here to enter
Software
download page
NuTiny-SDK-NUC029FAE 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-NUC029FAE User Manual
Dec. 24, 2014 19 of 21 Rev. 1.01
6.3 Downloading NuMicro™ NUC029FAE 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-NUC029FAE User Manual
Dec. 24, 2014 20 of 21 Rev. 1.01
Step3
Step4
Download the NuMicro NUC029FAE Series CMSIS BSP.
Click here to enter
Software
download page
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21

Nuvoton NuTiny-SDK-NUC029FAE User manual

Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI