M051BN.pdf 데이터시트 (총 30 페이지) - 파일 다운로드 M051BN 데이타시트 다운로드

No Preview Available !

M051 BN/DN/DE
ARM® Cortex® -M0
32-bit Microcontroller
NuMicro® Family
M051 BN/DN/DE Series
Technical Reference 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
Apr. 13, 2015
Page 1 of 431
Rev 1.03

No Preview Available !

M051 BN/DN/DE
Table of Contents
1 GENERAL DESCRIPTION··················································································································11
2 FEATURES ···········································································································································12
3 ABBREVIATIONS ································································································································16
3.1 List of Abbreviations ···················································································································16
4 PARTS INFORMATION AND PIN CONFIGURATION ·····································································18
4.1 NuMicro® M051 Series M05xxBN Selection Guide································································18
4.2 NuMicro® M051 Series M05xxDN Selection Guide ·······························································19
4.3 NuMicro® M051 Series M05xxDE Selection Guide································································20
4.4 Pin Diagrams ·······························································································································22
4.4.1 QFN 33-pin···································································································································22
4.4.2 LQFP 48-pin·································································································································23
4.5 Pin Description ····························································································································24
5 BLOCK DIAGRAM·······························································································································27
6 FUNCTIONAL DESCRIPTION············································································································28
6.1 ARM® Cortex® -M0 Core ·············································································································28
6.2 System Manager ·························································································································30
6.2.1 Overview·······································································································································30
6.2.2 System Reset·······························································································································30
6.2.3 System Power Architecture ·······································································································31
6.2.4 System Memory Map··················································································································32
6.2.5 Whole System Memory Mapping ······························································································33
6.2.6 System Manager Controller Register Map ··············································································34
6.2.7 System Timer (SysTick) ·············································································································64
6.2.8 System Timer Control Register Map ························································································64
6.2.9 Nested Vectored Interrupt Controller (NVIC) ··········································································68
6.2.10 System Control Block (SCB) ·································································································109
6.2.11 Register Protection··················································································································117
6.3 Clock Controller·························································································································119
6.3.1 Overview·····································································································································119
6.3.2 System Clock and SysTick Clock ···························································································122
6.3.3 Power-down Mode Clock ·········································································································123
6.3.4 Frequency Divider Output ········································································································123
6.3.5 Register Map······························································································································125
6.3.6 Register Description··················································································································126
6.4 Flash Memory Controller (FMC) ·····························································································144
6.4.1 Overview·····································································································································144
6.4.2 Features······································································································································144
6.4.3 Block Diagram ···························································································································145
6.4.4 FMC Memory Organization······································································································146
6.4.5 Data Flash ··································································································································148
6.4.6 User Configuration ····················································································································149
6.4.7 Boot Selection····························································································································151
6.4.8 In-Application-Programming (IAP) ··························································································152
6.4.9 In-System-Programming (ISP) ································································································153
Apr. 13, 2015
Page 2 of 431
Rev 1.03

No Preview Available !

M051 BN/DN/DE
6.4.10 ISP Registers Control Procedure··························································································154
6.4.11 Multi-booting by Vector Remapping ·····················································································156
6.4.12 Register Map····························································································································158
6.4.13 Register Description················································································································159
6.5 External Bus Interface (EBI) ····································································································168
6.5.1 Overview·····································································································································168
6.5.2 Features······································································································································168
6.5.3 Block Diagram ···························································································································169
6.5.4 Basic Configuration···················································································································170
6.5.5 Functional Description ··············································································································170
6.5.6 Register Map······························································································································175
6.5.7 Register Description··················································································································176
6.6 General Purpose I/O (GPIO) ···································································································179
6.6.1 Overview·····································································································································179
6.6.2 Features······································································································································179
6.6.3 Basic Configuration···················································································································179
6.6.4 Functional Description ··············································································································180
6.6.5 GPIO Interrupt and Wake-up Function ··················································································181
6.6.6 Register Map······························································································································183
6.6.7 Register Description··················································································································185
6.7 Timer Controller (TMR) ············································································································197
6.7.1 Overview·····································································································································197
6.7.2 Features······································································································································197
6.7.3 Block Diagram ···························································································································198
6.7.4 Basic Configuration···················································································································198
6.7.5 Functional Description ··············································································································199
6.7.6 Register Map······························································································································203
6.7.7 Register Description··················································································································205
6.8 PWM Generator and Capture Timer (PWM)·········································································215
6.8.1 Overview·····································································································································215
6.8.2 Features······································································································································216
6.8.3 Block Diagram ···························································································································217
6.8.4 Basic Configuration···················································································································221
6.8.5 Functional Description ··············································································································221
6.8.6 Register Map······························································································································234
6.8.7 Register Description··················································································································236
6.9 Watchdog Timer (WDT) ···········································································································264
6.9.1 Overview·····································································································································264
6.9.2 Features······································································································································264
6.9.3 Block Diagram ···························································································································265
6.9.4 Basic Configuration···················································································································265
6.9.5 Functional Description ··············································································································266
6.9.6 Register Map······························································································································268
6.9.7 Register Description··················································································································269
6.10 Window Watchdog Timer (WWDT) (M05xxDN/DE Only) ···················································272
6.10.1 Overview···································································································································272
6.10.2 Features····································································································································272
6.10.3 Block Diagram··························································································································272
6.10.4 Basic Configuration ·················································································································273
6.10.5 Functional Description ············································································································273
Apr. 13, 2015
Page 3 of 431
Rev 1.03

No Preview Available !

M051 BN/DN/DE
6.10.6 Register Map····························································································································276
6.10.7 Register Description················································································································277
6.11 UART Controller (UART) ·········································································································282
6.11.1 Overview···································································································································282
6.11.2 Features····································································································································282
6.11.3 Block Diagram··························································································································283
6.11.4 Basic Configuration ·················································································································285
6.11.5 Functional Description ············································································································285
6.11.6 Register Map····························································································································299
6.11.7 Register Description················································································································300
6.12 I2C Serial Interface Controller (I2C) ························································································322
6.12.1 Overview···································································································································322
6.12.2 Features····································································································································322
6.12.3 Basic Configuration ·················································································································323
6.12.4 Functional Description ············································································································323
6.12.5 I2C Protocol ······························································································································324
6.12.6 I2C Protocol Registers ············································································································326
6.12.7 Operation Modes ·····················································································································330
6.12.8 Register Map····························································································································338
6.12.9 Register Description················································································································339
6.13 Serial Peripheral Interface (SPI) ·····························································································349
6.13.1 Overview···································································································································349
6.13.2 Features····································································································································349
6.13.3 Block Diagram··························································································································350
6.13.4 Basic Configuration ·················································································································350
6.13.5 Functional Description ············································································································351
6.13.6 Timing Diagram ·······················································································································360
6.13.7 Programming Examples ·········································································································363
6.13.8 Register Map····························································································································367
6.13.9 Register Description················································································································368
6.14 Analog-to-Digital Converter (ADC) ·························································································385
6.14.1 Overview···································································································································385
6.14.2 Features····································································································································385
6.14.3 Block Diagram··························································································································386
6.14.4 Basic Configuration ·················································································································387
6.14.5 Functional Description ············································································································387
6.14.6 Register Map····························································································································397
6.14.7 Register Description················································································································398
6.15 Analog Comparator (ACMP) ···································································································408
6.15.1 Overview···································································································································408
6.15.2 Features····································································································································408
6.15.3 Block Diagram··························································································································409
6.15.4 Basic Configuration ·················································································································410
6.15.5 Functional Description ············································································································411
6.15.6 Register Map····························································································································412
6.15.7 Register Description················································································································413
6.16 Hardware Divider (HDIV) (M05xxDN/DE Only) ····································································419
6.16.1 Overview···································································································································419
6.16.2 Features····································································································································419
6.16.3 Basic Configuration ·················································································································419
Apr. 13, 2015
Page 4 of 431
Rev 1.03

No Preview Available !

M051 BN/DN/DE
6.16.4 Functional Description ············································································································420
6.16.5 Register Map····························································································································421
6.16.6 Register Description················································································································422
7 ELECTRICAL CHARACTERISTICS ································································································427
8 PACKAGE DIMENSIONS ·················································································································428
8.1 LQFP-48 (7x7x1.4mm2 Footprint 2.0mm) ·············································································428
8.2 QFN-33 (5X5 mm2, Thickness 0.8mm, Pitch 0.5 mm) ························································429
9 REVISION HISTORY ·························································································································430
Apr. 13, 2015
Page 5 of 431
Rev 1.03