nuvoton numicro 1t 8051-based microcontroller nutiny-sdk … · 2018-11-07 · ml51 aug 28, 2018...
TRANSCRIPT
ML51
Aug 28, 2018 Page 1 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
1T 8051
NuMicro 8-bit Microcontroller
Nuvoton NuMicro
1T 8051-based Microcontroller
NuTiny-SDK-ML51
User Manual
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
ML51
Aug 28, 2018 Page 2 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
Table of Contents
1 OVERVIEW ......................................................................................... 3
2 NUTINY-SDK-ML51 INTRODUCTION ......................................................... 4
Virtual COM Port Switch Description ............................................................... 4 2.1
NuTiny-SDK-ML51 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
NuTiny-SDK- ML51 PCB Placement ............................................................... 8 2.4
3 How to Start NuTiny-SDK-ML51 on the Keil C-51 μVision® IDE ........................... 9
Downloading and Installing Keil C-51 μVision® IDE Software .................................. 9 3.1
Downloading and Installing Nuvoton Nu-Link Driver ............................................. 9 3.2
Hardware Setup ........................................................................................ 9 3.3
Example Program ...................................................................................... 9 3.4
4 NuTiny-EVB-ML51 Schematic ................................................................. 12
Nu-Link-Me Schematic ............................................................................... 12 4.1
NuTiny-SDK-ML51 Schematic ...................................................................... 13 4.2
NuTiny-SDK-ML51 Connector ...................................................................... 14 4.3
5 Downloading NuVOTON 8bit 8051 MCUs Related Files from Nuvoton Website ...... 15
Downloading Nuvoton Keil C-51 μVision® IDE Driver ........................................... 15 5.1
Downloading Nuvoton 8bit 8051 MCUs ML51 Series Sample Code ......................... 16 5.2
6 REVISION HISTORY ............................................................................ 17
ML51
Aug 28, 2018 Page 3 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
1 OVERVIEW
NuTiny-SDK-ML51 is the specific development tool for 8-bit high performance 1T 8051-based microcontroller ML51 series. User can use NuTiny-SDK-ML51 to develop and verify the application program easily.
The ML51 is a Flash embedded 1T 8051-based microcontroller. The instruction set of the ML51 is fully compatible with the standard 80C51 with performance enhanced.
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 I2C, 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.
ML51
Aug 28, 2018 Page 4 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
2 NUTINY-SDK-ML51 INTRODUCTION
NuTiny-SDK-ML51 uses the ML51PC0AE as the target microcontroller. Figure 2-1 is NuTiny-SDK-ML51 for the ML51 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 ML51PC0AE UART0.
ICE ControllerExtended Connector
Reset Key
Power LED
USB Connector
GND
VCC
GPIO LED
ML51PC0AE
LXT circuit
HXT circuit
Extended Connector
Virtual COM
Enable Switch
Power Select
Connector
5V or 3.3V
Figure 2-1 NuTiny-SDK-ML51 (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 ML51PC0AE 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-SDK-ML51 Power Setting and Connector 2.2
2.2.1 Power Setting
J1: USB port in Nu-Link-Me J5 and J2: VCC in Voltage connector in NuTiny-EVB-ML51
ML51
Aug 28, 2018 Page 5 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
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: GND 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
ML51
Aug 28, 2018 Page 6 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
Pin Assignment for Extended Connector 2.3
NuTiny-EVB-ML51 provides ML51PC0AE on board and the extended connector for TSSOP-20 pin. Table 2-1 is the pin assignment for ML51AT20.
Pin No Pin Name and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 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
22 P1.5\I2C1_SDA
23 P1.6\UART0_TXD
24 P1.7\UART0_RXD\SC2_CLK
25 VSS
26 P4.6\PWM1_BRAKE\PWM0_CH0\T0\CLO\INT0
27 VDD
28 P3.3\SPI1_SS\PWM1_CH0\IC0\PWM0_BRAKE
29 P3.2\ADC_CH7\ACMP1_N1\SPI1_CLK\UART3_RXD\SC1_DAT \PWM1_CH1\IC2\CLO
30 P3.1\ADC_CH6\ACMP0_P3\ACMP1_P3\SPI1_MISO\UART3_TXD \SC1_DAT\UART0_TXD\PWM1_CH2\IC2
31 P3.0\SPI1_MOSI\UART0_RXD\PWM1_CH3\IC0
32 VREF
Table 2-1 Pin Assignment for ML51AT20
ML51
Aug 28, 2018 Page 8 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
NuTiny-SDK- ML51 PCB Placement 2.4
User can refer to Figure 2-2 for the NuTiny-SDK-ML51 PCB placements.
Figure 2-2 NuTiny-SDK-ML51 PCB Placement
ML51
Aug 28, 2018 Page 9 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
3 HOW TO START NUTINY-SDK-ML51 ON THE KEIL C-51 μVISION® IDE
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-1
Figure 3-1 NuTiny-SDK-ML51 Hardware Setup
Example Program 3.4
This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-ML51 board. It can be found on Figure 3-2 list directory and downloaded from Nuvoton 8bit 8051 MCUs website.
The example file can be found in the directory list shown in Figure 3-2.
ML51
Aug 28, 2018 Page 10 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
Directory
Figure 3-2 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
ML51
Aug 28, 2018 Page 11 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
Enter Debug mode interface
6. Execute the program
7. The I/O LED on the NuTiny-EVB-ML51 board will be toggled on.
6
ML51
Aug 28, 2018 Page 12 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
4 NUTINY-EVB-ML51 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
D
NUC_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+
ML51
Aug 28, 2018 Page 13 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
NuTiny-SDK-ML51 Schematic 4.2
C1020pFC0603
C920pFC0603
X32_OUT
HXT & LXT Crystal
XT1_OUT X32_IN
C120pFC0603
C220pFC0603
R5NC
R0603
XT1_IN
X1
12MHz SMD 49US, XSC88C012000K0
Y2
X3215 32.768KHz SMD
Tit le
Size Docum ent Num ber Rev
Dat e: Sheet of
ML51PC0AE Target Board
v1.0ML51 MCUCustom
2 3Monday , June 25, 2018
CB21uFC0805
CB30.1uFC0603
CB40.01uFC0603
VDD
L1L0603
CB50.1uFC0603
CB610uF/10V(0805)C0805
VDD
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
LDO_CAP
U2
ML51PC0AE
P2
.5/A
DC
_C
H0
/AC
MP
0_
P0
/AC
MP
1_
P0
/I2
C0
_S
CL
/PW
M0
_C
H0
/UA
RT
2_
TX
D/T
0_
INT
01
P2
.4/A
DC
_C
H1
/AC
MP
0_
N0
/I2
C0
_S
DA
/PW
M0
_C
H1
/UA
RT
2_
RX
D/T
1/I
NT
12
P2
.3/A
DC
_C
H2
/AC
MP
0_
P1
/AC
MP
1_
P1
/I2
C1
_S
CL
/UA
RT
1_
TX
D/P
WM
0_
CH
2/P
WM
0_
BR
AK
E3
P2
.2/A
DC
_C
H3
/AC
MP
1_
N0
/I2
C1
_S
DA
/UA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1_
SC
L/P
1.4
21
I2C
1_
SD
A/P
1.5
22
UA
RT
0_
TX
D/P
1.6
23
UA
RT
0_
RX
D/P
1.7
24
P3.1/ADC_CH6/ACMP0_P3/ACMP1_P3/SPI1_MISO/UART3_TXD/UART0_TXD/PWM1_CH2/TM2_EXT230
P3.0/SPI1_MOSI/UART0_RXD/PWM1_CH3/TM2_EXT031
AVDD/VREF32
P26P25
P32P31
P29P30
P28P27
P5
P6
P7
P8
P1
P3
P2
P4
P11P10P9
P16P15
P13P14
P12P
20
P19
P18
P17
P24
P23
P21
P22
P25
VDDP4.6
P27P26
P2.4P2.5
P3P2P1
X32_OUTP8X32_INP7
P6P5P4
P2.0P2.1P2.2P2.3
P5.4P5.5
P11 LED_GXT1_OUTP10
P5.2
P15P14P13P12
P0.3P0.2
P5.3XT1_INP9
P0.0P5.6
P0.1
nRESETP16
P4.0
nRESET
P19P20P21
P5.0
P4.1
ICE_DATP17ICE_CLKP18
P1.4
P5.1
P22P23
P1.7
P1.6
P1.5
P24
P3.1
P3. 0
P3.3
P32AVDD
P3.2P29
RXD
P31
TXD
P30
P28
Pin17 - Pin24
Pin9 - Pin16
Pin1 - Pin8
AVDD
Pin25 - Pin32
GND
CM 2
1uFC0603
CM1
0.1uF
C0603
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
ML51
Aug 28, 2018 Page 14 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
NuTiny-SDK-ML51 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
ML51
Aug 28, 2018 Page 15 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
5 DOWNLOADING NUVOTON 8BIT 8051 MCUS 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
ML51
Aug 28, 2018 Page 16 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
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
ML51
Aug 28, 2018 Page 17 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
6 REVISION HISTORY
Date Revision Description
2018.08.28 1.00 Initial release
ML51
Aug 28, 2018 Page 18 of 18 Rev 1.00
NU
TIN
Y-S
DK
-ML5
1 U
SE
R M
AN
UA
L
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.