NuTiny-SDK-M051 User’s Manual
NuTiny-SDK-M051 User’s Manual
For NuMicro M051™ 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.
1
NuTiny-SDK-M051 User’s Manual
1
Overview ..................................................................................................... 3
2
NuTiny-SDK-M051 introduction ....................................................................... 3
2.1
2.2
2.3
NuTiny -SDK-M051 Jumper Description .................................................................... 4
Pin Assignment for Extended Connector.................................................................... 5
NuTiny-SDK-M051 PCB Placement ........................................................................... 5
How to start NuTiny -SDK-M051 on the Keil uVision® IDE ................................... 6
3
3.1
3.2
3.3
3.4
4
Keil uVision® IDE Software Download & Install .......................................................... 6
Nuvoton Nu-Link Driver Download & Install............................................................... 6
Hardware Setup.................................................................................................... 6
Smpl_NuTiny-M051 Example Program...................................................................... 7
How to start NuTiny-SDK-M051 on the IAR Embedded Workbench ....................... 8
4.1
4.2
4.3
4.4
IAR Embedded Workbench Software Download &Install .............................................. 8
Nuvoton Nu-Link Driver Download & Install............................................................... 8
Hardware Setup.................................................................................................... 8
Smpl_NuTiny-M051 Example Program...................................................................... 9
5
M052_TINY-EVB Schematic .......................................................................... 10
6
To Download NuMicro™ Family Releated Files From Nuvoton Company ............... 11
6.1
6.2
6.3
7
To Download NuMicro™ Keil uVision® IDE driver ...................................................... 11
To Download NuMicro™ IAR EWARM driver .............................................................. 12
To Download NuMicro™ M051 series BSP Software Library ........................................ 13
Revision History.......................................................................................... 13
2
NuTiny-SDK-M051 User’s Manual
1
Overview
NuTiny-SDK-M051 is the specific development tool for NuMicro M051™ series –M052/M054/M058/M0516. Users can
use NuTiny-SDK-M051 to develop and verify the application program easily.
NuTiny-SDK-M051 includes 2 portions. One is M052_Tiny-EVB and the other is Nu-Link-Me. M052_Tiny-EVB is
evaluation board and Nu-Link-Me is its Debug Adaptor. Thus, users do not need additional ICE equipment.
2
NuTiny-SDK-M051 introduction
NuTiny-SDK-M051 can support NuMicro M051™ series. Figure 2-1 is NuTiny-SDK-M051 for M051 series and the left
portion is called M052-TINY-EVB and the right portion is Debug Adaptor called Nu-Link-Me.
M052-TINY-EVB 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 M0516LAN is mounted on the board. The on board chip covers M052, M054 and
M058’s features. The M052_Tiny-EVB can be a real system controller to design user target system.
Nu-Link-Me is a Debug Adaptor. The Nu-Link-Me Debug Adaptor connects your PC's USB port to your target
system (via Serial Wired Debug Port) and allows you to program and debug embedded programs on the target
hardware. To use 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” in detail.
Figure 2-1 NuTiny-SDK-M051 (Green Color PCB Board)
3
NuTiny-SDK-M051 User’s Manual
2.1
NuTiny -SDK-M051 Jumper Description
2.1.1 Power Setting
z
z
JP2: VCC5 Voltage connecter in M052_TINY-EVB
J2: USB port in Nu-Link-Me
POWER model
J1 USB port
J2 USB port
JP2 VCC5
MCU Voltage
Model 1
X
Connect to PC
DC 5V output
DC 5V
Model 2
X
X
DC 2.8-5.5V input
Voltage by VCC input
X: Not use.
2.1.2 Debug Connector
z
z
JP4: Target ICE Connector in M052_TINY-EVB
JP8: Nuvoton ICE Connector in Nu-Link-Me
2.1.3 USB Connecter
z
z
J1: mini USB Connecter in M052_TINY-EVB
J2: mini USB Connecter in Nu-Link-Me
2.1.4 Extended Connecter
z
JP1, JP5, JP6 and JP7: Show all of chip pins in M052_TINY-EVB
2.1.5 Reset Button
z
SW1: Reset button in M052_TINY-EVB
2.1.6 Power Connecter
z
z
JP2: VCC connecter in M052_TINY-EVB
JP3: GND connecter in M052_TINY-EVB
4
NuTiny-SDK-M051 User’s Manual
Pin Assignment for Extended Connector
M052_TINY-EVB provides M0516LAN on board and the extended connector for LQFP-48 pin. Table
2-1 is the pin assignment for M0516LAN.
2.2
Pin No
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Pin Name
MOSI_0,AIN5,P1.5
MISO_0,AIN6,P1.6
SCLK0,AIN7,P1.7
/RST
P3.0,RXD
AVSS
P3.1,TXD
P3.2,/INT0,STADC
P3.3,/INT1,MCLK
P3.4, T0,SDA
P3.5,T1,SCL
P4.3,PWM3
P3.6,/WR,CKO
P3.7,/RD
XTAL2
XTAL1
VSS
LDO_CAP
P2.0,AD8,PWM0
P2.1,AD9,PWM1
P2.2,AD10,PWM2
P2.3,AD11,PWM3
P2.4,AD12,PWM4
P4.0,PWM0
Pin No
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Pin Name
P2.5,AD13,PWM5
P2.6,AD14,PWM6
P2.7,AD15,PWM7
P4.4,/CS
P4.5,ALE
P4.6,ICE_CLK
P4.7,ICE_DATA
P0.7,AD7,SCLK1
P0.6,AD6,MISO_1
P0.5,AD5,MOSI_1
P0.4,AD4,/SS1
P4.1,PWM1
P0.3,AD3,RTS0
P0.2,AD2,CST0
P0.1,AD1,RTS1
P0.0,AD0,CTS1
VDD
AVDD
P1.0,AIN0,P1.0
P1.1,AIN1,T3
P1.2,AIN2,RXD1
P1.3AIN3,TXD1
P1.4,AIN4,/SS0
P4.2,PWM2
Table 2-1 pin assignment for M0516LAN
2.3
NuTiny-SDK-M051 PCB Placement
Users can refer Figure 2-2 for the NuTiny -SDK-M051 PCB placement.
Figure 2-2 NuTiny-SDK-M051 PCB Placement
5
NuTiny-SDK-M051 User’s Manual
3
How to start NuTiny -SDK-M051 on the Keil uVision® IDE
3.1 Keil uVision® IDE Software Download & Install
Please connect to Keil company website (http://www.keil.com) to download the Keil uVision® IDE and install the
RVMDK.
3.2 Nuvoton Nu-Link Driver Download & Install
Please connect to Nuvoton company NuMicro™ website ( http://www.nuvoton.com/NuMicro ) to download “NuMicro™
Keil uVision® IDE driver” file. Please refer the Chapter 6.1 for the detail download flow. When the download had
finished, 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 as Figure 3-1
Figure 3-1 NuTiny-SDK-M051 Hardware Setup
6
NuTiny-SDK-M051 User’s Manual
3.4
Smpl_NuTiny-M051 Example Program
This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-M051 board.
The example can be found on the Figure 3-2 list directory.
Directory
Project File
Figure 3-2 Smpl_NuTiny-M051 Example Directory
To use this example:
Start uVision
Open the Smpl_NuTiny-M051.uvproj project file
Project-Open
Compile and link the Smpl_NuTiny-M051
application
Start debug mode
Using the debugger commands, you may:
Single step through code
Run the application\
Project - Build
Program the application into on-chip Flash ROM
Flash – Download
The LED will toggle on the M052_TINY-EVB board.
7
Review variables in the watch window
Reset the device to re-run the application
NuTiny-SDK-M051 User’s Manual
4
How to start NuTiny-SDK-M051 on the IAR Embedded Workbench
4.1 IAR Embedded Workbench Software Download &Install
Please connect to IAR company website (http:// www.iar.com) to download the IAR Embedded Workbench and install the
EWARM.
4.2 Nuvoton Nu-Link Driver Download & Install
Please connect to Nuvoton company NuMicro™ website ( www.nuvoton.com/NuMicro) to download “NuMicro™ IAR
ICE driver user manual” file. Please refer the 6.2 for the detail download flow. When the download had finished, 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 as Figure 3-1
Figure 4-1 NuTiny- SDK-M051 Hardware Setup
8
NuTiny-SDK User’s Manual
4.4 Smpl_NuTiny-M051 Example Program
This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-M051 board.
The example can be found on the Figure 3-2 list directory. (Samples code can be download from Nuvoton website)
Directory
Project File
Figure 4-2 Smpl_NuTiny-M051 Example Directory
To use this example:
Start IAR Embeded Workbench
Open the Smpl_NuTiny-M051.eww workspace file
File-Open-Workspace
Compile and link the Smpl_NuTiny-M051
application
Project - Make
Program the application into on-chip Flash ROM
Project – Download and Debug
The I/O will toggle on the M052_TINY-EVB board.
9
NuTiny-SDK-M051 User’s Manual
M052_TINY-EVB Schematic
SW1
PUSH BOTTOM
SW
R1
10K
0805R
PIN47
PIN45
PIN43
PIN41
PIN39
PIN37
VCC
DAVDD
TICERST
C1
10uF/10V
CB1
TICEDAT
TICECLK
TICERST
0.1u
C0603
JP1
HEADER 6X2
HEADER6X2
12
10
8
6
4
2
TICEDAT
TICECLK
TICERST
11
9
7
5
3
1
TANT-A
From ICE Bridge's USB Power
VCC
PIN48
PIN46
PIN44
PIN42
PIN40
PIN38
PIN48
PIN47
PIN46
PIN45
PIN44
PIN43
PIN42
PIN41
PIN40
PIN39
PIN38
PIN37
Reset Circuit
TICEDAT
TICECLK
TICERST
U1
NCU120_LQFP_48
P4.2
AIN3/SS0/P1.4
AIN3/TXD1/P1.3
AIN2/RXD1/P1.2
AIN1/T2/P1.1
AIN0/T2/P1.0
AVDD
VDD
P0.0/AD0/CTS1
P0.1/AD1/RTS1
P0.2/AD2/CTS0
P0.3/AD3/RTS0
2
4
6
8
10
HEADER 5X2
HEADER5x2
R2
33
NET1
XTAL3-1
R4
1M
0805R
D12MO
PIN2
PIN4
PIN6
PIN8
PIN10
PIN12
2
4
6
8
10
12
TICERST
HEADER 6X2
HEADER6X2
0805R
PIN1
PIN2
PIN3
PIN4
PIN5
PIN6
PIN7
PIN8
PIN9
PIN10
PIN11
PIN12
1
2
3
4
5
6
7
8
9
10
11
12
MOSI_0/AIN5/P1.5
MISO_0/AIN6/P1.6
SCLK0/AIN7/P1.7
RST
RXD/P3.0
AVSS
TXD/P3.1
INT0/P3.2
MCLK/INT1/P3.3
SDA/T0/P3.4
SCL/T1/P3.5
PWM3/P4.3
P4.1
P0.4/AD4/SS1
P0.5/AD5/MOSI_1
P0.6/AD6/MISO_1
P0.7/AD7/SCLK1
P4.7/ICE_DAT
P4.6/ICE_CLK
P4.5/ALE
P4.4/CS
P2.7/AD15/PWM7
P2.6/AD14/PWM6
P2.5/AD13/PWM5
M052 LQFP 48
36
35
34
33
32
31
30
29
28
27
26
25
PIN36
PIN35
PIN34
PIN33
PIN32
PIN31 TICEDAT
PIN30 TICECLK
PIN29
PIN28
PIN27
PIN26
PIN25
D12MI
12
10
8
6
4
2
PIN35
PIN33
PIN31
PIN29
PIN27
PIN25
11
9
7
5
3
1
HEADER 6X2
HEADER6X2
13
14
15
16
17
18
19
20
21
22
23
24
0805C
JP6
PIN36
PIN34
PIN32
PIN30
PIN28
PIN26
Crystal
TICERST
VCC
JP2
1
2
HEADER 2
HEADER2
JP3
VCC
1
2
R11
HEADER 2
HEADER2
10K
0805R
C2
10uF
TANT-B
TP2
SIP/1P
TP3
SIP/1P
NET2
VCC
2
4
6
8
10
12
2
TP1
SIP/1P
DAVDD
JP7
HEADER 6X2
VCC
DAVDD
PR
10K
0805R
2
POWER
KPT-2012
1 KP-2012
1
3
5
7
9
11
PIN13
IO
KPT-2012
1 KP-2012
D12MO
D12MI
1
PIN13
PIN14
PIN15
PIN16
PIN17
PIN18
PIN19
PIN20
PIN21
PIN22
PIN23
PIN24
PIN18
1
C5
20p
X2
12MHz
1
3
5
7
9
11
1
0805C
JP5
ADAVSS
C3
20p
PIN1
PIN3
PIN5
PIN7
PIN9
PIN11
P3.6/WR/CKO
P3.7/RD
XTAL2
XTAL1
VSS
LDO_CAP
P2.0/AD8/PWM0
P2.1/AD9/PWM1
P2.2/AD10/PWM2
P2.3/AD11/PWM3
P2.4/AD12/PWM4
P4.0
ICE INTERFACE
PIN14
PIN16
PIN18
PIN20
PIN22
PIN24
1
3
5
7
9
48
47
46
45
44
43
42
41
40
39
38
37
JP4
L1
L0603
L2
NET3
HEADER6X2
PIN13
PIN15
PIN17
PIN19
PIN21
PIN23
5
L0603
ADAVSS
Title
Nuvoton M052_TINY-EVB Board Versin 002
Size
Document Number
Date:
Tuesday , August 10, 2010
Rev
004
M052_TINY _V002.DSN
10
Sheet
1
of
1
NuTiny-SDK-M051 User’s Manual
To Download NuMicro™ Family Releated Files From Nuvoton Company
6
6.1
To Download NuMicro™ Keil uVision® IDE driver
Step1
To connect to the Nuvoton NuMicro™ Website: http://www.nuvoton.com/NuMicro
Step2
Step 3
Step 4
To download the :uMicro Keil uVision® IDE driver
11
NuTiny-SDK-M051 User’s Manual
6.2
To Download NuMicro™ IAR EWARM driver
Step1
To connect to the Nuvoton NuMicro™ Website: http://www.nuvoton.com/NuMicro
Click here to enter
Devlopment Tools page
Step2
Step 3
Step 4
To download the NuMicro™ IAR Embeded Workbench® driver
12
NuTiny-SDK-M051 User’s Manual
6.3
To Download NuMicro™ M051 series BSP Software Library
Step1
To connect to the Nuvoton NuMicro™ Website: http://www.nuvoton.com/NuMicro
Step2
Step 3
7
To download the NuMicro M051™ series software library
Revision History
Version
Date
Page
Description
1.0
Aug. 20, 2010
--
Initial Issued
13
NuTiny-SDK-M051 User’s Manual
Important Notice
Nuvoton products are not designed, intended, authorized or warranted for use as components in systems or
equipment intended for surgical implantation, atomic energy control instruments, airplane or spaceship
instruments, transportation instruments, traffic signal instruments, combustion control instruments, or for other
applications intended to support or sustain life. Further more, Nuvoton products are not intended for applications
wherein failure of Nuvoton products could result or lead to a situation wherein personal injury, death or severe
property or environmental damage could occur.
Nuvoton customers using or selling these products for use in such applications do so at their own risk and agree
to fully indemnify Nuvoton for any damages resulting from such improper use or sales.
Please note that all data and specifications are subject to change without notice. All the trademarks of products
and companies mentioned in this datasheet belong to their respective owners.
14