Mini57
ARM Cortex
®
-M0
32-bit Microcontroller
NuMicro Family
Mini57 Series
Datasheet
®
MINI57 SERIES DATASHEET
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
Apr. 06, 2017
Page 1 of 131
Rev.1.00
Mini57
TABLE OF CONTENTS
1 GENERAL DESCRIPTION................................................................................. 7
2 FEATURES ........................................................................................................ 8
3 ABBREVIATIONS ............................................................................................ 12
4 PARTS INFORMATION LIST AND PIN CONFIGURATION............................ 13
4.1
4.2
4.3
NuMicro
®
Mini57 Naming Rule ................................................................................... 13
NuMicro
®
Mini57 Series Selection Guide ................................................................... 14
Pin Configuration ........................................................................................................ 15
4.3.1
4.3.2
4.3.3
TSSOP 28-Pin ................................................................................................................ 15
TSSOP 20-Pin ................................................................................................................ 16
QFN 33-Pin .................................................................................................................... 17
4.4
Pin Description ........................................................................................................... 19
4.4.1
4.4.2
Mini57 Series Pin Description ......................................................................................... 19
GPIO Multi-function Pin Summary .................................................................................. 31
5 BLOCK DIAGRAM ........................................................................................... 34
5.1
6.1
NuMicro
®
Mini57 Block Diagram ................................................................................ 34
ARM
®
Cortex
®
-M0 Core ............................................................................................. 35
6.1.1
6.1.2
Overview ........................................................................................................................ 35
Features ......................................................................................................................... 36
6 FUNCTIONAL DESCRIPTION ......................................................................... 35
6.2
System Manager ........................................................................................................ 37
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
6.2.7
6.2.8
6.2.9
6.2.10
Overview ........................................................................................................................ 37
System Reset ................................................................................................................. 37
Power Modes and Wake-up Sources ............................................................................. 43
System Power Architecture ............................................................................................ 46
System Memory Mapping ............................................................................................... 47
Register Protection ......................................................................................................... 48
Memory Organization ..................................................................................................... 50
System Timer (SysTick) ................................................................................................. 53
Nested Vectored Interrupt Control (NVIC) ...................................................................... 58
System Control Registers ............................................................................................... 78
MINI57 SERIES DATASHEET
6.3
Clock Controller .......................................................................................................... 87
6.3.1
6.3.2
6.3.3
6.3.4
6.3.5
6.3.6
Overview ........................................................................................................................ 87
Auto Trim ........................................................................................................................ 89
System Clock and SysTick Clock ................................................................................... 89
Peripherals Clock Source Selection ............................................................................... 90
Power-down Mode Clock ................................................................................................ 92
Frequency Divider Output ............................................................................................... 92
6.4
Flash Memory Controller (FMC) ................................................................................. 94
6.4.1
6.4.2
Overview ........................................................................................................................ 94
Features ......................................................................................................................... 94
6.5
General Purpose I/O (GPIO) ...................................................................................... 95
Apr. 06, 2017
Page 2 of 131
Rev.1.00
Mini57
6.5.1
6.5.2
6.5.3
Overview ........................................................................................................................ 95
Features ......................................................................................................................... 95
GPIO Interrupt and Wake-up Function ........................................................................... 96
6.6
Timer Controller (TIMER) ........................................................................................... 97
6.6.1
6.6.2
Overview ........................................................................................................................ 97
Features ......................................................................................................................... 97
6.7
Enhanced Input Capture Timer (ECAP) ..................................................................... 98
6.7.1
6.7.2
Overview ........................................................................................................................ 98
Features ......................................................................................................................... 98
6.8
Enhanced PWM Generator (EPWM) ......................................................................... 99
6.8.1
6.8.2
Overview ........................................................................................................................ 99
Features ......................................................................................................................... 99
6.9
Basic PWM Generator (BPWM) ............................................................................... 101
6.9.1
6.9.2
Overview ...................................................................................................................... 101
Features ....................................................................................................................... 101
6.10
Watchdog Timer (WDT) ........................................................................................... 102
6.10.1 Overview ...................................................................................................................... 102
6.10.2 Features ....................................................................................................................... 102
6.11
USCI – Universal Serial Control Interface Controller ............................................... 103
6.11.1 Overview ...................................................................................................................... 103
6.11.2 Features ....................................................................................................................... 103
6.12
USCI – UART Mode ................................................................................................. 104
6.12.1 Overview ...................................................................................................................... 104
6.12.2 Features ....................................................................................................................... 104
6.13
USCI – SPI Mode ..................................................................................................... 105
6.13.1 Overview ...................................................................................................................... 105
6.13.2 Features ....................................................................................................................... 105
MINI57 SERIES DATASHEET
6.14
USCI – I
2
C Mode ...................................................................................................... 107
6.14.1 Overview ...................................................................................................................... 107
6.14.2 Features ....................................................................................................................... 107
6.15
Hardware Divider (HDIV).......................................................................................... 108
6.15.1 Overview ...................................................................................................................... 108
6.15.2 Features ....................................................................................................................... 108
6.16
Analog to Digital Converter (ADC) ........................................................................... 109
6.16.1 Overview ...................................................................................................................... 109
6.16.2 Features ....................................................................................................................... 109
6.17
Analog Comparator (ACMP) .................................................................................... 110
6.17.1 Overview ...................................................................................................................... 110
6.17.2 Features ....................................................................................................................... 110
6.18
Programmable Gain Amplifier (PGA) ....................................................................... 111
6.18.1 Overview ...................................................................................................................... 111
6.18.2 Features ....................................................................................................................... 111
7 APPLICATION CIRCUIT ................................................................................ 112
Apr. 06, 2017
Page 3 of 131
Rev.1.00
Mini57
8 ELECTRICAL CHARACTERISTICS .............................................................. 113
8.1
8.2
8.3
Absolute Maximum Ratings ..................................................................................... 113
DC Electrical Characteristics .................................................................................... 114
AC Electrical Characteristics .................................................................................... 119
8.3.1
8.3.2
8.3.3
8.3.4
8.3.5
8.3.6
External Input Clock ..................................................................................................... 119
External 4~24 MHz High Speed Crystal (HXT)............................................................. 119
External 32.768 kHz XTAL Oscillator (LXT) ................................................................. 119
Typical Crystal Application Circuits............................................................................... 119
48 MHz Internal High Speed RC Oscillator (HIRC) ...................................................... 120
10 kHz Internal Low Speed RC Oscillator (LIRC) ......................................................... 120
8.4
Analog Characteristics ............................................................................................. 121
8.4.1
8.4.2
8.4.3
8.4.4
8.4.5
8.4.6
8.4.7
12-bit SAR ADC............................................................................................................ 121
LDO & Power Management .......................................................................................... 122
Low Voltage Reset ....................................................................................................... 122
Brown-out Detector....................................................................................................... 123
Power-on Reset ............................................................................................................ 123
Comparator .................................................................................................................. 124
PGA .............................................................................................................................. 124
8.5
9.1
9.2
9.3
Flash DC Electrical Characteristics .......................................................................... 126
28-Pin TSSOP (4.4x9.7x1.0 mm)............................................................................. 127
20-Pin TSSOP (4.4x6.5x0.9 mm)............................................................................. 128
33-pin QFN33 (4x4x0.8 mm) .................................................................................... 129
9 PACKAGE DIMENSIONS .............................................................................. 127
10 REVISION HISTORY................................................................................. 130
MINI57 SERIES DATASHEET
Apr. 06, 2017
Page 4 of 131
Rev.1.00
Mini57
List of Figures
Figure 4.1-1 NuMicro
®
Mini57 Series Selection Code ................................................................... 13
Figure 4.3-1 NuMicro
®
Mini57 Series TSSOP 28-pin Diagram ...................................................... 15
Figure 4.3-2 NuMicro
®
Mini57 Series TSSOP 28-pin Multi-function Diagram ............................... 15
Figure 4.3-3 NuMicro
®
Mini57 Series TSSOP 20-pin Diagram ...................................................... 16
Figure 4.3-4 NuMicro
®
Mini57 Series TSSOP 20-pin Multi-function Diagram ............................... 16
Figure 4.3-5 NuMicro
®
Mini57 Series QFN 33-pin Diagram .......................................................... 17
Figure 4.3-6 NuMicro
®
Mini57 Series QFN 33-pin Multi-function Diagram .................................... 18
Figure 5.1-1 NuMicro
®
Mini57 Block Diagram ............................................................................... 34
Figure 6.1-1 Functional Block Diagram .......................................................................................... 35
Figure 6.2-1 System Reset Resources .......................................................................................... 38
Figure 6.2-2 nRESET Reset Waveform ......................................................................................... 40
Figure 6.2-3 Power-on Reset (POR) Waveform ............................................................................ 40
Figure 6.2-4 Low Voltage Reset (LVR) Waveform......................................................................... 41
Figure 6.2-5 Brown-out Detector (BOD) Waveform ....................................................................... 42
Figure 6.2-6 Power Mode State Machine ...................................................................................... 43
Figure 6.2-7 NuMicro
®
Mini57 Series Power Architecture Diagram .............................................. 46
Figure 6.2-8 NuMicro
®
Mini57 Flash, Security and Configuration Map ......................................... 50
Figure 6.2-9 SRAM Block Diagram ................................................................................................ 52
Figure 6.3-1 Clock Generator Block Diagram ................................................................................ 87
Figure 6.3-2 Clock Generator Global View Diagram...................................................................... 88
Figure 6.3-3 System Clock Block Diagram .................................................................................... 89
Figure 6.3-4 SysTick Clock Control Block Diagram ....................................................................... 90
Figure 6.3-5 Peripherals Bus Clock Source Selection for PCLK ................................................... 91
Figure 6.3-6 Clock Source of Frequency Divider ........................................................................... 93
Figure 6.3-7 Block Diagram of Frequency Divider ......................................................................... 93
Figure 6.5-1 I/O Pin Block Diagram ............................................................................................... 95
Figure 6.13-1 SPI Master Mode Application Block Diagram (x=0, 1) .......................................... 105
Figure 6.13-2 SPI Slave Mode Application Block Diagram (x=0, 1) ............................................ 105
Figure 6.14-1 I
2
C Bus Timing ....................................................................................................... 107
Figure 8.3-1 Mini57 Typical Crystal Application Circuit................................................................ 120
MINI57 SERIES DATASHEET
Apr. 06, 2017
Page 5 of 131
Rev.1.00