NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev...

17
NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 NUTINY-ML51EB USER MANUAL 1T 8051 8-bit Microcontroller NuTiny-ML51EB 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

Transcript of NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev...

Page 1: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 1 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

1T 8051

8-bit Microcontroller

NuTiny-ML51EB

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

Page 2: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 2 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

Table of Contents

1 OVERVIEW ......................................................................................... 3

2 NUTINY-ML51EB INTRODUCTION ............................................................ 4

Virtual COM Port Switch Description ............................................................... 4 2.1

NuTiny-ML51EB Power Setting and Connector .................................................. 4 2.2

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

Pin Assignment for Extended Connector .......................................................... 6 2.3

3 HOW TO START NUTINY-ML51EB ON THE KEIL .......................................... 8

Downloading and Installing Keil C-51 μVision® IDE Software .................................. 8 3.1

Downloading and Installing Nuvoton Nu-Link Driver ............................................. 8 3.2

Hardware Setup ........................................................................................ 8 3.3

Example Program ...................................................................................... 8 3.4

4 NUTINY-ML51EB SCHEMATIC ............................................................... 11

Nu-Link-Me Schematic ............................................................................... 11 4.1

NuTiny-ML51EB Schematic ......................................................................... 12 4.2

NuTiny-ML51EB Connector ......................................................................... 13 4.3

5 DOWNLOAD RELATED FILES FROM NUVOTON WEBSITE ........................... 14

Downloading Nuvoton Keil C-51 μVision® IDE Driver ........................................... 14 5.1

Downloading Nuvoton 8bit 8051 MCUs ML51 Series Sample Code ......................... 15 5.2

6 REVISION HISTORY ............................................................................ 16

Page 3: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 3 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

1 OVERVIEW

NuTiny-ML51EB is the specific development tool for 8-bit high performance 1T 8051-based microcontroller ML51 16K Flash size series. User can use NuTiny-ML51EB to develop and verify the application program easily.

The ML51 runs up to 24 MHz at a wide voltage range from 1.8V to 5.5V, and contains up to 64/32/16/8 Kbytes Flash called APROM for programming code. The ML51 Flash supports In-Application-Programming (IAP) function, which enables on-chip firmware updates. Partial Flash can be optionally configured as Data Flash programmed by IAP and read by IAP or MOVC instruction. The ML51 includes an additional configurable up to 4/3/2/1 Kbytes Flash area called LDROM, in which the Boot Code normally resides for carrying out the In-System-Programming (ISP). To facilitate mass production programming and verification, the Flash is allowed to be programmed and read electronically by parallel Writer/Programmer or In-Circuit-Programming (ICP) with Nu-Link. Once programmed and verified, the programmed code can be protected by the Flash lock mechanism for not being read out by any external programming tool.

The ML51 provides rich peripherals including 256 bytes of SRAM, 4/2/1 Kbytes of auxiliary RAM (XRAM), up to 43 general purpose I/O, two 16-bit Timers/Counters 0/1, one 16-bit Timer2 with three-channel input capture module, one Watchdog Timer (WDT), one Self Wake-up Timer (WKT), one 16-bit auto-reload Timer3 for general purpose or baud rate generator, two UARTs with frame error detection and automatic address recognition, two ISO7816 Smartcard interface, two SPI, two I

2C, 12 enhanced PWM output channels with dead zone control, two analog

comparators, eight-channel shared pin interrupt for all I/O ports, and one 12-bit ADC at 500 ksps. There are a total of 30 sources with 4-level-priority interrupts capability.

The ML51 is equipped with four clock sources and supports on-the-fly clock switching via software control. The four clock sources include two sets of external crystal inputs (HXT, LXT), 38.4 kHz internal oscillator, and one 24 MHz internal high-precision ±2% oscillator. The ML51 provides additional power monitoring detection such as power-on reset and 7-level brown-out detection, which stabilizes the power-on/off sequence for a high reliability system design.

Through the high performance of 1T 8051 core, low power performance of ML51 and rich well-designed peripherals, the ML51 benefits for low-power, battery powered devices, general purpose, home appliances, or motor control system.

Page 4: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 4 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

2 NUTINY-ML51EB INTRODUCTION

NuTiny-ML51EB uses the ML51EB9AE as the target microcontroller. Figure 2.1-1 is NuTiny-ML51EB for the ML51 16K Flash size series, the left portion is called NuTiny-EVB-ML51 and the right portion is Debug Adaptor called Nu-Link-Me.

NuTiny-EVB-ML51 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 ML51 series features. The NuTiny-EVB-ML51 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 Keil

, please

refer to “Nuvoton Nu-Link debug adapter user manual” in detail. This document 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 ML51EB9AE UART0.

ICE ControllerExtended Connector

Reset Key

Power LED

USB Connector

VDD

VSS

GPIO LED

ML51EB9AE

HXT circuit

Extended Connector

Virtual COM

Enable Switch

Power Select

Connector

5V or 3.3V

Figure 2.1-1 NuTiny-ML51EB (PCB Board)

Virtual COM Port Switch Description 2.1

The switch in Nu-Link-Me, SW3, determines that the virtual COM port function is enabled or disabled. When user turns on all of the positions of switch, the virtual COM port function will be enabled. By using virtual COM port function, user can access the USB device in the same way as it would access a standard COM port to ML51EB9AE UART0 (P3.1 and P3.0) . To use this function, user needs to install “VCOM Driver” at first. User can get “Nuvoton USB driver” from NuMicroDVD www.nuvoton.com\NuMicroDVD in folder “Software Utilities” or from website: Nu-Link_USB_Driver

NuTiny-ML51EB Power Setting and Connector 2.2

2.2.1 Power Setting

J1: USB port in Nu-Link-Me J5 and J2: VDD in Voltage connector in NuTiny-ML51EB

Page 5: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 5 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

Model JPR1 J1USB Port JP7 & JP9 VCC33 MCU Voltage

Model 1 Select VCC33

(default) Connect to PC DC 3.3V output DC 3.3V

Model 2 Select VCC5 Connect to PC DC 5V output DC 5V

Model 3 X X DC 1.8 V ~ 5.5 V Input Voltage from J5 & J2 input

2.2.2 Debug Connector

JP5: Connector in target board (NuTiny-EVB-ML51) for connecting with Nuvoton ICE adaptor (Nu-Link-Me)

JP6: Connector in ICE adaptor (Nu-Link-Me) for connecting with a target board (for example NuTiny-EVB-ML51)

2.2.3 ICE USB Connector

J1: Mini USB Connector in Nu-Link-Me connected to a PC USB port

2.2.4 Extended Connector

JP5 and JP7: Show all chip pins in NuTiny-EVB-ML51

2.2.5 Reset Button

SW1: Reset button in NuTiny-EVB-ML51

2.2.6 Power Connector

J5:1.8V ~ 5.5V VCC connector in NuTiny-EVB-ML51 J2: VSS connector in NuTiny-EVB-ML51

2.2.7 Virtual COM Port Function Switch

SW3: Switch ON/OFF to enable or disable Nu-Link-Me virtual COM port function.

Function Switch

Descriptions 1 2 3 4

Enable ON ON ON ON Enable Nu-Link-Me virtual COM

port function

Disable OFF OFF OFF OFF Disable Nu-Link-Me virtual COM

port function

Page 6: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 6 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

Pin Assignment for Extended Connector 2.3

NuTiny-EVB-ML51 provides ML51EB9AE on board and the extended connector for TSSOP-20 pin. is the pin assignment for ML51AT20.

Pin No Pin Name And Function

01 I2C1_SCL / P1.4

02 I2C1_SDA / P1.5

03 UART0_TXD / P1.6

04 UART0_RXD / P1.7

05 VSS

06 INT0 / CLKO / TM0 / PWM0_CH0 / PWM1_BRAKE / P4.6

07 VDD

08 CLKO / TM2_EXT1 / PWM1_CH1 / UART3_RXD / SPI1_CLK / ACMP1_N1 / ADC_CH7 / P3.2

09 TM2_EXT2 / PWM1_CH2 / UART0_TXD / UART3_TXD / SPI1_MISO / ACMP1_P3 / ACMP0_P3 / ADC_CH6 / P3.1

10 TM2_EXT0 / PWM1_CH3 / UART0_RXD / SPI1_MOSI / P3.0

11 VREF

12 INT0 / T0 / UART2_TXD / PWM0_CH0 / I2C0_SCL / ACMP1_P0 / ACMP0_P0 / ADC_CH0 / P2.5

13 INT1 / T1 / UART2_RXD / PWM0_CH1 / I2C0_SDA / ACMP0_N0 / ADC_CH1 / P2.4

14 PWM0_BRAKE / PWM0_CH2 / UART1_TXD / I2C1_SCL / ACMP1_P1 / ACMP0_P1 / ADC_CH2 / P2.3

15 P2.2 / ADC_CH3 / ACMP1_N0 / I2C1_SDA / UART1_RXD / PWM0_CH3

16 P2.1 / ADC_CH4 / ACMP1_P2 / ACMP0_P2 / UART2_TXD / I2C1_SCL / PWM0_CH4 / PWM1_CH4 / PWM0_BRAKE

17 P2.0 / ADC_CH5 / ACMP0_N1 / UART2_RXD / I2C1_SDA / PWM0_CH5 / PWM1_CH5 / PWM0_BRAKE

18 P5.3 / UART0_TXD / I2C0_SCL / XT1_IN

19 P5.2 / UART0_RXD / I2C0_SDA / XT1_OUT

20 P0.3 / SPI0_SS / SPI1_SS / UART1_TXD / I2C1_SCL / PWM0_CH2 / CLKO / PWM1_BRAKE

21 P0.2 / SPI0_CLK / SPI1_CLK / UART1_RXD / I2C1_SDA / PWM0_CH3

22 P0.1 / SPI0_MISO / SPI1_MISO / UART0_TXD / PWM0_CH4

23 P0.0 / SPI0_MOSI / SPI1_MOSI / UART0_RXD / PWM0_CH5

24 nRESET

25 P5.0 / UART1_TXD / I2C1_SCL / UART0_TXD / ICE_DAT

26 P5.1 / UART1_RXD / I2C1_SDA / UART0_RXD / ICE_CLK

27 P4.1 / UART2_TXD / I2C0_SCL / PWM1_CH4 / ACMP0_O

28 P4.0 / UART2_RXD / I2C0_SDA / PWM1_CH5 / ACMP1_O

Table 2.3-1 Pin Assignment for ML51EB9AE

Page 7: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 7 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

Page 8: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 8 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

3 HOW TO START NUTINY-ML51EB ON THE KEIL

Downloading and Installing Keil C-51 μVision

® IDE Software 3.1

Please connect to the Keil company website (http://www.keil.com) to download the Keil

C-51

μVision® IDE and install the RVMDK.

Downloading and Installing Nuvoton Nu-Link Driver 3.2

Please connect to Nuvoton 8bit 8051 MCUs website (http://www.nuvoton.com/8bit-8051-mcus) to download the “Nu-Link_Keil

_Driver” file. Please refer to section 5.1 for the detailed download flow.

After the Nu-Link driver is downloaded, please unzip the file and execute the file to install the driver.

Hardware Setup 3.3

The hardware setup is shown as Figure 3.3-1

Figure 3.3-1 NuTiny-ML51EB Hardware Setup

Example Program 3.4

This example demonstrates the ease of downloading and debugging an application on a NuTiny-ML51EB board. It can be found on Figure 3.4-1 list directory and downloaded from Nuvoton 8bit 8051 MCUs website.

The example file can be found in the directory list shown in Figure 3.4-1.

Page 9: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 9 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

Directory

Figure 3.4-1 Example Directory

To use this example:

1. Open a project from the ML51 sample code installation folder (default as C:\Nuvoton) using

the following path:

\SampleCode\StdDriver\GPIO_InputOutput\KEIL\

2. Execute “GPIO.uvproj”

Enter Compile Mode Interface

3. Compiler

4. Download the program code to Flash

5. Enter / Exit Debug mode

3 4 5

Page 10: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 10 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

Enter Debug Mode Interface

6. Execute the program

7. The I/O LED on the NuTiny-ML51EB board will be toggled on.

6

Page 11: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 11 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

4 NUTINY-ML51EB SCHEMATIC

Nu-Link-Me Schematic 4.1

N12

12M Oscillators

ISPLED

RED

ICELED

GREEN

ICEDAT

ICE_RST

ICECLK

VCC_connect

RX

D

SWD connect

TX

DNUC_RST#

ICE_USB

RXD

ICERST

RESET

power switch

ICE_CLKICE_RST

ICE_DAT

ICE_TX

ICE_TXTit le

Size Docum ent Num ber Rev

Dat e: Sheet of

1 3.0

Nu-Link-Me

A4

1 3Monday , June 25, 2018

5V

ICE CONNECT IF

DEBUG

TXD

RP1

8P4R-330

1 23 45 67 8

1 2PD1

SS24A

RTDA1100K

C5

0.1u

SW3

SW DIP-4/SM(EHS104LD)

R133

JPR1

1&2 (0 ohm)

123

C4

1uF/16V

12

ICERST

UP1AMS1117_3.3v

IN3

GN

D1

OU

T2

OU

T4

R410K

R633

RTCK1100K

12

ICP1

YELLOW

C720p

J1

MICRO USB 5P 母 座 AB-ty pe R/A SMT P/N:2290536250

GND5 NC4 DP3 DM2 VCC1

SHIELD6

SHIELD7

SHIELD8

SHIELD9

C320p

12

IDLE1

RED

CB1

0.1u

ICE_RX

12M_I

12

ICE1

RED

RTDA333

CP110uF/10V

12

R3 33

1 2

D1 SS24A

JP3

NC

1234

12

BUSY1

GREEN

L2FERRITE BEAD

X2

12MHz

L3FERRITE BEAD

U1

NUC12SRE3DE

PA0/ADC044PA1/ADC145PA2/ADC246PA3/ADC347PA4/ADC448INT0/PB14

1

CPO1/PB132

CPO0/PB123

VB

US

17

VD

D33

18

D-

19

D+

20

PB

0/R

X0

21

PB

1/T

X0

22

PB

2/R

TS

023

PB

3/C

TS

024

PC

2/S

DI0

026

PC

1/S

PC

LK

027

PC

0/S

S00

28

PC11/SDO1033PC10/SDI1034PC9/SPCLK135PC8/SS1036PA15/PWM337PA14/PWM238PA13/PWM139

X32I4

X32O5

I2C1SCL/PA116

I2C0SDA/PA89

I2C1SDA/PA107

I2C0SCL/PA98

RX1/PB410

TX1/PB511

RTS1/PB612

CTS1/PB713

PC

3/S

DO

00

25

AVSS43

ICE_CLK42

ICE_DAT41

PA12/PWM040

LDO14

VSS16 VDD15

AD

C/P

A5

49

AD

C6/P

A6

50

AD

C7/P

A7

51

AV

DD

52

CP

N0/P

C7

53

CP

P0/P

C6

54

CP

N1/P

C15

55

CP

P1/P

C14

56

INT

1/P

B15

57

XT

1_O

ut

58

XT

1_In

59

/RE

SE

T60

VS

S1

61

VD

D1

62

PV

SS

63

ST

AD

C/T

M0/P

B8

64

PE

529

PB

11/T

M3

30

PB

10/S

S01/T

M2

31

PB

9/S

S11/T

M1

32

RTDA20

C810uF/10V

12

C6

1u

JP6

NC

1 23 45 67 89 10

JP1

NC

12345

L4

FERRITE BEAD

RRSET1100K

VCC

VCC

VCC

VCC

VCC

ADAVSS

USBVBUS

ICE_AVDD

VCC

5V

USBVBUS

ICE_AVDD

ADAVSS

USBVBUS

VCC 3.3V

VCC

VCC

GND

VCC

USBVBUS

VCC

12M_O

ICE_RX

VCC_connect

DM

ICECLK

DP

VCOM_pin

ICE_RXICE_TX

ICECLK

DMDP

12M

_IPVSS

NU

C_R

ST

#

12M

_O

ISPLEDREDGREEN

ICELED

VB

US

US

B_D

+U

SB

_D

-

ICERST

VCC_connect

ICE_CLKICE_DAT

TICEDATTICECLKTICERSTMCU_TXDMCU_RXD

N13

ICEDAT

ICEDAT

3.3VVCOM_pin

ICE_Status

VCOM switch

USB_D-USB_D+

Page 12: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 12 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

NuTiny-ML51EB Schematic 4.2

HXT Crystal

XT1_OUT

C120pFC0603

C220pFC0603

R5NC

R0603

XT1_IN

X1

12MHz SMD 49US, XSC88C012000K0

P2P1

P1.4

P6P5P4P3

Tit le

Size Docum ent Num ber Rev

Dat e: Sheet of

ML51PC0AE Target Board

v1.0ML51 MCUCustom

2 3Monday , January 14, 2019

P1.7P1.6P1.5

P8P7

P3.2VDDP4.6GND

P3.0

AVDD

TXDP9

P11 AVDD

P3.1

P13P12

RXDP10

P2.3P2.4P2.5

P14

CB21uFC0805

CB30.1uFC0603

CB40.01uFC0603

VDD

L1L0603

CB50.1uFC0603

CB610uF/10V(0805)C0805

VDD

P5.0

ICE_CLKP26ICE_DATP25

P4.0P4.1P5.1

P28P27

nRESET

P21

P23nRESETP24

P0.1P0.0

P20 LED_G

P22

P5.2P0.3P0.2

XT1_OUTP19

P2.0P5.3

P16P17

XT1_INP18

P2.2P2.1

P15

VREF & AVDD Cap

Bypass Cap

LED

12

LEDG1GreenLED0805

R7330R

R0603

12

POWER1RedLED0805

R8330R

R0603

VDD

LED_G

RESET

SW1SMD按 鍵 開 關 6X6X5H(黑 )卷 代

SW4-SMDC111uFC0603

VDD

nRESET

R210KR

R0603

AVDD

P26P25

P28P27

P11P10P9

P16P15

P13P14

P12

P20P19P18P17

P24P23

P21P22

Pin15 - Pin28Pin1 - Pin14

U2

ML51EC9AE

P1.4P1.5P1.6P1.7VSSP4.6VDDP3.2P3.1P3.0VREFP2.5P2.4P2.3

P4.0P4.1

ICE_CLK/P5.1ICE_DAT/P5.0

nRESETP0.0P0.1P0.2P0.3P5.2P5.3P2.0P2.1P2.2

P5P6P7P8

P1

P3P2

P4

CM10.1uFC0603

VDD_1

Debug Interface & Off Page

nRESET

ICE_DAT

VDD

ICE_CLK

JP8

1 23 45 67 89 10

RXDTXD

GND

VCC_connect

MCU_RXDMCU_TXD

TICECLKTICEDAT

TICERST

Page 13: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 13 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

NuTiny-ML51EB Connector 4.3

JP2

HEADER 8X2

1 23 45 67 89 1011 1213 1415 16

JP4

HEADER 8X2

1 23 45 67 89 1011 1213 1415 16

JP7

HEADER 8X2

1 23 45 67 89 1011 1213 1415 16

JP5

HEADER 8X2

1 23 45 67 89 1011 1213 1415 16

Tit le

Size Docum ent Num ber Rev

Dat e: Sheet of

ML51PC0AE Target board

v1.0Ext. ConnectorA

3 3Monday , June 25, 2018

VDD / GND Header

J2

HEADER 2x2

1234

PB.4PB.3PB.2

PB.0PB.1

PF.5PF.4

J5

HEADER 2x2

1234

VDD

PB.4PB.3PB.2

PB.0PB.1

PF.5PF.4

PB.5

P9 - P16

P1 - P8 P17 - P24

P25 - P32

PA.2PA.3

nRESET

PA.1

PF.15

PF.3PF.2

PA.0

PA.2PA.3

nRESET

PA.1

PF.15

PF.3PF.2

PA.0

PB.5

PA.13

PA.15

PA.12

PA.14

PB.14PB.15

PB.13PB.12

VDD

External Connector

PA.13

PA.15

PA.12

PA.14

PF.0PF.1PC.1PC.0

PB.14PB.15

PB.13PB.12

VDD

GNDLDO_CAP

AVDD

PF.0PF.1PC.1PC.0

GNDLDO_CAP

AVDD

Page 14: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 14 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

5 DOWNLOAD RELATED FILES FROM NUVOTON WEBSITE

Downloading Nuvoton Keil C-51 μVision

® IDE Driver 5.1

Step1 Visit The Nuvoton 8bit 8051 MCUs Website: HTTP://WWW.NUVOTON.COM/8BIT-8051-MCUS

Step2

Step3

Step4 Download the Nuvoton_Keil_ Drive

3. Click here to download

Page 15: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 15 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

Downloading Nuvoton 8bit 8051 MCUs ML51 Series Sample Code 5.2

Step1 Visit The Nuvoton 8bit 8051 MCUs Website: HTTP://WWW.NUVOTON.COM/8BIT-8051-MCUS

Step2

Step3 Download the ML51_BSP_ C51_V1.0

Page 16: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 16 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

6 REVISION HISTORY

Date Revision Description

2019.01.29 1.00 Initial release

Page 17: NuTiny-ML51EB User Manual - Nuvoton · 2019-03-04 · NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 INY-1 EB L 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro®

NuTiny-ML51EB

Jan 29, 2019 Page 17 of 17 Rev 1.00

NU

TIN

Y-M

L51

EB

US

ER

MA

NU

AL

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.