UM NuTiny-SDK-Mini58 EN Rev1.00
UM NuTiny-SDK-Mini58 EN Rev1.00
ARM® Cortex® -M
32-bit Microcontroller
NuMicro® Family
NuTiny-SDK-Mini58
User Manual
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.
Table of Contents
1 OVERVIEW ......................................................................................... 3
2 NUTINY-SDK-Mini58 INTRODUCTION ........................................................ 4
2.1 Virtual COM Port Switch Description ............................................................... 4
2.2 NuTiny-SDK-Mini58 Power Setting and Connector .............................................. 4
2.2.1 Power Setting ................................................................................................... 4
2.2.2 Debug Connector ............................................................................................... 5
2.2.3 ICE USB Connector ............................................................................................ 5
2.2.4 Extended Connector ........................................................................................... 5
2.2.5 Reset Button ..................................................................................................... 5
2.2.6 Power Connector ............................................................................................... 5
2.2.7 Virtual COM Port Function Switch ........................................................................... 5
2.3 Pin Assignment for Extended Connector .......................................................... 6
2.4 NuTiny-SDK-Mini58 PCB Placement ............................................................... 8
3 How to Start NuTiny -SDK-Mini58 on the Keil μVision® IDE ................................ 9
3.1 Downloading and Installing Keil μVision® IDE Software ......................................... 9
3.2 Downloading and Installing Nuvoton Nu-Link Driver ............................................. 9
3.3 Hardware Setup ........................................................................................ 9
3.4 Example Program...................................................................................... 9
NUTINY-SDK-MINI58 USER MANUAL
1 OVERVIEW
®
NuTiny-SDK-Mini58 is the specific development tool for NuMicro Mini58 series. User can use
NuTiny-SDK-Mini58 to develop and verify the application program easily.
NuTiny-SDK-Mini58 includes two portions. One is NuTiny-EVB-Mini58 and the other is Nu-Link-
Me. NuTiny-EVB-Mini58 is the evaluation board and Nu-Link-Me is its Debug Adaptor. Thus, user
does not need other additional ICE or debug equipment.
® ®
The NuMicro Mini58 series is pin-to-pin and function compatible with the NuMicro Mini51 series,
® ®
the 32-bit microcontroller (MCU) embedded with the ARM Cortex -M0 core. The Mini58 series
can bridge the gap and replace the cost equivalent to traditional 8- and 16-bit microcontroller by
32-bit performance and rich functions. The Mini58 series supports a wide range of applications
from low-end, price sensitive designs to computing-intensive ones and provides advanced high-
end features in economical products.
The Mini58 series can run up to 50 MHz which is faster than 24 MHz in Mini51 series, and
operate at a wide voltage range of 2.5V ~ 5.5V and temperature range of -40℃ ~ +105℃. For the
Mini58 series, the embedded program flash size upgrades from 16 Kbytes to 32 Kbytes and
SRAM upgrades from 2 Kbytes to 4 Kbytes. The Mini58 series also offers size configurable Data
Flash (shared with program flash), and 2 Kbytes flash for the ISP.
The Mini58 series has many high-performance peripheral functions, such as 22.1184 MHz
internal RC oscillator (±1% accuracy), I/O port with up to 30 pins, four 32-bit timers, two UARTs
2
with the RS485 function and IrDA function interface, one SPI interface, two I C interfaces, up to
three 16-bit PWM generators providing six channels, an 8-channel 10-bit ADC, Watchdog Timer,
Window Watchdog Timer, two Analog Comparators and a Brown-out Detector. All these
peripherals have been incorporated into the Mini58 series to reduce component count, board
space and system cost. Compared to the Mini51 series, the Mini58 series supports additional one
2
UART and one I C interface for better and more flexible connectivity applications.
Additionally, the Mini58 series is equipped with ISP (In-System Programming) and ICP (In-Circuit
Programming) functions, which allow the user to update the program memory without removing
the chip from the actual end product. The Mini58 series also supports In-Application-Programming
2 NUTINY-SDK-MINI58 INTRODUCTION
NuTiny-SDK-Mini58 uses the Mini58LDE as the target microcontroller. Figure 2-1 is NuTiny-SDK-
Mini58 for the Mini58 series, the left portion is called NuTiny-EVB-Mini58 and the right portion is
Debug Adaptor called Nu-Link-Me.
NuTiny-EVB-Mini58 is similar to other development boards. User can use it to develop and verify
applications to emulate the real behavior. The on-board chip covers Mini58 series features. The
NuTiny-EVB-Mini58 can be a real system controller to design user’s target systems.
Nu-Link-Me is a Debug Adaptor. The Nu-Link-Me Debug Adaptor connects your PC's USB port to
the user’s target system (via Serial Wired Debug Port) and allows user to program and debug
embedded programs on the target hardware. To use Nu-Link-Me Debug adaptor with IAR or Keil,
® ®
please refer to “Nuvoton NuMicro IAR ICE driver user manual “or “Nuvoton NuMicro Keil ICE
driver user manual” in detail. These two documents will be stored in the local hard disk when user
installs each driver. Nu-Link-Me also supports virtual COM port function. User can use Nu-Link-
Me as a USB to UART virtual COM port, which connects to on-board Mini58LDE UART0.
VCC
(J2)
Select VCC33
Model 1 Connect to PC DC 3.3V output DC 3.3V
(default)
DC 2.5 V ~ 5.5 V
Model 2 X X Voltage by J2 input
Input
JP4: Connector in target board (NuTiny-EVB-Mini58) for connecting with Nuvoton ICE
adaptor (Nu-Link-Me)
JP2: Connector in ICE adaptor (Nu-Link-Me) for connecting with a target board (for
example NuTiny-EVB-Mini58)
JP5, JP6, JP7 and JP8: Show all chip pins in NuTiny-EVB-Mini58
TP1: Show CLKO pin in Mini58LDE
TP2: Show LDO pin in Mini58LDE
SW3: Switch ON/OFF to enable or disable Nu-Link-Me virtual COM port function.
Switch
Function Descriptions
1 2 3 4
01 NC 25 P2.5,PWM0_CH3,UART1_TXD
P1.5,ADC_CH5,ACMP0_P0,UART1
02 26 P2.6,PWM0_CH4,ACMP1_O
_TXD
03 nRESET 27 NC
04 P3.0,ADC_CH6,ACMP1_N 28 NC
05 AVSS 29 P4.6,ICE_CLK,UART1_RXD
06 P5.4 30 P4.7,ICE_DAT,UART1_TXD
07 P3.1,ADC_CH7,ACMP1_P0 31 NC
P3.2,INT0,STADC,TM0_EXT,ACMP
08 32 P0.7,SPI0_CLK,PWM0_CH0
1_P1
P3.4,TM0_CNT_OUT,I2C0_SDA,AC
09 33 P0.6,SPI0_MISO,PWM0_CH1
MP1_P2
P3.5,TM1_CNT_OUT,I2C0_SCL,AC
10 34 P0.5,SPI0_MOSI,PWM0_CH4
MP1_P3
NUTINY-SDK-MINI58 USER MANUAL
11 NC 35 P0.4,SPI0_SS,PWM0_CH5
12 NC 36 NC
13 NC 37 P0.1,UART0_nRTS,UART0_RXD,SPI0_SS
14 P3.6,CLKO,TM1_EXT,ACMP0_O 38 P0.0,UART0_nCTS,UART0_TXD
P5.1,XT1_OUT,I2C1_SCL,UART0_
15 39 NC
RXD
P5.0,XT1_IN,I2C1_SDA,UART0_TX
16 40 NC
D
17 VSS 41 P5.3,ADC_CH0
18 LDO_CAP 42 VDD
19 P5.5 43 AVDD
20 P5.2,INT1 44 P1.0,ADC_CH1,ACMP0_P1
21 NC 45 P1.2,ADC_CH2,UART0_RXD,
ACMP0_P2,PWM0_CH0
P1.3,ADC_CH3,UART0_TXD,ACMP0_P3,
22 P2.2,PWM0_CH0,I2C1_SCL 46
PWM0_CH1
P1.4,ADC_CH4,ACMP0_N,UART1_RXD,
23 P2.3,PWM0_CH1,I2C1_SDA 47
PWM0_CH4
24 P2.4,PWM0_CH2,UART1_RXD 48 NC
Directory
2. Execute “GPIO_LED.uvproj”
3. Compiler
Directory
2. Execute “GPIO_LED.eww”
5 NUTINY-EVB-MINI58 SCHEMATIC
NUC_RST#
BUSY 1 VCC ICERST
TICERST
GREEN 2 1
ICE_Status ICE_TX
Tiny _TX
12M_O
GREEN PVSS ICE_AVDD ICE_RX
12M_I
Tiny _RX
VCC U1
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
12M_O R3 33 C1
20p
PVSS
VDD1
VSS1
XT1_In
INT1/PB15
CPP1/PC14
CPN1/PC15
CPP0/PC6
ADC7/PA7
ADC6/PA6
ADC/PA5
CPN0/PC7
STADC/TM0/PB8
/RESET
AVDD
XT1_Out
R4 X1
10K
12MHz
CPO1/PB13 PA4/ADC4
C2
3
4
5
CPO0/PB12
X32I
PA3/ADC3
PA2/ADC2
47
46
45
VCC 12M Oscillators
10uF/10V
2
6 X32O PA1/ADC1 44
I2C1SCL/PA11 PA0/ADC0
RESET 7
8
9
I2C1SDA/PA10
I2C0SCL/PA9
AVSS
ICE_CLK
43
42
41
ICE_CLK
NUC12SRE3DE ICE_DAT
ICELED 10 I2C0SDA/PA8 ICE_DAT 40 RRSET1 RTCK1 RTDA1
ISPLED 11 RX1/PB4 PA12/PWM0 39 100K 100K 100K
RED 12 TX1/PB5 PA13/PWM1 38 SW3
RTS1/PB6 PA14/PWM2 ADAVSS
GREEN 13 37
14 CTS1/PB7 PA15/PWM3 36 ICERST ICE_TX RXD
15 LDO PC8/SS10 35 ICECLK ICE_RX TXD
VCC
1
PB9/SS11/TM1
PC1/SPCLK0
SW DIP-4/SM
PC3/SDO00
PC2/SDI00
PB2/RTS0
PB3/CTS0
PB11/TM3
PC0/SS00
PB0/RX0
PB1/TX0
VCOM switch
VDD33
VBUS
PE5
D+
D-
VCC
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
5V VCC 3.3V
5V 3.3V N12
USB_D+
VBUS
JP1
USB_D-
VCOM_pin
1
RXD
TXD
ICE_DAT
USBVBUS
1
2 ICE_CLK
3 ICE_RST UP1 CP1
3
2
1
4 AMS1117_3.3v 10uF/10V
2
5 C6 CB1
NC
GND
OUT
OUT
JPR1
1u 0.1u
IN
USBVBUS PD1 1&2 (0 ohm)
DEBUG 1 2 N13
3
1
2
4
VCC D1 SS24A JP2
SS24A
power switch
1 2 VCC_connect
ICE_AVDD VCC ICEDAT 1 2
ICECLK 3 4
L2FERRITE BEAD USBVBUS 5 6
JP3 ICERST ICE_TX
7 8 ICE_RX Title
L3FERRITE BEAD DM 1 9 10
DP 2 Nu-Link-Me
NC
3
SWD connect
Size Document Number Rev
4 A4 1 3.0
ADAVSS NC
Date: Monday , February 09, 2015 Sheet 1 of 10
1
12MHz SW1 C8 C9 C10 C11 D12MO
TICERST D12MI D12MO
10uF/10V 0.1u 10uF/10V 0.1u AVDD
D12MI D12MI
C13 R12 0
2
AVDD
1
20p PUSH BOTTOM (B) J4 NC
3 1 LED ADAVSS
C14
LED
10uF/10V 4 2 L5
Power
2
Crystal Reset FERRITE BEAD
ADAVSS
ADAVSS
GND
VDD
GPIO1 RED VDD
LED 2 1 N2 R9
1K VDD VDD
POWER1GREEN
2 1 N1 R10
1K
LED
Title
SDK Circuit
Size Document Number Rev
A4 2 1.0
Date: Monday , February 09, 2015 Sheet 2 of 10
NUTINY-SDK-MINI58 USER MANUAL
TICEDAT
TICECLK
Off-page Connector
P[1:48]
P[1:48]
TICEDAT
P36
P35
P34
P33
P32
P31
P30
P29
P28
P27
P26
P25
TICECLK TICEDAT
TICERST TICECLK
Tiny _TX TICERST
Tiny _RX Tiny _TX
36
35
34
33
32
31
30
29
28
27
26
25
Tiny _RX
D12MO
P2.5/UART1_TXD/PWM3
P4.7/ICE_DAT/UART1_TXD
D12MO
P0.5/SPI_MOSI/PWM4
P0.6/SPI_MISO/PWM1
P2.6/PWM4/CMP1_O
P4.6/ICE_CLK/UART1_RXD
P0.4/SPI_SS/PWM5
P0.7/SPI_CLK/PWM0
NC
NC
NC
NC
AVDD D12MI
D12MI
AVDD
LED ADAVSS
LED
ADAVSS
GND
VDD
VDD
P37 37 24 P24
P38 38 P0.1/UART0_nRTS/UART0_RXD/SPI_SS P2.4/UART1_RXD/PWM2 23 P23
P39 39 P0.0/UART0_nCTS/UART0_TXD P2.3/PWM1/I2C1_SDA 22 P22
P40 40 NC P2.2/PWM0/I2C1_SCL 21 P21
P41 41 NC NC 20 P20
VDD P42 42 P5.3/ADC0 P5.2/INT1 19 P19
AVDD P43 43 VDD P5.5 18 P18 LDO
P44 44 AVDD LDO_CAP 17 P17
Tiny _RX P45 45 P1.0/ADC1/CMP0_P VSS 16 P16 D12MI
P1.2/ADC2/UART0_RXD/CMP0_P/PWM0 P5.0/XT1_IN/I2C1_SDA/UART0_TXD
P3.2/INT0/STADC/TM0_EXT/CMP1_P
Tiny _TX P46 46 15 P15 D12MO
P47 47 P1.3/ADC3/UART0_TXD/CMP0_P/PWM1 P5.1/XT1_OUT/I2C1_SCL/UART0_RXD 14 P14 CLKO
P48 48 P1.4/ADC4/UART1_RXD/CMP0_N/PWM4 P3.6/CMP0_O/CLKO/TM1_EXT 13 P13
NC NC
P1.5/ADC5/UART1_TX/CMP0_P
P3.4/TM0/I2C0_SDA/CMP1_P
P3.5/TM1/I2C0_SCL/CMP1_P
P3.1/ADC7/CMP1_P
P3.0/ADC6/CMP1_N
LDO
1
nRESET
C15
AVSS
P5.4
1uF/10V NC
NC
NC
2
Power Capacitance U2
1
2
3
4
5
6
7
8
9
10
11
12
MINI58LDE
P10
P11
P12
TP1 NC
P1
P2
P3
P4
P5
P6
P7
P8
P9
CLKO
TICERST
Test Pin
ADAVSS
TP2 NC
LDO
LED
JP4 VDD
1 2 TICEDAT VCC_connect
3 4 TICECLK
Tiny _TX 5 6 TICERST
Tiny _RX 7 8 Title
9 10
NuTiny-SDK-MINI58
Size Document Number Rev
Debug Interface & Off Page A4 <Doc> 1.0
JP6
JP5
P1 P2 P13 P14
P3 1 2 P4 P15 1 2 P16
P5 3 4 P6 P17 3 4 P18
P7 5 6 P8 P19 5 6 P20
P9 7 8 P10 P21 7 8 P22
P11 9 10 P12 P23 9 10 P24
11 12 11 12
NC NC
JP7
JP8
P37 P38 P25 P26
P39 1 2 P40 P27 1 2 P28
P41 3 4 P42 P29 3 4 P30
P43 5 6 P44 P31 5 6 P32
P45 7 8 P46 P33 7 8 P34
P47 9 10 P48 P35 9 10 P36
11 12 11 12
NC NC
NUTINY-SDK-MINI58 USER MANUAL
Title
GPIO for 48 pin
Size Document Number Rev
A4 <Doc>
1.0
Date: Monday , February 09, 2015 Sheet 4 of 10
®
Step1 Visit the Nuvoton NuMicro website: http://www.nuvoton.com/NuMicro.
Step2
Step3
Click here to
download
NUTINY-SDK-MINI58 USER MANUAL
the file.
Step4
® ®
Step5 Download the NuMicro Keil μVision IDE driver.
®
Step1 Visit the Nuvoton NuMicro website: http://www.nuvoton.com/NuMicro.
Step2
Step3
NUTINY-SDK-MINI58 USER MANUAL
Click here to
download
Step4
the file.
®
Step5 Download the NuMicro IAR EWARM driver.
®
Step Visit the Nuvoton NuMicro website: http://www.nuvoton.com/NuMicro.
1
Step ®
Download the NuMicro Mini58 Series CMSIS BSP.
4
NUTINY-SDK-MINI58 USER MANUAL
7 REVISION HISTORY
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.