NUC126
ARM CORTEX® -M
32-BIT MICROCONTROLLER
NuMicro® Family
NUC126 Series
Datasheet
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
Aug. 08, 2018
Page 1 of 140
Rev 1.04
NUC126 SERIES DATASHEET
The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
NUC126
TABLE OF CONTENTS
1
GENERAL DESCRIPTION ................................................................................. 8
1.1
2
Key Feature and Application......................................................................................... 9
FEATURES ....................................................................................................... 10
®
2.1
3
NuMicro NUC126 Features ....................................................................................... 10
ABBREVIATIONS ............................................................................................ 18
3.1
4
Abbreviations .............................................................................................................. 18
PARTS INFORMATION LIST AND PIN CONFIGURATION ............................ 20
®
4.1
NuMicro NUC126 Selection Guide ........................................................................... 20
4.1.1
4.1.2
4.2
Pin Configuration ........................................................................................................ 22
4.2.1
4.2.2
4.2.3
4.2.4
4.3
NUC126 USB Series QFN48 Pin Diagram .................................................... 22
NUC126 USB Series LQFP48 Pin Diagram ................................................... 23
NUC126 USB Series LQFP64 Pin Diagram ................................................... 24
NUC126 USB Series LQFP100 Pin Diagram ................................................. 25
NUC126 USB Series Pin Description ............................................................................. 26
GPIO Multi-function Pin Summary ................................................................................. 41
BLOCK DIAGRAM ........................................................................................... 53
®
5.1
6
®
NuMicro
®
NuMicro
®
NuMicro
®
NuMicro
Pin Description ............................................................................................................ 26
4.3.1
4.3.2
5
®
NuMicro NUC126 Naming Rule ................................................................................... 20
®
NuMicro NUC126 USB Series (M452 Compatible) Selection Guide ............................ 21
NuMicro NUC126 Block Diagram ............................................................................. 53
FUNCTIONAL DESCRIPTION ......................................................................... 54
NUC126 SERIES DATASHEET
®
®
6.1
ARM Cortex -M0 Core .............................................................................................. 54
6.2
System Manager ......................................................................................................... 56
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
6.2.7
6.2.8
6.2.9
6.2.10
6.2.11
6.2.12
6.3
Overview ........................................................................................................................ 56
System Reset................................................................................................................. 56
Power Modes and Wake-up Sources ............................................................................. 63
System Power Distribution ............................................................................................. 66
System Memory Map ..................................................................................................... 68
SRAM Memory Orginization ........................................................................................... 70
Register Lock ................................................................................................................. 71
Auto Trim ....................................................................................................................... 71
UART1_TXD modulation with PWM............................................................................... 72
Voltage Detector (VDET) ............................................................................................... 73
System Timer (SysTick) ................................................................................................. 74
Nested Vectored Interrupt Controller (NVIC) .................................................................. 75
Clock Controller .......................................................................................................... 78
6.3.1
6.3.2
6.3.3
6.3.4
6.3.5
Aug. 08, 2018
Overview ........................................................................................................................ 78
System Clock and SysTick Clock ................................................................................... 81
Peripherals Clock ........................................................................................................... 82
Power-down Mode Clock ............................................................................................... 83
Clock Output .................................................................................................................. 83
Page 2 of 140
Rev 1.04
NUC126
6.4
Flash Memeory Controller (FMC) ............................................................................... 85
6.4.1
6.4.2
6.5
Overview ........................................................................................................................ 85
Features ......................................................................................................................... 85
Analog Comparator Controller (ACMP) ...................................................................... 86
6.5.1
6.5.2
6.6
Overview ........................................................................................................................ 86
Features ......................................................................................................................... 86
Analog-to-Digital Converter (ADC) ............................................................................. 87
6.6.1
6.6.2
6.7
Overview ........................................................................................................................ 87
Features ......................................................................................................................... 87
CRC Controller (CRC) ................................................................................................ 88
6.7.1
6.7.2
6.8
Overview ........................................................................................................................ 88
Features ......................................................................................................................... 88
External Bus Interface (EBI) ....................................................................................... 89
6.8.1
6.8.2
6.9
Overview ........................................................................................................................ 89
Features ......................................................................................................................... 89
General Purpose I/O (GPIO) ...................................................................................... 90
6.9.1
6.9.2
6.10
Overview ........................................................................................................................ 90
Features ......................................................................................................................... 90
Hardware Divider (HDIV) ............................................................................................ 91
6.10.1 Overview ........................................................................................................................ 91
6.10.2 Features ......................................................................................................................... 91
6.10.3 Blcok Diagram................................................................................................................ 91
2
6.11
2
I C Serial Interface Controller (I C) ............................................................................. 92
6.11.1 Overview ........................................................................................................................ 92
6.11.2 Features ......................................................................................................................... 92
PDMA Controller (PDMA) ........................................................................................... 93
6.12.1 Overview ........................................................................................................................ 93
6.12.2 Features ......................................................................................................................... 93
6.13
PWM Generator and Capture Timer (PWM) .............................................................. 94
6.13.1 Overview ........................................................................................................................ 94
6.13.2 Features ......................................................................................................................... 94
6.14
Real Time Clock (RTC) ............................................................................................... 96
6.14.1 Overview ........................................................................................................................ 96
6.14.2 Features ......................................................................................................................... 96
6.15
Smart Card Host Interface (SC).................................................................................. 97
6.15.1 Overview ........................................................................................................................ 97
6.15.2 Features ......................................................................................................................... 97
6.16
Serial Peripheral Interface (SPI) ................................................................................. 98
6.16.1 Overview ........................................................................................................................ 98
6.16.2 Features ......................................................................................................................... 98
6.17
Timer Controller (TMR) ............................................................................................... 99
6.17.1 Overview ........................................................................................................................ 99
6.17.2 Features ......................................................................................................................... 99
6.18
Aug. 08, 2018
USB Device Controller (USBD) ................................................................................ 101
Page 3 of 140
Rev 1.04
NUC126 SERIES DATASHEET
6.12
NUC126
6.18.1 Overview ...................................................................................................................... 101
6.18.2 Features ....................................................................................................................... 101
USCI – Universal Serial Control Interface Controller................................................ 102
6.19
6.19.1 Overview ...................................................................................................................... 102
6.19.2 Features ....................................................................................................................... 102
USCI – UART Mode ................................................................................................. 103
6.20
6.20.1 Overview ...................................................................................................................... 103
6.20.2 Features ....................................................................................................................... 103
USCI – SPI Mode ..................................................................................................... 104
6.21
6.21.1 Overview ...................................................................................................................... 104
6.21.2 Features ....................................................................................................................... 104
2
USCI – I C Mode ...................................................................................................... 106
6.22
6.22.1 Overview ...................................................................................................................... 106
6.22.2 Features ....................................................................................................................... 106
6.23
UART Interface Controller (UART) ........................................................................... 107
6.23.1 Overview ...................................................................................................................... 107
6.23.2 Features ....................................................................................................................... 107
6.24
Watchdog Timer (WDT) ............................................................................................ 108
6.24.1 Overview ...................................................................................................................... 108
6.24.2 Features ....................................................................................................................... 108
6.24.3 Clock Control ............................................................................................................... 108
6.25
Window Watchdog Timer (WWDT)........................................................................... 109
6.25.1 Overview ...................................................................................................................... 109
6.25.2 Features ....................................................................................................................... 109
6.25.3 Clock Control ............................................................................................................... 109
NUC126 SERIES DATASHEET
7
APPLICATION CIRCUIT ................................................................................ 110
8
ELECTRICAL CHARACTERISTICS .............................................................. 111
8.1
Absolute Maximum Ratings ...................................................................................... 111
8.2
DC Electrical Characteristics .................................................................................... 112
8.3
AC Electrical Characteristics .................................................................................... 120
8.3.1
8.3.2
8.3.3
8.3.4
8.3.5
External 4~24 MHz High Speed Crystal (HXT) Input Clock ......................................... 120
External 4~24 MHz High Speed Crystal (HXT) Oscillator ............................................ 120
External 32.768 kHz Low Speed Crystal (LXT) Input Clock ......................................... 121
External 32.768 kHz Low Speed Crystal (LXT) Input Clock ......................................... 122
Internal 48 MHz High Speed RC Oscillator (HIRC48) .................................................. 123
8.3.6
8.3.7
Internal 22.1184 MHz High Speed RC Oscillator (HIRC) ............................................. 123
Internal 10 kHz Low Speed RC Oscillator (LIRC) ........................................................ 123
8.4
Analog Characteristics .............................................................................................. 125
8.4.1
8.4.2
8.4.3
8.4.4
8.4.5
8.4.6
Aug. 08, 2018
LDO.............................................................................................................................. 125
Temperature Sensor .................................................................................................... 125
Internal Voltage Reference (Int_VREF) .......................................................................... 125
Power-on Reset ........................................................................................................... 126
Low-Voltage Reset ....................................................................................................... 126
Brown-out Detector ...................................................................................................... 126
Page 4 of 140
Rev 1.04
NUC126
8.4.7
8.4.8
8.4.9
8.5
Flash DC Electrical Characteris ................................................................................ 131
8.6
I2C Dynamic Characteristics .................................................................................... 132
8.7
SPI Dynamic Characteristics .................................................................................... 133
8.7.1
9
10
12-bit ADC ................................................................................................................... 127
Analog Comparator ...................................................................................................... 129
USB PHY ..................................................................................................................... 130
Dynamic Characteristics of Data Input and Output Pin ................................................ 133
PACKAGE DIMENSIONS .............................................................................. 135
9.1
LQFP 100L (14x14x1.4 mm footprint 2.0 mm) ......................................................... 135
9.2
LQFP 64L (7x7x1.4 mm footprint 2.0 mm) ............................................................... 136
9.3
LQFP 48L (7x7x1.4 mm Footprint 2.0 mm) .............................................................. 137
9.4
QFN 48L (7x7x0.8 mm) ............................................................................................ 138
REVISION HISTORY ...................................................................................... 139
NUC126 SERIES DATASHEET
Aug. 08, 2018
Page 5 of 140
Rev 1.04
NUC126
LIST OF FIGURES
®
Figure 4.2-1 NuMicro NUC126 USB Series QFN 48-pin Diagram ............................................... 22
®
Figure 4.2-2 NuMicro NUC126 USB Series LQFP 48-pin Diagram ............................................. 23
®
Figure 4.2-3 NuMicro NUC126 USB Series LQFP 64-pin Diagram ............................................. 24
®
Figure 4.2-4 NuMicro NUC126 USB Series LQFP 100-pin Diagram ........................................... 25
®
Figure 5.1-1 NuMicro NUC126 Block Diagram ............................................................................. 53
Figure 6.1-1 Functional Block Diagram .......................................................................................... 54
Figure 6.2-1 System Reset Sources ............................................................................................... 57
Figure 6.2-2 nRESET Reset Waveform ......................................................................................... 59
Figure 6.2-3 Power-on Reset (POR) Waveform ............................................................................. 60
Figure 6.2-4 Low Voltage Reset (LVR) Waveform ......................................................................... 61
Figure 6.2-5 Brown-out Detector (BOD) Waveform ....................................................................... 62
®
Figure 6.2-6 NuMicro NUC126 Power Mode State Machine ........................................................ 64
®
Figure 6.2-7 NuMicro NUC126 Power Distribution Diagram ........................................................ 67
Figure 6.2-8 SRAM Block Diagram ................................................................................................ 70
Figure 6.2-9 SRAM Memory Organization ..................................................................................... 71
Figure 6.2-10 UART1_TXD Modulated with PWM Channel........................................................... 72
Figure 6.2-11 VDET Block Diagram ............................................................................................... 73
Figure 6.3-1 Clock Generator Block Diagram................................................................................. 79
Figure 6.3-2 Clock Generator Global View Diagram ...................................................................... 80
Figure 6.3-3 System Clock Block Diagram ..................................................................................... 81
NUC126 SERIES DATASHEET
Figure 6.3-4 HXT Stop Protect Procedure...................................................................................... 82
Figure 6.3-5 SysTick Clock Control Block Diagram ....................................................................... 82
Figure 6.3-6 Clock Source of Clock Output .................................................................................... 83
Figure 6.3-7 Clock Output Block Diagram ...................................................................................... 84
Figure 6.10-1 Hardware Divider Block Diagram ............................................................................. 91
Figure 6.21-1 SPI Master Mode Application Block Diagram ........................................................ 104
Figure 6.21-2 SPI Slave Mode Application Block Diagram .......................................................... 104
2
Figure 6.22-1 I C Bus Timing ....................................................................................................... 106
Figure 6.24-1 Watchdog Timer Clock Control .............................................................................. 108
Figure 6.25-1 WWDT Clock Control ............................................................................................. 109
Figure 8.3-1 Typical Crystal Application Circuit ............................................................................ 121
Figure 8.3-2 Typical Crystal Application Circuit ............................................................................ 122
2
Figure 8.6-1 I C Timing Diagram .................................................................................................. 132
Figure 8.7-1 SPI Master Mode Timing Diagram ........................................................................... 133
Figure 8.7-2 SPI Slave Mode Timing Diagram ............................................................................. 134
Aug. 08, 2018
Page 6 of 140
Rev 1.04
NUC126
List of Tables
Table 1.1-1 Key Features Support Table ......................................................................................... 9
Table 3.1-1 List of Abbreviations .................................................................................................... 19
Table 4.3-1 NUC126 GPIO Multi-function Table ............................................................................ 52
Table 6.2-1 Reset Value of Registers ............................................................................................. 59
Table 6.2-2 Power Mode Difference Table ..................................................................................... 63
Table 6.2-3 Clocks in Power Modes .............................................................................................. 65
Table 6.2-4 Condition of Entering Power-down Mode Again ......................................................... 66
Table 6.2-5 Address Space Assignments for On-Chip Controllers ................................................ 69
Table 6.2-6 Exception Model .......................................................................................................... 76
Table 6.2-7 Interrupt Number Table ............................................................................................... 77
Table 6.3-8 Clock Stable Count Value Table ................................................................................. 79
NUC126 SERIES DATASHEET
Aug. 08, 2018
Page 7 of 140
Rev 1.04
NUC126
1
GENERAL DESCRIPTION
®
®
®
The NuMicro NUC126 series microcontroller based on the ARM Cortex -M0 core operates at up
to 72 MHz. With its crystal-less USB 2.0 FS interface, it is able to generate precise frequency
required by USB protocol without the need of external crystal. It features adjustable V DDIO pins for
specific I/O pins with a wide range of voltage from 1.8V to 5.5V for various operating voltages of
external components, a unique high-speed PWM with clock frequency up to 144 MHz for precision
control, and an integrated hardware divider to speed up the calculation for the control algorithms.
Apart from that, the NUC126 also integrates SPROM (Security Protection ROM) which provides a
secure code execution area to protect the intelligent property of developers. The NUC126 series
is ideal for industrial control, motor control and metering applications.
The NUC126 series supports the wide voltage range from 2.5V to 5.5V and temperature ranging
from -40℃ to 105℃, up to 256 Kbytes of Flash memory, 20 Kbytes of SRAM, 4 Kbytes of ISP (InSystem Programming) ROM as well as ICP (In-Circuit Programming) ROM and IAP (InApplication Programming) ROM in 48-, 64- or 100-pin packages. It also supports high immunity of
8KV ESD (HBM)/4KV EFT. It is also equipped with plenty of peripherals such as USB interface,
Timers, Watchdog Timers, RTC, PDMA, EBI, UART, Smart Card Interface, SPI, I²S, I²C, GPIO, up
to 12 channels of 16-bit PWM, up to 20 channels of 12-bit ADC, analog comparator, temperature
sensor, low voltage reset, brown-out detector, 96-bit UID (Unique Identification), and 128-bit UCID
(Unique Customer Identification).
NUC126 SERIES DATASHEET
Aug. 08, 2018
Page 8 of 140
Rev 1.04
NUC126
1.1
Key Feature and Application
Product Line
USB
USCI
UART
I2C
SPI/I2S
NUC126
2.0 FS
Device
3
3
2
2
ISO
7816
2
PWM
EBI
PDMA
ADC
ACMP
RTC
VBAT
VDDIO
12
Y
5
20
2
Y
Y
Table 1.1-1 Key Features Support Table
®
The NuMicro NUC126 series is suitable for a wide range of applications such as:
Industrial Automation
PLCs
Inverters
Home Automation
Security Alarm System
Power Metering
Portable Data Collector
Portable RFID Reader
System Supervisors
Smart Card Reader
Printer
Bar Code Scanner
Motor Control
Digital Power
NUC126 SERIES DATASHEET
Aug. 08, 2018
Page 9 of 140
Rev 1.04
NUC126
2
FEATURES
2.1 NuMicro® NUC126 Features
Core
®
®
– ARM Cortex -M0 core running up to 72 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
– Supports programmable mask-able interrupts
– Serial Wire Debug supports with 2 watch-points/4 breakpoints
Built-in LDO for wide operating voltage ranged from 2.5V to 5.5V
Flash Memory
–
–
–
–
–
–
–
Supports 256/128 KB application ROM (APROM)
Supports 4 KB Flash for loader (LDROM)
Supports 2 KB Security Protection Rom (SPROM)
Supports 12 bytes User Configuration block to control system initiation
Supports Data Flash with configurable memory size
Supports 2 KB page erase for all embedded flash
Supports In-System-Programming (ISP), In-Application-Programming (IAP) update
embedded flash memory
– Supports CRC-32 checksum calculation function
– Supports flash all one verification function
– Hardware external read protection of whole flash memory by Security Lock Bit
– Supports 2-wired ICP update through SWD/ICE interface
SRAM Memory
NUC126 SERIES DATASHEET
– 20 KB embedded SRAM
– Supports byte-, half-word- and word-access
– Supports PDMA mode
Hardware Divider
Signed (two’s complement) integer calculation
32-bit dividend with 16-bit divisor calculation capacity
32-bit quotient and 32-bit remainder outputs (16-bit remainder with sign extends to 32bit)
– Divided by zero warning flag
– 6 HCLK clocks taken for one cycle calculation
– Write divisor to trigger calculation
– Waiting for calculation ready automatically when reading quotient and remainder
PDMA (Peripheral DMA)
–
–
–
–
Supports 5 independent configurable channels for automatic data transfer between
memories and peripherals
– Supports single and burst transfer type
– Supports Normal and Scatter-Gather Transfer modes
– Supports two types of priorities modes: Fixed-priority and Round-robin modes
– Supports byte-, half-word- and word-access
– Supports incrementing mode for the source and destination address for each channel
– Supports time-out function for channel 0 and channel 1
– Supports software and SPI/I2S, UART, USCI, USB, ADC, PWM and TIMER request
Clock Control
Aug. 08, 2018
Page 10 of 140
Rev 1.04
NUC126
–
–
–
–
–
–
–
–
–
–
–
–
–
GPIO
Built-in 22.1184 MHz high speed RC oscillator for system operation (Frequency
o
o
variation < 2% at -40 C ~ +105 C)
Built-in 48 MHz internal high speed RC oscillator for USB device operation(Frequency
o
o
variation < 2% at -40 C ~ +105 C)
Built-in 10 kHz low speed RC oscillator for Watchdog Timer and Wake-up operation
Built-in 4~24 MHz high speed crystal oscillator for precise timing operation
Built-in 32.768 kHz low speed crystal oscillator for Real Time Clock
Supports PLL up to 144 MHz for high resolution PWM operation
Supports dynamically calibrating the HIRC48 to 48 MHz ±0.25% by external 32.768K
crystal oscillator (LXT)
Supports dynamically calibrating the HIRC to 22.1184Mhz by external 32.768K crystal
oscillator (LXT)
Supports clock on-the-fly switch
Supports clock failure detection for system clock
Supports auto clock switch once clock failure detected
Supports exception (NMI) generated once a clock failure detected
Supports divided clock output
– Four I/O modes
– TTL/Schmitt trigger input selectable
– I/O pin configured as interrupt source with edge/level trigger setting
– Supports high driver and high sink current I/O (up to 20 mA at 5V)
– Supports software selectable slew rate control
– Supports up to 81/49/35 GPIOs for LQFP100/64/48 respectively
Timer/PWM
–
–
Timer Mode
PWM Mode
TM_CNT_OUT
PWM_CH0
TM_EXT
PWM_CH1 (Complementary)
Timer Mode
Supports 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
Supports event counting function to count the event from external pin
Supports input capture function to capture or reset counter value
Supports chip wake-up from Idle/Power-down mode if a timer interrupt signal is
generated
Support Timer0 ~ Timer3 time-out interrupt signal or capture interrupt signal to
trigger PWM, EADC and PDMA function
Supports Inter-Timer trigger mode
PWM Mode
Supports maximum clock frequency up to 72MHz
Aug. 08, 2018
Supports independent mode for 4 sets of independent PWM output channel
Supports complementary mode for 4 sets of complementary paired PWM output
channel with 12-bit Dead-time generator
Supports 12-bit pre-scalar from 1 to 4096
Page 11 of 140
Rev 1.04
NUC126 SERIES DATASHEET
–
Supports 4 sets of Timers/PWM
NUC126
Supports 16-bit resolution PWM counter, each timer provides 1 PWM counter
Supports up, down and up/down counter operation type
Supports one-shot or Auto-reload counter operation mode
Supports mask function and tri-state enable for each PWM pin
Supports brake function
Supports interrupt when PWM counter match zero, period value or compared
value, and brake condition happened
Supports trigger ADC when PWM counter match zero, period value or compared
value
Watchdog Timer
– Supports multiple clock sources from LIRC(default selection), HCLK/2048 and LXT
– 8 selectable time-out period from 1.6ms ~ 26.0sec (depending on clock source)
– Able to wake up from Power-down or Idle mode
– Interrupt or reset selectable on watchdog time-out
Window Watchdog Timer
– Supports multiple clock sources from HCLK/2048 (default selection) and LIRC
– Window set by 6-bit counter with 11-bit prescale
– Interrupt or reset selectable on time-out
RTC
NUC126 SERIES DATASHEET
–
–
–
–
–
–
–
–
–
PWM
–
–
–
–
–
–
–
–
–
–
Supports separate battery power pin VBAT
Supports software compensation by setting frequency compensate register (FCR)
Supports RTC counter (second, minute, hour) and calendar counter (day, month, year)
Supports Alarm registers (second, minute, hour, day, month, year)
Supports Alarm mask registers
Selectable 12-hour or 24-hour mode
Automatic leap year recognition
Supports 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
Supports wake-up function
Supports maximum clock frequency up to144MHz
Supports up to two PWM modules, each module provides 6 output channels.
Supports independent mode for PWM output/Capture input channel
Supports complementary mode for 2 complementary paired PWM output channel
Dead-time insertion with 12-bit resolution
Two compared values during one period
Supports 12-bit pre-scalar from 1 to 4096
Supports 16-bit resolution PWM counter
Up, down and up/down counter operation type
Supports mask function and tri-state enable for each PWM pin
Supports brake function
Brake source from pin and system safety events: clock failed, Brown-out
detection and CPU lockup.
Noise filter for brake source from pin
Edge detect brake source to control brake state until brake interrupt cleared
Level detect brake source to auto recover function after brake condition removed
Supports interrupt on the following events:
PWM counter match zero, period value or compared value
Brake condition happened
Supports trigger ADC on the following events:
Aug. 08, 2018
Page 12 of 140
Rev 1.04
NUC126
PWM counter match zero, period value or compared value
Supports up to 12 capture input channels with 16-bit resolution
Supports rising or falling capture condition
Supports input rising/falling capture interrupt
Supports rising/falling capture with counter reload option
USCI
–
–
–
–
–
Supports up to 3 sets of USCI
USCI
UART Mode
SPI Mode
I2C Mode
USCI_CLK
-
SPI_CLK
SCL
USCI_CTL0
nCTS
SPI_SS
-
USCI_CTL1
nRTS
-
-
USCI_DAT0
Rx
SPI_MOSI
SDA
USCI_DAT1
Tx
SPI_MISO
-
–
–
–
–
–
–
–
–
–
Supports up to 3 sets of UART
Full-duplex asynchronous communications
Separates receive and transmit 16/16 bytes entry FIFO for data payloads
Supports hardware auto-flow control (RX, TX, CTS and RTS)
Programmable receiver buffer trigger level
Supports programmable baud rate generator for each channel individually
Supports 8-bit receiver buffer time-out detection function
Programmable transmitting data delay time between the last stop and the next start bit
by setting DLY (UART_TOUT [15:8])
Aug. 08, 2018
Page 13 of 140
Rev 1.04
NUC126 SERIES DATASHEET
UART Mode
Supports one transmit buffer and two receive buffer for data payload
Supports hardware auto flow control function
Supports programmable baud-rate generator
Support 9-Bit Data Transfer (Support 9-Bit RS-485)
Baud rate detection possible by built-in capture event of baud rate generator
Supports Wake-up function (Data and nCTS Wakeup Only)
– SPI Mode
Supports Master or Slave mode operation (the maximum frequency -- Master =
fPCLK / 2, Slave = fPCLK / 5)
Supports one transmit buffer and two receive buffers for data payload
Configurable bit length of a transfer word from 4 to 16-bit
Supports MSB first or LSB first transfer sequence
Supports Word Suspend function
Supports 3-wire, no slave select signal, bi-direction interface
Supports wake-up function by slave select signal in Slave mode
Supports one data channel half-duplex transfer
– I2C Mode
Full master and slave device capability
Supports of 7-bit addressing, as well as 10-bit addressing
Communication in standard mode (100 kBit/s) or in fast mode (up to 400 kBit/s)
Supports multi-master bus
Supports one transmit buffer and two receive buffer for data payload
Supports 10-bit bus time-out capability
Supports bus monitor mode.
Supports Power down wake-up by data toggle or address match
Supports setup/hold time programmable
Supports multiple address recognition (two slave address with mask option)
UART
NUC126
–
–
Supports Auto-Baud Rate measurement and baud rate compensation function
Supports break error, frame error, parity error and receive/transmit buffer overflow
detection function
– Fully programmable serial-interface characteristics
Programmable number of data bit, 5-, 6-, 7-, 8- bit character
Programmable parity bit, even, odd, no parity or stick parity bit generation and
detection
Programmable stop bit, 1, 1.5, or 2 stop bit generation
– Supports IrDA SIR function mode
Supports for 3/16 bit duration for normal mode
– Supports LIN function mode
Supports LIN master/slave mode
Supports programmable break generation function for transmitter
Supports break detection function for receiver
– Supports RS-485 mode
Supports RS-485 9-bit mode
Supports hardware or software enables to program nRTS pin to control RS-485
transmission direction
– Supports nCTS, incoming data, Received Data FIFO reached threshold and RS-485
Address Match (AAD mode) wake-up function
– Supports PDMA transfer
Smart Card Host (SC)
–
Supports up to two Smart Card Hosts
NUC126 SERIES DATASHEET
SC Mode
UART Mode
SC_DATA
Rx
SC_CLK
Tx
SC_CD
-
SC_PWR
-
SC_RST
-
–
SC Mode
Supports up to two ISO-7816-3 ports
Compliant to ISO-7816-3 T=0, T=1
Separate receive / transmit 4 bytes entry FIFO for data payloads
Programmable transmission clock frequency
Programmable receiver buffer trigger level
Programmable guard time selection (11 ETU ~ 266 ETU)
One 24-bit and two 8-bit time-out counters for Answer to Request (ATR) and
waiting times processing
Supports auto inverse convention function
Supports transmitter and receiver error retry and error limit function
Supports hardware activation sequence process
Supports hardware warm reset sequence process
Supports hardware deactivation sequence process
Supports hardware auto deactivation sequence when detecting the card is
removal
– UART Mode
Full duplex, asynchronous communications
Supports receiving / transmitting 4-bytes FIFO
Supports programmable baud rate generator for each channel
Programmable even, odd or no parity bit generation and detection
Programmable stop bit, 1 or 2 stop bit generation
2
SPI/I S
Aug. 08, 2018
Page 14 of 140
Rev 1.04
NUC126
–
–
–
Supports up to two SPI/I2S controllers
SPI Mode
I2S Mode
SPI_CLK
I2S_BCLK
SPI_SS
I2S_LRCLK
SPI_MOSI
I2S_DO
SPI_MISO
I2S_DI
-
I2S_MCLK
SPI Mode
Supports Master or Slave mode operation
Configurable bit length of a transfer word from 8 to 32-bit
Provides separate 4-/8-level depth transmit and receive FIFO buffers
Supports MSB first or LSB first transfer sequence
Supports Byte Reorder function
Supports PDMA transfer
I2S Mode
Supports Master or Slave mode operation
Capable of handling 8-, 16-, 24- and 32-bit word sizes in I2S mode
Provides separate 4-level depth transmit and receive FIFO buffers in I2S mode
Supports monaural and stereo audio data in I2S mode
Supports PCM mode A, PCM mode B, I2S and MSB justified data format in I2S
mode
Supports PDMA transfer
2
I C
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Crystal-less USB 2.0 FS Device
Compliant to USB specification version 2.0
On-chip USB Transceiver
Supports Control, Bulk In/Out, Interrupt and Isochronous transfers
Auto suspend function when no bus signaling for 3 ms
Supports USB 2.0 Link Power Management (LPM)
Provides 8 programmable endpoints
Supports 512 Bytes internal SRAM as USB buffer
Provides remote wake-up capability
On-chip 5V to 3.3V LDO for USB PHY
Aug. 08, 2018
Page 15 of 140
Rev 1.04
NUC126 SERIES DATASHEET
Supports up to two sets of I2C device
Supports Master/Slave mode
Supports bidirectional data transfer between masters and slaves
Supports 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 via
one serial bus
– Serial clock synchronization can be used as a handshake mechanism to suspend and
resume serial transfer
– Supports 14-bit time-out counter requesting the I2C interrupt if the I2C bus hangs up
and timer-out counter overflows
– Programmable clocks allow versatile rate control
– Supports multiple address recognition, four slave address with mask option
– Supports two-level buffer function
– Supports setup/hold time programmable
– Supports wake-up function
USB 2.0 FS Device Controller
NUC126
ADC
–
–
–
–
–
–
–
–
–
Supports 12-bit SAR ADC
12-bit resolution and 10-bit accuracy is guaranteed
Analog input voltage range: 0~ AVDD
Supports external VREF pin
Up to 20 single-end analog input channels
Maximum ADC peripheral clock frequency is 16 MHz
Conversion rate up to 800K SPS at 5V
Configurable ADC internal sampling time
Supports single-scan, single-cycle-scan, and continuous scan and scan on enabled
channels
– Supports individual conversion result register with valid and overrun indicators for each
channel
– Supports digital comparator to monitor conversion result and user can select whether
to generate an interrupt when conversion result matches the compare register setting
– An A/D conversion can be triggered by:
Software enable
External pin (STADC)
Timer 0~3 overflow pulse trigger
PWM triggers with optional start delay period
– Supports 4 internal channels for
Operational amplifier output
Band-gap VBG input
Temperature sensor input
VBAT voltage measure
– Supports internal reference voltage: 2.048V, 2.560V, 3.072V and 4.096V
– Supports PDMA transfer
Analog Comparator
NUC126 SERIES DATASHEET
–
–
–
–
Supports up to 2 rail-to-rail analog comparators
Supports 4 multiplexed I/O pins at positive node.
Supports I/O pin and internal voltages at negative node
Support selectable internal voltage reference from:
Band-gap VBG
Voltage divider source from AVDD and internal reference voltage.
– Supports programmable hysteresis
– Supports programmable speed and power consumption
– Interrupts generated when compare results change, interrupt event condition is
programmable.
– Supports power-down wake-up
– Supports triggers for break events and cycle-by-cycle control for PWM
Cyclic Redundancy Calculation Unit
– Supports four common polynomials CRC-CCITT, CRC-8, CRC-16, and CRC-32
– Programmable initial value
– Supports programmable order reverse setting for input data and CRC checksum
– Supports programmable 1’s complement setting for input data and CRC checksum.
– Supports 8/16/32-bit of data width
– Interrupt generated once checksum error occurs
User Configurable VDD1=1.8~5.5V IO Interface
–
Supports UART0, SPI0 and I2C0
Supports 96-bit Unique ID (UID)
Supports 128-bit Unique Customer ID (UCID)
One built-in temperature sensor with 1℃ resolution
Aug. 08, 2018
Page 16 of 140
Rev 1.04
NUC126
Brown-out detector
– With 8 levels: 4.3 V/ 3.7V/ 2.7V/ 2.2V
– Supports Brown-out Interrupt and Reset option
Low Voltage Reset
– Threshold voltage levels: 2.0 V
Power consumption
– Chip power down current < 10 uA with RAM data retention.
– VBAT power domain operating current