nutiny-sdk-m058s user manual - nuvoton€¦ · model j1 usb port j2 usb port jp1 vcc5 mcu voltage...
TRANSCRIPT
NuTiny-SDK-M058S User Manual
ARM Cortex™-M0
32-bit Microcontroller
Oct. 31, 2013 1 of 16 Rev. 1.00
NuTiny-SDK-M058S User Manual For NuMicro M058S 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-M058S User Manual
Oct. 31, 2013 2 of 16 Rev. 1.00
Table of Contents
1 Overview ........................................................................................... 3
2 Introduction to NuTiny-SDK- M058S ..................................................... 3
2.1 NuTiny-SDK- M058S Jumper Description .................................................. 4 2.2 Pin Assignment for Extended Connectors .................................................. 5 2.3 NuTiny-SDK-M058S PCB Placement ......................................................... 6
3 Starting to Use NuTiny-SDK-M058S 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 Smpl_NuTiny-M051 Example Program ...................................................... 8
4 Starting to Use NuTiny-SDK-M058S 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 Smpl_NuTiny-M051 Example Program .................................................... 10
5 NuTiny-EVB-M058S Schematics ......................................................... 11
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 ................................................. 14
6.3 Downloading NuMicro™
M051 series BSP Software Library ............................. 15
7 Revision History ............................................................................... 16
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 3 of 16 Rev. 1.00
1 Overview
The NuTiny-SDK-M058S is a specific development tool for NuMicro M058S
series by which users can develop and verify the application program easily.
The NuTiny-SDK-M058S includes two portions: NuTiny-EVB-M058S (an
evaluation board) and Nu-Link-Me (Debug Adaptor). With the NuTiny-SDK-
M058S, users do not need additional ICE or debug equipment.
2 Introduction to NuTiny-SDK- M058S
The following figure shows the NuTiny-SDK-M058S for M058S series, in
which the left portion is called NuTiny-EVB-M058S and the right portion is
Debug Adaptor called Nu-Link-Me.
The NuTiny-EVB-M058S 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 M058S is mounted on the board. The NuTiny-EVB-M058S 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.
LQFP-64 pin extended connector
Reset Key
ICE Chip
Target Chip ICE Chip UCB ConnectorLQFP-64 pin extended connector
Power LED
IO LED
Figure 2-1 NuTiny-SDK-M058S (Green PCB Board)
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 4 of 16 Rev. 1.00
2.1 NuTiny-SDK- M058S Jumper Description
2.1.1 Power Settings
JP1: VCC5 Voltage connecter in NuTiny-EVB-M058S
J2: USB port in Nu-Link-Me
Model J1 USB Port J2 USB Port JP1 VCC5 MCU Voltage
Model 1 X Connect to PC DC 3.3V output DC 3.3V
Model 2 X X DC 2.5 V ~ 5.5 V
Input
Voltage by VCC5
input
X: Unused.
2.1.2 Debug Connectors
JP3: Target ICE Connector in NuTiny-EVB-M058S
JP9: Nuvoton ICE Connector in Nu-Link-Me
2.1.3 USB Connectors
J2: Mini USB Connecter in Nu-Link-Me
2.1.4 Extended Connectors
JP5, JP6, JP7 and JP8: Show all of chip pins in NuTiny-EVB-M058S
2.1.5 Buttons
SW1: Reset button in NuTiny-EVB-M058S
2.1.6 Power Connectors
JP1: VCC connecter in NuTiny-EVB-M058S
JP2: GND connecter in NuTiny-EVB-M058S
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 5 of 16 Rev. 1.00
2.2 Pin Assignment for Extended Connectors
The NuTiny-EVB- M058S provides the M058SSAN target chip on board and
the extended connectors (JP5, JP6, JP7 and JP8) for LQFP64-pin. The
following table is the pin assignment for M058SSAN.
Pin No Pin Name Pin No Pin Name
01 P1.5, MOSI_0, AIN5 33 P2.5
02 P1.6, MISO_0, AIN6 34 P2.6
03 P1.7, SPICLK0, AIN7 35 P2.7
04 /RST 36 P4.4, SCL1
05 P3.0, RXD 37 P4.5, SDA1
06 P5.0, T0EX 38 P4.6, ICE_CLK
07 P5.1, T1EX 39 P4.7, ICE_DAT
08 P5.2, SDA0 40 P6.0
09 P5.3, SCL0 41 P6.1
10 P3.1, TXD 42 P6.2
11 P3.2, /INT0, STADC, T0EX 43 P6.3
12 P3.3, /INT1, T1EX 44 P0.7, SPICLK0
13 P3.4, T0, SDA0 45 P0.6, MISO_0
14 P3.5 T1 SCL0, CKO 46 P0.5, MOSI_0
15 P4.3, PWM3 47 P0.4, SPISS0
16 P3.6, CKO 48 P4.1, PWM1, T3EX
17 P3.7 49 P0.3, RTS, RXD
18 XTAL2 50 P0.2, CTS, TXD
19 XTAL1 51 P0.1
20 VSS 52 P0.0
21 VDD 53 VSS
22 LDO_CAP 54 VDD
23 P5.4 55 P6.4
24 P5.5 56 P6.5
25 P5.6 57 P6.6
26 P5.7 58 P6.7
27 P2.0, PWM0 59 P1.0, T2, AIN0
28 P2.1, PWM1 60 P1.1, T3, AIN1
29 P2.2, PWM2 61 P1.2, AIN2
30 P2.3, PWM3 62 P1.3, AIN3
31 P2.4 63 P1.4, SPISS0, AIN4
32 P4.0, PWM0 64 P4.2, PWM2
Table 2-1 Pin Assignment for M058SSAN
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 6 of 16 Rev. 1.00
2.3 NuTiny-SDK-M058S PCB Placement
The following figure shows the NuTiny-SDK- M058S PCB placement.
Figure 2-2 NuTiny-SDK-M058S PCB Placement
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 7 of 16 Rev. 1.00
3 Starting to Use NuTiny-SDK-M058S on the Keil μVision® IDE
3.1 Downloading and Installing Keil μVision® IDE Software
Please visit 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 visit 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_Driver_for_keil_RVMDK_V1.23.6103.zip” to install the driver.
3.3 Hardware Setup
The hardware setup is shown in the following figure.
Figure 3-1 NuTiny-SDK-M058S Hardware Setup
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 8 of 16 Rev. 1.00
3.4 Smpl_NuTiny-M051 Example Program
This example demonstrates how to download and debug an application on a
NuTiny-SDK-M058S board.
The example file can be found in the directory list shown in the following
figure.
Directory Project File
Figure 3-2 Smpl_NuTiny-M051 Example Directory
To use this example:
Start μVision®
Project – Open
Open the Smpl_NuTiny-M051.uvproj
project file
Project – Build
Compile and link the Smpl_NuTiny-
M051 application
Flash – Download
Program the application code into on-
chip Flash ROM
The P3.6 LED on the NuTiny-EVB-
M058 board will be toggled on.
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-M058S User Manual
Oct. 31, 2013 9 of 16 Rev. 1.00 Rev. 1.00
4 Starting to Use NuTiny-SDK-M058S on the IAR Embedded
Workbench
4.1 Downloading and Installing IAR Embedded Workbench Software
Please visit the 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 visit the Nuvoton Company NuMicro™
website
(http://www.nuvoton.com/NuMicro) to download the “NuMicro™
IAR ICE
Driver User Manual” file. Please refer to section 6.2 for the detail download
flow. When the download had finished, please unzip the file and execute the
“Nu_Link_Driver_for_IAR_RVMDK_V1.23.6103.zip” to install the driver.
4.3 Hardware Setup
The hardware setup is shown in the following figure.
Figure 4-1 NuTiny-SDK-M058S Hardware Setup
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 10 of 16 Rev. 1.00 Rev. 1.00
4.4 Smpl_NuTiny-M051 Example Program
The example demonstrates how to download and debug an application on a
NuTiny-SDK-M058S board.
The example can be found in the directory list shown in the following figure.
(Sample code can be downloaded from Nuvoton website).
Directory Project File
Figure 4-2 Smpl_NuTiny-M051 Example Directory
To use this example:
Start IAR Embedded
Workbench
File-Open-Workspace
Open the Smpl_NuTiny-M051.eww
workspace file
Project - Make
Compile and link the Smpl_NuTiny-
M051 application
Project – Download and Debug
Program the application code into on-
chip Flash ROM
Single step through code
Reset the device
Run the application
The P3.6 LED on the NuTiny-EVB-M058S board will be toggled on.
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 11 of 16 Rev. 1.00
5 NuTiny-EVB-M058S Schematics
P59
P1
P55
P4RESETP5
DVCC5
P6
P10
P42P41
P19
D1
2M
IP
63
P62
P61
P58
P14
DVCC5
R3500R0603
12
IO1
KPT-2012KP-2012
DVCC5
P16
P60
TICERSTTICECLKTICEDAT
P18
D1
2M
O
Title
Size Document Number Rev
Date: Sheet of
2.0
Nuvoton NuTiny-EVB-M058SSAN(LQFP64)
A3
Wednesday , July 10, 2013
DVCC5
P53
12
POWER1
KPT-2012KP-2012
PR1500R0603
DVCC5
D12MI
GND
P54
CT1
1uF/6.3V
TANT-R
ADAVSS
DAVDD
L1
L0603
DVCC5
L2
L0603
P21
P22
P23
P24
P16
P25
P26
P3
P27
P28
P29
P30
P31
ADAVSS
ICEDAT
ICERST
DVCC5ICECON1
JP3
HEADER 5X2
1 23 45 67 89 10
ICECLK
DVCC5
C1
10uF/10V
TANT-A
R1
10K
R0603
ICERST
RESET
SW1
PUSH BOTTON
SW
C5 20p
C0603
X212MHz
XTAL3-1
D12MOC3 20p
C0603
R2 33
R0603
ICEDATTICEDATTICECLK ICECLK
ICERSTTICERST
JP1
HEADER 2
12
JP2
HEADER 2
12
Reset
Crystal
DAVDD
ICE INTERFACE
JP8
HEADER 8X2
1 23 45 67 89 1011 1213 1415 16
JP7
HEADER 8X2
1 23 45 67 89 1011 1213 1415 16
JP6
HEADER 8X2
1 23 45 67 89 1011 1213 1415 16
JP5
HEADER 8X2
1 23 45 67 89 1011 1213 1415 16
P1
P5
P15P13P11
P7P9
P2P4
P14P16
P8
P12
P6
P10
P17
P31
P23P25
P29
P19P21
P27 P28
P18
P32
P24
P30
P20P22
P47
P39
P33
P26
TP1SIP/1P
1
RESETP22
P41
P45
P35P37
TP2SIP/1P
1
TP3SIP/1P
1
DAVDD
P38
P44
P48
P40
P34
P46
P36
P63
P55
P49
P42
P53
P59P57
P61
P51 P52P54
P60
P64
P56
P50
P62
P58
P17
P43
P43
P20
P52
U6
M058SSAN_LQFP64
SPICLK+/P0.744MISO+/P0.645MOSI+/P0.546SPISS0+/P0.447T3EX/PWM1+/P4.148
P1.5/AIN5/MOSI1
P1.6/AIN6/MISO2
P1.7/AIN7/SPICLK3
P3.7
17
P7.0
/TT
AL2
18
P7.1
/XT
AL1
19
VS
S20
VD
D21
LD
O22
P5.4
23
P5.5
24
P5.7
26
P2.3
/PW
M3
30
P2.4
/PW
M4
31
P4.0
/PW
M0
+/T
2E
X32
PWM5/P2.533PWM6/P2.634PWM7/P2.735I2C1SCL/P4.436I2C1SDA/P4.537ICE_CLK/P4.638ICE_DAT/P4,739
RST4
P3.0/RXD5
AVSS6
P5.39
P5.17
P5.28
P3.1/TXD10
P3.2/INT0/STADC/T0EX11
P3.3/INT1/T1EX12
P3.4/T0/SDA013
P2.2
/PW
M2
29
P2.1
/PW
M1
28
P6.343
P6.242
P6.141
P6.040
P3.5/T1/SCL014
P3.6/CKO16 P4.3/PWM3+15
P5.6
25
P2.0
/PW
M0
27
RX
D+/R
TS
0/P
0.3
49
TX
D+/C
TS
0/P
0.2
50
P0.1
51
P0.0
52
VS
S53
VD
D54
AV
DD
55
Vre
f56
P6.6
57
T2
/AIN
0/P
1.0
59
T3
/AIN
1/P
1.1
60
P6.7
58
AIN
2/P
1.2
61
AIN
3/P
1.3
62
SP
ISS
0/A
IN4
/P1.4
63
PW
M2
+/P
4.2
64
P38ICECLK
P32
P3P2
P8
P11
P9
P7
P13
P47P48
P12
P44
P46
P39ICEDAT
P45
P40
P34P33
P35P36P37
P51
P50
P49
P56
P57
P64
P15
ICECON1TICECON1TICECON1
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 12 of 16 Rev. 1.00 Rev. 1.00
ICE_RST
12
IDLE1
KPT-2012KP-2012
ISPLED
RED
12
ICP1
KPT-2012KP-2012
12
ICE1
KPT-2012KP-2012ICELED
RP1
8P4R-330
8P4RA
1 23 45 67 8
12
BUSY1
KPT-2012KP-2012
VCC5
GREEN
L6L0603
C920p
C0603
L4
L0805
R1233R0603
R1133R0603
R9
33
R0603
X312MHz
XTAL3-1
J2mini USB 5pin
USB_MINI_B
GND5 NC4 DP3 DM2 VCC1
SHIELD6
SHIELD7
SHIELD8
SHIELD9
L5L0603
C820p
C0603
USBVBUS
AVDD
ADAVSS
NUC_RST#
R8
10K
R0603
TICECON1ICECON1TICECON1
CP1
10uF/10V
TANT-B
C7
10uF/10V
TANT-A
P3V
VCC5
VCC5
TICEDATTICECLKTICERST
VCC5
Title
Size Document Number Rev
Date: Sheet of
2.0
Nuvoton NuTiny-EVB-M058SSAN(LQFP64)
A3
Wednesday , July 10, 2013
JP9
HEADER 5X2
1 23 45 67 89 10
TICECLKTICEDAT
TICERST
VCC5
TICECON1
JP10
HEADER 5
12345
VCC
VCC5
GND
ICE_CLKICE_RST
ICE_DAT
ICE CONNECT IF
DEBUG
12M_I
DMDP
12M_O
U2
NUC12SRE3AN
PA0/ADC044PA1/ADC145PA2/ADC246PA3/ADC347PA4/ADC448INT0/PB14
1
CPO1/PB132
CPO0/PB123
VB
US
17
VD
D3
318
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
S0
028
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
/PA
650
AD
C7
/PA
751
AV
DD
52
CP
N0
/PC
753
CP
P0
/PC
654
CP
N1
/PC
15
55
CP
P1
/PC
14
56
INT
1/P
B1
557
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
/PB
864
PE
529
PB
11/T
M3
30
PB
10/S
S0
1/T
M2
31
PB
9/S
S1
1/T
M1
32
VCC5
RTIDA1
100K
R0603
RICK1
100K
R0603
VCC5
JP11
HEADER 4
1234
DMDP
USBVBUS
12
D2
SS24ARB060L
12M
_I
PVSS
AVDD
VCC5
NU
C_
RS
T#
12M
_O
ISPLEDREDGREEN
CT2
10uF/6.3V
TANT-R
CB10.1u
C0603
VCC5
ICELED
USBVBUS
VB
US
US
B_
D+
US
B_
D-
CB20.1u
C0603
C10
1u
C0603
RTDA2
0R0603
TICERST
RTDA3
1K
R0603
RTCK1
100K
R0603
TICECLKTICEDAT
TICERST
RTDA1
100K
R0603
RRSET1
100K
R0603
ADAVSS
VCC5
ICE_CLKICE_DAT
1 2
PD2SS24A
RB060L
USBVBUS
P5V
VCC5
JPR
HEADER 3
123UP6RT9164A-3.3v
IN3
GN
D1
OU
T2
OU
T4
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 13 of 16 Rev. 1.00
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
Step3
Step4 Download the NuMicro Keil uVision
® IDE driver.
Downloading the file
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 14 of 16 Rev. 1.00
6.2 Downloading NuMicro™ IAR EWARM Driver
Step1
Visit the Nuvoton NuMicro™
Website: http://www.nuvoton.com/NuMicro
Step2
Step 3
Step 4
Download the NuMicro™
IAR Embedded Workbench® driver.
Downloading the file
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 15 of 16 Rev. 1.00
6.3 Downloading NuMicro™ M051 series BSP Software Library
Step1
Visit the Nuvoton NuMicro™
Website: http://www.nuvoton.com/NuMicro
Step2
Step3
Download the NuMicro M051™
series software library.
NuTiny-SDK-M058S User Manual
Oct. 31, 2013 16 of 16 Rev. 1.00
7 Revision History
Revision Date Description
1.00 Oct.31, 2013 Initial release
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. Furthermore, 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.