numaker-ms51pc user manual - nuvoton · numaker-ms51pc aug 30, 2019 page 1 of 40 rev 1.00 r-m s l l...
TRANSCRIPT
NuMaker-MS51PC
Aug 30, 2019 Page 1 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
1T 8051
8-bit Microcontroller
NuMaker-MS51PC
User Manual NuMicro® 8051 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.
www.nuvoton.com
NuMaker-MS51PC
Aug 30, 2019 Page 2 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Table of Contents
1 OVERVIEW ...................................................................................................... 6
1.1 NuMaker-MS51PC Features ....................................................................................... 7
2 NUMAKER-MS51PC 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.................................................................................................. 15
2.5.1 VIN Power Source ......................................................................................................... 15
2.5.2 5 V Power Sources ....................................................................................................... 15
2.5.3 3.3 V Power Sources .................................................................................................... 15
2.5.4 1.8V Power Sources ..................................................................................................... 15
2.5.5 Power Connectors ......................................................................................................... 16
2.5.6 USB Connectors ............................................................................................................ 16
2.5.7 Power Switches ............................................................................................................. 16
2.5.8 Power Supply Models ................................................................................................... 16
2.5.9 Ammeter Connector ...................................................................................................... 20
2.5.10 Extension Connectors ................................................................................................... 20
2.5.11 Push-Buttons .................................................................................................................. 20
2.5.12 LEDs ................................................................................................................................ 20
2.6 Nu-Link2-Me ................................................................................................................. 22
2.7 PCB Placement ........................................................................................................... 23
3 QUICK START ............................................................................................... 24
3.1 Toolchains Supporting ................................................................................................ 24
3.2 Nuvoton Nu-Link Driver Installation .......................................................................... 25
3.3 BSP Firmware Download ........................................................................................... 27
3.4 Hardware Setup ........................................................................................................... 28
3.5 Find the Example Project ........................................................................................... 30
3.6 Execute the Project under Toolchains ...................................................................... 31
3.6.1 Keil PK51 ........................................................................................................................ 31
3.6.2 IAR EW8051 .................................................................................................................. 33
4 NUMAKER-MS51PC SCHEMATICS ............................................................. 36
4.1 Nu-Link2-Me ................................................................................................................. 36
4.2 MS51 Platform ............................................................................................................. 37
4.3 Extension Connector ................................................................................................... 38
NuMaker-MS51PC
Aug 30, 2019 Page 3 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
5 REVISION HISTORY ..................................................................................... 39
NuMaker-MS51PC
Aug 30, 2019 Page 4 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
List of Figures
Figure 1.1-1 NuMaker-MS51PC Board ............................................................................................ 6
Figure 2.1-1 Front View of NuMaker-MS51PC ................................................................................ 8
Figure 2.2-1 Rear View of NuMaker-MS51PC ................................................................................. 9
Figure 2.3-1 Arduino UNO Compatible Extension Connectors ...................................................... 10
Figure 2.4-1 MS51PC0AE Extension Connectors ......................................................................... 12
Figure 2.5-1 External Power Supply Sources on Nu-Link2-Me ..................................................... 17
Figure 2.5-2 External Power Supply Sources on MS51 Platform .................................................. 18
Figure 2.5-3 Separate the Nu-Link2-Me from NuMaker-MS51PC ................................................. 19
Figure 2.5-4 Wiring between Ammeter Connector and Ammeter .................................................. 20
Figure 2.7-1 Front Placement ........................................................................................................ 23
Figure 2.7-2 Rear Placement ......................................................................................................... 23
Figure 3.2-1 Nu-Link USB Driver Installation Setup....................................................................... 25
Figure 3.2-2 Nu-Link USB Driver Installation ................................................................................. 26
Figure 3.4-1 Open VCOM Function ............................................................................................... 28
Figure 3.4-2 ICE USB Connector ................................................................................................... 28
Figure 3.4-3 Device Manger ........................................................................................................... 29
Figure 3.4-4 PuTTY Session Setting ............................................................................................. 29
Figure 3-5 Template Project Folder Path ....................................................................................... 30
Figure 3.6-1 Project File Migrate to Version 5 Format ................................................................... 31
Figure 3.6-2 Debugger Setting in Options Window........................................................................ 31
Figure 3.6-3 Programming Setting in Options Window .................................................................. 32
Figure 3.6-4 Compile and Download the Project ........................................................................... 32
Figure 3.6-5 Keil MDK Debug Mode .............................................................................................. 33
Figure 3.6-6 Debug Message on Serial Port Terminal Windows ................................................... 33
Figure 3.6-7 IAR EW8051 Window ................................................................................................ 34
Figure 3.6-8 Compile and Download the Project ........................................................................... 34
Figure 3.6-9 IAR EW8051 Debug Mode ........................................................................................ 35
Figure 3.6-10 Debug Message on Serial Port Terminal Windows ................................................. 35
Figure 4.1-1 Nu-Link2-Me Circuit ................................................................................................... 36
Figure 4.2-1 MS51 Platform Circuit ................................................................................................ 37
Figure 4.3-1 Extension Connectors Circuit .................................................................................... 38
NuMaker-MS51PC
Aug 30, 2019 Page 5 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
List of Tables
Table 2.3-1 Arduino UNO Extension Connectors and MS51PC0AE Mapping GPIO List ............. 11
Table 2.4-1 MS51PC0AE Full-pin Extension Connectors and GPIO Function List ....................... 13
Table 2.5-1 Vin Power Source ....................................................................................................... 15
Table 2.5-2 5V Power Sources ...................................................................................................... 15
Table 2.5-3 3.3 V Power Sources .................................................................................................. 15
Table 2.5-4 1.8V Power Sources ................................................................................................... 16
Table 2.5-5 Power Connectors ...................................................................................................... 16
Table 2.5-6 USB Connectors ......................................................................................................... 16
Table 2.5-7 Power Switches .......................................................................................................... 16
Table 2.5-8 Supply External Power through Nu-Link2-Me ............................................................ 17
Table 2.5-9 Supply External Power for MS51 platform .................................................................. 19
Table 2.5-10 Ammeter Connector .................................................................................................. 20
Table 2.5-11 Extension Connectors ............................................................................................... 20
Table 2.5-12 Push-Buttons ............................................................................................................ 20
Table 2.5-13 LEDs ......................................................................................................................... 21
Table 2.6-1 VCOM Function of Nu-Link2-Me ................................................................................. 22
NuMaker-MS51PC
Aug 30, 2019 Page 6 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
1 OVERVIEW
This user manual is aimed to give users a fast introduction to the use of NuMaker-MS51PC board.
The NuMaker-MS51PC consists of two parts, a MS51 platform and an on-board Nu-Link2-Me debugger and programmer. The NuMaker-MS51PC allows users to quickly develop and easily program and debug application.
The NuMaker-MS51PC offers MS51PC0AE 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-MS51PC 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-MS51PC, allowing user to use as a mass production programming tool.
Figure 1.1-1 NuMaker-MS51PC Board
NuMaker-MS51PC
Aug 30, 2019 Page 7 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
1.1 NuMaker-MS51PC Features
NuMicro® MS51PC0AE used as main microcontroller with function downward compatible with:
MS51EC0AE
MS51FC0AE
MS51TC0AE
ML51XC0AE
MS51PC0AE 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 MS51 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
NuMaker-MS51PC
Aug 30, 2019 Page 8 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
2 NUMAKER-MS51PC OVERVIEW
2.1 Front View
Figure 2.1-1 Front View of NuMaker-MS51PC
Figure 2.1-1 shows the main components and connectors from the front side of NuMaker-MS51PC. The following lists components and connectors from the front view:
Target Chip: MS51PC0AE (U2)
USB Power Connector (J2)
Arduino UNO Compatible Extension Connectors (NU1, NU2, NU3, NU4)
MS51 Extension Connectors (JP3, JP4, JP5 and JP6)
External VDD Power Connector(JP1)
External VSS Power Connector(JP2)
VDD Switch(SW2)
Ammeter Connector(AMMETER)
Reset Button(SW1)
Power LED and P3.5 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)
NuMaker-MS51PC
Aug 30, 2019 Page 9 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
2.2 Rear View
Figure 2.2-1 shows the main components and connectors from the rear side of NuMaker-MS51PC.
The following lists components and connectors from the rear view:
Nu-Link2-Me
MCUVCC Power Switch (ICEJPR1)
ICEVCC Power Switch (ICEJPR2)
Figure 2.2-1 Rear View of NuMaker-MS51PC
NuMaker-MS51PC
Aug 30, 2019 Page 10 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
2.3 Arduino UNO Compatible Extension Connectors
Figure 2.3-1 shows the Arduino UNO compatible extension connectors.
UART3_RXD PWM3_CH1 P3.4 D0UART3_TXD PWM0_CH2 P0.5 D1
CLKO PWM0_CH0 P3.3 D2SPI0_CLK P1.0 D3
PWM3_CH0 P3.2 D4PWM2_CH1 P3.1 D5
P3.6 D6P3.7 D7
P1.1 D8P1.2 D9
SPI0_SS PWM0_CH5 P1.5 D10SPI0_MOSI ADC_CH1 P3.0 D11SPI0_MISO ADC_CH15 P2.5 D12
SPI0_CLK ADC_CH0 P1.7 D13
VSS VSS
VDD VREF
I2C0_SDA P1.4 SDA
I2C0_SCL P1.3 SCL
VINVSSVSS5V3VRSTIOREF VDD
NC
A5 P2.1 ADC_CH9 PWM2_CH0 Pin
A4 P0.3 ADC_CH6 PWM0_CH5 1
A3 P0.4 ADC_CH5 PWM0_CH3A2 P2.4 ADC_CH12 T0A1 P2.3 ADC_CH11 PWM1_CH0A0 P2.2 ADC_CH10 PWM1_CH1
Figure 2.3-1 Arduino UNO Compatible Extension Connectors
NuMaker-MS51PC
Aug 30, 2019 Page 11 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Header
NuMaker-MS51PC
Header
NuMaker-MS51PC
Compatible to Arduino UNO
GPIO Pin of MS51 Compatible to Arduino UNO
GPIO Pin of MS51
N
U
3
NU3.1 D0 P3.4
N
U
2
NU2.6 A5 P2.1
NU3.2 D1 P0.5 NU2.5 A4 P0.3
NU3.3 D2 P3.3 NU2.4 A3 P0.4
NU3.4 D3 P1.0 NU2.3 A2 P2.4
NU3.5 D4 P3.2 NU2.2 A1 P2.3
NU3.6 D5 P3.1 NU2.1 A0 P2.2
NU3.7 D6 P3.6
N
U
1
NU1.8 VIN
-
NU3.8 D7 P3.7 NU1.7 VSS
N
U
4
NU4.1 D8 P1.1 NU1.6 VSS
NU4.2 D9 P1.2 NU1.5 5V
NU4.3 D10 P1.5 NU1.4 3V
NU4.4 D11 P3.0 NU1.3 RST nRESET
NU4.5 D12 P2.5 NU1.2 IOREF VDD
NU4.6 D13 P1.7 NU1.1 NC -
NU4.7 VSS VSS
NU4.8 VREF VDD
NU4.9 I2C_SDA P1.4
NU4.10 I2C_SCL P1.3
Table 2.3-1 Arduino UNO Extension Connectors and MS51PC0AE Mapping GPIO List
NuMaker-MS51PC
Aug 30, 2019 Page 12 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
2.4 Pin Assignment for Extension Connectors
The NuMaker-MS51PC provides the MS51PC0AE target chip onboard and full pins extension connectors (JP3, JP4, JP5 and JP6). The Figure 2.4-1 shows the MS51PC0AE extension connectors.
Figure 2.4-1 MS51PC0AE Extension Connectors
NuMaker-MS51PC
Aug 30, 2019 Page 13 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Header MS51PC0AE
Pin No. Function
JP3
JP3.1 JP3.2 1 P2.0/RESET
JP3.3 JP3.4 2 P3.0/OSCIN/INT0/UART2_TX/SPI0_MOSI/ADC_CH1
JP3.5 JP3.6 3 P1.7/INT1/UART2_RX/SPI0_CLK/ADC_CH0
JP3.7 JP3.8 4 VSS
JP3.9 JP3.10 5 P1.6/ICE_DAT/ICP_DAT/UART1_TX /I2C0_SDA
JP3.11 JP3.12 6 GND
JP3.13 JP3.14 7 P1.5/UART3_TX/SPI0_SS/ IC7/PWM3_CH1/PWM0_CH5
JP3.15 JP3.16 8 P2.5/UART3_RX/SPI0_MISO/ADC_CH15
JP5
JP5.1 JP5.2 9 P3.7/UART1_RX
JP5.3 JP5.4 10 P3.6/UART1_TX
JP5.5 JP5.6 11 P1.4/PWM0_CH1/I2C0_SDA/PWM0_BRAKE/ADC_CH14/ PWM1_CH1
JP5.7 JP5.8 12 P1.3/STADC/I2C0_SCL/ADC_CH13
JP5.9 JP5.10 13 P2.4/T0 /ADC_CH12
JP5.11 JP5.12 14 P2.3/UART4_TX/PWM1_CH0/ADC_CH11
JP5.13 JP5.14 15 P2.2/UART4_RX/PWM1_CH1/ADC_CH10
JP5.15 JP5.16 16 P2.1/PWM2_CH0/ADC_CH9
JP4
JP4.1 JP4.2 17 P3.5/SPI0_SS
JP4.3 JP4.4 18 P3.1/PWM2_CH1
JP4.5 JP4.6 19 P3.2/PWM3_CH0
JP4.7 JP4.8 20 P1.2/PWM0_CH0 / IC0 / UART3_TXD / PWM1_CH0
JP4.9 JP4.10 21 P1.1/ADC_CH7 / CLKO / IC1 / PWM0_CH1 / UART3_RXD / PWM1_CH1
JP4.11 JP4.12 22 P1.0/PWM0_CH2 / SPI0_CLK / IC2 / UART1_TXD / PWM2_CH0
JP4.13 JP4.14 23 P0.0/PWM0_CH3 / SPI0_MOSI / IC3 / UART1_RXD / T1 / HXTIN / PWM2_CH1
JP4.15 JP4.16 24 P0.1/PWM0_CH4 / SPI0_MISO / IC4 / HXTOUT / PWM3_CH0
JP6
JP6.1 JP6.2 25 P3.3/ICE_CLK / I2C0_SCL / UART1_RXD
JP6.3 JP6.4 26 P0.2/ICE_CLK / I2C0_SCL / UART1_RXD
JP6.5 JP6.6 27 P0.3/ADC_CH6 / IC5 / PWM0_CH5 / UART2_TXD / PWM3_CH1
JP6.7 JP6.8 28 P0.4/ADC_CH5 / IC3 / PWM0_CH3 / STADC / UART2_RXD / PWM2_CH1
JP6.9 JP6.10 29 P0.5/ADC_CH4 / PWM0_CH2 / PWM2
JP6.11 JP6.12 30 P0.6/ADC_CH3 / UART0_TX
JP6.13 JP6.14 31 P0.7/ADC_CH2 / UART0_RX
JP6.15 JP6.16 32 P3.4/PWM3_CH1 / UART3_RX
Table 2.4-1 MS51PC0AE Full-pin Extension Connectors and GPIO Function List
NuMaker-MS51PC
Aug 30, 2019 Page 14 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
NuMaker-MS51PC
Aug 30, 2019 Page 15 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
2.5 System Configuration
2.5.1 VIN Power Source
Table 2.5-1 presents the Vin power source.
Connector Net Name in Schematic
Comment
NU1 pin8 NU1_VIN
Board external power source, with voltage range from 7 V to 12 V. The voltage regulator UP2 converts the NU1 pin8 input voltage to 5 V and supplies it to NuMaker-MS51PC.
Table 2.5-1 Vin Power Source
2.5.2 5 V Power Sources
Table 2.5-2 presents the 5 V power sources.
Connector Net Name in Schematic
Comment
ICEJ3 USB_HS_VBUS ICE USB connector supplies 5 V power from PC to MS51 platform and Nu-Link2-Me.
J2 USB_VBUS USB connector on NuMaker-MS51PC supplies 5 V power from PC to MS51 platform and Nu-Link2-Me.
NU1 pin5 NU1_5VCC ICEJ3, J2 or NU1 pin8 supplies 5 V power to NU1 pin5. NU1 pin5 supplies 5 V power to target chip or Arduino adapter board.
Table 2.5-2 5V Power Sources
2.5.3 3.3 V Power Sources
Table 2.5-3 presents the 3.3 V power sources.
Voltage Regulator
5V Source Comment
ICEUP1 USB_HS_VBUS ICEUP1 converts USB_HS_VBUS to 3.3 V and supplies 3.3V to MS51 platform or ICE chip.
UP1 USB_VBUS
UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to MS51 platform.
Note: SW2.2(NU1 3VCC) should be switched to ON.
UP1 NU1_5VCC
UP1 converts NU1_5VCC to 3.3 V and supplies 3.3 V to MS51 platform.
Note: SW2.2(NU1 3VCC) should be switched to ON.
Table 2.5-3 3.3 V Power Sources
2.5.4 1.8V Power Sources
Table 2.5-4 presents the 1.8 V power source.
NuMaker-MS51PC
Aug 30, 2019 Page 16 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Voltage Regular 5V Source Comment
ICEUP2 USB_HS_VBUS ICEUP2 converts USB_HS_VBUS to 1.8V and supplies 1.8V to MS51 platform or ICE chip.
Table 2.5-4 1.8V Power Sources
2.5.5 Power Connectors
Table 2.5-5 presents the power connectors.
Connector Comment
JP1 VDD (2.4 V ~ 5 V) connector on the NuMaker-MS51PC.
JP2 VSS connector on the NuMaker-MS51PC.
Table 2.5-5 Power Connectors
2.5.6 USB Connectors
Table 2.5-6 presents the USB connectors.
Connector Comment
ICEJ3 ICE USB connector on Nu-Link2-Me for power supply, debugging and programming from PC.
J2 USB power connector on NuMaker-MS51PC for power supply.
Table 2.5-6 USB Connectors
2.5.7 Power Switches
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.
SW2 Configures the target chip operating voltage at 3.3 V / 5 V.
Table 2.5-7 Power Switches
2.5.8 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.
NuMaker-MS51PC
Aug 30, 2019 Page 17 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
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-Link2-Me external power sources are highlighted in yellow.
Model Target Chip
Voltage ICEJ3
ICEJPR1 (MCUVCC) Selection [1]
ICEJPR2 (ICEVCC)
Selection [2]
ICE Chip
Voltage
SW2 Selection
J2 Vin JP1
1 1.8 V Connect
to PC 1.8 V 1.8 V 1.8 V Off Ignore Ignore
1.8 V output
2 3.3 V Connect
to PC 3.3 V (default)
3.3 V (default)
3.3 V Off Ignore Ignore 3.3 V output
3 5 V Connect
to PC 5V
3.3 V (default)
3.3 V Off Ignore Ignore 5 V
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
External Power Supply through MS51 platform to Target Chip
The external power supply sources on MS51 platform are shown in Figure 2.5-2.
NuMaker-MS51PC
Aug 30, 2019 Page 18 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Figure 2.5-2 External Power Supply Sources on MS51 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.
To use JP1 as external power supply source, please follow the below steps:
1. Switch the SW2 to OFF.
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.
To use Vin or J2 as external power supply source with Nu-Link2-Me separated from NuMaker-MS51PC, please follow the below steps:
1. Switch the SW2 depends on the target chip operating voltage.
2. Separate the Nu-Link2-Me from NuMaker-MS51PC.
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-MS51PC, please follow the below steps:
1. Switch the SW2 to OFF.
2. Separate the Nu-Link2-Me from NuMaker-MS51PC.
3. Connect the external power supply to JP1.
NuMaker-MS51PC
Aug 30, 2019 Page 19 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Figure 2.5-3 Separate the Nu-Link2-Me from NuMaker-MS51PC
Table 2.5-9 presents all power models when supplies external power through MS51 platform. The MS51 platform external power sources are highlighted in yellow.
Model Target Chip
Voltage Vin [1] J2 ICEJ3
SW2 Selection
JP1 ICEJPR1
(MCUVCC) Selection [2]
ICEJPR2 (ICEVCC)
Selection [3]
ICE Chip Voltage [4]
4 3.3 V 7 V ~ 12 V
Input X Ignore
NU1 3VCC
3.3 V output Remove resistor
3.3 V 3.3 V
5 3.3 V X Connect
to PC Ignore
NU1 3VCC
3.3 V output Remove resistor
3.3 V 3.3 V
6 5 V 7 V ~ 12 V
Input X Ignore
NU1 5VCC
5 V output Remove resistor
3.3 V 3.3 V
7 5 V X Connect
to PC
Ignore NU1 5VCC
5 V output Remove resistor
3.3 V 3.3 V
8 1.8 V ~ 3.6 V Ignore [5] Ignore [5] Connect to
PC OFF DC Input
1.8 V ~ 3.6 V Remove resistor
1.8 V / 3.3 V 1.8 V / 3.3 V
9 1.8 V ~ 3.6 V Ignore [5] Ignore [5] Nu-Link2-Me
removed OFF DC Input
1.8 V ~ 3.6 V X X X
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 MS51 platform
NuMaker-MS51PC
Aug 30, 2019 Page 20 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
2.5.9 Ammeter Connector
Table 2.5-10 presents the ammeter connector.
Connector Comment
AMMETER Connector for user to easily measure the target chip power consumption. User needs to remove the R16 resistor.
Table 2.5-10 Ammeter Connector
Figure 2.5-4 Wiring between Ammeter Connector and Ammeter
2.5.10 Extension Connectors
Table 2.5-11 presents the extension connectors.
Connector Comment
JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-MS51PC.
NU1, NU2, NU3 and NU4
Arduino UNO compatible pins on the NuMaker-MS51PC.
Table 2.5-11 Extension Connectors
2.5.11 Push-Buttons
Table 2.5-12 presents the push-buttons.
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-12 Push-Buttons
2.5.12 LEDs
Table 2.5-13 presents the LEDs.
NuMaker-MS51PC
Aug 30, 2019 Page 21 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Component Comment
Power LED The power LED indicates that the NuMaker-MS51PC is powered.
P3.5 LED The LED which is connected to the target chip P3.5.
ICES0, ICES1, ICES2 and ICES3
Nu-Link2-Me status LED.
Table 2.5-13 LEDs
NuMaker-MS51PC
Aug 30, 2019 Page 22 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
2.6 Nu-Link2-Me
The Nu-Link2-Me is a debugger and programmer that supports on-line programming and debugging through OCD interface. 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
1 TXD On: Connect target chip PB.13 (UART0_TXD) to Nu-Link2-Me.
Off: Disconnect target chip PB.13 (UART0_TXD) to Nu-Link2-Me.
2 RXD On: Connect target chip PB.12 (UART0_RXD) to Nu-Link2-Me.
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
NuMaker-MS51PC
Aug 30, 2019 Page 23 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
2.7 PCB Placement
Figure 2.7-1 and Figure 2.7-2 show the front and rear placement of NuMaker-M51PC.
Figure 2.7-1 Front Placement
Figure 2.7-2 Rear Placement
NuMaker-MS51PC
Aug 30, 2019 Page 24 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
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
NuMaker-MS51PC
Aug 30, 2019 Page 25 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
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.
Figure 3.2-1 Nu-Link USB Driver Installation Setup
NuMaker-MS51PC
Aug 30, 2019 Page 26 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Figure 3.2-2 Nu-Link USB Driver Installation
NuMaker-MS51PC
Aug 30, 2019 Page 27 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
3.3 BSP Firmware Download
Download and unzip the Board Support Package (BSP).
Download and unzip MS51_Series_BSP_Keil when using Keil C51. Download and unzip MS51_Series_BSP_IAR when using IAR EW8051.
NuMaker-MS51PC
Aug 30, 2019 Page 28 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
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.
Figure 3.4-2 ICE USB Connector
3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 3.4-3.
NuMaker-MS51PC
Aug 30, 2019 Page 29 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
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.
Figure 3.4-4 PuTTY Session Setting
NuMaker-MS51PC
Aug 30, 2019 Page 30 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
3.5 Find the Example Project
Use the “Template” project as an example. The project can be found under the BSP folder as shown:
MS51_Series_BSP_Keil_V1.XX.XXX
SampleCode
Template
Keil
IAR
Figure 3-5 Template Project Folder Path
NuMaker-MS51PC
Aug 30, 2019 Page 31 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
3.6 Execute the Project under Toolchains
Open and execute the project under the toolchain. The section 3.6.1, 3.6.2 describe the steps of executing project in Keil PK51, IAR EW8051 respectively.
3.6.1 Keil PK51
This section provides steps to beginners on how to run a project by using Keil PK51.
Double click the “Template.uvproj” to open the project.
1
2
3
Figure 3.6-1 Project File Migrate to Version 5 Format
1. 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, please rework section 3.6.1.
Figure 3.6-2 Debugger Setting in Options Window
NuMaker-MS51PC
Aug 30, 2019 Page 32 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
Figure 3.6-3 Programming Setting in Options Window
2. 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.
1 3
2
4
1. Rebuild
3. Download
4. Start/Stop Debug
2. Successfully compile
Figure 3.6-4 Compile and Download the Project
3. 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
NuMaker-MS51PC
Aug 30, 2019 Page 33 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
2. Stop
3 1 21. Run
3. Reset
Figure 3.6-5 Keil MDK Debug Mode
Figure 3.6-6 Debug Message on Serial Port Terminal Windows
3.6.2 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.
NuMaker-MS51PC
Aug 30, 2019 Page 34 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
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
2
1. Make
3. Download and Debug
2. Successfully compile
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.
NuMaker-MS51PC
Aug 30, 2019 Page 35 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
1 2 3
1. Go
3. Reset
2. Break
Figure 3.6-9 IAR EW8051 Debug Mode
Figure 3.6-10 Debug Message on Serial Port Terminal Windows
NuMaker-MS51PC
Aug 30, 2019 Page 36 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
4 NUMAKER-MS51PC 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 OCD interface.
Figure 4.1-1 Nu-Link2-Me Circuit
GND
REDGREEN
NU
LIN
K_ID
1N
ULIN
K_ID
0
SW
DH
_C
LK
ICEU1
<M48SSIDAE>
PB
.61
PB
.52
PB
.43
PB
.34
PB
.25
PB
.16
PB
.07
PA
.11
8
PA
.10
9
PA
.910
PA
.811
PF
.612
VB
AT
13
PF
.514
PF
.415
PF
.316
PF.217PC.718PC.619PA.720PA.621VSS22VDD23LDO_CAP24PA.525PA.426PA.327PA.228PA.129PA.030VDDIO31nRESET32
PF
.033
PF
.134
PC
.535
PC
.436
PC
.337
PC
.238
PC
.139
PC
.040
HS
US
B_V
RE
S41
HS
US
B_V
DD
33
42
HS
US
B_V
BU
S43
HS
US
B_D
-44
HS
US
B_V
SS
45
HS
US
B_D
+46
HS
US
B_V
DD
12_C
AP
47
HS
US
B_ID
48
VSS49
LDO_CAP50
VDD51
PC.1452
PB.1553
PB.1454
PB.1355
PB.1256
AVDD57
VREF58
AVSS59
PB.1160
PB.1061
PB.962
PB.863
PB.764
SW
DH
_D
AT
ICE
LE
D
ICE
VD
DS
WD
H_R
ST
#
HX
T_I
ICE_RSTICEVDD
HXT_O
SWO
ICEC6
1u
C0603ISPLEDKEY1
GNDICEVDD
US
B_H
S_V
BU
S
US
B_H
S_C
AP
US
B_H
S_R
EX
T
GN
DU
SB
_H
S_D
+
US
B_H
S_D
-
USB_HS_CAP
ICEC2
1u
C0603
ICE
_D
AT
ICE
_C
LK
SP
IM_D
3
SP
IM_M
ISO
0
SP
IM_C
S
SP
IM_M
OS
I0
SP
IM_C
LK
SP
IM_D
2
GND
ICEVDD
USB_HS_VBUS
ICED30.1u
C0603
DEBUG RESET
ICEVDD
ICER310KR0603
ICE_RST
ICEC9
1uC0603
ICE_DATICE_CLKICE_RST
ICE_DAT
ICEVDD
ICE_CLK
ICEJ1
HEADER_5(NC)
12345
ICEVDDICER210K
R0603
ICER410K
R0603
ETMD1
ETMCK_MOSIETMD0_MISO
ETMD2_CKETMD3_SS
ICE_RXICE_RX_S
ICESW2
SMD HPS604-E
ICE_TXICE_TX_S
VCOM SWITCH
ETMD2_CKETMD3_SS
ETMCK_MOSIETMD0_MISO
NULINK_ID0 NULINK_ID1
Nu-Trace, ID0 = 1, ID1 = 1Nu-Link2, ID0 = 0, ID1 = 1Nu-LInk2-Me, ID0 = 0, ID1 = 0
NULINK ID
SWDH_DATSWDH_CLKSWDH_RST#
GND
TICEDAT
TICERST
MCUVCC_DIODE
MCU_RXMCU_TX
TICECLK
ICE_TX_SICE_RX_S
MCUVCC
1 2
ICED4
SS24A
ICER1200 1%
R0603
HS
US
B_V
DD
33
HXT_O
HXT_I
ICEC10 20p
C0603
ICEC11 20p
C0603
12M Crystal
ICEX1
12MHz SMD X3225B1
XIN
2
GND
4GND
3XOUT
3.3V
SPIM_MISO0
ICEU2
W25Q16JVSSIQ
SOP8\5.23/1.27MM
CS#1
DO2
WP#3
GND4
DI5CLK6HOLD#7VCC8
3.3V
SPI FLASH
ICEC12
0.1u
C0603
SN74LV2T45DCUR
ICEU4
SOP8/3.1/0.5
GND4 A23
VCCA1
DIR5
A12
B26B17VCCB8
SPIM_CLK_LV
SN74LV2T45DCUR
ICEU3
SOP8/3.1/0.5
GND4 A23
VCCA1
DIR5
A12
B26B17VCCB8
SPIM_MOSI0_LV
SPIM_CS_LV
SPIM_CS
ICEVDD3.3V
SPIM_CS_LV SPIM_CLKSPIM_MOSI0
SPIM_CLK_LVSPIM_MOSI0_LV
ICEVDD3.3V
ICER1810KR0603
3.3V
ICER1910KR0603
3.3V
ICE INTERFACE
ICEJ4
HEADER 2.54 5X2 (NC)
1 23 45 67 89 10
Title
Size File Name : Rev
Date: Sheet of
Author :
Nu-Link2-Me 1.0
Nu-Link2-Me
CMHuangA3
1 3Thursday, January 24, 2019
SWDH_DATSWDH_CLKSWDH_RST#
SWO
ICE_RX_S
ICE_TX_S
ICEC7
4.7u
C0603
ICEC1
0.1u
C0603
ICEVDD
ICEC8470p
C0603
MSG_EN
MS
G_E
N
ETMD3_SS I2C1_SCL QSPI_SS BUSY
5V
ETMD2_CK I2C1_SDA QSPI_CLK START
ETMCK_MOSI UART0_RX QSPI_MOSIPASSICE_RX
ETMD0_MISO UART0_TX QSPI_MISOFAILICE_TX
USB_HS_VBUS ICEJ3
micro USB 5pin
MICRO_USB_AB
VBUS1
D-2
D+3
GND5
ID4
Shield6
Shield7
Shield8
Shield9
Shield10
Shield11
DM
DP
ICEL2
FERRITE BEAD
L0603
ICER60
ICER70
USB_HS_D-
USB_HS_D+
USB 2.0 HIGH SPEED DEVICES
ISPLED
RED
ICELED
GREEN1 2
ICES3
0805 LED G (綠光 ) 普亮KP-2012
DPDM
ICERP1
8P4R-330
8P4RA
1 23 45 67 8
ICEJ2
HEADER04(NC)
1234
ICEVDD
USB_HS_VBUS
1 2
ICES20805 LED R (紅光 ) 高亮KP-2012
1 2
ICES10805 LED Y (黃光 )高亮
KP-2012
1 2
ICES0
0805 LED R (紅光 ) 高亮KP-2012
LED
KEY1
ICEVDD
KEY
ICER510KR0603ICESW1
3x6x5 2PIN SMD
SW-2P-SMD
MCUVCC_DIODE
MCUVCC_DIODE
3.3V
ICE5V
ICE5V
ICEVDD
5V
ICE5VUSB_HS_VBUS
Power Switch
1 2
ICED1
SS24A
ICEUP2ACE1117_ADJ
IN3
AD
J1
OU
T2
OU
T4
ICEUP1AMS1117_3.3v
IN3
GN
D1
OU
T2
OU
T4
ICER8120,1%R0603
ICER982, 1%
R0603
3.3V
ICEVCC
ICEJPR2
1&2 (0 ohm)
123
1.8V 3.3V 3.3VICECT110uF/10VTANT-A
12 1.8V
MCUVCC
ICEJPR1
1&2 (0 ohm)
1234
1.8V
ICECT310uF/10V
12
ICEC5
0.1u
C0603
ICEVCC ICEVDD
ICEL1
FERRITE BEAD
ICECT210uF/10VTANT-A
12
Off-page Connector
ICEC3
1u
C0603
ICEC4
0.1u
C0603
NuMaker-MS51PC
Aug 30, 2019 Page 37 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
4.2 MS51 Platform
Figure 4.2-1 shows the MS51 platform circuit.
Figure 4.2-1 MS51 Platform Circuit
VDD
J1
HEADER 2.54 5X2 (NC)
1 23 45 67 89 10
P31_UART0_RXDP30_UART0_TXD
ICE
P19P20
SW13x6x5 2PIN SMD
SW-2P-SMD
P21
C910uC0603
R310KR
R0603
P24 P24_XT1_OUT
P22P23 P23_XT1_IN
RESET
VDD
nRESET
P17 P17_LED_RP18
VDD_MCU
P26_ICE_CLKP26P25
P29P28
P32
P27
P31 P31_UART0_RXDP30 P30_UART0_TXD
12
LEDG1GreenLED0805
SW2
SMD HPS602-E
nRESETP26_ICE_CLKP5_ICE_DAT
R14100KR
R0603
R13100KR
R0603
UP2AMS1117_5v
IN3
GN
D1
OU
T2
OU
T4
Title
Size Document Number Rev
Date: Sheet of
NuMaker-MS51PC
v1.1MS51PC0AECustom
2 3Tuesday , September 17, 2019
Bypass Cap
P17 - P24
P9 - P16
P1 - P8
P25 - P32
NU1_VIN
R7330R
R0603
1 2
D2
SS24A
C30.1uC0603
R6330R
R0603
CT510uF/10VTANT-A
12
12
LEDR1RedLED0805
VDDVDD_MCU
VDDVDD_MCU
P1.5_NU4_D10
TICEDAT
VDD
GND
P2.5_NU4_D12
P1.7_NU4_D13P3.0_NU4_D11TICERST
P10
P14P13P12P11
P16P15
P1.1_NU4_D8P1.2_NU4_D9P3.2_NU3_D4
P24_P0.1
P17_P3.5P3.1_NU3_D5
P1.0_NU3_D3P23_P0.0
P3.3_NU3_D2
P0.4_NU2_A3
P3.4_NU3_D0
P0.3_NU2_A4TICECLK
P0.5_NU3_D1MCU_TXMCU_RX
P3.6_NU3_D6P3.7_NU3_D7
P2.2_NU2_A0
P2.4_NU2_A2
P1.4_NU4_SDAP1.3_NU4_SCL
P2.1_NU2_A5
P2.3_NU2_A1
P1 nRESET
P5 P5_ICE_DATP4 GNDP3P2
P6 VDD_MCUP7P8
1 2
D1
SS24A
USB Device
UP1AMS1117_3.3v
IN3
GN
D1
OU
T2
OU
T4
NU1_3VCC
CT410uF/10VTANT-A
12
NU1_5VCC
P24_XT1_OUT
P23_XT1_IN
R16 0
R2 0
R5 0
AMMETERNC
1 2
MCUVCC_DIODE
X1
32MHz 49S SMDXTAL\LP\SMD
C8 20p
C2 20p
HXT & LXT Crystal
JP2
NC
1234
JP1
NC
1234
VDD
CT210uF/10V
12
Power
LED
L1
FERRITE BEADICE5V
P17_LED_RC100.1u
CT11uF/16V
12
USB_VBUS
J2
micro USB 5pin
MICRO_USB_AB
VBUS1
D-2
D+3
GND5
ID4
Shield6
Shield7
Shield8
Shield9
Shield10
Shield11
L3
FERRITE BEADL0603
USB_VBUS
U2
<MS51PC0AE>P
2.0
/nR
ES
ET
1
P3
.02
P1
.73
VS
S4
P1
.6/I
CE
_D
AT
5
VD
D6
P1
.57
P2
.58
P3.79P3.610P1.411P1.312P2.413P2.314P2.215P2.116
P3
.517
P3
.118
P3
.219
P1
.220
P1
.121
P1
.022
P0
.023
P0
.124
P3.325
P0.2/ICE_CLK26
P0.327
P0.428
P0.529
P0.630
P0.731
P3.432
P4
P8
P5
P6
P7
P1
P3
P2
P14P15P16
P11P10
P12P13
P9
H2
H-3.4X6
1
H1
H-3.4X6
1
H4
H-3.4X6
1
H3
H-3.4X6
1
P20
P19
P18
P17
Mounting Hole
P24
P23
P22
P21
P29P28P27P26P25
P32P31P30
VDD_2
P9
VDD
NU1_3VCC
NU1_5VCC
R12 0(NC)
NuMaker-MS51PC
Aug 30, 2019 Page 38 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
4.3 Extension Connector
Figure 4.3-1 shows extension connectors of NuMaker-MS51PC.
Figure 4.3-1 Extension Connectors Circuit
P1
P6P5P4P3P2
P8P7
P1.5_NU4_D10P2.5_NU4_D12
JP3
HEADER8x2/2.54 (NC)
2468
10121416
13579111315
GND
VDD
TICEDAT
JP4
HEADER8x2/2.54 (NC)
2468
10121416
13579111315
JP5
HEADER8x2/2.54 (NC)
2468
10121416
13579111315
JP6
HEADER8x2/2.54 (NC)
2468
10121416
13579111315
P20P21P22
P17P18
P24P23
P19
VDDP22
P17P18
P24P23
P19P20P21
P29P28
P26P27
P25
P32P31P30
P3.4_NU3_D0
P0.3_NU2_A4TICECLKP3.3_NU3_D2
P29P28
P26P27
P25
P0.5_NU3_D1MCU_TXMCU_RX
P0.4_NU2_A3
P32P31P30
P13
P9P10
P12P11
P17 - P24
P3.2_NU3_D4
P16P15P14
P3.1_NU3_D5
P1.0_NU3_D3P1.1_NU4_D8P1.2_NU4_D9
P23_P0.0P24_P0.1
P17_P3.5
P13P12
P10P11
P9
P16P15P14
P1.4_NU4_SDAP1.3_NU4_SCL
P3.6_NU3_D6P3.7_NU3_D7
P2.1_NU2_A5
P2.3_NU2_A1P2.2_NU2_A0
P2.4_NU2_A2
P1.7_NU4_D13P3.0_NU4_D11TICERST
P24 - P32
External Connector
UNO Interface
P1 - P8
P9 - P18
P2
P4P3
P1
P8P7P6P5
Title
Size Document Number Rev
Date: Sheet of
NuMaker-MS51PC
v1.1Ext. ConnectorCustom
3 3Tuesday , September 17, 2019
NU1
HEADER 2.54 8X1 f emale
NC1
VDD2
MCU_RESET3
3VCC4
5VCC5
VSS6
VSS7
VIN8
NU3
HEADER 2.54 8X1 f emale
D01D12D23D34D45D56D67D78
NU2
HEADER 2.54 6X1 f emale
A01
A12
A23
A34
A4/SDA5
A5/SCL6
NU4
HEADER 2.54 10X1 f emale
D81D92D103D114D125D136VSS7VREF8I2C_SDA9I2C_SCL10
GNDGND
TICERST
P0.4_NU2_A3
P2.3_NU2_A1P2.4_NU2_A2
P2.2_NU2_A0
P1.4_NU4_SDAP1.3_NU4_SCL
P0.3_NU2_A4P2.1_NU2_A5
P1.5_NU4_D10
P1.7_NU4_D13
VDDGND
P1.1_NU4_D8P1.2_NU4_D9
P3.0_NU4_D11P2.5_NU4_D12
P3.1_NU3_D5P3.2_NU3_D4
P3.6_NU3_D6P3.7_NU3_D7
P3.4_NU3_D0P0.5_NU3_D1P3.3_NU3_D2P1.0_NU3_D3
NU1_VIN
NU1_5VCCNU1_3VCC
NuMaker-MS51PC
Aug 30, 2019 Page 39 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
5 REVISION HISTORY
Date Revision Description
2019.08.30 1.00 Initial Release.
NuMaker-MS51PC
Aug 30, 2019 Page 40 of 40 Rev 1.00
NU
MA
KE
R-M
S51
PC
US
ER
MA
NU
AL
Maker N
u-m
bed
NU
C472 U
ser M
an
ual
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.