Rainbow Electronics NUC120 User Manual

NUC120 Series DATA SHEET
Cortex™-M0
32-BIT MICROCONTROLLER
NUC120 Product Data Sheet
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.
Publication Release Date: May 31, 2010
- 1 - Revision V1.02
NUC120 Series DATA SHEET
Table of Contents-
1 GENERAL DESCRIPTION ......................................................................................................... 5
2 FEATURES ................................................................................................................................. 6
3 PARTS INFORMATION LIST AND PIN CONFIGURATION .................................................... 10
3.1 Products Selection Guide ............................................................................................. 10
3.1.1 NUC120 Products Selection Guide ................................................................................10
3.2 Pin Configuration .......................................................................................................... 11
3.2.1 NUC120 LQFP 100 pin...................................................................................................11
3.2.2 NUC120 LQFP 64 pin.....................................................................................................12
3.2.3 NUC120 LQFP 48 pin.....................................................................................................13
3.3 Pin Description.............................................................................................................. 14
3.3.1 NUC120 Pin Description.................................................................................................14
4 BLOCK DIAGRAM .................................................................................................................... 21
4.1 NUC120 Block Diagram................................................................................................ 21
5 FUNCTIONAL DESCRIPTION.................................................................................................. 22
5.1 ARM® Cortex™-M0 core............................................................................................... 22
5.2 System Manager........................................................................................................... 24
5.2.1 Overview ........................................................................................................................24
5.2.2 System Reset .................................................................................................................24
5.2.3 System Timer (SysTick) .................................................................................................25
5.2.4 Nested Vectored Interrupt Controller (NVIC) .................................................................. 26
5.3 Clock Controller ............................................................................................................ 29
5.3.1 Clock Generator .............................................................................................................29
5.3.2 System Clock & SysTick Clock.......................................................................................30
5.3.3 Peripherals Clock ...........................................................................................................31
5.3.4 Power down mode (Deep Sleep Mode) Clock................................................................31
5.3.5 Frequency Divider Output...............................................................................................32
5.4 USB Device Controller.................................................................................................. 33
5.4.1 Overview ........................................................................................................................33
5.4.2 Features .........................................................................................................................33
5.4.3 Block Diagram ................................................................................................................34
5.5 General Purpose I/O..................................................................................................... 35
5.5.1 Overview and Features ..................................................................................................35
5.6 I2C Serial Interface Controller (Master/Slave).............................................................. 37
5.6.1 Introduction.....................................................................................................................37
5.6.2 Features .........................................................................................................................38
5.7 PWM Generator and Capture Timer............................................................................. 39
5.7.1 Introduction.....................................................................................................................39
5.7.2 Features .........................................................................................................................40
5.8 Real Time Clock (RTC)................................................................................................. 41
5.8.1 Overview ........................................................................................................................41
Publication Release Date: May 31, 2010
- 2 - Revision V1.02
NUC120 Series DATA SHEET
5.8.2 RTC Features .................................................................................................................41
5.9 Serial Peripheral Interface (SPI) Controller .................................................................. 42
5.9.1 Overview ........................................................................................................................42
5.9.2 Features .........................................................................................................................42
5.10 Timer Controller ............................................................................................................ 43
5.10.1 General Timer Controller .............................................................................................. 43
5.10.2 Features .......................................................................................................................43
5.11 Watchdog Timer............................................................................................................ 44
5.12 UART Interface Controller ............................................................................................ 45
5.12.1 Overview ......................................................................................................................45
5.12.2 Features of UART controller.........................................................................................46
5.13 PS2 Device Controller (PS2D)...................................................................................... 47
5.13.1 Overview ......................................................................................................................47
5.13.2 Features .......................................................................................................................47
5.14 I2S Controller ................................................................................................................ 48
5.14.1 Overview ......................................................................................................................48
5.14.2 Features .......................................................................................................................48
5.15 Analog-to-Digital Converter (ADC) ............................................................................... 49
5.15.1 Functional Description ..................................................................................................49
5.15.2 Features .......................................................................................................................49
5.16 Analog Comparator....................................................................................................... 50
5.16.1 Functional Description ..................................................................................................50
5.16.2 Features .......................................................................................................................50
5.17 PDMA Controller........................................................................................................... 51
5.17.1 Overview ......................................................................................................................51
5.17.2 Features .......................................................................................................................51
6 FLASH MEMORY CONTROLLER (FMC) ................................................................................ 52
6.1 Overview ....................................................................................................................... 52
6.2 Features........................................................................................................................52
7 ELECTRICAL CHARACTERISTICS......................................................................................... 53
7.1 Absolute Maximum Ratings .......................................................................................... 53
7.2 DC Electrical Characteristics ........................................................................................ 54
7.3 AC Electrical Characteristics ........................................................................................ 58
7.3.1 External XTAL1 Oscillator ..............................................................................................58
7.3.2 External 32kHz XTAL Oscillator .....................................................................................60
7.3.3 Internal 22.1184MHz Oscillator ......................................................................................60
7.3.4 Internal 10kHz Oscillator ................................................................................................60
7.4 Analog Characteristics .................................................................................................. 61
7.4.1 Specification of 12-bit SARADC .....................................................................................61
7.4.2 Specification of LDO & Power management ..................................................................62
7.4.3 Specification of Low Voltage Reset ................................................................................63
7.4.4 Specification of Brownout Detector.................................................................................63
Publication Release Date: May 31, 2010
- 3 - Revision V1.02
NUC120 Series DATA SHEET
7.4.5 Specification of Power-On Reset (5V)............................................................................63
7.4.6 Specification of Temperature Sensor .............................................................................64
7.4.7 Specification of Comparator ...........................................................................................64
7.4.8 Specification of USB PHY ..............................................................................................65
8 PACKAGE DIMENSIONS......................................................................................................... 67
8.1.1 100L LQFP (14x14x1.4 mm footprint 2.0mm) ................................................................67
8.1.2 64L LQFP (10x10x1.4mm footprint 2.0 mm ) .................................................................68
8.1.3 48L LQFP (7x7x1.4mm footprint 2.0mm) .......................................................................69
9 REVISION HISTORY ................................................................................................................70
Publication Release Date: May 31, 2010
- 4 - Revision V1.02
NUC120 Series DATA SHEET

1 GENERAL DESCRIPTION

The NUC120 series are 32-bit microcontrollers with embedded ARM® Cortex™-M0 core for industrial
control and applications need USB communication. The Cortex™-M0 is the newest ARM embedded
processor with 32-bit performance and at a cost equivalent traditional 8-bit microcontroller.
The NUC120 series embeds Cortex™-M0 core running up to 50 MHz with 32K/64K/128K-byte embedded flash and 4K/8K/16K-byte embedded SRAM. It also equips with plenty of peripheral devices, such as Timers, Watchdog Timer, RTC, PDMA, UART, SPI/SSP, I GPIO, USB 2.0 FS Device, 12-bit ADC, Analog Comparator, Low Voltage Detector and Brown-out detector.
2
C, I2S, PWM Timer,
Publication Release Date: May 31, 2010
- 5 - Revision V1.02
NUC120 Series DATA SHEET

2 FEATURES

Core
ARM® Cortex™-M0 core runs up to 50 MHz. One 24-bit system timer. Supports low power sleep-mode. Single-cycle 32-bit hardware multiplier. NVIC for the 32 interrupt inputs, each with 4-levels of priority. Serial Wire Debug supports with 2 watchpoints/4 breakpoints.
Wide operating voltage ranges from 2.5V to 5.5V
Flash EPROM Memory
32K/64K/128K bytes Flash EPROM for program code. 4KB flash for ISP loader Support In-system program(ISP) and In-application program(IAP) application code update 512 byte page erase for flash Configurable data flash address and size for 128KB system, fixed 4KB data flash for the 32KB
and 64KB system.
Support 2 wire ICP update from ICE interface Support fast parallel programming mode by external programmer.
SRAM Memory
4K/8K/16K bytes embedded SRAM. Support PDMA mode
PDMA (Peripheral DMA)
Support 9 channels PDMA for automatic data transfer between SRAM and peripherals.
Clock Control
Flexible selection for different applications. Build-in 22 MHz OSC (Trimmed to 1%) for system operation, and low power 10 kHz OSC for
watchdog and wakeup sleep operation.
Support one PLL, up to 50 MHz, for high performance system operation. External 12 MHz crystal input for USB and precise timing operation. External 32 kHz crystal input for RTC function and low power system operation.
GPIO
Four I/O modes:
Quasi bi-direction Push-Pull output Open-Drain output Input only with high impendence
TTL/Schmitt trigger input selectable. I/O pin can be configured as interrupt source with edge/level setting. High driver and high sink IO mode support.
Publication Release Date: May 31, 2010
- 6 - Revision V1.02
NUC120 Series DATA SHEET
Timers
4 sets of 24-bit timer with 8-bit prescaler. Counter auto reload.
Watch Dog Timer
Default ON/OFF by configuration setting Multiple clock sources 8 selectable time out period from 6ms ~ 3.0sec (depends on clock source) WDT can wake up power down/sleep. Interrupt or reset selectable on watchdog time-out.
RTC
Support software compensation by setting frequency compensate register (FCR) Support RTC counter (second, minute, hour) and calendar counter (day, month, year) Support Alarm registers (second, minute, hour, day, month, year) Selectable 12-hour or 24-hour mode Automatic leap year recognition Support time tick interrupt Support wake up function.
PWM/Capture
Built-in up to four 16-bit PWM generators provide eight PWM outputs or four complementary
paired PWM outputs.
Each PWM generator equipped with one clock source selector, one clock divider, one 8-bit
prescaler and one Dead-Zone generator for complementary paired PWM.
PWM interrupt synchronous to PWM period. Up to eight 16-bit digital Capture timers (shared with PWM timers) provide eight rising/falling
capture inputs.
Support Capture interrupt
UART
Up to three compatible 16550 UART devices. UART ports with flow control (TX, RX, CTS and RTS) UART0 with 64-byte FIFO is for high speed UART1/2(optional) with 16-byte FIFO for standard device Support IrDA (SIR) function Programmable baud-rate generator up to 1/16 system clock Support PDMA mode
SPI
Up to four sets of SPI device. Master up to 16 Mbps / Slave up to 10 Mbps. Support MICROWIRE/SPI master/slave mode (SSP) Full duplex synchronous serial data transfer Variable length of transfer data from 1 to 32 bits MSB or LSB first data transfer Rx and Tx on both rising or falling edge of serial clock independently 2 slave/device select lines when it is as the master, and 1 slave/device select line when it is as
the slave
Byte Sleeping mode in 32-bit transmission Support PDMA mode
Publication Release Date: May 31, 2010
- 7 - Revision V1.02
NUC120 Series DATA SHEET
2
C
I
Two sets of IMaster/Slave up to 1Mbit/s Bidirectional data transfer between masters and slaves Multi-master bus (no central master). Arbitration between simultaneously transmitting masters without corruption of serial data on
the bus
Serial clock synchronization allows devices with different bit rates to communicate vian one
serial bus.
Serial clock synchronization can be used as a handshake mechanism to suspend and resume
serial transfer.
Programmable clocks allow versatile rate control. I2C-bus controllers support multiple address recognition ( two slave address with mask option)
2
S
I
Interface with external audio CODEC Operate as either master or slave mode Capable of handling 8, 16, and 32 bit word sizes Mono and stereo audio data supported
2
S and MSB justified data format supported
ITwo 8 word FIFO data buffers are provided, one for transmit and one for receive Generates interrupt requests when buffer levels cross a programmable boundary Support two DMA requests, one for transmit and one for receive
2
C device.
USB 2.0 Full-Speed Device
One set of USB 2.0 FS Device 12Mbps On-chip USB Transceiver. Provide 1 interrupt source with 4 interrupt events. Support Control, Bulk In/Out, Interrupt and Isochronous transfers. Auto suspend function when no bus signaling for 3 ms. Provide 6 programmable endpoints. Include 512 Bytes internal SRAM as USB buffer. Provide remote wakeup capability. Support PDMA mode
ADC
12-bit SAR ADC with 800ksps Up to 8-ch single-end mode or 4-ch differential mode Single scan/single cycle scan/continuous scan Each channel with individual result register Scan on enabled channels Threshold voltage detection Conversion start by S/W, external pins Support PDMA Mode
Analog Comparator
Two analog comparator modules External input or internal bandgap voltage selectable at negative node Interrupt when compare result change Power down wake up
Publication Release Date: May 31, 2010
- 8 - Revision V1.02
NUC120 Series DATA SHEET
One built-in temperature sensor with 1 resolution.
Brown-out detector
With 4 levels: 4.5V/3.8V/2.7V/2.2V Support Brownout Interrupt and Reset option
One built-in LDO
Low Voltage Reset
Operating Temperature: -40 ~85℃℃
Packages:
All Green package (RoHS)
LQFP 100-pin / 64-pin / 48-pin
Publication Release Date: May 31, 2010
- 9 - Revision V1.02
NUC120 Series DATA SHEET

3 PARTS INFORMATION LIST AND PIN CONFIGURATION

3.1 Products Selection Guide

3.1.1 NUC120 Products Selection Guide

3.1.1.1 NUC120 series USB Line Selection Guide (Medium Density)
Part number Flash SRAM
NUC120LE3AN 128 KB 16 KB 2 1 2 1 1 4 1 8x12-bit 4x24-bit v v up to 31 LQFP48
NUC120LD3AN 64 KB 16 KB 2 1 2 1 1 4 1 8x12-bit 4x24-bit v v up to 31 LQFP48
NUC120RE3AN 128 KB 16 KB 2 2 2 1 1 6 2 8x12-bit 4x24-bit v v up to 45 LQFP64
NUC120RD3AN 64 KB 16 KB 2 2 2 1 1 6 2 8x12-bit 4x24-bit v v up to 45 LQFP64
NUC120VE3AN 128 KB 16 KB 3 4 2 1 1 8 2 8x12-bit 4x24-bit v v up to 76 LQFP100
NUC120VD3AN 64 KB 16 KB 3 4 2 1 1 8 2 8x12-bit 4x24-bit v v up to 76 LQFP100
NUC120VD2AN 64 KB 8 KB 3 4 2 1 1 8 2 8x12-bit 4x24-bit v v up to 76 LQFP100
UART
Connectivity
SPI/SSI
I2C USB
I2S PWM Comp. ADC Timer RTC
ISP ICP
I/O Package
3.1.1.2 NUC120 series USB Line Selection Guide (Low Density)
The following parts support one-channel PDMA
Part number Flash SRAM
NUC120LD2AN 64 KB 8 KB 2 1 2 1 1 4 1 8x12-bit 4x24-bit v v up to 31 LQFP48
NUC120LD1AN 64 KB 4 KB 2 1 2 1 1 4 1 8X12-Bit 4x24-bit v v up to 31 LQFP48
UART
Connectivity
SPI/SSI
I2C USB
I2S PWM Comp. ADC Timer RTC
ISP ICP
I/O Package
NUC120LC1AN 32 KB 4 KB 2 1 2 1 1 4 1 8X12-Bit 4x24-bit v v up to 31 LQFP48
NUC120RD2AN 64 KB 8 KB 2 2 2 1 1 4 2 8x12-bit 4x24-bit v v up to 45 LQFP64
NUC120RD1AN 64 KB 4 KB 2 2 2 1 1 4 2 8X12-Bit 4x24-bit v v up to 45 LQFP64
NUC120RC1AN 32 KB 4 KB 2 2 2 1 1 4 2 8X12-Bit 4x24-bit v v up to 45 LQFP64
Publication Release Date: May 31, 2010
- 10 - Revision V1.02

3.2 Pin Configuration

3.2.1 NUC120 LQFP 100 pin

PA.1/ADC1
PA.2/ADC2
PA.0/ADC0
5
AVSS
70
6
ADC5/PA.5
ADC6/PA.6
ADC7/SS21/PA.7
Vref
AVDD
SS20/PD.0
SPICLK2/PD.1
MISO20/PD.2
MOSI20/PD.3
MISO21/PD.4
MOSI21/PD.5
CPN0/PC.7
CPP0/PC.6
CPN1/PC.15
CPP1/PC.14
INT1/PB.15
XT1_Out
XT1_In
/RESET
VSS1
VDD1
PS2DAT
PS2CLK
PVSS
STADC/TM0/PB.8
PA.4/ADC4
7574737271
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
1
PA.3/ADC3
234
NUC120 Series DATA SHEET
VSS2
VDD2
ICE_DAT
ICE_CK
686766656469636261
7
8
9
PA.13/PWM1
PA.12/PWM0
LQFP 100-pin
101112131415161718192021222324
PC.9/SPICLK1
PC.10/MISO10
60
59
PC.11/MOSI10
PC.13/MOSI11
PC.12/MISO11
PE.0/PWM6
5857565554
PE.1/PWM7
PE.3
PE.2
535251
PE.4
PB.9/SS11/TM1
50
PB.10/SS01/TM2
49
PB.11/TM3/PWM4
48
PE.5/PWM5
47
PE.6
46
PC.0/SS00/I2SLRCLK
45
PC.1/SPICLK0/I2SBCLK
44
PC.2/MISO00/I2SDI
43
PC.3/MOSI00/I2SDO
42
PC.4/MISO01
41
PC.5/MOSI01
40
PD.15/TX2
39
PD.14/RX2
38
PD.7
37
PD.6
36
PB.3/CTS0
35
PB.2/RTS0
34
PB.1/TX0
33
PB.0/RX0
32
D+
31
D-
30
VDD33
29
VBUS
28
PE.7
27
PE.8
26
25
PC.8/SS10
PA.15/PWM3/I2SMCLK
PA.14/PWM2
VSS
X32I
PE.15
PE.14
PE.13
SS31/INT0/PB.14
X32O
CPO1/PB.13
CLKO/CPO0/PB.12
I2C1SCL/PA.11
I2C1SDA/PA.10
SS30/PD.8
I2C0SCL/PA.9
SPICLK3/PD.9
I2C0SDA/PA. 8
MISO31/PD.12
MISO30/PD.10
MOSI30/PD.11
TX1/PB.5
RX1/PB.4
MOSI31/PD.13
LDO
VDD
CTS1/PB.7
RTS1/PB.6
Publication Release Date: May 31, 2010
- 11 - Revision V1.02

3.2.2 NUC120 LQFP 64 pin

PA.4/ADC4
PA.3/ADC3
PA.2/ADC2
PA.1/ADC1
PA.0/ADC0
NUC120 Series DATA SHEET
ICE_DAT
ICE_CK
AVSS
PA.13/PWM1
PA.12/PWM0
PA.14/PWM2
PC.9/SPICLK1
PC.8/SS10
PA.15/PWM3/I2SMCLK
PC.11/MOSI10
PC.10/MISO10
46
ADC5/PA.5
ADC6/PA.6
ADC7/PA.7
AVDD
CPN0/PC.7
CPP0/PC.6
CPN1/PC.15
CPP1/PC.14
INT1/PB.15
XT1_Out
XT1_In
/RESET
VSS1
VDD1
PVSS
STADC/TM0/PB.8
48
47
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
1
2
INT0/PB.14
CPO1/PB.13
45
3
4
X32O
CLKO/CPO0/PB.12
4443424140
LQFP 64-pin
5
6
7
8
9
X32I
I2C0SCL/PA.9
I2C1SCL/PA.11
I2C0SDA/PA.8
I2C1SDA/PA.10
39
10
RX1/PB.4
Note:
1. PWM4 and PWM5 are only supported in medium density version.
3736353433
38
11
1213141516
TX1/PB.5
CTS1/PB.7
RTS1/PB.6
32
PB.9/TM1
31
PB.10/TM2
30
PB.11/TM3/PWM4
29
PE.5/PWM5
28
PC.0/SS00/I2SLRCLK
27
PC.1/SPICLK0/I2SBCLK
26
PC.2/MISO00/I2SDI
25
PC.3/MOSI00/I2SDO
24
PB.3/CTS0
23
PB.2/RTS0
22
PB.1/TX0
21
PB.0/RX0
D+
20
19
D-
18
VDD33
17
VBUS
VSS
LDO
VDD
*1
*1
Publication Release Date: May 31, 2010
- 12 - Revision V1.02

3.2.3 NUC120 LQFP 48 pin

PA.4/ADC4
PA.3/ADC3
PA.2/ADC2
NUC120 Series DATA SHEET
PA.1/ADC1
PA.0/ADC0
ICE_DAT
ICE_CK
AVSS
PA.13/PWM1
PA.12/PWM0
PA.15/PWM3/I2SMCLK
PA.14/PWM2
ADC5/PA.5
ADC6/PA.6
ADC7/PA.7
AVDD
CPN0/PC.7
CPP0/PC.6
INT1/PB.15
XT1_Out
XT1_In
/RESET
PVSS
STADC/TM0/PB.8
32363029282726
34
353133
37
38
39
40
41
42
43
44
45
46
47
48
1
CLKO/CPO0/PB.12
LQFP 48-pin
2
3
4
X32I
X32O
I2C1SCL/PA.11
I2C1SDA/PA.10
6
I2C0SCL/PA.9
7
I2C0SDA/PA.8
8
RX1/PB.4
9
TX1/PB.5
10511
LDO
VDD
25
24
PC.0/SS00/I2SLRCLK
23
PC.1/SPICLK0/I2SBCLK
22
PC.2/MISO00/I2SDI
21
PC.3/MOSI00/I2SDO
PB.3/CTS0
20
19
PB.2/RTS0
PB.1/TX0
18
17
PB.0/RX0
16
D+
15
D-
14
VDD33
13
VBUS
12
VSS
Publication Release Date: May 31, 2010
- 13 - Revision V1.02

3.3 Pin Description

3.3.1 NUC120 Pin Description

Pin No.
LQFP
100
LQFP
64
LQFP
Pin Name Pin Type Description
48
NUC120 Series DATA SHEET
1 PE.15
2 PE.14
3 PE.13
PB.14
4 1
5 2
6 3 1
7 4 2 X32O
8 5 3 X32I
9 6 4
/INT0
/SPISS31
PB.13
CPO1
PB.12
CPO0
CLKO
PA.11
I2C1SCL
I/O I/O I/O I/O
I I/O I/O
O
I/O
O O
I
O I/O I/O
General purpose input/output digital pin
General purpose input/output digital pin
General purpose input/output digital pin
General purpose input/output digital pin
/INT0: External interrupt1 input pin
/SPISS31: SPI3 2
General purpose input/output digital pin
Comparator1 output pin
General purpose input/output digital pin
Comparator0 output pin
Frequency Divider output pin
32.768 kHz crystal output pin
32.768 kHz crystal input pin
General purpose input/output digital pin
I2C1SCL: I2C1 clock pin
nd
slave select pin
10 7 5
PA.10
I2C1SDA
PA.9
11 8 6
I2C0SCL
PA.8
12 9 7
I2C0SDA
PD.8
13
/SPISS30
PD.9
14
SPICLK3
15 PD.10
I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O
General purpose input/output digital pin
I2C1SDA: I2C1 data input/output pin
General purpose input/output digital pin
I2C0SCL: I2C0 clock pin
General purpose input/output digital pin
I2C0SDA: I2C0 data input/output pin
General purpose input/output digital pin
/SPISS30: SPI3 slave select pin
General purpose input/output digital pin
SPICLK3: SPI3 serial clock pin
General purpose input/output digital pin
Publication Release Date: May 31, 2010
- 14 - Revision V1.02
LQFP
100
Pin No.
LQFP
64
LQFP
48
NUC120 Series DATA SHEET
Pin Name Pin Type Description
MISO30
PD.11
16
MOSI30
PD.12
17
MISO31
PD.13
18
MOSI31
PB.4
19 10 8
RX1
PB.5
20 11 9
TX1
PB.6
21 12
RTS1
PB.7
22 13
CTS1
I
I/O
O I/O
I
I/O
O I/O
I
I/O
O I/O
I/O
MISO30: SPI3 MISO (Master In, Slave Out) pin
General purpose input/output digital pin
MOSI30: SPI3 MOSI (Master Out, Slave In) pin
General purpose input/output digital pin
nd
MISO31: SPI3 2
General purpose input/output digital pin
MOSI31: SPI3 2
General purpose input/output digital pin
RX1: Data Receiver input pin for UART1
General purpose input/output digital pin
TX1: Data transmitter output pin for UART1
General purpose input/output digital pin
RTS1: Request to Send output pin for UART1
General purpose input/output digital pin
CTS1: Clear to Send input pin for UART1
MISO (Master In, Slave Out) pin
nd
MOSI (Master Out, Slave In) pin
23 14 10 LDO
24 15 11 VDD
25 16 12 VSS
26 PE.8
27 PE.7
28 17 13 VBUS
29 18 14 VDD33
30 19 15 D-
31 20 16 D+
PB.0
32 21 17
RX0
PB.1
33 22 18
TX0
P
P
P I/O I/O
USB USB USB USB
I/O
I
I/O
O
LDO output pin
Power supply for I/O ports and LDO source for internal PLL and digital function
Ground
General purpose input/output digital pin
General purpose input/output digital pin
POWER SUPPLY: From USB Host or HUB.
Internal Power Regulator Output 3.3V Decoupling Pin
USB Differential Signal D-
USB Differential Signal D+
General purpose input/output digital pin
RX0: Data Receiver input pin for UART0
General purpose input/output digital pin
TX0: Data transmitter output pin for UART0
Publication Release Date: May 31, 2010
- 15 - Revision V1.02
LQFP
100
Pin No.
LQFP
64
LQFP
48
NUC120 Series DATA SHEET
Pin Name Pin Type Description
34 23
35 24
36 19 PD.6
37 20 PD.7
38 PD.14
39 PD.15
40
41
42 25 21
PB.2
RTS0
PB.3
CTS0
PC.5
MOSI01
PC.4
MISO01
PC.3
MOSI00
I2SDO
I/O
I/O
I/O I/O I/O I/O I/O
O I/O
I
I/O
O
O
General purpose input/output digital pin
RTS0: Request to Send output pin for UART0
General purpose input/output digital pin
CTS0: Clear to Send input pin for UART0
General purpose input/output digital pin
General purpose input/output digital pin
General purpose input/output digital pin
General purpose input/output digital pin
General purpose input/output digital pin
nd
MOSI01: SPI0 2
General purpose input/output digital pin
MISO01: SPI0 2
General purpose input/output digital pin
MOSI00: SPI0 MOSI (Master Out, Slave In) pin
I2SDO: I2S data output
MOSI (Master Out, Slave In) pin
nd
MISO (Master In, Slave Out) pin
PC.2
43 26 22
44 27 23
45 28 24
46 PE.6
47 29
MISO00
I2SDI
PC.1
SPICLK0
I2SBCLK
PC.0
/SPISS00
I2SLRCLK
PE.5
PWM5
PB.11
TM3
I/O
I
I I/O I/O I/O I/O I/O I/O I/O I/O
O
I/O
O
General purpose input/output digital pin
MISO00: SPI0 MISO (Master In, Slave Out) pin
I2SDI: I2S data input
General purpose input/output digital pin
SPICLK0: SPI0 serial clock pin
I2SBCLK: I2S bit clock pin
General purpose input/output digital pin
/SPISS00: SPI0 slave select pin
I2SLRCLK: I2S left right channel clock
General purpose input/output digital pin
General purpose input/output digital pin
PWM5: PWM output
General purpose input/output digital pin 48 30
TM3: Timer3 external counter input
Publication Release Date: May 31, 2010
- 16 - Revision V1.02
LQFP
100
Pin No.
LQFP
64
LQFP
48
NUC120 Series DATA SHEET
Pin Name Pin Type Description
PWM4
PB.10
31
49
TM2
/SPISS01
PB.9
32
50
TM1
/SPISS11
51 PE.4
52 PE.3
53 PE.2
PE.1
54
PWM7
PE.0
55
PWM6
PC.13
56
MOSI11
O
I/O
O I/O I/O
O I/O I/O I/O I/O I/O
O I/O
O I/O
O
PWM4: PWM output
General purpose input/output digital pin
TM2: Timer2 external counter input
/SPISS01: SPI0 2
nd
slave select pin
General purpose input/output digital pin
TM1: Timer1 external counter input
/SPISS11: SPI1 2
nd
slave select pin
General purpose input/output digital pin
General purpose input/output digital pin
General purpose input/output digital pin
General purpose input/output digital pin
PWM7: PWM output
General purpose input/output digital pin
PWM6: PWM output
General purpose input/output digital pin
nd
MOSI11: SPI1 2
MOSI (Master Out, Slave In) pin
57
PC.12
MISO11
PC.11
58 33
MOSI10
PC.10
59 34
MISO10
PC.9
60 35
SPICLK1
PC.8
61 36
/SPISS10
PA.15
62 37 25
PWM3
I2SMCLK
I/O
I
I/O
O I/O
I I/O I/O I/O I/O I/O
O O
General purpose input/output digital pin
nd
MISO11: SPI1 2
MISO (Master In, Slave Out) pin
General purpose input/output digital pin
MOSI10: SPI1 MOSI (Master Out, Slave In) pin
General purpose input/output digital pin
MISO10: SPI1 MISO (Master In, Slave Out) pin
General purpose input/output digital pin
SPICLK1: SPI1 serial clock pin
General purpose input/output digital pin
/SPISS10: SPI1 slave select pin
General purpose input/output digital pin
PWM3: PWM output pin
I2SMCLK: I2S master clock output pin
Publication Release Date: May 31, 2010
- 17 - Revision V1.02
LQFP
100
Pin No.
LQFP
64
LQFP
48
NUC120 Series DATA SHEET
Pin Name Pin Type Description
63 38 26
PA.14
PWM2
PA.13
64 39 27
PWM1
PA.12
65 40 28
PWM0
66 41 29 ICE_DAT
67 42 30 ICE_CLK
68 VDD2
69 31 VSS2
70 43 AVSS
PA.0
71 44 32
ADC0
PA.1
72 45 33
ADC1
I/O
O
I/O
O
I/O
O
I/O
I
P
P AP I/O
AI
I/O
AI
General purpose input/output digital pin
PWM2: PWM output
General purpose input/output digital pin
PWM1: PWM output
General purpose input/output digital pin
PWM0: PWM output
Serial Wired Debugger Data pin
Serial Wired Debugger Clock pin
Power supply for I/O ports and LDO source for internal PLL and digital circuit
Ground
Ground Pin for analog circuit
General purpose input/output digital pin
ADC0: ADC analog input
General purpose input/output digital pin
ADC1: ADC analog input
73 46 34
74 47 35
75 48 36
76 49 37
77 50 38
78 51 39
PA.2
ADC2
PA.3
ADC3
PA.4
ADC4
PA.5
ADC5
PA.6
ADC6
PA.7
ADC7
/SPISS21
I/O
AI
I/O
AI
I/O
AI
I/O
AI
I/O
AI
I/O
AI
I/O
General purpose input/output digital pin
ADC2: ADC analog input
General purpose input/output digital pin
ADC3: ADC analog input
General purpose input/output digital pin
ADC4: ADC analog input
General purpose input/output digital pin
ADC5: ADC analog input
General purpose input/output digital pin
ADC6: ADC analog input
General purpose input/output digital pin
ADC7: ADC analog input
/SPISS21: SPI2 2
nd
slave select pin
Publication Release Date: May 31, 2010
- 18 - Revision V1.02
LQFP
100
Pin No.
LQFP
64
LQFP
48
NUC120 Series DATA SHEET
Pin Name Pin Type Description
79 Vref
80 52 40 AVDD
PD.0
81
/SPISS20
PD.1
82
SPICLK2
PD.2
83
MISO20
PD.3
84
MOSI20
PD.4
85
MISO21
PD.5
86
MOSI21
PC.7
87 53 41
CPN0
AP AP I/O I/O I/O I/O I/O
I
I/O
O I/O
I
I/O
O I/O
I
Voltage reference input for ADC
Power supply for internal analog circuit
General purpose input/output digital pin
/SPISS20: SPI2 slave select pin
General purpose input/output digital pin
SPICLK2: SPI2 serial clock pin
General purpose input/output digital pin
MISO20: SPI2 MISO (Master In, Slave Out) pin
General purpose input/output digital pin
MOSI20: SPI2 MOSI (Master Out, Slave In) pin
General purpose input/output digital pin
nd
MISO21: SPI2 2
General purpose input/output digital pin
MOSI21: SPI2 2
General purpose input/output digital pin
CPN0: Comparator0 Negative input pin
MISO (Master In, Slave Out) pin
nd
MOSI (Master Out, Slave In) pin
88 54 42
PC.6
CPP0
PC.15
89 55
CPN1
PC.14
90 56
CPP1
PB.15
91 57 43
/INT1
92 58 44 XT1_OUT
93 59 45 XT1_IN
94 60 46 /RESET
95 61 VSS1
I/O
I
I/O
I
I/O
I
I/O
I
O
I
I
P
General purpose input/output digital pin
CPP0: Comparator0 Positive input pin
General purpose input/output digital pin
CPN1: Comparator1 Negative input pin
General purpose input/output digital pin
CPP1: Comparator1 Positive input pin
General purpose input/output digital pin
/INT1: External interrupt0 input pin
Crystal output pin
Crystal input pin
External reset input: Low active, set this pin low reset MCU to initial state. With internal pull-up.
Ground
Publication Release Date: May 31, 2010
- 19 - Revision V1.02
LQFP
100
Pin No.
LQFP
64
LQFP
48
NUC120 Series DATA SHEET
Pin Name Pin Type Description
96 62 VDD1
97 PS2DAT
98 PS2CLK
99 63 47 PVSS
PB.8
100 64 48
Note:
1. Pin Type I=Digital Input, O=Digital Output; AI=Analog Input; P=Power Pin; AP=Analog Power
STADC
TM0
P
I/O I/O I/O I/O
I
O
Power supply for I/O ports and LDO source for internal PLL and digital circuit
PS2 Data pin
PS2 clock pin
PLL Ground
General purpose input/output digital pin
STADC: ADC external trigger input.
TM0: Timer0 external counter input
Publication Release Date: May 31, 2010
- 20 - Revision V1.02

4 BLOCK DIAGRAM

4.1 NUC120 Block Diagram

NUC120 Series DATA SHEET
FLASH 128KB
ISP 4KB
PS2
SPI 2/3
I2C 1 -1M
UART 1 -115K
UART 2 -115K
I2S
Peripherals with PDMA
Cortex-M0
SRAM
16KB
50MHz
RTC
WDG
Timer 0/1/
Timer 2/3
PWM 4~7
I2C 0 -1M
GPIO
A,B,C,D,E
PDMA
CLK_CTL
SPI 0/1
UART 0 -3M
PWM 0~3
USB-FS
512BRAM
P L L
LDO
12-bit ADC
Analog
Comparator
Brown-out
USBPHY
10 kHz
32 KHz
22 MHz
12 MHz
2.5V~
5.5V
POR
LVR
Figure 4-1 NUC120 Block Diagram
Publication Release Date: May 31, 2010
- 21 - Revision V1.02
NUC120 Series DATA SHEET

5 FUNCTIONAL DESCRIPTION

5.1 ARM® Cortex™-M0 core

The Cortex™-M0 processor is a configurable, multistage, 32-bit RISC processor. It has an AMBA AHB-Lite interface and includes an NVIC component. It also has optional hardware debug functionality. The processor can execute Thumb code and is compatible with other Cortex-M profile processor.
Figure 5-1 shows the functional blocks of processor.
Cortex-M0 components
DebugCortex-M0 processor
Interrupts
Nested
Vectored
Interrupt
Controller
(NVIC)
Cortex-M0
Processor
core
Breakpoint
and
Watchpoint
unit
Wakeup Interrupt
Controller
(WIC)
Bus matrix
AHB-Lite interface
Debugger
interface
Debug
Access Port
(DAP)
Serial Wire or JTAG debug port
Figure 5-1 Functional Block Diagram
The implemented device provides:
A low gate count processor that features:
The ARMv6-M Thumb® instruction set. Thumb-2 technology. – ARMv6-M compliant 24-bit SysTick timer. – A 32-bit hardware multiplier. – The system interface supports little-endian data accesses. – The ability to have deterministic, fixed-latency, interrupt handling. – Load/store-multiples and multicycle-multiplies that can be abandoned and restarted to facilitate
rapid interrupt handling.
C Application Binary Interface compliant exception model.
This is the ARMv6-M, C Application Binary Interface(C-ABI) compliant exception model that enables the use of pure C functions as interrupt handlers.
Low power sleep-mode entry using Wait For Interrupt(WFI), Wait For Even(WFE) instructions,
or the return from interrupt sleep-on-exit feature.
NVIC that features:
32 external interrupt inputs, each with four levels of priority. Dedicated non-Maskable Interrupt (NMI) input.
- 22 - Revision V1.02
Publication Release Date: May 31, 2010
Loading...
+ 49 hidden pages