You are on page 1of 36

NuMaker-ML51PC

1T 8051
8-bit Microcontroller

NuMaker-ML51PC
User Manual
NuMicro® 8051 Series

M
NUMAKER-ML51PC USER MANUAL
N -m
The information described in this document is the exclusive intellectual property of

U
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.


www.nuvoton.com

Jun 04, 2019 Page 1 of 36 Rev 1.01


NuMaker-ML51PC

Table of Contents
1. OVERVIEW ...................................................................................................... 6
1.1. NuMaker-ML51PC Features ........................................................................................ 7
2. NUMAKER-ML51PC OVERVIEW.................................................................... 8
2.1. Front View ....................................................................................................................... 8
2.2. Rear View ....................................................................................................................... 9
2.3. Arduino UNO Compatible Extension Connectors................................................... 10
2.4. Pin Assignment for Extension Connectors .............................................................. 12
2.5. System Configuration.................................................................................................. 14
VIN Power Source .......................................................................................................... 14
5 V Power Sources ........................................................................................................ 14
3.3 V Power Sources ..................................................................................................... 14
1.8V Power Sources ...................................................................................................... 14
Power Connectors .......................................................................................................... 15
USB Connectors ............................................................................................................. 15
Power Switches .............................................................................................................. 15
Power Supply Models .................................................................................................... 16
External Reference Voltage Connector ....................................................................... 19
.....................................................................................19
..................................................................................19
...............................................................................................19
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

...........................................................................................................20
2.6. Nu-Link2-Me ................................................................................................................. 20
2.7. PCB Placement ........................................................................................................... 21
3. QUICK START ............................................................................................... 22
3.1. Toolchains Supporting ................................................................................................ 22
3.2. Nuvoton Nu-Link Driver Installation .......................................................................... 22
3.3. BSP Firmware Download ........................................................................................... 24
3.4. Hardware Setup ........................................................................................................... 24
3.5. Find the Example Project ........................................................................................... 26
3.6. Execute the Project under Toolchains ...................................................................... 27
Keil MDK .......................................................................................................................... 27
IAR EW8051 ................................................................................................................... 29
4. NUMAKER-ML51PC SCHEMATICS ............................................................. 32
4.1. Nu-Link2-Me ................................................................................................................. 32
4.2. ML51 Platform .............................................................................................................. 33
4.3. Extension Connector................................................................................................... 34
Jun 04, 2019 Page 2 of 36 Rev 1.01
NuMaker-ML51PC

5. REVISION HISTORY ..................................................................................... 35

M
NUMAKER-ML51PC USER MANUAL
N -m
U

Jun 04, 2019 Page 3 of 36 Rev 1.01


NuMaker-ML51PC

List of Figures
Figure 1.1-1 NuMaker-ML51PC Board ............................................................................................ 6
Figure 2.1-1 Front View of NuMaker-ML51PC................................................................................. 8
Figure 2.2-1 Rear View of NuMaker-ML51PC ................................................................................. 9
Figure 2.3-1 Arduino UNO Compatible Extension Connectors ...................................................... 10
Figure 2.4-1 ML51PC0AE Extension Connectors.......................................................................... 12
Figure 2.5-1 External Power Supply Sources on Nu-Link2-Me ..................................................... 16
Figure 2.5-2 External Power Supply Sources on ML51 Platform .................................................. 17
Figure 2.5-3 Separate the Nu-Link2-Me from NuMaker-ML51PC ................................................. 18
Figure 2.5-4 Wiring between Ammeter Connector and Ammeter .................................................. 19
Figure 2.7-1 Front Placement ........................................................................................................ 21
Figure 2.7-2 Rear Placement ......................................................................................................... 21
Figure 3.2-1 Nu-Link USB Driver Installation Setup....................................................................... 22
Figure 3.2-2 Nu-Link USB Driver Installation ................................................................................. 23
Figure 3.4-1 Open VCOM Function ............................................................................................... 24
Figure 3.4-2 ICE USB Connector ................................................................................................... 24
Figure 3.4-3 Device Manger........................................................................................................... 25
Figure 3.4-4 PuTTY Session Setting ............................................................................................. 25
Figure 3-5 Template Project Folder Path ....................................................................................... 26
Figure 3.6-1 Project File Migrate to Version 5 Format ................................................................... 27
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Figure 3.6-2 Debugger Setting in Options Window........................................................................ 27


Figure 3.6-3 Programming Setting in Options Window .................................................................. 28
Figure 3.6-4 Compile and Download the Project ........................................................................... 28
Figure 3.6-5 Keil MDK Debug Mode .............................................................................................. 29
Figure 3.6-6 Debug Message on Serial Port Terminal Windows ................................................... 29
Figure 3.6-7 IAR EW8051 Window ................................................................................................ 30
Figure 3.6-8 Compile and Download the Project ........................................................................... 30
Figure 3.6-9 IAR EW8051 Debug Mode ........................................................................................ 31
Figure 3.6-10 Debug Message on Serial Port Terminal Windows ................................................. 31
Figure 4.1-1 Nu-Link2-Me Circuit ................................................................................................... 32
Figure 4.2-1 ML51 Platform Circuit ................................................................................................ 33
Figure 4.3-1 Extension Connectors Circuit .................................................................................... 34

Jun 04, 2019 Page 4 of 36 Rev 1.01


NuMaker-ML51PC

List of Tables
Table 2.3-1 Arduino UNO Extension Connectors and ML51PC0AE Mapping GPIO List ............. 11
Table 2.4-1 ML51PC0AE Full-pin Extension Connectors and GPIO Function List ....................... 13
Table 2.5-1 Vin Power Source ....................................................................................................... 14
Table 2.5-2 5V Power Sources ...................................................................................................... 14
Table 2.5-3 3.3 V Power Sources .................................................................................................. 14
Table 2.5-4 1.8V Power Sources ................................................................................................... 15
Table 2.5-5 Power Connectors ...................................................................................................... 15
Table 2.5-6 USB Connectors ......................................................................................................... 15
Table 2.5-7 Power Switches .......................................................................................................... 15
Table 2.5-8 Supply External Power through Nu-Link2-Me ............................................................ 16
Table 2.5-9 Supply External Power for ML51 platform .................................................................. 18
Table 2.5-10 External Reference Voltage Connector .................................................................... 19
Table 2.5-11 Ammeter Connector .................................................................................................. 19
Table 2.5-12 Extension Connectors ............................................................................................... 19
Table 2.5-13 Push-Buttons ............................................................................................................ 20
Table 2.5-14 LEDs ......................................................................................................................... 20
Table 2.6-1 VCOM Function of Nu-Link2-Me................................................................................. 20

M
NUMAKER-ML51PC USER MANUAL
N -m
U

Jun 04, 2019 Page 5 of 36 Rev 1.01


NuMaker-ML51PC

1. OVERVIEW
This user manual is aimed to give users a fast introduction to the use of NuMaker-ML51PC board.
The NuMaker-ML51PC consists of two parts, a ML51 platform and an on-board Nu-Link2-Me
debugger and programmer. The NuMaker-ML51PC allows users to quickly develop and easily
program and debug application.
The NuMaker-ML51PC offers ML51PC0AE full pins extension connectors, Arduino UNO compatible
extension connectors and diversified power supply option. It is an easy-to-develop platform for user to
expand the functionality and build the applications. The NuMaker-ML51PC also provides an ammeter
connector, allows user to monitor the microcontroller’s power consumption during development.
The Nu-Link2-Me is a debugger and programmer that support on-line programming and debugging
through OCD interface. The on-board 16 Mbit SPI Flash allows it able to off-line programming the
target microcontroller. Nu-Link2-Me provides virtual COM port (VCOM) function to print out messages
on PC. Nu-Link2-Me can be separated from NuMaker-ML51PC, allowing user to use as a mass
production programming tool.
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Figure 1.1-1 NuMaker-ML51PC Board

Jun 04, 2019 Page 6 of 36 Rev 1.01


NuMaker-ML51PC

1.1. NuMaker-ML51PC Features


 NuMicro® ML51PC0AE used as main microcontroller with function downward compatible
with:
 ML51EC0AE
 ML51UC0AE
 ML51TC0AE
 ML51PC0AE full pins extension connectors
 Arduino UNO compatible extension connectors
 Ammeter connector for measuring the microcontroller’s power consumption
 Fixable board power supply:
 External VDD power connector
 Arduino UNO compatible extension connector Vin
 USB power connector on ML51 platform
 ICE USB connector on Nu-Link2-Me
 On-board Nu-Link2-Me debugger and programmer:
 Debug through OCD interface
 On-line/off-line programming
 Virtual COM port function

M
NUMAKER-ML51PC USER MANUAL
N -m
U

Jun 04, 2019 Page 7 of 36 Rev 1.01


NuMaker-ML51PC

2. NUMAKER-ML51PC OVERVIEW

2.1. Front View

VDD Switch Arduino UNO Compatible Extension Connector

Reset Button
External VDD Connector
Ammeter VCOM Switch

USB Power Connector ICE USB Connector


ICE Chip: M48SSIDAE
Power LED ICE Status LED
PB14 LED Off-line Program Button
External VSS Connector
Nu-Link2-Me

ML51 Platform Target Chip: ML51PC0AE Target Chip Extension Connector

Figure 2.1-1 Front View of NuMaker-ML51PC

Figure 2.1-1 shows the main components and connectors from the front side of NuMaker-ML51PC.
The following lists components and connectors from the front view:
 Target Chip: ML51PC0AE(U1)
 USB Power Connector(J2)
 Arduino UNO Compatible Extension Connectors (NU1, NU2, NU3, NU4)
 ML51 Extension Connectors (JP3, JP4, JP5 and JP6)
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

 External VDD Power Connector(JP1)


 External VSS Power Connector(JP2)
 VDD Switch(SW2)
 Ammeter Connector(AMMETER)
 Reset Button(SW1)
 Power LED and PB14 LED(LEDG1 and LEDR1)
 Nu-Link2-Me
 VCOM Switch
 ICE Chip: M48SSIDAE(ICEU2)
 ICE USB Connector(ICEJ3)
 ICE Status LED(ICES0,ICES1, ICES2, ICES3)
 Off-line Program Button(ICESW1)

Jun 04, 2019 Page 8 of 36 Rev 1.01


NuMaker-ML51PC

2.2. Rear View


Figure 2.2-1 shows the main components and connectors from the rear side of NuMaker-ML51PC.
The following lists components and connectors from the rear view:
 Nu-Link2-Me
 MCUVCC Power Switch (ICEJPR1)
 ICEVCC Power Switch (ICEJPR2)

ICEVCC Power Switch

MCUVCC Power Switch

Figure 2.2-1 Rear View of NuMaker-ML51PC

M
NUMAKER-ML51PC USER MANUAL
N -m
U

Jun 04, 2019 Page 9 of 36 Rev 1.01


NuMaker-ML51PC

2.3. Arduino UNO Compatible Extension Connectors


Figure 2.3-1 shows the Arduino UNO compatible extension connectors.

UART1_TXD PWM0_CH2 PB.2 D0 A5 PB.1 ADC0_CH1 I2C1_SCL UART2_TXD


UART1_RXD PWM0_CH3 PB.3 D1 A4 PB.0 ADC0_CH0 I2C1_SDA UART2_RXD
I2C1_SCL PA.12 D2 A3 PB.4 ADC0_CH4
I2C1_SDA PA.13 D3 A2 PB.5 ADC0_CH5
UART0_TXD PA.14 D4 A1 PB.14 ADC0_CH14
UART0_RXD PA.15 D5 A0 PB.15 ADC0_CH15
NC D6
NC D7 VIN
NC D8 VSS
NC D9 VSS
SPI0_SS PWM0_CH2 PA.3 D10 5V
SPI0_MOSI PWM0_CH5 PA.0 D11 3V
SPI0_MISO PWM0_CH4 PA.1 D12 RST
SPI0_CLK PWM0_CH3 PA.2 D13 IOREF VDD
VSS VSS NC
AVDD VREF
UART2_TXD I2C0_SCL PC.0 SDA
UART2_RXD I2C0_SDA PC.1 SCL
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Figure 2.3-1 Arduino UNO Compatible Extension Connectors

Jun 04, 2019 Page 10 of 36 Rev 1.01


NuMaker-ML51PC

NuMaker-ML51PC NuMaker-ML51PC
Header Header
Compatible to Compatible to
GPIO Pin of ML51 GPIO Pin of ML51
Arduino UNO Arduino UNO

NU3.1 D0 P2.2 NU2.6 A5 P2.1

NU3.2 D1 P2.3 NU2.5 A4 P2.0


N
NU3.3 D2 P1.4 NU2.4 A3 P2.4
N U
NU3.4 D3 P1.5 NU2.3 A2 P2.5
U 2
NU3.5 D4 P1.6 NU2.2 A1 P3.2
4
NU3.6 D5 P1.7 NU2.1 A0 P3.3

NU3.7 D6 NC NU1.8 VIN

NU3.8 D7 NC NU1.7 VSS

NU4.1 D8 NC NU1.6 VSS -


N
NU4.2 D9 NC NU1.5 5V
U
NU4.3 D10 P0.3 NU1.4 3V
1
NU4.4 D11 P0.0 NU1.3 RST nRESET
N
NU4.5 D12 P0.1 NU1.2 IOREF VDD
U
NU4.6 D13 P0.2 NU1.1 NC -
3
NU4.7 VSS VSS

NU4.8 VREF NC

M
NUMAKER-ML51PC USER MANUAL
NU4.9 SDA P4.0

N -m
NU4.10 SCL P4.1

Table 2.3-1 Arduino UNO Extension Connectors and ML51PC0AE Mapping GPIO List

Jun 04, 2019 Page 11 of 36 Rev 1.01


NuMaker-ML51PC

2.4. Pin Assignment for Extension Connectors


The NuMaker-ML51PC provides the ML51PC0AE target chip onboard and full pins extension
connectors (JP3, JP4, JP5 and JP6). The Figure 2.4-1 shows the ML51PC0AE extension connectors.

JP5 Pin9 ~ Pin18 Pin1 ~ Pin8 JP3

JP4 Pin19 ~ Pin24 Pin25 ~ Pin32 JP6


Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Figure 2.4-1 ML51PC0AE Extension Connectors

Jun 04, 2019 Page 12 of 36 Rev 1.01


NuMaker-ML51PC

ML51PC0AE
Header
Pin No. Function

JP3.1 JP3.2 1 P2.5/ADC_CH0/ACMP0_P0/ACMP1_P0/I2C0_SCL/PWM0_CH0/UART2_TXD/T0/INT0

JP3.3 JP3.4 2 P2.4/ADC_CH1/ACMP0_N0/I2C0_SDA/PWM0_CH1/UART2_RXD/T1/INT1

JP3.5 JP3.6 3 P2.3/ADC_CH2/ACMP0_P1/ACMP1_P1/I2C1_SCL/UART1_TXD/PWM0_CH2/PWM0_BRAKE

JP3.7 JP3.8 4 P2.2/ADC_CH3/ACMP1_N0/I2C1_SDA/UART1_RXD/PWM0_CH3


JP3
JP3.9 JP3.10 5 P2.1/ADC_CH4/ACMP0_P2/ACMP1_P2/UART2_TXD/I2C1_SCL/PWM0_CH4/PWM0_BRAKE

JP3.11 JP3.12 6 P2.0/ADC_CH5/ACMP0_N1/UART2_RXD/I2C1_SDA/PWM0_CH5/PWM0_BRAKE

JP3.13 JP3.14 7 P5.5/UART2_RXD/PWM0_CH0/X32_IN/STADC

JP3.15 JP3.16 8 P5.4/UART2_TXD/PWM0_CH1/X32_OUT

JP5.1 JP5.2 9 P5.3/UART0_TXD/I2C0_SCL/XT1_IN

JP5.3 JP5.4 10 P5.2/UART0_RXD/I2C0_SDA/XT1_OUT

JP5.5 JP5.6 11 P0.3/SPI0_SS/SPI1_SS/UART1_TXD/I2C1_SCL/STADC/PWM0_CH2

JP5.7 JP5.8 12 P0.2/SPI0_CLK/SPI1_CLK/UART1_RXD/I2C1_SDA/PWM0_CH3


JP5
JP5.9 JP5.10 13 P0.1/SPI0_MISO/SPI1_MISO/UART0_TXD/PWM0_CH4

JP5.11 JP5.12 14 P0.0/SPI0_MOSI/SPI1_MOSI/UART0_RXD/PWM0_CH5

JP5.13 JP5.14 15 P5.6/PWM0_BRAKE/PWM0_CH1/CLKO

JP5.15 JP5.16 16 RST

JP4.1 JP4.2 17 P5.0/UART1_TXD/I2C1_SCL/UART0_TXD/ICE_DAT

M
NUMAKER-ML51PC USER MANUAL
JP4.3 JP4.4 18 P5.1/UART1_RXD/I2C1_SDA/UART0_RXD/ICE_CLK

JP4.5 JP4.6 19 P4.1/UART2_TXD/I2C0_SCL/ACMP0_O

N -m
JP4.7 JP4.8 20 P4.0/UART2_RXD/I2C0_SDA/ACMP1_O/INT1
JP4
JP4.9 JP4.10 21 P1.4/I2C1_SCL

JP4.11 JP4.12 22 P1.5/I2C1_SDA

JP4.13 JP4.14 23 P1.6/UART0_TXD

U
JP4.15 JP4.16 24 P1.7/UART0_RXD

JP6.1 JP6.2 25 VSS

JP6.3 JP6.4 26 P4.6/PWM0_CH0/T0/CLKO/INT0

JP6.5 JP6.6 27 VDD

JP6.7 JP6.8 28 P3.3/SPI1_SS/IC0/PWM0_BRAKE


JP6
JP6.9 JP6.10 29 P3.2/ADC_CH7/ACMP1_N1/SPI1_CLK/IC1/CLKO

JP6.11 JP6.12 30 P3.1/ADC_CH6/ACMP0_P3/ACMP1_P3/SPI1_MISO/UART0_TXD/IC2

JP6.13 JP6.14 31 P3.0/SPI1_MOSI/UART0_RXD/IC0

JP6.15 JP6.16 32 VREF

Table 2.4-1 ML51PC0AE Full-pin Extension Connectors and GPIO Function List

Jun 04, 2019 Page 13 of 36 Rev 1.01


NuMaker-ML51PC

2.5. System Configuration

VIN Power Source


Table 2.5-1 presents the Vin power source.

Net Name in
Connector Comment
Schematic

Board external power source, with voltage range from 7


V to 12 V. The voltage regulator UP2 converts the NU1
NU1 pin8 NU1_VIN
pin8 input voltage to 5 V and supplies it to NuMaker-
ML51PC.

Table 2.5-1 Vin Power Source

5 V Power Sources
Table 2.5-2 presents the 5 V power sources.

Net Name in
Connector Comment
Schematic

ICE USB connector supplies 5 V power from PC to


ICEJ3 USB_HS_VBUS
ML51 platform and Nu-Link2-Me.

USB connector on NuMaker-ML51PC supplies 5 V


J2 USB_VBUS
power from PC to ML51 platform and Nu-Link2-Me.

ICEJ3, J2 or NU1 pin8 supplies 5 V power to NU1 pin5.


NU1 pin5 NU1_5VCC NU1 pin5 supplies 5 V power to target chip or Arduino
adapter board.
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Table 2.5-2 5V Power Sources

3.3 V Power Sources


Table 2.5-3 presents the 3.3 V power sources.

Voltage Regulator 5V Source Comment

ICEUP1 converts USB_HS_VBUS to 3.3 V and supplies


ICEUP1 USB_HS_VBUS
3.3V to ML51 platform or ICE chip.

UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V


UP1 USB_VBUS to ML51 platform.
Note: SW2.2(NU1 3VCC) should be switched to ON.

UP1 converts NU1_5VCC to 3.3 V and supplies 3.3 V to


UP1 NU1_5VCC ML51 platform.
Note: SW2.2(NU1 3VCC) should be switched to ON.

Table 2.5-3 3.3 V Power Sources

1.8V Power Sources


Table 2.5-4 presents the 1.8 V power source.

Jun 04, 2019 Page 14 of 36 Rev 1.01


NuMaker-ML51PC

Voltage Regular 5V Source Comment

ICEUP2 converts USB_HS_VBUS to 1.8V and supplies


ICEUP2 USB_HS_VBUS
1.8V to ML51 platform or ICE chip.

Table 2.5-4 1.8V Power Sources

Power Connectors
Table 2.5-5 presents the power connectors.

Connector Comment

JP1 VDD (1.8 V ~ 3.6 V) connector on the NuMaker-ML51PC.

JP2 VSS connector on the NuMaker-ML51PC.

Table 2.5-5 Power Connectors

USB Connectors
Table 2.5-6 presents the USB connectors.

Connector Comment

ICE USB connector on Nu-Link2-Me for power supply, debugging and


ICEJ3
programming from PC.

J2 USB power connector on NuMaker-ML51PC for power supply.

Table 2.5-6 USB Connectors

M
NUMAKER-ML51PC USER MANUAL
Power Switches

N -m
Table 2.5-7 presents the power switches.

Switch Comment

ICEJPR1 Configures the target chip operating voltage at 1.8 V / 3.3 V / 5 V.

ICEJPR2 Configures the ICE chip operating voltage at 1.8 V / 3.3 V.

U
SW2 Configures the target chip operating voltage at 3.3 V / 5 V.

Table 2.5-7 Power Switches

Jun 04, 2019 Page 15 of 36 Rev 1.01


NuMaker-ML51PC

Power Supply Models

External Power Supply through Nu-Link2-Me to Target Chip


The external power supply source on Nu-Link2-Me is shown in Figure 2.5-1.

ICE USB Connector (ICEJ3)

Nu-Link2-Me

Figure 2.5-1 External Power Supply Sources on Nu-Link2-Me

To use ICEJ3 as external power supply source with Nu-Link2-Me, please follow the below steps:
1. Solder the resistor on ICEJPR1 (MCUVCC) depends on the target chip operating voltage.
2. Solder the resistor on ICEJPR2 (ICEVCC) depends on the ICE chip operating voltage.
3. Switch the SW2 to OFF.
4. Connect the external power supply to JP1.
Table 2.5-8 presents all power models when supplies external power through Nu-Link2-Me. The Nu-
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Link2-Me external power sources are highlighted in yellow.


Target ICEJPR1 ICEJPR2 ICE
SW2
Model Chip ICEJ3 (MCUVCC) (ICEVCC) Chip J2 Vin JP1
Selection
Voltage Selection [1] Selection [2] Voltage

Connect 1.8 V
1 1.8 V 1.8 V 1.8 V 1.8 V Off Ignore Ignore
to PC output
Connect 3.3 V 3.3 V
2 3.3 V 3.3 V (default) 3.3 V Off Ignore Ignore
to PC (default) output
Connect 3.3 V 5V
3 5V 5V 3.3 V Off Ignore Ignore
to PC (default) output
X: Unused.
Note:
1. 0 Ω should be soldered between ICEJPR1’s MCUVCC and 1.8 V / 3.3 V / 5 V.
2. 0 Ω should be soldered between ICEJPR2’s ICEVCC and 1.8 V / 3.3 V.

Table 2.5-8 Supply External Power through Nu-Link2-Me

Jun 04, 2019 Page 16 of 36 Rev 1.01


NuMaker-ML51PC

External Power Supply through ML51 platform to Target Chip


The external power supply sources on ML51 platform are shown in Figure 2.5-2.

External VDD Connector (JP1)

USB Power Connector (J2)

External VSS Connector (JP2)

NU1 pin8 (Vin)

Figure 2.5-2 External Power Supply Sources on ML51 Platform

To use Vin or J2 as external power supply source, please follow the below steps:
1. Switch the SW2 depends on the target chip operating voltage.
2. Remove the resistor on ICEJPR1 (MCUVCC).
3. Solder the resistor on ICEJPR2 (ICEVCC) depends on the ICE chip operating voltage.
4. Connect the external power supply to Vin or J2.

M
NUMAKER-ML51PC USER MANUAL
To use JP1 as external power supply source, please follow the below steps:
1. Switch the SW2 to OFF.

N -m
2. Remove the resistor on ICEJPR1 (MCUVCC).
3. Solder the resistor on ICEJPR2 (ICEVCC) depends on the ICE chip operating voltage.
4. Connect ICEJ3 to PC.
5. Connect the external power supply to JP1.

U
To use Vin or J2 as external power supply source with Nu-Link2-Me separated from NuMaker-
ML51PC, please follow the below steps:
1. Switch the SW2 depends on the target chip operating voltage.
2. Separate the Nu-Link2-Me from NuMaker-ML51PC.
3. Connect the external power supply to Vin or J2.

To use JP1 as external power supply source with Nu-Link2-Me separated from NuMaker-ML51PC,
please follow the below steps:
1. Switch the SW2 to OFF.
2. Separate the Nu-Link2-Me from NuMaker-ML51PC.

Jun 04, 2019 Page 17 of 36 Rev 1.01


NuMaker-ML51PC

3. Connect the external power supply to JP1.

"
External VDD Connector (JP1)

USB Power Connector (J2)

External VSS Connector (JP2) "


Separate Nu-Link2-Me

NU1 pin8 (Vin)

Figure 2.5-3 Separate the Nu-Link2-Me from NuMaker-ML51PC

Table 2.5-9 presents all power models when supplies external power through ML51 platform. The
ML51 platform external power sources are highlighted in yellow.
ICEJPR1 ICEJPR2
Target Chip SW2 ICE Chip
Model Vin [1] J2 ICEJ3 JP1 (MCUVCC) (ICEVCC)
Voltage Selection Voltage [4]
Selection [2] Selection [3]

7 V ~ 12 V NU1 Remove
4 3.3 V X Ignore 3.3 V output 3.3 V 3.3 V
Input 3VCC resistor

Connect NU1 Remove


5 3.3 V X Ignore 3.3 V output 3.3 V 3.3 V
to PC 3VCC resistor

7 V ~ 12 V NU1 Remove
6 5V X Ignore 5 V output 3.3 V 3.3 V
Input 5VCC resistor

Connect Ignore NU1 Remove


7 5V X 5 V output 3.3 V 3.3 V
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

to PC 5VCC resistor

Connect to DC Input Remove


8 1.8 V ~ 3.6 V Ignore [5] Ignore [5] PC OFF 1.8 V / 3.3 V 1.8 V / 3.3 V
1.8 V ~ 3.6 V resistor

Nu-Link2-Me DC Input
9 1.8 V ~ 3.6 V Ignore [5] Ignore [5] removed OFF X X X
1.8 V ~ 3.6 V

X: Unused.
Note:
1. The Vin input voltage will be converted by voltage regulator UP2 to 5 V.
2. 0Ω should be removed from ICEJPR1’s MCUVCC and 1.8 V / 3.3 V / 5 V.
3. 0Ω should be soldered between ICEJPR2’s ICEVCC and 1.8 V / 3.3 V.
4. The ICE chip voltage should be close to the target chip voltage.
5. JP1 external power input only provides voltage to target chip. Supply external power to Vin or J2 can provide
5V to NU1 pin5 (5V) and 3.3V to NU1 pin4 (3VCC).

Table 2.5-9 Supply External Power for ML51 platform

Jun 04, 2019 Page 18 of 36 Rev 1.01


NuMaker-ML51PC

External Reference Voltage Connector


Table 2.5-11 presents the external reference voltage connector.

Connector Comment

Connector for user to easily connect to the external reference voltage pin
VREF1
of the target chip. User needs to remove the L5 ferrite bead.

Table 2.5-10 External Reference Voltage Connector

Ammeter Connector
Table 2.5-11 presents the ammeter connector.

Connector Comment

Connector for user to easily measure the target chip power consumption.
AMMETER
User needs to remove the R16 resistor.

Table 2.5-11 Ammeter Connector

Remove the R16 Resistor

M
NUMAKER-ML51PC USER MANUAL
N -m
Figure 2.5-4 Wiring between Ammeter Connector and Ammeter

Extension Connectors

U
Table 2.5-12 presents the extension connectors.

Connector Comment

JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-ML51PC.

NU1, NU2, NU3 and NU4 Arduino UNO compatible pins on the NuMaker-ML51PC.

Table 2.5-12 Extension Connectors

Push-Buttons
Table 2.5-13 presents the push-buttons.

Jun 04, 2019 Page 19 of 36 Rev 1.01


NuMaker-ML51PC

Component Comment

ICESW1 Off-line program button to start off-line programming the target chip.

SW1 Reset button to reset the target chip.

Table 2.5-13 Push-Buttons

LEDs
Table 2.5-14 presents the LEDs.

Component Comment

Power LED The power LED indicates that the NuMaker-ML51PC is powered.

PB14 LED The LED which is connected to the target chip PB.14.

ICES0, ICES1, ICES2


Nu-Link2-Me status LED.
and ICES3

Table 2.5-14 LEDs

2.6. Nu-Link2-Me
The Nu-Link2-Me is a debugger and programmer that supports on-line programming and debugging
through OCDinterface. The on-board 16 Mbit SPI Flash allows it to off-line program the target
microcontroller. Additionally, the Nu-Link2-Me provides virtual COM port (VCOM) function to print out
messages on PC. Table 2.6-1 presents how to set the VCOM function by ICESW2.

ICESW2

Pin Function Comment


Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

On: Connect target chip PB.13 (UART0_TXD) to Nu-Link2-Me.


1 TXD
Off: Disconnect target chip PB.13 (UART0_TXD) to Nu-Link2-Me.

On: Connect target chip PB.12 (UART0_RXD) to Nu-Link2-Me.


2 RXD
Off: Disconnect target chip PB.12 (UART0_RXD) to Nu-Link2-Me.

Note: Pin 3 and 4 is unused.

Table 2.6-1 VCOM Function of Nu-Link2-Me

Jun 04, 2019 Page 20 of 36 Rev 1.01


NuMaker-ML51PC

2.7. PCB Placement


Figure 2.7-1 and Figure 2.7-2 show the front and rear placement of NuMaker-ML51PC.

Figure 2.7-1 Front Placement

M
NUMAKER-ML51PC USER MANUAL
N -m
U
Figure 2.7-2 Rear Placement

Jun 04, 2019 Page 21 of 36 Rev 1.01


NuMaker-ML51PC

3. QUICK START

3.1. Toolchains Supporting


Install the preferred toolchain. Please make sure at least one of the toolchains has been installed.
 KEIL C51
 IAR EW8051

3.2. Nuvoton Nu-Link Driver Installation


Download and install the latest Nuvoton Nu-Link Driver. Please install the Nu-Link USB Driver as well
at the end of the installation.
 Download and install Nu-Link_Keil_Driver when using Keil C51.
 Download and install Nu-Link_IAR_Driver when using IAR EW8051.
Please install the Nu-Link USB Driver as well at the end of the installation. The installation is
presented in Figure 3.2-1 and Figure 3.2-2.
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Figure 3.2-1 Nu-Link USB Driver Installation Setup

Jun 04, 2019 Page 22 of 36 Rev 1.01


NuMaker-ML51PC

M
NUMAKER-ML51PC USER MANUAL
N -m
U

Figure 3.2-2 Nu-Link USB Driver Installation


Jun 04, 2019 Page 23 of 36 Rev 1.01
NuMaker-ML51PC

3.3. BSP Firmware Download


Download and unzip the Board Support Package (BSP).
 Download and unzip ML51_Series_BSP_Keil when using Keil C51.
 Download and unzip ML51_Series_BSP_IAR when using IAR EW8051.

3.4. Hardware Setup


1. Open the virtual COM (VCOM) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to
ON.

Figure 3.4-1 Open VCOM Function

2. Connect the ICE USB connector shown in Figure 3.4-2 to the PC USB port through USB cable.
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Figure 3.4-2 ICE USB Connector

3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 3.4-3.

Jun 04, 2019 Page 24 of 36 Rev 1.01


NuMaker-ML51PC

Figure 3.4-3 Device Manger

4. Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to
115200. Figure 3.4-4 presents the PuTTY session setting.

M
NUMAKER-ML51PC USER MANUAL
N -m
U
Figure 3.4-4 PuTTY Session Setting

Jun 04, 2019 Page 25 of 36 Rev 1.01


NuMaker-ML51PC

3.5. Find the Example Project


Use the “Template” project as an example. The project can be found under the BSP folder as shown:
 ML51_Series_BSP_Keil_V1.XX.XXX
 SampleCode
 Template
 Keil
 IAR

Figure 3-5 Template Project Folder Path


Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

Jun 04, 2019 Page 26 of 36 Rev 1.01


NuMaker-ML51PC

3.6. Execute the Project under Toolchains


Open and execute the project under the toolchain. The section 3.2, 3.7.2 describe the steps of
executing project in Keil PK51, IAR EW8051 respectively.

Keil MDK
This section provides steps to beginners on how to run a project by using Keil PK51.
1. Double click the “Template.uvproj” to open the project.

Figure 3.6-1 Project File Migrate to Version 5 Format

2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 3.6-2 and Figure
3.6-3.
Note: If the dropdown menu in Figure 3.6-2 does not contain “Nuvoton Nu-Link Debugger” item,

M
NUMAKER-ML51PC USER MANUAL
please rework section 0.

N -m
U

Figure 3.6-2 Debugger Setting in Options Window


Jun 04, 2019 Page 27 of 36 Rev 1.01
NuMaker-ML51PC

Figure 3.6-3 Programming Setting in Options Window

3. Rebuild all target files. After successfully compile the project, download code to the flash memory.
Click “Start/Stop Debug Section” button can enter debug mode.

4
1 3
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

1. Rebuild
2. Successfully compile
3. Download
4. Start/Stop Debug

Figure 3.6-4 Compile and Download the Project

4. Figure 3.6-5 shows the debug mode under Keil MDK. Click “Run” and the debug message will be
printed out as shown in Figure 3.6-6. User can debug the project under debug mode by checking

Jun 04, 2019 Page 28 of 36 Rev 1.01


NuMaker-ML51PC

source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value
monitor, etc.

3 1 2
1. Run
2. Stop
3. Reset

Figure 3.6-5 Keil MDK Debug Mode

M
NUMAKER-ML51PC USER MANUAL
N -m
Figure 3.6-6 Debug Message on Serial Port Terminal Windows

U
IAR EW8051
This section provides steps to beginners on how to run a project by using IAR EW8051.
1. Double click the “Template.eww” to open the project.
2. Make sure the toolbar contain “Nu-Link” item as shown in Figure 3.6-7.
Note: If the toolbar does not contain “Nu-Link” item, please rework section 0.

Jun 04, 2019 Page 29 of 36 Rev 1.01


NuMaker-ML51PC

Figure 3.6-7 IAR EW8051 Window

3. Make target file as presented in Figure 3.6-8. After successfully compile the project, download
code to the flash memory and enter debug mode.

1 3
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

1. Make
2. Successfully compile
3. Download and Debug

Figure 3.6-8 Compile and Download the Project

4. Figure 3.6-9 shows the debug mode under IAR EW8051. Click “Go” and the debug message will
be printed out as shown in Figure 3.6-10. User can debug the project under debug mode by
checking source code, assembly language, peripherals’ registers, and setting breakpoint, step
run, value monitor, etc.

Jun 04, 2019 Page 30 of 36 Rev 1.01


NuMaker-ML51PC

123

1. Go
2. Break
3. Reset

Figure 3.6-9 IAR EW8051 Debug Mode

M
NUMAKER-ML51PC USER MANUAL
Figure 3.6-10 Debug Message on Serial Port Terminal Windows

N -m
U

Jun 04, 2019 Page 31 of 36 Rev 1.01


NuMaker-ML51PC

4. NUMAKER-ML51PC SCHEMATICS

4.1. Nu-Link2-Me
Figure 4.1-1 shows the Nu-Link2-Me circuit. The Nu-Link2-Me is a debugger and programmer that
supports on-line programming and debugging through OCDinterface.
3.3V
ICER1
200 1% Off-page Connector
USB_HS_CAP USB_HS_REXT R0603
USB_HS_VBUS
HSUSB_VDD33
ICE5V
USB_HS_CAP

SPIM_MOSI0
SPIM_MISO0
ICEC1 ICEC2
USB_HS_D+

USB_HS_D-

ICE5V
0.1u 1u SPIM_CLK
SPIM_CS
SPIM_D3
SPIM_D2

ICE_DAT
ICE_CLK
C0603 C0603 MCUVCC_DIODE
GND

MCUVCC_DIODE
GND

SWDH_DAT
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33

SWDH_CLK TICEDAT
SWDH_RST# TICECLK
HSUSB_D+
HSUSB_VSS
HSUSB_D-

PC.0
PC.1
PC.2
PC.3
PC.4
PC.5
PF.1
PF.0
HSUSB_VBUS
HSUSB_VDD33
HSUSB_VRES
HSUSB_VDD12_CAP
HSUSB_ID

ICE_RX_S TICERST
ICE_TX_S MCU_TX
MCU_RX

32 ICE_RST
nRESET 31 ICEVDD
GND 49 VDDIO 30 ETMCK_MOSI
50 VSS PA.0 29 ETMD0_MISO
ICEVDD 51 LDO_CAP PA.1 28 ETMD2_CK
ETMCK_MOSI 52 VDD PA.2 27 ETMD3_SS
ICEC3 ICEC4 ETMD0_MISO 53 PC.14 PA.3 26 SWO
1u 0.1u ETMD1 54 PB.15 PA.4 25
ETMD2_CK 55 PB.14 <M48SSIDAE> PA.5 24
C0603 C0603 PB.13 LDO_CAP ICEVDD
ETMD3_SS 56 23 ICEVDD ICEVDD
ICEVDD 57 PB.12 VDD 22 GND ICER2
58 AVDD VSS 21 ICEC5 ICEC6 10K ICE_DAT
GND 59 VREF PA.6 20 0.1u 1u
ICEVDD 60 AVSS PA.7 19 R0603
ISPLED C0603 C0603 ICER3
61 PB.11 PC.6 18 KEY 1 ICER4 10K
RED 62 PB.10 PC.7 17 HXT_O 10K ICE_CLK R0603
GREEN 63 PB.9 PF.2
64 PB.8 R0603 ICEVDD
ICEC7 ICEJ1 ICE_RST
ICEC8 PB.7
4.7u
470p ICEU3 ICEU4 1 ICEC9
C0603 C0603 3.3V SN74LV2T45DCUR ICEVDD 3.3V SN74LV2T45DCUR ICEVDD 2 ICE_DAT 1u
1 8 1 8 3 ICE_CLK C0603
VCCA VCCB 7 2 VCCA VCCB 7
PA.11
PA.10

2 4
VBAT

SPIM_CS_LV SPIM_CS SPIM_CLK_LV SPIM_CLK ICE_RST


PB.6
PB.5
PB.4
PB.3
PB.2
PB.1
PB.0

PA.9
PA.8
PF.6

PF.5
PF.4
PF.3

3 A1 B1 6 SPIM_MOSI0_LV 3 A1 B1 6 SPIM_MOSI0 5
4 A2 B2 5 4 A2 B2 5
GND DIR GND DIR
1
2
3
4
5
6
7
8
9
SWDH_DAT 10
11
12
13
SWDH_RST# 14
15
16

ICEU1 SOP8/3.1/0.5 SOP8/3.1/0.5


HEADER_5(NC)
NULINK_ID1
NULINK_ID0

SWDH_CLK

DEBUG RESET
MSG_EN
ICEVDD

ICELED
HXT_I

3.3V
3.3V

ICEUP1 ICEU2 3.3V ICER18 ICEVDD


AMS1117_3.3v ICER19 W25Q16JVSSIQ 10K 3.3V
10K SPIM_CS_LV 1 8 R0603
R0603 SPIM_MISO0 2 CS# VCC 7
GND
OUT

OUT

NULINK_ID0 NULINK_ID1 3 DO HOLD# 6 SPIM_CLK_LV ICEC12 ICER5


IN

USB_HS_VBUS ICE5V 3.3V 4 WP# CLK 5 SPIM_MOSI0_LV 0.1u 10K


GND DI ICESW1 R0603
ICED1 C0603
3
1
2

1 2 5V SOP8\5.23/1.27MM 3x6x5 2PIN SMD


KEY 1
1

MCUVCC ICEVCC
SS24A
ICECT1 SPI FLASH SW-2P-SMD
10uF/10V 1.8V 3.3V 1.8V 3.3V
2

TANT-A 5V Nu-Trace, ID0 = 1, ID1 = 1


Nu-Link2, ID0 = 0, ID1 = 1
Nu-LInk2-Me, ID0 = 0, ID1 = 0 ICEC10 20p HXT_O USB_HS_VBUS ICEJ3
ICEUP2 USB_HS_VBUS ICEJ2 1
4
3
2
1

3
2
1

VBUS

ICEVCC ICEVDD
ACE1117_ADJ
NULINK ID C0603
4 3 DM 1
2
USB_HS_D- ICER6 DM 2
D- 6
KEY
GND XOUT ICEX1 DP 0
OUT

OUT
ADJ

1.8V ICEJPR1 ICEJPR2 3 USB_HS_D+ 3 Shield 7


ICEL1 ICER7 DP
IN

1&2 (0 ohm) 1&2 (0 ohm) XIN GND 4 0 D+ Shield 8


FERRITE BEAD 4 Shield 9 ICES0
1 2 HEADER04(NC)
3
1
2

ICESW2 12MHz SMD X3225B ID Shield 10 0805 LED R (紅 光 ) 高 亮


1

5 Shield 11 KP-2012 1 2 ICELED


1

ICECT2 ICE_RX_S ICE_RX ICEC11 20p HXT_I USB_HS_VBUS GND Shield


ICER8
10uF/10V 120,1% ICECT3 ICE_TX_S ICE_TX micro USB 5pin
2

TANT-A R0603 10uF/10V C0603 MICRO_USB_AB ICEL2 ICES1


2

MSG_EN ICED3 0805 LED Y (黃 光 )高 亮


0.1u FERRITE BEAD KP-2012 1 2 ISPLED
ICER9 C0603 L0603
82, 1% SMD HPS604-E
R0603 ICES2
0805 LED R (紅 光 ) 高 亮
Power Switch VCOM SWITCH 12M Crystal USB 2.0 HIGH SPEED DEVICES ICEVDD
ICERP1
KP-2012 1 2 RED

1 8P4R-330 2
3 4 ICES3
MCUVCC ICED4 MCUVCC_DIODE 5 6 0805 LED G (綠 光 ) 普 亮
Maker Nu-mbed NUC472 User Manual

1 2 7 8 KP-2012 1 2 GREEN
NUMAKER-ML51PC USER MANUAL

ICEJ4
8P4RA
SS24A
SWDH_DAT 1
3
2
4
ETMD3_SS I2C1_SCL QSPI_SS BUSY
LED
SWDH_CLK
SWDH_RST# 5 6 ETMD2_CK I2C1_SDA QSPI_CLK START
7 8
9 10
HEADER 2.54 5X2 (NC) SWO

ICE_RX_S ICE_RX ETMCK_MOSI UART0_RX QSPI_MOSIPASS Title


Nu-Link2-Me
ICE INTERFACE ICE_TX_S ICE_TX ETMD0_MISO UART0_TX QSPI_MISOFAIL Size
A3
File Name :
Nu-Link2-Me
Author :
CMHuang
Rev
1.0
Date: Thursday, January 24, 2019 Sheet 1 of 3

Figure 4.1-1 Nu-Link2-Me Circuit

Jun 04, 2019 Page 32 of 36 Rev 1.01


NuMaker-ML51PC

4.2. ML51 Platform


Figure 4.2-1 shows the ML51 platform circuit.

P1 - P8 P17 - P24
P24
P23
P22
P21
P20
P19
P18
P17

P17 PF0_ICE_DAT
TICEDAT
P1 P18 PF1_ICE_CLK
PB5_NU2_A2 TICECLK
P2 P19
PB4_NU2_A3 PC1_NU4_SCL
P3 P20
PB3_NU3_D1/TX PC0_NU4_SDA
P4 P21
24
23
22
21
20
19
18
17

PB2_NU3_D0/RX PA12_NU3_D2
P5 P22
PB1_NU2_A5/SCL/TX PA13_NU3_D3
P6 P23
UART0_RXD/P1.7
UART0_TXD/P1.6
I2C1_SDA/P1.5
I2C1_SCL/P1.4
ACMP1_O/PWM1_CH5/I2C0_SDA/UART2_RXD/P4.0
ACMP0_O/PWM1_CH4/I2C0_SCL/UART2_TXD/P4.1
ICE_CLK/UART0_RXD/I2C1_SDA/UART1_RXD/P5.1
ICE_DAT/UART0_TXD/I2C1_SCL/UART1_TXD/P5.0

PB0_NU2_A4/SDA/RX PA14_NU3_D4
P7 PF5_X32_IN P24
PF5_X32_IN PA15_NU3_D5
P8 PF4_X32_OUT
PF4_X32_OUT

16 P16
nRESET 15 P15
CLKO/PWM0_CH1/PWM0_BRAKE/P5.6 14 P14
PWM0_CH5/UART0_RXD/SPI1_MOSI/SPI0_MOSI/P0.0 13 P13
PWM0_CH4/UART0_TXD/SPI1_MISO/SPI0_MISO/P0.1 12 P12
PWM0_CH3/I2C1_SDA/UART1_RXD/SPI1_CLK/SPI0_CLK/P0.2 11 P11
PWM1_BRAKE/CLKO/PWM0_CH2/I2C1_SCL/UART1_TXD/SPI1_SS/SPI0_SS/P0.3 10 P10
XT1_OUT/I2C0_SDA/UART0_RXD/P5.2 9 P9
XT1_IN/I2C0_SCL/UART0_TXD/P5.3

P9 - P16 P25 - P32

P2.1/ADC_CH4/ACMP0_P2/ACMP1_P2/UART2_TXD/I2C1+SCL/PWM0_CH4/PWM1_CH4/PWM0_BRAKE
P9 PF3_XT1_IN P25

P2.0/ADC_CH5/ACMP0_N1/UART2_RXD/I2C1_SDA/PWM0_CH5/PWM1_CH5/PWM0_BRAKE
PF3_XT1_IN GND
P10 PF2_XT1_OUT P26 LDO_CAP

P2.3/ADC_CH2/ACMP0_P1/ACMP1_P1/I2C1_SCL/UART1_TXD/PWM0_CH2/PWM0_BRAKE
PF2_XT1_OUT LDO_CAP
P11 P27 VDD_2
PA3_NU3_D10/SS VDD_MCU
P12 P28
PA2_NU3_D13/CLK PB15_NU2_A0

P2.5/ADC_CH0/ACMP0_P0/ACMP1_P0/I2C0_SCL/PWM0_CH0/UART2_TXD/T0_INT0
P13 P29 PB14_LED_R
PA1_NU3_D12/MISO PB14_NU2_A1
P14 P30 PB13_TXD0
PA0_NU3_D11/MOSI MCU_TX
P15 P31 PB12_RXD0
PF15 MCU_RX
P16 nRESET P32
TICERST VREF
P2.4/ADC_CH1/ACMP0_N0/I2C0_SDA/PWM0_CH1/UART2_RXD/T1/INT1

P2.2/ADC_CH3/ACMP1_N0/I2C1_SDA/UART1_rXD/PWM0_CH3

P5.5/UART2_RXD/PWM0_CH0/X32_IN/EADC0_ST
P5.4/UART2_TXD/PWM0_CH1/X32_OUT

P25 25
P26 26 VSS
P27 27 P4.6/PWM1_BRAKE/PWM0_CH0/TM0_CLKO/INT0 H4 H3
P28 28 VDD
P29 29 P3.3/SPI1_SS/PWM1_CH0/TM2_EXT0/PWM0_BRAKE 1 1
P30 30 P3.2/ADC_CH7/ACMP1_N1/CPI1_CLK/UART3_RXD/PWM1_CH1/TM2_EXT1/CLK0
P31 31 P3.1/ADC_CH6/ACMP0_P3/ACMP1_P3/SPI1_MISO/UART3_TXD/UART0_TXD/PWM1_CH2/TM2_EXT2
P32 32 P3.0/SPI1_MOSI/UART0_RXD/PWM1_CH3/TM2_EXT0 H-3.4X6 H-3.4X6
AVDD/VREF
H1 H2

1 1

H-3.4X6 H-3.4X6

U2 Mounting Hole
1
2
3
4
5
6
7
8

ML51PC0AE
P1
P2
P3
P4
P5
P6
P7
P8

VDD

R13 R14
J1 100KR 100KR
R0603 R0603
1 2 PF0_ICE_DAT
3 4 PF1_ICE_CLK
PB13_TXD0 5 6 nRESET
PB12_RXD0 7 8
9 10
HEADER 2.54 5X2 (NC)

ICE

VDD
VDD_MCU C2 20p R2 0 PF3_XT1_IN C1 20p R1 0 PF5_X32_IN VDD

VDD_2
R3 X1 SMD 32.768K X3215
C3 10KR 32MHz 49S SMD X2
0.1u SW1 R0603 XTAL\LP\SMD 9HT9
C0603 3x6x5 2PIN SMD
nRESET C8 20p R5 0 PF2_XT1_OUT C7 20p R4 0 PF4_X32_OUT
SW-2P-SMD
C9 R6 R7
10u 330R 330R
C0603 R0603 R0603

Bypass Cap RESET HXT & LXT Crystal

1
LEDG1 LEDR1
Green Red
VDD_MCU LED0805 LED0805
USB_VBUS JP1
VDD VREF

2
J2 UP1 VDD_MCU L5
1 L1 AMS1117_3.3v 1 R16 0

M
VBUS VDD 2

NUMAKER-ML51PC USER MANUAL


2 ICE5V 3
FERRITE BEAD FERRITE BEAD
GND
OUT

OUT

6 D- MCUVCC_DIODE VDD 4
IN
1

7 Shield 3 C10 CT1 NU1_5VCC NU1_3VCC PB14_LED_R


Shield D+ SS24A
8 0.1u 1uF/16V NC CT2 C11 C15
1
2

2
1
3
1
2

9 Shield 4 SW2
USB_VBUS 1 2 JP2 10uF/10V 0.1u 1u
2

Shield ID
10
NU1_3VCC LED
1

11 Shield 5 1 AMMETER VREF NC


Shield GND D1
CT4 2 NC
micro USB 5pin UP2 10uF/10V 3
2

AMS1117_5v TANT-A SMD HPS602-E 4


MICRO_USB_AB
L3 R12 0(NC)
NC
GND
OUT

OUT

N -m
FERRITE BEAD
IN

NU1_5VCC
L0603 SS24A
3
1
2

NU1_VIN 1 2
1

D2 Title
CT5 NuMaker-ML51PC
10uF/10V
2

USB Device TANT-A

Power
Size
Custom
Document Number
Ml51PC0AE
Rev
v1.0
Date: Thursday , April 25, 2019 Sheet 2 of 3

Figure 4.2-1 ML51 Platform Circuit

Jun 04, 2019 Page 33 of 36 Rev 1.01


NuMaker-ML51PC

4.3. Extension Connector


Figure 4.3-1 shows extension connectors of NuMaker-ML51PC.

P1 - P8 JP3
P17 - P24 JP4

P1 2 1 P1 P17 2 1 P17 NU4


4 3 PB5_NU2_A2 4 3 TICEDAT 10
P2 P2 P18 P18
6 5 PB4_NU2_A3 6 5 TICECLK I2C_SCL 9 PC1_NU4_SCL
P3 P3 P19 P19 NU1
8 7 PB3_NU3_D1/TX 8 7 PC1_NU4_SCL 1 I2C_SDA 8 PC0_NU4_SDA
P4 P4 P20 P20
10 9 PB2_NU3_D0/RX 10 9 PC0_NU4_SDA 2 NC VREF 7 VREF
P5 P5 P21 P21
12 11 PB1_NU2_A5/SCL/TX 12 11 PA12_NU3_D2 VDD 3 VDD VSS 6 GND
P6 P6 P22 P22
14 13 PB0_NU2_A4/SDA/RX 14 13 PA13_NU3_D3 TICERST 4 MCU_RESET D13 5 PA2_NU3_D13/CLK
P7 P7 P23 P23
16 15 PF5_X32_IN 16 15 PA14_NU3_D4 NU1_3VCC 5 3VCC D12 4 PA1_NU3_D12/MISO
P8 P8 P24 P24
PF4_X32_OUT PA15_NU3_D5 NU1_5VCC 6 5VCC D11 3 PA0_NU3_D11/MOSI
GND 7 VSS D10 2 PA3_NU3_D10/SS
GND 8 VSS D9 1 NU3_D9_NC
HEADER8x2/2.54 (NC) HEADER8x2/2.54 (NC) NU1_VIN NU3_D8_NC
VIN D8
HEADER 2.54 8X1 f emale HEADER 2.54 10X1 f emale

NU2 NU3
1 8
PB15_NU2_A0 A0 D7 NU3_D7_NC

P9 - P18 P24 - P32


2 7
PB14_NU2_A1 3 A1 D6 6 NU3_D6_NC
PB5_NU2_A2 4 A2 D5 5 PA15_NU3_D5
PB4_NU2_A3 5 A3 D4 4 PA14_NU3_D4
JP5 JP6 PB0_NU2_A4/SDA/RX PA13_NU3_D3
6 A4/SDA D3 3
2 1 2 1 PB1_NU2_A5/SCL/TX A5/SCL D2 2 PA12_NU3_D2
P9 P9 P25 P25
4 3 PF3_XT1_IN 4 3 GND D1 1 PB3_NU3_D1/TX
P10 P10 P26 P26 HEADER 2.54 6X1 f emale
6 5 PF2_XT1_OUT 6 5 LDO_CAP D0 PB2_NU3_D0/RX
P11 P11 P27 P27
8 7 PA3_NU3_D10/SS 8 7 VDD_MCU
P12 P12 P28 P28 HEADER 2.54 8X1 f emale
10 9 PA2_NU3_D13/CLK 10 9 PB15_NU2_A0
P13 P13 P29 P29
12 11 PA1_NU3_D12/MISO 12 11 PB14_NU2_A1
P14 P14 P30 P30
14 13 PA0_NU3_D11/MOSI 14 13 MCU_TX
P15 P15 P31 P31
16 15 PF15 16 15 MCU_RX
P16 P16 P32 P32
TICERST VREF

HEADER8x2/2.54 (NC) HEADER8x2/2.54 (NC)

UNO Interface

External Connector

Title
NuMaker-ML51PC
Maker Nu-mbed NUC472 User Manual

Size Document Number Rev


NUMAKER-ML51PC USER MANUAL

Custom Ext. Connector v1.2


Date: Monday , March 04, 2019 Sheet 3 of 3

Figure 4.3-1 Extension Connectors Circuit

Jun 04, 2019 Page 34 of 36 Rev 1.01


NuMaker-ML51PC

5. REVISION HISTORY

Date Revision Description

2019.03.13 1.00 Initial Release.

2019.07.04 1.01 Modified Section 2.7 PCB placement picture.

M
NUMAKER-ML51PC USER MANUAL
N -m
U

Jun 04, 2019 Page 35 of 36 Rev 1.01


NuMaker-ML51PC
Maker Nu-mbed NUC472 User Manual
NUMAKER-ML51PC USER MANUAL

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.

Jun 04, 2019 Page 36 of 36 Rev 1.01

You might also like