Professional Documents
Culture Documents
ARM Cortex-M0
32-BIT MICROCONTROLLER
NuMicro Family
NUC140 Data Sheet
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.
-1-
Contents
1
2
3.2
3.2.1
FUNCTIONAL DESCRIPTION.................................................................................................. 17
5.1
ARM Cortex-M0 Core .............................................................................................. 17
5.2
System Manager........................................................................................................... 19
5.2.1
5.2.2
5.2.3
5.2.4
5.2.5
5.2.6
5.3
5.4
Overview ........................................................................................................................36
Features .........................................................................................................................37
5.8
Overview ........................................................................................................................35
Features .........................................................................................................................35
5.7
Overview ........................................................................................................................34
Features .........................................................................................................................34
5.6
Overview ........................................................................................................................28
Clock Generator .............................................................................................................30
System Clock and SysTick Clock ...................................................................................31
Peripherals Clock ...........................................................................................................32
Power Down Mode Clock ...............................................................................................32
Frequency Divider Output...............................................................................................33
5.5
Overview ........................................................................................................................19
System Reset .................................................................................................................19
System Power Distribution .............................................................................................20
System Memory Map......................................................................................................21
System Timer (SysTick) .................................................................................................23
Nested Vectored Interrupt Controller (NVIC) ..................................................................24
Overview ........................................................................................................................38
Features .........................................................................................................................39
-2-
5.8.1
5.8.2
5.9
5.10
Overview ......................................................................................................................55
Features .......................................................................................................................55
Overview ......................................................................................................................54
Features .......................................................................................................................54
Overview ......................................................................................................................53
Features .......................................................................................................................53
5.19
Overview ......................................................................................................................52
Features .......................................................................................................................52
5.18
Overview ......................................................................................................................51
Features .......................................................................................................................51
5.17
Overview ......................................................................................................................50
Features .......................................................................................................................50
5.16
Overview ......................................................................................................................49
Features .......................................................................................................................49
5.15
Overview ......................................................................................................................46
Features .......................................................................................................................48
5.14
Overview ......................................................................................................................43
Features .......................................................................................................................45
5.13
Overview ......................................................................................................................42
Features .......................................................................................................................42
5.12
Overview ........................................................................................................................41
Features .........................................................................................................................41
5.11
Overview ........................................................................................................................40
Features .........................................................................................................................40
Features........................................................................................................................ 56
ELECTRICAL CHARACTERISTICS......................................................................................... 57
7.1
Absolute Maximum Ratings .......................................................................................... 57
7.2
-3-
7.3
7.4
Analog Characteristics.................................................................................................. 65
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.4.6
7.4.7
7.4.8
7.5
7.6
8.3
-4-
Figures
Figure 3-1 NuMicro NUC100 Series selection code ................................................................... 12
Figure 3-5 NuMicro NUC140 LQFP 100-pin Pin Diagram .......................................................... 13
Figure 3-6 NuMicro NUC140 LQFP 64-pin Pin Diagram ............................................................ 14
Figure 3-7 NuMicro NUC140 LQFP 48-pin Pin Diagram ............................................................ 15
Figure 4-2 NuMicro NUC140 Block Diagram .............................................................................. 16
Figure 5-1 Functional Controller Diagram...................................................................................... 17
Figure 5-2 NuMicro NUC140 Power Distribution Diagram.......................................................... 20
Figure 5-4 Clock generator global view diagram ........................................................................... 29
Figure 5-5 Clock generator block diagram..................................................................................... 30
Figure 5-6 System Clock Block Diagram ....................................................................................... 31
Figure 5-7 SysTick Clock Control Block Diagram .......................................................................... 31
Figure 5-8 Clock Source of Frequency Divider .............................................................................. 33
Figure 5-9 Block Diagram of Frequency Divider ............................................................................ 33
Figure 5-10 I2C Bus Timing ............................................................................................................ 36
Figure 5-11 Timing of Interrupt and Reset Signal .......................................................................... 44
Figure 7-1 Typical Crystal Application Circuit ................................................................................ 64
Figure 7-2 SPI Master dynamic characteristics tiMINg .................................................................. 72
Figure 7-3 SPI Slave dynamic characteristics timing..................................................................... 72
-5-
Tables
Table 1-1 Connectivity Supported Table.......................................................................................... 7
Table 5-1 Address Space Assignments for On-Chip Controllers................................................... 22
Table 5-2 Exception Model ............................................................................................................ 25
Table 5-3 System Interrupt Map..................................................................................................... 26
Table 5-4 Vector Table Format ...................................................................................................... 27
Table 5-5 Watchdog Timeout Interval Selection ............................................................................ 44
Table 5-6 UART Baud Rate Equation ............................................................................................ 46
Table 5-7 UART Baud Rate Setting Table ..................................................................................... 47
-6-
GENERAL DESCRIPTION
The NuMicro NUC100 Series is 32-bit microcontrollers with embedded ARM Cortex-M0 core
for industrial control and applications which need rich communication interfaces. The Cortex-M0
is the newest ARM embedded processor with 32-bit performance and at a cost equivalent to
traditional 8-bit microcontroller. NuMicro NUC100 Series includes NUC100, NUC120, NUC130
and NUC140 product line.
The NuMicro NUC140 Connectivity Line with USB 2.0 full-speed and CAN functions embeds
Cortex-M0 core running up to 50 MHz with 32K/64K/128K-byte embedded flash, 4K/8K/16Kbyte embedded SRAM, and 4K-byte loader ROM for the ISP.. It also equips with plenty of
peripheral devices, such as Timers, Watchdog Timer, RTC, PDMA, UART, SPI, I2C, I2S, PWM
Timer, GPIO, LIN, CAN, PS/2, USB 2.0 FS Device, 12-bit ADC, Analog Comparator, Low Voltage
Reset Controller and Brown-out Detector.
Product Line
UART
SPI
I2 C
NUC100
NUC120
NUC130
NUC140
USB
LIN
CAN
PS/2
I2 S
-7-
FEATURES
The equipped features are dependent on the product line and their sub products.
2.1
GPIO
Timer
Support 4 sets of 32-bit timers with 24-bit up-timer and one 8-bit pre-scale counter
Independent clock source for each timer
Provides one-shot, periodic, toggle and continuous counting operation modes
Support event counting function
Support input capture function
Watchdog Timer
Multiple clock sources
8 selectable time out period from 1.6ms ~ 26.0sec (depends on clock source)
WDT can wake-up from power down or idle mode
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 periodic time tick interrupt with 8 period options 1/128, 1/64, 1/32, 1/16, 1/8,
1/4, 1/2 and 1 second
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
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 UART controllers
UART ports with flow control (TXD, RXD, 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) and LIN function
Support RS-485 9-bit mode and direction control.
Programmable baud-rate generator up to 1/16 system clock
Support PDMA mode
SPI
Up to four sets of SPI controller
Master up to 32 MHz, and Slave up to 10 MHz (chip working @ 5V)
Support SPI master/slave mode
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
Support byte suspend mode in 32-bit transmission
Support PDMA mode
Support three wire, no slave select signal, bi-direction interface
-9-
I2C
2
I S
ADC
- 11 -
3.1
3.1.1
Part number
APROM RAM
Data
Flash
ISP
Loader
ROM
Connectivity
I/O
Timer
UART SPI
IC
ADC
RTC EBI
ISP
Package
ICP
NUC140LC1CN 32 KB
4 KB
4 KB
4 KB
up to 31 4x32-bit
8x12-bit
LQFP48
NUC140LD2CN 64 KB
8 KB
4 KB
4 KB
up to 31 4x32-bit
8x12-bit
LQFP48
4 KB
up to 31 4x32-bit
8x12-bit
LQFP48
NUC140RC1CN 32 KB
4 KB
4 KB
4 KB
up to 45 4x32-bit
8x12-bit
LQFP64
NUC140RD2CN 64 KB
8 KB
4 KB
4 KB
up to 45 4x32-bit
8x12-bit
LQFP64
4 KB
up to 45 4x32-bit
8x12-bit
LQFP64
4 KB
up to 76 4x32-bit
8x12-bit
LQFP100
NUC 1 0 0 - X X X X X
ARM-Based
32-bit Microcontroller
Temperature
CPU core
N: -40
E: -40
C: -40
~ +85
~ +105
~ +125
1: Cortex-M0
5/7: ARM7
9: ARM9
Reserve
Function
RAM Size
1: 4K
2: 8K
3: 16K
0: Advance Line
2: USB Line
3: Automotive Line
4: Connectivity Line
APROM Size
A: 8K
B: 16K
C: 32K
D: 64K
E: 128K
Package Type
Y: QFN 36
L: LQFP 48
R: LQFP 64
V: LQFP 100
- 12 -
3.2
Pin Configuration
PE.0/PWM6
PE.1/PWM7
PE.2
PE.3
PE.4
53
52
51
PC.10/MISO10
54
PC.9/SPICLK1
59
PC.13/MOSI11
PC.8/SPISS10
60
55
PA.15/PWM3/I2SMCLK
61
56
PA.14/PWM2/AD15
62
PC.11/MOSI10
PA.13/PWM1/AD14
63
PC.12/MISO11
PA.12/PWM0/AD13
64
57
ICE_DAT
65
58
ICE_CK
66
AVSS
70
67
PA.0/ADC0
71
VSS
PA.1/ADC1/AD12
72
VDD
PA.2/ADC2/AD11
73
68
PA.3/ADC3/AD10
74
69
PA.4/ADC4/AD9
75
AD8/ADC5/PA.5
76
50
PB.9/SPISS11/TM1
AD7/ADC6/PA.6
77
49
PB.10/SPISS01/TM2
AD6/ADC7/SPISS21/PA.7
78
48
PB.11/TM3/PWM4
VREF
79
47
PE.5/PWM5/T1EX
AVDD
80
46
PE.6
SPISS20/PD.0
81
45
PC.0/SPISS00/I2SLRCLK
SPICLK2/PD.1
82
44
PC.1/SPICLK0/I2SBCLK
MISO20/PD.2
83
43
PC.2/MISO00/I2SDI
MOSI20/PD.3
84
42
PC.3/MOSI00/I2SDO
MISO21/PD.4
85
41
PC.4/MISO01
40
PC.5/MOSI01
39
PD.15/TXD2
38
PD.14/RXD2
37
PD.7/CANTX0
MOSI21/PD.5
86
AD5/CPN0/PC.7
87
AD4/CPP0/PC.6
88
AD3/CPN1/PC.15
89
AD2/CPP1/PC.14
90
36
PD.6/CANRX0
T0EX/INT1/PB.15
91
35
PB.3/CTS0/nWRH/T3EX
XT1_OUT
92
34
PB.2/RTS0/nWRL/T2EX
XT1_IN
93
33
PB.1/TXD0
/RESET
94
32
PB.0/RXD0
VSS
95
31
D+
VDD
96
30
D-
PS2DAT
97
29
VDD33
PS2CLK
98
28
VBUS
PVSS
99
27
PE.7
100
26
PE.8
24
25
VDD
VSS
19
RXD1/PB.4
23
18
MOSI31/PD.13
LDO
17
MISO31/PD.12
22
16
MOSI30/PD.11
nCS/CTS1/PB.7
15
MISO30/PD.10
21
14
SPICLK3/PD.9
20
13
SPISS30/PD.8
TXD1/PB.5
12
I2C0SDA/PA.8
ALE/RTS1/PB.6
11
8
X32I
I2C0SCL/PA.9
10
AD1/CPO1/PB.13
AD0/CLKO/CPO0/
PB.12
X32O
4
SPISS31/INT0/PB.14
nRD/I2C1SCL/PA.11
3
PE.13
nWR/I2C1SDA/PA.10
2
PE.14
1
PE.15
STADC/TM0/PB.8
NUC140VxxCN
LQFP 100-pin
- 13 -
ICE_CK
ICE_DAT
PA.12/PWM0/AD13
PA.13/PWM1/AD14
PA.14/PWM2/AD15
PA.15/PWM3/I2SMCLK
PC.8/SPISS10
42
41
40
39
38
37
36
PC.11/MOSI10
AVSS
43
33
PA.0/ADC0
44
PC.9/SPICLK1
PA.1/ADC1/AD12
45
PC.10/MISO10
PA.2/ADC2/AD11
46
34
PA.3/ADC3/AD10
47
35
PA.4/ADC4/AD9
48
AD8/ADC5/PA.5
49
32
PC.0/SPISS00/I2SLRCLK
AD7/ADC6/PA.6
50
31
PC.1/SPICLK0/I2SBCLK
AD6/ADC7PA.7
51
30
PC.2/MISO00/I2SDI
AVDD
52
29
PC.3/MOSI00/I2SDO
AD5/CPN0/PC.7
53
28
PD.15/TXD2
AD4/CPP0/PC.6
54
27
PD.14/RXD2
AD3/CPN1/PC.15
55
26
PD.7/CANTX0
AD2/CPP1/PC.14
56
25
PD.6/CANRX0
T0EX/INT1/PB.15
57
24
PB.3/CTS0/nWRH/T3EX
XT1_OUT
58
23
PB.2/RTS0/nWRL/T2EX
XT1_IN
59
22
PB.1/TXD0
/RESET
60
21
PB.0/RXD0
NUC140RxxCN
LQFP 64-pin
14
15
16
LDO
VDD
VSS
12
ALE/RTS1/PB.6
13
11
nCS/CTS1/PB.7
10
TXD1/PB.5
9
I2C0SDA/PA.8
RXD1/PB.4
I2C0SCL/PA.9
6
nRD/I2C1SCL/PA.11
VBUS
nWR/I2C1SDA/PA.10
17
5
64
X32I
VDD33
STADC/TM0/PB.8
18
63
X32O
D-
PVSS
AD0/CLKO/CPO0/PB.12
D+
19
20
62
61
AD1/CPO1/PB.13
VSS
VDD
SPISS31/INT0/PB.14
3.2.1.2
- 14 -
- 15 -
33
32
31
30
29
28
4
5
6
7
8
9
I2C1SCL/PA.11
I2C1SDA/PA.10
I2C0SCL/PA.9
I2C0SDA/PA.8
RXD1/PB.4
TXD1/PB.5
11
12
VDD
VSS
25
26
27
34
X32I
10
35
X32O
LDO
36
PA.15/PWM3/I2SMCLK
PA.14/PWM2
PA.13/PWM1
PA.12/PWM0
ICE_DAT
ICE_CK
AVSS
PA.0/ADC0
PA.1/ADC1
PA.2/ADC2
PA.3/ADC3
PA.4/ADC4
3.2.1.3
CLKO/CPO0/PB.12
BLOCK DIAGRAM
4.1
4.1.1
Cortex-M0
50MHz
FLASH
128KB
ISP 4KB
SRAM
16KB
GPIO
A,B,C,D,E
PDMA
10 kHz
P
L
L
32.768 kHz
22.1184 MHz
4~24 MHz
CLK_CTL
LDO
2.5V~
5.5V
PS2
RTC
SPI 2/3
WDT
SPI 0/1
12-bit ADC
I2C 1
Timer 0/1/
UART 0 -3M
Analog
Comparator
UART 1 -115K
Timer 2/3
CAN 0
POR
Brown-out
UART 2 -115K
PWM 4~7
PWM 0~3
LVR
I2S
I2C 0
USB-FS
512BRAM
USBPHY
- 16 -
5
5.1
FUNCTIONAL DESCRIPTION
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. The profile supports two modes -Thread mode and Handler mode. Handler
mode is entered as a result of an exception. An exception return can only be issued in Handler
mode. Thread mode is entered on Reset, and can be entered as a result of an exception return.
Figure 5-1 shows the functional controller of processor.
Cortex-M0 components
Cortex-M0 processor
Nested
Vectored
Interrupt
Controller
(NVIC)
Interrupts
Debug
Cortex-M0
Processor
Core
Wakeup
Interrupt
Controller
(WIC)
Bus Matrix
Breakpoint
and
Watchpoint
Unit
Debug
Access
Port
(DAP)
Debugger
interface
AHB-Lite
interface
Serial Wire or
JTAG debug port
Thumb-2 technology
- 17 -
Low power sleep mode entry using Wait For Interrupt (WFI), Wait For Event
(WFE) instructions, or the return from interrupt sleep-on-exit feature
Debug support
Two watchpoints.
Bus interfaces:
Single 32-bit AMBA-3 AHB-Lite system interface that provides simple integration
to all system peripherals and memory.
Single 32-bit slave port that supports the DAP (Debug Access Port).
- 18 -
5.2
System Manager
5.2.1 Overview
System management includes these following sections:
z
System Resets
System management registers for Part Number ID, chip reset and on-chip controllers
reset , multi-functional pin control
CPU Reset
System Reset
System Reset and Power-On Reset all reset the whole chip including all peripherals. The
difference between System Reset and Power-On Reset is external crystal circuit and ISPCON.BS
bit. System Reset doesnt reset external crystal circuit and ISPCON.BS bit, but Power-On Reset
does.
- 19 -
Analog power from AVDD and AVSS provides the power for analog components
operation.
Digital power from VDD and VSS supplies the power to the internal regulator which
provides a fixed 2.5 V power for digital operation and I/O pins.
USB transceiver power from VBUS offers the power for operating the USB transceiver.
VSS
VDD
X32I
X32O
PVSS
The outputs of internal voltage regulators, LDO and VDD33, require an external capacitor which
should be located close to the corresponding pin. Analog power (AVDD) should be the same
voltage level of the digital power (VDD). Figure 5-2 shows the power distribution of NuMicro
NUC140.
- 20 -
Address Space
Token
Controllers
0x2000_0000 0x2000_3FFF
SRAM_BA
GCR_BA
0x5000_0200 0x5000_02FF
CLK_BA
0x5000_0300 0x5000_03FF
INT_BA
0x5000_4000 0x5000_7FFF
GPIO_BA
0x5001_0000 0x5001_03FF
EBI_BA
WDT_BA
0x4001_0000 0x4001_3FFF
TMR01_BA
0x4002_0000 0x4002_3FFF
I2C0_BA
0x4003_0000 0x4003_3FFF
SPI0_BA
0x4003_4000 0x4003_7FFF
SPI1_BA
0x4004_0000 0x4004_3FFF
PWMA_BA
0x4005_0000 0x4005_3FFF
UART0_BA
0x4006_0000 0x4006_3FFF
USBD_BA
- 21 -
Address Space
Token
Controllers
PS2_BA
0x4011_0000 0x4011_3FFF
TMR23_BA
0x4012_0000 0x4012_3FFF
I2C1_BA
0x4013_0000 0x4013_3FFF
SPI2_BA
0x4013_4000 0x4013_7FFF
SPI3_BA
0x4014_0000 0x4014_3FFF
PWMB_BA
0x4015_0000 0x4015_3FFF
UART1_BA
0x4015_4000 0x4015_7FFF
UART2_BA
0x4018_0000 0x4018_3FFF
CAN0_BA
- 22 -
- 23 -
The NVIC prioritizes and handles all supported exceptions. All exceptions are handled in Handler
Mode. This NVIC architecture supports 32 (IRQ[31:0]) discrete interrupts with 4 levels of priority.
All of the interrupts and most of the system exceptions can be configured to different priority
levels. When an interrupt occurs, the NVIC will compare the priority of the new interrupt to the
current running ones priority. If the priority of the new interrupt is higher than the current one, the
new interrupt handler will override the current handler.
When any interrupts is accepted, the starting address of the interrupt service routine (ISR) is
fetched from a vector table in memory. There is no need to determine which interrupt is accepted
and branch to the starting address of the correlated ISR by software. While the starting address is
fetched, NVIC will also automatically save processor state including the registers PC, PSR, LR,
R0~R3, R12 to the stack. At the end of the ISR, the NVIC will restore the mentioned registers
from stack and resume the normal execution. Thus it will take less and deterministic time to
process the interrupt request.
The NVIC supports Tail Chaining which handles back-to-back interrupts efficiently without the
overhead of states saving and restoration and therefore reduces delay time in switching to
pending ISR at the end of current ISR. The NVIC also supports Late Arrival which improves the
efficiency of concurrent ISRs. When a higher priority interrupt request occurs before the current
ISR starts to execute (at the stage of state saving and starting address fetching), the NVIC will
give priority to the higher one without delay penalty. Thus it advances the real-time capability.
For more detailed information, please refer to the documents ARM Cortex-M0 Technical
Reference Manual and ARM v6-M Architecture Reference Manual.
- 24 -
5.2.6.1
Table 5-2 lists the exception model supported by NuMicro NUC100 Series. Software can set
four levels of priority on some of these exceptions as well as on all interrupts. The highest userconfigurable priority is denoted as 0 and the lowest priority is denoted as 3. The default priority
of all the user-configurable interrupts is 0. Note that priority 0 is treated as the fourth priority on
the system, after three system exceptions Reset, NMI and Hard Fault.
Exception Name
Vector Number
Priority
Reset
-3
NMI
-2
Hard Fault
-1
Reserved
4 ~ 10
Reserved
SVCall
11
Configurable
Reserved
12 ~ 13
Reserved
PendSV
14
Configurable
SysTick
15
Configurable
16 ~ 47
Configurable
Vector
Number
Interrupt
Number
(Bit in Interrupt
Registers)
Interrupt
Name
0 ~ 15
System exceptions
16
BOD_OUT
17
WDT_INT
WDT
18
EINT0
GPIO
19
EINT1
GPIO
20
GPAB_INT
GPIO
21
GPCDE_INT
GPIO
22
PWMA_INT
PWM0~3
23
PWMB_INT
PWM4~7
24
TMR0_INT
TMR0
Timer 0 interrupt
25
TMR1_INT
TMR1
Timer 1 interrupt
- 25 -
Vector
Number
Interrupt
Number
(Bit in Interrupt
Registers)
Interrupt
Name
26
10
TMR2_INT
TMR2
Timer 2 interrupt
27
11
TMR3_INT
TMR3
Timer 3 interrupt
28
12
UART02_INT
UART0/2
29
13
UART1_INT
UART1
30
14
SPI0_INT
SPI0
SPI0 interrupt
31
15
SPI1_INT
SPI1
SPI1 interrupt
32
16
SPI2_INT
SPI2
SPI2 interrupt
33
17
SPI3_INT
SPI3
SPI3 interrupt
34
18
I2C0_INT
I2C0
I2C0 interrupt
35
19
I2C1_INT
I2C1
I2C1 interrupt
36
20
CAN0_INT
CAN0
37
21
Reserved
Reserved Reserved
38
22
Reserved
Reserved Reserved
39
23
USB_INT
USBD
40
24
PS2_INT
PS/2
41
25
ACMP_INT
ACMP
42
26
PDMA_INT
PDMA
PDMA interrupt
43
27
I2S_INT
I2S
44
28
PWRWU_INT
CLKC
45
29
ADC_INT
ADC
ADC interrupt
46
30
Reserved
47
31
RTC_INT
CAN0 interrupt
I S interrupt
Reserved Reserved
RTC
- 26 -
5.2.6.2
Vector Table
When any interrupts is accepted, the processor will automatically fetch the starting address of the
interrupt service routine (ISR) from a vector table in memory. For ARMv6-M, the vector table base
address is fixed at 0x00000000. The vector table contains the initialization value for the stack
pointer on reset, and the entry point addresses for all exception handlers. The vector number on
previous page defines the order of entries in the vector table associated with exception handler
entry as illustrated in previous section.
5.2.6.3
Operation Description
NVIC interrupts can be enabled and disabled by writing to their corresponding Interrupt SetEnable or Interrupt Clear-Enable register bit-field. The registers use a write-1-to-enable and write1-to-clear policy, both registers reading back the current enabled state of the corresponding
interrupts. When an interrupt is disabled, interrupt assertion will cause the interrupt to become
Pending, however, the interrupt will not activate. If an interrupt is Active when it is disabled, it
remains in its Active state until cleared by reset or an exception return. Clearing the enable bit
prevents new activations of the associated interrupt.
NVIC interrupts can be pended/un-pended using a complementary pair of registers to those used
to enable/disable the interrupts, named the Set-Pending Register and Clear-Pending Register
respectively. The registers use a write-1-to-enable and write-1-to-clear policy, both registers
reading back the current pended state of the corresponding interrupts. The Clear-Pending
Register has no effect on the execution status of an Active interrupt.
NVIC interrupts are prioritized by updating an 8-bit field within a 32-bit register (each register
supporting four interrupts).
The general registers associated with the NVIC are all accessible from a block of memory in the
System Control Space and will be described in next section.
- 27 -
5.3
Clock Controller
5.3.1 Overview
The clock controller generates the clocks for the whole chip, including system clocks and all
peripheral clocks. The clock controller also implements the power control function with the
individually clock ON/OFF control, clock source selection and a clock divider. The chip will not
enter power down mode until CPU sets the power down enable bit (PWR_DOWN_EN) and
Cortex-M0 core executes the WFI instruction. After that, chip enter power down mode and wait for
wake-up interrupt source triggered to leave power down mode. In the power down mode, the
clock controller turns off the external 4~24 MHz high speed crystal and internal 22.1184 MHz high
speed oscillator to reduce the overall system power consumption.
- 28 -
- 29 -
One programmable PLL FOUT(PLL source consists of external 4~24 MHz high speed
crystal and internal 22.1184 MHz high speed oscillator)
XTL32K_EN (PWRCON[1])
X32I
External
32.768 kHz
Crystal
32.768 kHz
X32O
XTL12M_EN (PWRCON[0])
4~24 MHz
XT_IN
External
4~24 MHz
Crystal
PLL_SRC (PLLCON[19])
XT_OUT
OSC22M_EN (PWRCON[2])
PLL
PLL FOUT
Internal
22.1184 MHz
Oscillator
22.1184 MHz
OSC10K_EN(PWRCON[3])
Internal
10 kHz
Oscillator
10 kHz
- 30 -
22.1184 MHz
10 kHz
PLLFOUT
32.768 kHz
4~24 MHz
111
011
CPUCLK
010
HCLK
1/(HCLK_N+1)
001
HCLK_N (CLKDIV[3:0])
PCLK
CPU
AHB
APB
000
- 31 -
Clock Generator
Peripherals Clock (When these IP adopt external 32.768 kHz low speed crystal or 10
kHz low speed oscillator as clock source)
- 32 -
- 33 -
5.4
5.4.1 Overview
There is one set of USB 2.0 full-speed device controller and transceiver in this device. It is
compliant with USB 2.0 full-speed device specification and support control/bulk/interrupt/
isochronous transfer types.
In this device controller, there are two main interfaces: the APB bus and USB bus which comes
from the USB PHY transceiver. For the APB bus, the CPU can program control registers through
it. There are 512 bytes internal SRAM as data buffer in this controller. For IN or OUT transfer, it is
necessary to write data to SRAM or read data from SRAM through the APB interface or SIE.
Users need to set the effective starting address of SRAM for each endpoint buffer through buffer
segmentation register (USB_BUFSEGx).
There are 6 endpoints in this controller. Each of the endpoint can be configured as IN or OUT
endpoint. All the operations including Control, Bulk, Interrupt and Isochronous transfer are
implemented in this block. The block of ENDPOINT CONTROL is also used to manage the data
sequential synchronization, endpoint states, current start address, transaction status, and data
buffer status for each endpoint.
There are four different interrupt events in this controller. They are the wake-up function, device
plug-in or plug-out event, USB events, like IN ACK, OUT ACK etc, and BUS events, like suspend
and resume, etc. Any event will cause an interrupt, and users just need to check the related event
flags in interrupt event status register (USB_INTSTS) to acknowledge what kind of interrupt
occurring, and then check the related USB Endpoint Status Register (USB_EPSTS) to
acknowledge what kind of event occurring in this endpoint.
A software-disable function is also supported for this USB controller. It is used to simulate the
disconnection of this device from the host. If user enables DRVSE0 bit (USB_DRVSE0), the USB
controller will force the output of USB_DP and USB_DM to level low and its function is disabled.
After disable the DRVSE0 bit, host will enumerate the USB device again.
Reference: Universal Serial Bus Specification Revision 1.1
5.4.2 Features
This Universal Serial Bus (USB) performs a serial interface with a single connector type for
attaching all USB peripherals to the host system. Following is the feature listing of this USB.
z
Provide 1 interrupt vector with 4 different interrupt events (WAKEUP, FLDET, USB
and BUS)
- 34 -
5.5
5.5.1 Overview
NuMicro NUC130/NUC140 has up to 80 General Purpose I/O pins can be shared with other
function pins; it depends on the chip configuration. These 80 pins are arranged in 5 ports named
with GPIOA, GPIOB, GPIOC, GPIOD and GPIOE. Each port equips maximum 16 pins. Each one
of the 80 pins is independent and has the corresponding register bits to control the pin mode
function and data.
The I/O type of each of I/O pins can be configured by software individually as input, output, opendrain or quasi-bidirectional mode. After reset, the I/O type of all pins stay in quasi-bidirectional
mode and port data register GPIOx_DOUT[15:0] resets to 0x0000_FFFF. Each I/O pin equips a
very weakly individual pull-up resistor which is about 110 K~300 K for VDD is from 5.0 V to 2.5
V.
5.5.2
Features
z
Four I/O modes:
Quasi bi-direction
Push-Pull output
Open-Drain output
- 35 -
5.6
5.6.1 Overview
I2C is a two-wire, bi-directional serial bus that provides a simple and efficient method of data
exchange between devices. The I2C standard is a true multi-master bus including collision
detection and arbitration that prevents data corruption if two or more masters attempt to control
the bus simultaneously.
Data is transferred between a Master and a Slave synchronously to SCL on the SDA line on a
byte-by-byte basis. Each data byte is 8-bit long. There is one SCL clock pulse for each data bit
with the MSB being transmitted first. An acknowledge bit follows each transferred byte. Each bit is
sampled during the high period of SCL; therefore, the SDA line may be changed only during the
low period of SCL and must be held stable during the high period of SCL. A transition on the SDA
line while SCL is high is interpreted as a command (START or STOP). Please refer to the Figure
5-9 for more detail I2C BUS Timing.
- 36 -
5.6.2 Features
The I2C bus uses two wires (SDA and SCL) to transfer information between devices connected to
the bus. The main features of the bus are:
z
Master/Slave mode
Serial clock synchronization allows devices with different bit rates to communicate via
one serial bus
Built-in a 14-bit time-out counter will request the I2C interrupt if the I2C bus hangs up
and timer-out counter overflows.
I2C-bus controllers support multiple address recognition ( Four slave address with
mask option)
- 37 -
5.7
5.7.1 Overview
NuMicro NUC130/NUC140 has 2 sets of PWM group supports total 4 sets of PWM Generators
which can be configured as 8 independent PWM outputs, PWM0~PWM7, or as 4 complementary
PWM pairs, (PWM0, PWM1), (PWM2, PWM3), (PWM4, PWM5) and (PWM6, PWM7) with 4
programmable dead-zone generators.
Each PWM Generator has one 8-bit prescaler, one clock divider with 5 divided frequencies (1,
1/2, 1/4, 1/8, 1/16), two PWM Timers including two clock selectors, two 16-bit PWM downcounters for PWM period control, two 16-bit comparators for PWM duty control and one deadzone generator. The 4 sets of PWM Generators provide eight independent PWM interrupt flags
which are set by hardware when the corresponding PWM period down counter reaches zero.
Each PWM interrupt source with its corresponding enable bit can cause CPU to request PWM
interrupt. The PWM generators can be configured as one-shot mode to produce only one PWM
cycle signal or auto-reload mode to output PWM waveform continuously.
When PCR.DZEN01 is set, PWM0 and PWM1 perform complementary PWM paired function; the
paired PWM period, duty and dead-time are determined by PWM0 timer and Dead-zone
generator 0. Similarly, the complementary PWM pairs of (PWM2, PWM3), (PWM4, PWM5) and
(PWM6, PWM7) are controlled by PWM2, PWM4 and PWM6 timers and Dead-zone generator 2,
4 and 6, respectively.
To prevent PWM driving output pin with unsteady waveform, the 16-bit period down counter and
16-bit comparator are implemented with double buffer. When user writes data to
counter/comparator buffer registers the updated value will be load into the 16-bit down counter/
comparator at the time down counter reaching zero. The double buffering feature avoids glitch at
PWM outputs.
When the 16-bit period down counter reaches zero, the interrupt request is generated. If PWMtimer is set as auto-reload mode, when the down counter reaches zero, it is reloaded with PWM
Counter Register (CNRx) automatically then start decreasing, repeatedly. If the PWM-timer is set
as one-shot mode, the down counter will stop and generate one interrupt request when it reaches
zero.
The value of PWM counter comparator is used for pulse high width modulation. The counter
control logic changes the output to high level when down-counter value matches the value of
compare register.
The alternate feature of the PWM-timer is digital input Capture function. If Capture function is
enabled the PWM output pin is switched as capture input mode. The Capture0 and PWM0 share
one timer which is included in PWM0 and the Capture1 and PWM1 share PWM1 timer, and etc.
Therefore user must setup the PWM-timer before enable Capture feature. After capture feature is
enabled, the capture always latched PWM-counter to Capture Rising Latch Register (CRLR)
when input channel has a rising transition and latched PWM-counter to Capture Falling Latch
Register (CFLR) when input channel has a falling transition. Capture channel 0 interrupt is
programmable by setting CCR0.CRL_IE0[1] (Rising latch Interrupt enable) and
CCR0.CFL_IE0[2]] (Falling latch Interrupt enable) to decide the condition of interrupt occur.
Capture channel 1 has the same feature by setting CCR0.CRL_IE1[17] and CCR0.CFL_IE1[18].
And capture channel 2 to channel 3 on each group have the same feature by setting the
corresponding control bits in CCR2. For each group, whenever Capture issues Interrupt 0/1/2/3,
the PWM counter 0/1/2/3 will be reload at this moment.
The maximum captured frequency that PWM can capture is confined by the capture interrupt
latency. When capture interrupt occurred, software will do at least three steps, they are: Read
- 38 -
PIIR to get interrupt source and Read CRLRx/CFLRx(x=0~3) to get capture value and finally write
1 to clear PIIR to zero. If interrupt latency will take time T0 to finish, the capture signal mustnt
transition during this interval (T0). In this case, the maximum capture frequency will be 1/T0. For
example:
HCLK = 50 MHz, PWM_CLK = 25 MHz, Interrupt latency is 900 ns
So the maximum capture frequency will is 1/900ns 1000 kHz
5.7.2 Features
5.7.2.1 PWM function features:
5.7.2.2
PWM group has two PWM generators. Each PWM generator supports one 8-bit
prescaler, one clock divider, two PWM-timers (down counter), one dead-zone
generator and two PWM outputs.
Up to 16-bit resolution
Each channel supports one rising latch register (CRLR), one falling latch register
(CFLR) and Capture interrupt flag (CAPIFx)
- 39 -
5.8
5.8.1 Overview
Real Time Clock (RTC) controller provides user the real time and calendar message. The clock
source of RTC is from an external 32.768 kHz low speed crystal connected at pins X32I and
X32O (reference to pin descriptions) or from an external 32.768 kHz low speed oscillator output
fed at pin X32I. The RTC controller provides the time message (second, minute, hour) in Time
Loading Register (TLR) as well as calendar message (day, month, year) in Calendar Loading
Register (CLR). The data message is expressed in BCD format. It also offers alarm function that
user can preset the alarm time in Time Alarm Register (TAR) and alarm calendar in Calendar
Alarm Register (CAR).
The RTC controller supports periodic Time Tick and Alarm Match interrupts. The periodic interrupt
has 8 period options 1/128, 1/64, 1/32, 1/16, 1/8, 1/4, 1/2 and 1 second which are selected by
TTR (TTR[2:0]). When RTC counter in TLR and CLR is equal to alarm setting time registers TAR
and CAR, the alarm interrupt flag (RIIR.AIF) is set and the alarm interrupt is requested if the alarm
interrupt is enabled (RIER.AIER=1). Both RTC Time Tick and Alarm Match can cause chip wakeup from power down mode if wake-up function is enabled (TWKE (TTR[3])=1).
5.8.2
z
Features
There is a time counter (second, minute, hour) and calendar counter (day, month, year) for
user to check the time
Support periodic time tick interrupt with 8 period options 1/128, 1/64, 1/32, 1/16, 1/8, 1/4, 1/2
and 1 second
- 40 -
5.9
5.9.1 Overview
The Serial Peripheral Interface (SPI) is a synchronous serial data communication protocol which
operates in full duplex mode. Devices communicate in master/slave mode with 4-wire bi-direction
interface. The NuMicro NUC130/NUC140 contains up to four sets of SPI controller performing a
serial-to-parallel conversion on data received from a peripheral device, and a parallel-to-serial
conversion on data transmitted to a peripheral device. Each set of SPI controller can be set as a
master, it also can be configured as a slave device controlled by an off-chip master device.
This controller supports a variable serial clock for special application and it also supports 2-bit
transfer mode to connect 2 off-chip slave devices at the same time. The SPI controller also
supports PDMA function to access the data buffer.
5.9.2
z
Features
Up to four sets of SPI controller
Configurable bit length up to 32-bit of a transfer word and configurable word numbers up to 2
of a transaction, so the maximum bit length is 64-bit for each data transfer
Provide burst mode operation, transmit/receive can be transferred up to two times word
transaction in one transfer
2 device/slave select lines in master mode, but 1 device/slave select line in slave mode
Support two channel PDMA request, one for transmitter and another for receiver
The SPI clock rate can be configured to equal the system clock rate
- 41 -
5.10.2 Features
z
4 sets of 32-bit timers with 24-bit up-timer and one 8-bit pre-scale counter
z
Time out period = (Period of timer clock input) * (8-bit pre-scale counter + 1) * (24-bit TCMP)
Maximum counting cycle time = (1 / T MHz) * (28) * (224), T is the period of timer clock
Support event counting function to count the event from external pin
- 42 -
- 43 -
WTIS
Timeout Interval
Selection
Interrupt Period
TINT
TTIS
000
24 * TWDT
1024 * TWDT
1.6 ms ~ 104 ms
001
26 * TWDT
1024 * TWDT
6.4 ms ~ 108.8 ms
1024 * TWDT
25.6 ms ~ 128 ms
010
2 * TWDT
10
011
* TWDT
1024 * TWDT
102.4 ms ~ 204.8 ms
100
212 * TWDT
1024 * TWDT
409.6 ms ~ 512 ms
101
214 * TWDT
1024 * TWDT
1.6384 s ~ 1.7408 s
110
216 * TWDT
1024 * TWDT
6.5536 s ~ 6.656 s
111
218 * TWDT
1024 * TWDT
26.2144 s ~ 26.3168 s
TWDT
INT
RST
TTIS
TINT
1024 * TWDT
TRST
Minimum TWTR
63 * TWDT
Maximum TWTR
TWDT : Watchdog Engine Clock Time Period
TTIS : Watchdog Timeout Interval Selection Period
TINT : Watchdog Interrupt Period
TRST : Watchdog Reset Period
TWTR : Watchdog Timeout Interval Period
Figure 5-10 Timing of Interrupt and Reset Signal
- 44 -
5.11.2 Features
z
18-bit free running counter to avoid chip from Watchdog timer reset before the delay time
expires.
z
Selectable time-out interval (2^4 ~ 2^18) and the time out interval is 104 ms ~ 26.3168 s (if
WDT_CLK = 10 kHz).
- 45 -
5.12.1 Overview
The Universal Asynchronous Receiver/Transmitter (UART) performs a serial-to-parallel
conversion on data received from the peripheral, and a parallel-to-serial conversion on data
transmitted from the CPU. The UART controller also supports IrDA SIR Function, LIN
master/slave mode function and RS-485 mode functions. Each UART channel supports seven
types of interrupts including transmitter FIFO empty interrupt (INT_THRE), receiver threshold
level reaching interrupt (INT_RDA), line status interrupt (parity error or framing error or break
interrupt) (INT_RLS), receiver buffer time out interrupt (INT_TOUT), MODEM/Wake-up status
interrupt (INT_MODEM), Buffer error interrupt (INT_BUF_ERR) and LIN receiver break field
detected interrupt (INT_LIN_RX_BREAK). Interrupts of UART0 and UART2 share the interrupt
number 12 (vector number is 28); Interrupt number 13 (vector number is 29) only supports
UART1 interrupt. Refer to Nested Vectored Interrupt Controller chapter for System Interrupt Map.
The UART0 is built-in with a 64-byte transmitter FIFO (TX_FIFO) and a 64-byte receiver FIFO
(RX_FIFO) that reduces the number of interrupts presented to the CPU and the UART1~2 are
equipped 16-byte transmitter FIFO (TX_FIFO) and 16-byte receiver FIFO (RX_FIFO). The CPU
can read the status of the UART at any time during the operation. The reported status information
includes the type and condition of the transfer operations being performed by the UART, as well
as 4 error conditions (parity error, framing error, break interrupt and buffer error) probably occur
while receiving data. The UART includes a programmable baud rate generator that is capable of
dividing clock input by divisors to produce the serial clock that transmitter and receiver need. The
baud rate equation is Baud Rate = UART_CLK / M * [BRD + 2], where M and BRD are defined in
Baud Rate Divider Register (UA_BAUD). Table 5-6 lists the equations in the various conditions
and Table 5-7 list the UART baud rate setting table.
Mode
DIV_X_EN
DIV_X_ONE
Divider X
Dont care
Baud rate
Mode1
Mode2
Parameter
Register
Parameter
Register
Parameter
Register
921600
A=0,B=11
0x2B00_0000
A=22
0x3000_0016
460800
A=1
0x0000_0001
A=1,B=15
A=2,B=11
0x2F00_0001
0x2B00_0002
A=46
0x3000_002E
- 46 -
Baud rate
Mode1
Mode2
Parameter
Register
Parameter
Register
Parameter
Register
230400
A=4
0x0000_0004
A=4,B=15
A=6,B=11
0x2F00_0004
0x2B00_0006
A=94
0x3000_005E
115200
A=10
0x0000_000A
A=10,B=15 0x2F00_000A
A=14,B=11 0x2B00_000E
A=190
0x3000_00BE
57600
A=22
0x0000_0016
A=22,B=15 0x2F00_0016
A=30,B=11 0x2B00_001E
A=382
0x3000_017E
38400
A=34
A=62,B=8 0x2800_003E
0x0000_0022 A=46,B=11 0x2B00_002E
A=34,B=15 0x2F00_0022
A=574
0x3000_023E
19200
A=70
A=126,B=8 0x2800_007E
0x0000_0046 A=94,B=11 0x2B00_005E
A=70,B=15 0x2F00_0046
A=1150
0x3000_047E
9600
A=142
A=254,B=8 0x2800_00FE
0x0000_008E A=190,B=11 0x2B00_00BE
A=142,B=15 0x2F00_008E
A=2302
0x3000_08FE
4800
A=286
A=510,B=8 0x2800_01FE
0x0000_011E A=382,B=11 0x2B00_017E
A=286,B=15 0x2F00_011E
A=4606
0x3000_11FE
5.12.2 Features
z
Full duplex, asynchronous communications
z
Separate receive / transmit 64/16/16 bytes (UART0/UART1/UART2) entry FIFO for data
payloads
Support hardware auto flow control/flow control function (CTS, RTS) and programmable
RTS flow control trigger level (UART0 and UART1 support)
Programmable transmitting data delay time between the last stop and the next start bit by
setting UA_TOR [DLY] register
Support break error, frame error, parity error and receive / transmit buffer overflow detect
function
Programmable parity bit, even, odd, no parity or stick parity bit generation and
detection
- 48 -
5.13.2 Features
z
Supports CAN protocol version 2.0 part A and B.
z
32 Message Objects.
Maskable interrupt.
- 49 -
5.14.2 Features
z
Host communication inhibit and request to send detection
z
- 50 -
Two 8 word FIFO data buffers are provided, one for transmit and one for receive
Two DMA requests, one for transmit and one for receive
- 51 -
Conversion results are held in data registers for each channel with valid and overrun
indicators
Conversion result can be compared with specify value and user can select whether to
generate an interrupt when conversion result is equal to the compare register setting
Channel 7 supports 3 input sources: external analog voltage, internal bandgap voltage,
and internal temperature sensor output
- 52 -
Two analog comparators with optional internal reference voltage input at negative end
- 53 -
5.18.2 Features
z
Support nine DMA channels. Each channel can support a unidirectional transfer
z
AMBA AHB master/slave interface compatible, for data transfer and register read/write
Hardware channel priority. DMA channel 0 has the highest priority and channel 8 has the
lowest priority
- 54 -
5.19.2 Features
External Bus Interface has the following functions:
z
External devices with max. 64K-byte size (8-bit data width)/128K-byte (16-bit data width)
supported
Variable data access time (tACC), address latch enable time (tALE) and address hold
time (tAHD) supported
Address bus and data bus multiplex mode supported to save the address pins
Configurable idle cycle supported for different access condition: Write command finish
(W2X), Read-to-Read (R2R)
- 55 -
6
6.1
6.2
Features
z
Run up to 50 MHz with zero wait state for continuous address read access
Configurable or fixed 4KB data flash with 512 bytes page erase unit
- 56 -
7
7.1
ELECTRICAL CHARACTERISTICS
Absolute Maximum Ratings
PARAMETER
SYMBOL
MIN.
MAX
UNIT
VDDVSS
-0.3
+7.0
VIN
VSS-0.3
VDD+0.3
1/tCLCL
24
MHz
TA
-40
+85
TST
-55
+150
120
mA
120
mA
35
mA
35
mA
100
mA
100
mA
DC Power Supply
Input Voltage
Oscillator Frequency
Operating Temperature
Storage Temperature
Maximum Current into VDD
Note: Exposure to conditions beyond those listed under absolute maximum ratings may adversely affects the lift and reliability of
the device.
- 57 -
7.2
DC Electrical Characteristics
7.2.1
SPECIFICATION
PARAMETER
SYM.
TEST CONDITIONS
MIN.
Operation voltage
Power Ground
VDD
VSS
AVSS
2.5
MAX.
UNIT
5.5
-0.3
VLDO
-10%
AVDD
Vref
IDD1
TYP.
2.5
+10%
VDD
AVDD
51
Operating Current
IDD2
25
IDD3
48
IDD4
23
IDD5
19
Operating Current
Normal Run Mode
@ 12 MHz
IDD6
IDD7
17
- 58 -
SPECIFICATION
PARAMETER
SYM.
TEST CONDITIONS
MIN.
IDD8
TYP.
MAX.
UNIT
VDD = 3 V@12 MHz,
mA disable all IP and disable PLL,
XTAL=12 MHz
VDD = 5 V@4 MHz,
Operating Current
IDD9
11
IDD10
Operating Current
IDD11
10
IDD12
2.5
IIDLE1
35
IIDLE2
15
IIDLE3
33
IIDLE4
13
IIDLE5
10
IIDLE6
4.5
IIDLE7
Operating Current
Idle Mode
Idle Mode
@ 50 MHz
@ 12 MHz
- 59 -
SPECIFICATION
PARAMETER
SYM.
TEST CONDITIONS
MIN.
IIDLE8
TYP.
MAX.
UNIT
VDD = 3 V@12 MHz,
mA disable all IP and disable PLL,
XTAL=12 MHz
3.5
Operating Current
IIDLE9
IIDLE10
2.5
Idle Mode
@ 4 MHz
Standby Current
Power down Mode
3.5
IIDLE12
1.5
IPWD1
12
IPWD2
IPWD3
IPWD4
IIN1
IIN2
-50
-60
-55
-45
-30
ILK
-2
+2
ITL [3]
-650
-200
VIL1
-0.3
0.8
-0.3
0.6
2.0
VDD
+0.2
1.5
VDD
+0.2
-0.5
0.3 VDD
VIH1
VIL2
- 60 -
VDD = 4.5 V
V
VDD = 2.5 V
VDD = 5.5 V
V
VDD =3.0 V
V
SPECIFICATION
PARAMETER
SYM.
VIH2
VHY
VIL3
TEST CONDITIONS
MIN.
TYP.
MAX.
UNIT
0.7 VDD
VDD+0.5
0.2 VDD
V
VDD = 4.5 V
0.8
0.4
3.5
VDD
+0.2
2.4
VDD
+0.2
VIL4
0.4
VIH4
1.7
2.5
VILS
-0.5
0.3 VDD
VIHS
0.7 VDD
VDD+0.5
ISR11
-300
-370
-450
ISR12
-50
-70
-90
ISR13
-40
-60
-80
ISR21
-20
-24
-28
ISR22
-4
-6
-8
ISR23
-3
-5
-7
ISK11
10
16
20
ISK12
10
13
ISK13
12
VBO2.2
2.1
2.2
2.3
VBO2.7
2.6
2.7
2.8
VBO3.8
3.6
3.8
4.0
VBO4.5
4.3
4.5
4.7
VBH
30
150
[*2]
[*2]
VIH3
- 61 -
V
V
VDD = 3.0 V
VDD = 5.5 V
VDD = 3.0 V
SPECIFICATION
PARAMETER
Bandgap voltage
SYM.
VBG
TEST CONDITIONS
MIN.
TYP.
MAX.
UNIT
1.20
1.26
1.32
Note:
1. /RESET pin is a Schmitt trigger input.
2. Crystal Input is a CMOS input.
3. Pins of PA, PB, PC, PD and PE can source a transition current when they are being externally driven from 1 to 0. In the
condition of VDD=5.5 V, 5he transition current reaches its maximum value when VIN approximates to 2 V.
- 62 -
7.3
AC Electrical Characteristics
7.3.1
t CHCX
SYMBOL
PARAMETER
tCHCX
MIN.
TYP.
MAX.
UNIT
20
nS
tCLCX
20
nS
tCLCH
10
nS
tCHCL
10
nS
CONDITION
MIN.
TYP.
MAX.
UNIT
External crystal
12
24
MHz
Temperature
-40
85
VDD
2.5
5.5
12 MHz@ VDD = 5V
mA
7.3.2
Operating current
7.3.2.1
CONDITION
C1
C2
4 MHz ~ 24 MHz
without
without
without
- 63 -
7.3.3
CONDITION
MIN.
TYP.
MAX.
UNIT
External crystal
32.768
kHz
Temperature
-40
85
VDD
2.5
5.5
CONDITION
MIN.
TYP.
MAX.
UNIT
Supply voltage[1]
2.5
5.5
Center Frequency
22.1184
MHz
+25; VDD =5 V
-1
+1
-3
+3
VDD =5 V
500
uA
CONDITION
MIN.
TYP.
MAX.
UNIT
Supply voltage[1]
2.5
5.5
Center Frequency
10
kHz
+25; VDD =5 V
-30
+30
-50
+50
7.3.4
-40~+85;
VDD=2.5 V~5.5 V
Operation Current
7.3.5
-40~+85;
VDD=2.5 V~5.5 V
- 64 -
7.4
Analog Characteristics
7.4.1
SYMBOL
PARAMETER
MIN.
TYP.
MAX.
UNIT
Resolution
12
Bit
DNL
LSB
INL
LSB
EO
Offset error
10
LSB
EG
1.005
Monotonic
FADC
16/8
MHz
FS
Sample rate
700
K SPS
VDDA
Supply voltage
5.5
0.5
mA
1.5
mA
IDD
IDDA
Guaranteed
VREF
Reference voltage
VDDA
IREF
mA
VIN
Input voltage
VREF
- 65 -
7.4.2
MIN.
TYP.
MAX.
UNIT
NOTE
Input Voltage
2.7
5.5
Output Voltage
-10%
2.5
+10%
Temperature
-40
25
85
Cbp
uF
Resr=1ohm
Note:
1. It is recommended that a 10uF or higher capacitor and a 100nF bypass capacitor are connected between VDD and the
closest VSS pin of the device.
2. For ensuring power stability, a 1uF or higher capacitor must be connected between LDO pin and the closest VSS pin of
the device.
- 66 -
7.4.3
CONDITION
MIN.
TYP.
MAX.
UNIT
Operation voltage
1.7
5.5
Quiescent current
VDD=5.5 V
uA
Temperature
-40
25
85
Temperature=25
1.7
2.0
2.3
Temperature=-40
2.4
Temperature=85
1.6
PARAMETER
CONDITION
MIN.
TYP.
MAX.
UNIT
Operation voltage
2.5
5.5
Quiescent current
AVDD=5.5 V
125
Temperature
-40
25
85
BOV_VL[1:0]=11
4.3
4.5
4.7
BOV_VL [1:0]=10
3.6
3.8
4.0
BOV_VL [1:0]=01
2.6
2.7
2.8
BOV_VL [1:0]=00
2.1
2.2
2.3
30
150
mV
PARAMETER
CONDITION
MIN.
TYP.
MAX.
UNIT
Temperature
-40
25
85
Reset voltage
V+
Quiescent current
Vin>reset voltage
nA
Threshold voltage
Hysteresis
7.4.4
Brown-out voltage
Hysteresis
7.4.5
- 67 -
7.4.6
CONDITIONS
MIN.
TYP.
MAX.
UNIT
Supply voltage[1]
2.5
5.5
Temperature
-40
125
Current consumption
6.4
10.5
uA
Gain
Offset
Temp=0
-1.76
mV/
720
mV
7.4.7
Specification of Comparator
PARAMETER
CONDITION
MIN.
TYP.
MAX.
UNIT
Temperature
-40
25
85
VDD
2.4
5.5
VDD current
20 uA@VDD=3 V
20
40
uA
15
mV
Output swing
0.1
VDD-0.1
0.1
VDD-1.2
DC gain
70
dB
Propagation delay
@VCM=1.2 V and
VDIFF=0.1 V
200
ns
10
20
mV
10
mV
us
20 mV@VCM=1 V
50 mV@VCM=0.1 V
Comparison voltage
50 mV@VCM=VDD-1.2
@10 mV for nonhysteresis
One bit control
Hysteresis
Wake-up time
@CINP=1.3 V
CINN=1.2 V
- 68 -
PARAMETER
VIH
VIL
Input low
VDI
VCM
common-mode range
VSE
CONDITIONS
MIN.
TYP.
MAX.
2.0
UNIT
V
0.8
|PADP-PADM|
0.2
0.8
2.5
0.8
2.0
200
mV
VOL
0.3
VOH
2.8
3.6
VCRS
1.3
2.0
RPU
Pull-up resistor
1.425
1.575
VTRM
Termination
for
Voltage
upstream port pull up (RPU)
3.0
3.6
ZDRV
CIN
Transceiver capacitance
Pin to GND
10
20
pF
MAX.
UNIT
7.4.8.2
SYMBOL
PARAMETER
CONDITIONS
MIN.
TYP.
TFR
Rise Time
CL=50p
20
ns
TFF
Fall Time
CL=50p
20
ns
TFRFF
TFRFF=TFR/TFF
90
111.11
CONDITIONS
MIN.
MAX.
UNIT
7.4.8.3
SYMBOL
IVDDREG
(Full
Speed)
PARAMETER
Standby
VDDD and VDDREG Supply Current
Input mode
(Steady State)
Output mode
- 69 -
TYP.
50
uA
uA
uA
7.5
PARAMETER
CONDITIONS
MIN.
MAX.
UNIT
10000
cycles[1]
100
year
Nendu
Endurance
Tret
Retention time
Terase
20
Tmass
40
Tprog
Program time
Vdd
Supply voltage
Idd1
Temp=25
TYP.
40
ms
50
60
ms
35
40
55
us
2.25
2.5
2.75
V[2]
Read current
14
mA
Idd2
Program/Erase current
mA
Ipd
10
uA
- 70 -
7.6
PARAMETER
MIN.
TYP.
MAX.
UNIT
ns
tDH
ns
tV
11
ns
ns
tDH
ns
tV
13
18
ns
ns
tDH
2*PCLK+4
ns
tV
2*PCLK+11
2*PCLK+19
ns
ns
tDH
2*PCLK+6
ns
tV
2*PCLK+19
2*PCLK+25
ns
- 71 -
- 72 -
8
8.1
PACKAGE DIMENSIONS
100L LQFP (14x14x1.4 mm footprint 2.0mm)
HD
D
7
A
A2
51
A1
50
HE E
100
26
L
1
25
e
L1
Dimension in inch
Min Nom
Max
A
A1
A
2b
c
0.063
0.002
0.053
0.007
0.004
0.547
0.547
0.008
0.17
0.10
0.551
0.551
0.556
0.556
13.90
13.90
0.622
0.630
HE
L
0.622
0.018
0.630
0.024
0.020
L1
y
0.05
1.35
0.055
0.009
0.006
e
HD
0.057
0.011
Dimension in mm
Min Nom
Max
1.60
0.638
0.638
0.030
15.80
15.80
0.45
0.039
7
- 73 -
1.45
14.00
14.10
14.00
14.10
0.50
16.00
16.00
0.60
1.00
0.27
0.20
16.20
16.20
0.75
0.10
0.004
0
1.40
0.22
0.15
8.2
Symbol
A
A1
A2
b
c
D
E
e
HD
HE
L
L1
y
0
Dimension in inch
Min
Nom
Dimension in mm
Max
Min
Nom
0.063
0.002
Max
1.60
0.006
0.05
0.053
0.055
0.057
1.35
1.40
1.45
0.007
0.008
0.011
0.17
0.20
0.27
0.008
0.09
0.004
10.00
0.393
10.00
0.020
0.50
0.472
12.00
0.024
12.00
0.030
0.45
0.60
0.75
1.00
0.039
0.20
0.393
0.472
0.018
0.15
0.004
0.10
3.5
3.5
- 74 -
8.3
36
A2
25
37
24
48
13
A1
HE E
12
c
SEATING PLANE
L
L1
Controlling dimension : Millimeters
Symbol
A
A1
A2
b
c
D
E
e
HD
HE
L
L1
Y
0
Dimension in inch
Dimension in mm
0.002 0.004
0.006
0.05
0.053 0.055
0.057
1.35
0.006 0.008
0.010
0.004 0.006
0.008
0.272 0.276
0.272 0.276
0.10
0.15
1.40
1.45
0.15
0.20
0.25
0.10
0.15
0.20
0.280
6.90
7.00
7.10
0.280
6.90
7.00
7.10
0.014
0.020 0.026
0.35
0.50
0.65
0.350
0.354
0.358
8.90
9.00
9.10
0.350
0.354
0.358
8.90
9.00
9.10
0.018
0.024
0.030
0.45
0.60
0.75
1.00
0.039
0.004
0
- 75 -
0.10
0
REVISION HISTORY
VERSION
DATE
PAGE/
CHAP.
V1.00
March 1, 2010
V1.01
April 9, 2010
Ch4
V1.02
7.2
V1.03
7.2
V2.00
DESCRIPTION
V3.00
May 6, 2011
All
V3.01
Revise Pin description position for multi-function T2EX, T3EX, nRD, nWR
update title of SPI Dynamic Characteristics
update BOD spec
V3.02
Jan. 2, 2012
1.
2.
3.
- 76 -
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 customers risk, and in the event that third parties lay
claims to Nuvoton as a result of customers Insecure Usage, customer shall indemnify the
damages and liabilities thus incurred by Nuvoton.
- 77 -