图片仅供参考

详细数据请看参考数据手册

Datasheet下载
  • 型号: NUC122SC1AN
  • 制造商: Nuvoton Technology Corporation of America
  • 库位|库存: xxxx|xxxx
  • 要求:
数量阶梯 香港交货 国内含税
+xxxx $xxxx ¥xxxx

查看当月历史价格

查看今年历史价格

NUC122SC1AN产品简介:

ICGOO电子元器件商城为您提供NUC122SC1AN由Nuvoton Technology Corporation of America设计生产,在icgoo商城现货销售,并且可以通过原厂、代理商等渠道进行代购。 NUC122SC1AN价格参考。Nuvoton Technology Corporation of AmericaNUC122SC1AN封装/规格:嵌入式 - 微控制器, ARM® Cortex®-M0 微控制器 IC NuMicro™ NUC122 32-位 60MHz 32KB(32K x 8) 闪存 。您可以下载NUC122SC1AN参考资料、Datasheet数据手册功能说明书,资料中有NUC122SC1AN 详细功能的应用电路图电压和使用方法及教程。

产品参数 图文手册 常见问题
参数 数值
产品目录

集成电路 (IC)

描述

IC MCU 32BIT 32KB FLASH 64LQFP

EEPROM容量

-

产品分类

嵌入式 - 微控制器

I/O数

41

品牌

Nuvoton Technology Corporation of America

数据手册

http://download.nuvoton.com/NuvotonMOSS/DownloadService/Member/DocumentsInfo.aspx?tp_GUID=DA00-NUC122点击此处下载产品Datasheet

产品图片

产品型号

NUC122SC1AN

RAM容量

4K x 8

rohs

无铅 / 符合限制有害物质指令(RoHS)规范要求

产品系列

NuMicro™ NUC122

供应商器件封装

*

包装

托盘

外设

欠压检测/复位,DMA,I²S,LVD,POR,PS2,PWM,WDT

封装/外壳

64-LQFP

工作温度

-40°C ~ 85°C

振荡器类型

内部

数据转换器

-

标准包装

250

核心处理器

ARM® Cortex™-M0

核心尺寸

32-位

电压-电源(Vcc/Vdd)

2.5 V ~ 5.5 V

程序存储器类型

闪存

程序存储容量

32KB(32K x 8)

连接性

I²C, IrDA, SPI, UART/USART, USB

速度

60MHz

推荐商品

型号:DF2217CUTF24V

品牌:Renesas Electronics America

产品名称:集成电路(IC)

获取报价

型号:PIC16F631-I/ML

品牌:Microchip Technology

产品名称:集成电路(IC)

获取报价

型号:LPC2368FET100,518

品牌:NXP USA Inc.

产品名称:集成电路(IC)

获取报价

型号:PIC16F877-20I/PQ

品牌:Microchip Technology

产品名称:集成电路(IC)

获取报价

型号:MC9S08LG16CLF

品牌:NXP USA Inc.

产品名称:集成电路(IC)

获取报价

型号:SAF-XE164K-72F66L AC

品牌:Infineon Technologies

产品名称:集成电路(IC)

获取报价

型号:DSPIC33EP256GP506-I/PT

品牌:Microchip Technology

产品名称:集成电路(IC)

获取报价

型号:R5F2M122ADSP#U0

品牌:Renesas Electronics America

产品名称:集成电路(IC)

获取报价

样品试用

万种样品免费试用

去申请
NUC122SC1AN 相关产品

PIC18F66J11T-I/PT

品牌:Microchip Technology

价格:

PIC16C63-10/SO

品牌:Microchip Technology

价格:

ZLP32300P2008C

品牌:Maxim Integrated

价格:

R5F100MFAFB#V0

品牌:Renesas Electronics America

价格:

MC68711E20VFNE2

品牌:NXP USA Inc.

价格:

MK50DN512CLL10

品牌:NXP USA Inc.

价格:

STM32F072R8T6TR

品牌:STMicroelectronics

价格:

PIC16F1509-I/P

品牌:Microchip Technology

价格:¥11.44-¥11.84

PDF Datasheet 数据手册内容提取

 NuMicro NUC122 Datasheet ARM Cortex®-M0 32-BIT MICROCONTROLLER ™ NuMicro Family NUC122 Datasheet The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton. Nuvoton is providing this document only for reference purposes of NuMicroTM 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 Jan. 09, 2015 Page 1 of 66 Revision 1.11

 NuMicro NUC122 Datasheet TABLE OF CONTENTS LIST OF FIGURES .................................................................................................................................. 4 LIST OF TABLES .................................................................................................................................... 5 1 GENERAL DESCRIPTION ......................................................................................................... 6 2 FEATURES ................................................................................................................................. 7 2.1 NuMicro NUC122 Features........................................................................................... 7 3 PARTS INFORMATION LIST AND PIN CONFIGURATION .................................................... 10 3.1 NuMicro NUC122 Products Selection Guide .............................................................. 10 3.2 NuMicro NUC122 Pin Diagram ................................................................................... 11 3.2.1 NuMicro NUC122 LQFP 64-pin .................................................................................... 11 3.2.2 NuMicro NUC122 LQFP 48-pin .................................................................................... 12 3.2.3 NuMicro NUC122 QFN 33-pin ...................................................................................... 13 3.3 NuMicro NUC122 Pin Description .............................................................................. 14 3.3.1 NuMicro NUC122 Pin Description for LQFP64/LQFP48/QFN33 .................................. 14 4 BLOCK DIAGRAM .................................................................................................................... 18 4.1 NuMicro NUC122 Block Diagram ............................................................................... 18 5 FUNCTIONAL DESCRIPTION.................................................................................................. 19 5.1 ARM® Cortex®-M0 Core ................................................................................................ 19 5.2 System Manager ........................................................................................................... 21 5.2.1 Overview ........................................................................................................................ 21 5.2.2 System Reset ................................................................................................................. 21 5.2.3 System Power Distribution ............................................................................................. 22 5.2.4 System Timer (SysTick) ................................................................................................. 23 5.2.5 Nested Vectored Interrupt Controller (NVIC) .................................................................. 24 5.3 Clock Controller ............................................................................................................ 28 5.3.1 Overview ........................................................................................................................ 28 5.3.2 Clock Generator ............................................................................................................. 29 5.3.3 System Clock & SysTick Clock ....................................................................................... 30 5.3.4 Peripherals Clock ........................................................................................................... 31 5.3.5 Power Down Mode Clock ............................................................................................... 31 5.4 FLASH MEMORY CONTROLLER (FMC) .................................................................... 32 5.4.1 Overview ........................................................................................................................ 32 5.4.2 Features ......................................................................................................................... 32 5.5 General Purpose I/O (GPIO) ........................................................................................ 33 5.5.1 Overview and Features .................................................................................................. 33 5.5.2 Function Description ....................................................................................................... 33 5.6 Timer Controller (TMR) ................................................................................................. 35 5.6.1 Overview ........................................................................................................................ 35 5.6.2 Features ......................................................................................................................... 35 5.7 PWM Generator and Capture Timer (PWM) ................................................................ 36 5.7.1 Overview ........................................................................................................................ 36 5.7.2 Features ......................................................................................................................... 37 Jan. 09, 2015 Page 2 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.8 Watchdog Timer (WDT) ................................................................................................ 38 5.8.1 Features ......................................................................................................................... 39 5.9 Real Time Clock (RTC) ................................................................................................. 40 5.9.1 Overview ........................................................................................................................ 40 5.9.2 Features ......................................................................................................................... 40 5.10 UART Interface Controller (UART) ............................................................................... 41 5.10.1 Overview ...................................................................................................................... 41 5.10.2 Features ....................................................................................................................... 43 5.11 PS/2 Device Controller (PS2D) ..................................................................................... 44 5.11.1 Overview ...................................................................................................................... 44 5.11.2 Features ....................................................................................................................... 44 5.12 I2C Serial Interface Controller (Master/Slave) (I2C) ...................................................... 45 5.12.1 Overview ...................................................................................................................... 45 5.13 Serial Peripheral Interface (SPI) ................................................................................... 47 5.13.1 Overview ...................................................................................................................... 47 5.13.2 Features ....................................................................................................................... 47 5.14 USB Device Controller (USB) ....................................................................................... 48 5.14.1 Overview ...................................................................................................................... 48 5.14.2 Features ....................................................................................................................... 48 6 ELECTRICAL CHARACTERISTICS ......................................................................................... 49 6.1 Absolute Maximum Ratings .......................................................................................... 49 6.2 DC Electrical Characteristics ........................................................................................ 50 6.2.1 NuMicro NUC122 DC Electrical Characteristics ........................................................... 50 6.3 AC Electrical Characteristics ........................................................................................ 54 6.3.1 External 4~24 MHz High Speed Crystal AC Electrical Characteristics ........................... 54 6.3.2 External 4~24 MHz High Speed Crystal ......................................................................... 54 6.3.3 External 32.768 KHz Low Speed Crystal........................................................................ 55 6.3.4 Internal 22.1184 MHz High Speed Oscillator .................................................................. 55 6.3.5 Internal 10 KHz Low Speed Oscillator ............................................................................ 55 6.4 Analog Characteristics .................................................................................................. 56 6.4.1 Specification of LDO & Power management .................................................................. 56 6.4.2 Specification of Low Voltage Reset ................................................................................ 57 6.4.3 Specification of Brownout Detector ................................................................................ 57 6.4.4 Specification of Power-On Reset (5 V) ........................................................................... 57 6.4.5 Specification of USB PHY .............................................................................................. 58 6.5 SPI Dynamic Characteristics ........................................................................................ 59 6.5.1 Dynamic Characteristics of Data Input and Output Pin................................................... 59 7 PACKAGE DIMENSIONS ......................................................................................................... 61 7.1 64L LQFP (7x7x1.4mm footprint 2.0 mm) .................................................................... 61 7.2 48L LQFP (7x7x1.4mm footprint 2.0mm) ..................................................................... 62 7.3 33L QFN (5x5x0.8mm) ................................................................................................. 63 8 REVISION HISTORY ................................................................................................................ 64 Jan. 09, 2015 Page 3 of 66 Revision 1.11

 NuMicro NUC122 Datasheet List of Figures Figure 5-1 Functional Controller Diagram ...................................................................................... 19 Figure 5-2 NuMicro NUC122 Power Distribution Diagram ........................................................... 22 Figure 5-3 Clock Generator Global View Diagram......................................................................... 28 Figure 5-4 Clock Generator Block Diagram ................................................................................... 29 Figure 5-5 System Clock Block Diagram ....................................................................................... 30 Figure 5-6 SysTick Clock Control Block Diagram .......................................................................... 30 Figure 5-7 Push-Pull Output ........................................................................................................... 33 Figure 5-8 Open-Drain Output ....................................................................................................... 34 Figure 5-9 Quasi-bidirectional I/O Mode ........................................................................................ 34 Figure 5-10 Timing of Interrupt and Reset Signals ........................................................................ 39 Figure 5-11 I2C Bus Timing ............................................................................................................ 45 Figure 6-1 Typical Crystal Application Circuit ................................................................................ 54 Figure 6-2 SPI Master Mode Timing .............................................................................................. 59 Figure 6-3 SPI Slave Mode Timing ................................................................................................ 60 Jan. 09, 2015 Page 4 of 66 Revision 1.11

 NuMicro NUC122 Datasheet List of Tables Table 1-1 Connectivity Supported Table .......................................................................................... 6 Table 5-1 Exception Model ............................................................................................................ 25 Table 5-2 System Interrupt Map..................................................................................................... 26 Table 5-3 Vector Table Format ...................................................................................................... 27 Table 5-4 Watchdog Timer Time-out Interval Selection ................................................................ 38 Table 5-5 UART Baud Rate Equation ............................................................................................ 41 Table 5-6 UART Baud Rate Setting Table ..................................................................................... 42 Jan. 09, 2015 Page 5 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 1 GENERAL DESCRIPTION The NuMicro NUC122 series are 32-bit microcontrollers with Cortex®-M0 core runs up to 60 MHz, up to 32K/64K-byte embedded flash, 4K/8K-byte embedded SRAM, and 4K-byte loader ROM for the In System Program (ISP) function. It also integrates Timers, Watchdog Timer, RTC, UART, SPI, I2C, PWM Timer, GPIO, USB 2.0 Full Speed Device, Low Voltage Reset Controller and Brownout Detector. Product Line UART SPI I2C USB PS/2 NUC122 Y Y Y Y Y Table 1-1 Connectivity Supported Table Jan. 09, 2015 Page 6 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 2 FEATURES 2.1 NuMicro NUC122 Features  Core – ARM® Cortex®-M0 core runs up to 60 MHz – One 24-bit system timer – Support low power sleep mode – Single-cycle 32-bit hardware multiplier – NVIC for the 32 interrupt inputs, each with 4-levels of priority – Serial Wire Debug supports with 2 watchpoints/4 breakpoints  Wide operating voltage ranges from 2.5 V to 5.5 V  Flash Memory – 32K/64K bytes Flash for program code – 4KB Flash for ISP loader – Support In System Program (ISP) function to update Application code – 512 bytes page erase for Flash – 4KB Data Flash – Support 2 wire In Circuit Program (ICP) function to update code through SWD/ICE interface – Support fast parallel programming mode by external programmer  SRAM Memory – 4K/8K bytes embedded SRAM  Clock Control – Flexible selection from different clock sources – Built-in 22.1184 MHz high speed OSC for system operation  Trimmed to  1 % at +25 ℃ and V = 3.3 V DD  Trimmed to  5 % at -40 ℃ ~ +85 ℃ and V = 2.5 V ~ 5.5 V DD – Built-in 10 KHz low speed OSC for Watchdog Timer and Wake-up operation – Support one PLL, up to 60 MHz, for high performance system operation – External 4~24 MHz high speed crystal input for USB and precise timing operation – External 32.768 KHz low speed crystal input for RTC function and low power system operation  GPIO – Four I/O modes:  Quasi bi-direction  Push-Pull output  Open-Drain output  Input only with high impendence – TTL/Schmitt trigger input selectable – I/O pin can be configured as interrupt source with edge/level setting – High driver and high sink IO mode support  Timers – 4 sets of 32-bit timers with 24-bit counters and one 8-bit prescaler – Counter auto reload Jan. 09, 2015 Page 7 of 66 Revision 1.11

 NuMicro NUC122 Datasheet  Watchdog Timer – Multiple clock sources – 8 selectable time-out period from 1.6 ms ~ 26.0 sec (depends on clock source) – WDT can wake-up from power down or idle mode – Interrupt or reset selectable while Watchdog Timer 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) – 12-hour or 24-hour mode – Automatic leap year recognition – Support time tick interrupt – Support wake-up function  PWM/Capture – Built-in up to two 16-bit PWM generators provide four PWM outputs or two 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 four 16-bit digital Capture timers (shared with PWM timers) provide four rising/falling capture inputs – Support Capture interrupt  UART – Two UART controllers – UART ports with flow control (TXD, RXD, CTS and RTS) – UART ports with 14-byte FIFO for standard device – Support IrDA (SIR) function – Support RS-485 9-bit mode and direction control – Programmable baud-rate generator up to 1/16 system clock  SPI – Up to two sets of SPI device – Master up to 25 MHz, and Slave up to 12 MHz (chip is working @ 5 V) – 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 – 2 slave/device select lines when it is as the master, and 1 slave/device select line when it is as the slave – Byte suspend mode in 32-bit transmission Jan. 09, 2015 Page 8 of 66 Revision 1.11

 NuMicro NUC122 Datasheet  I2C – One set of I2C device – Master/Slave mode – Bidirectional data transfer between masters and slaves – Multi-master bus (no central master) – Arbitration between simultaneously transmitting masters without corruption of serial data on the bus – Serial clock synchronization allows devices with different bit rates to communicate via one serial bus – Serial clock synchronization can be used as a handshake mechanism to suspend and resume serial transfer – Programmable clocks allow versatile rate control – I2C-bus controller supports multiple address recognition (four slave address with mask option)  USB 2.0 Full-Speed Device – One set of USB 2.0 FS Device 12Mbps – On-chip USB Transceiver – Provide 1 interrupt source with 4 interrupt events – Support Control, Bulk In/Out, Interrupt and Isochronous transfers – Auto suspend function when no bus signaling for 3 ms – Provide 6 programmable endpoints – Include 512 bytes internal SRAM as USB buffer – Provide remote wake-up capability  Brownout Detector – With 4 levels: 4.5 V/3.8 V/2.7 V/2.2 V – Support Brownout Interrupt and Reset options  One built-in LDO  Low Voltage Reset  Operating Temperature: -40 ℃ ~ 85 ℃  Packages: – All Green package (RoHS) – LQFP 64-pin (7mmX7mm) – LQFP 48-pin – QFN 33-pin Jan. 09, 2015 Page 9 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 3 PARTS INFORMATION LIST AND PIN CONFIGURATION 3.1 NuMicro NUC122 Products Selection Guide ISP Connectivity Part number Flash ROM SRAM I/O Timer I2S Comp. PWM ADC RTC ISP Package (KB) (KB) (KB) UART SPI I2C USB LIN PS/2 ICP NUC122ZD2AN 64 KB 4KB 8 KB up to 18 4x32-bit 1 2 1 1 - - - - - - - v QFN33 NUC122ZC1AN 32 KB 4KB 4 KB up to 18 4x32-bit 1 2 1 1 - - - - - - - v QFN33 NUC122LD2AN 64 KB 4KB 8 KB up to 30 4x32-bit 2 2 1 1 - 1 - - 4 - v v LQFP48 NUC122LC1AN 32 KB 4KB 4 KB up to 30 4x32-bit 2 2 1 1 - 1 - - 4 - v v LQFP48 NUC122SD2AN 64 KB 4KB 8 KB up to 41 4x32-bit 2 2 1 1 - 1 - - 4 - v v LQFP64 NUC122SC1AN 32 KB 4KB 4 KB up to 41 4x32-bit 2 2 1 1 - 1 - - 4 - v v LQFP64 Jan. 09, 2015 Page 10 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 3.2 NuMicro NUC122 Pin Diagram 3.2.1 NuMicro NUC122 LQFP 64-pin M0 M1 M2 M3 S10 LK1 O10 SI10 AVDD ICE_CK ICE_DAT PA.12/PW PA.13/PW PA.14/PW VSS PA.15/PW PC.8/SPIS PC.9/SPIC VDD PC.10/MIS PC.11/MO PC.12 PC.13 VSS 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 PD.0 49 32 PB.9/SPISS11/TM1 PD.1 50 31 PB.10/SPISS01/TM2 PD.2 51 30 PC.0/SPISS00 PD.3 52 29 PC.1/SPICLK0 PD.4 53 28 PC.2/MISO00 PD.5 54 27 PC.3/MOSI00 INT1/PB.15 55 26 PC.4 NUC122 XT1_Out 56 25 PC.5 XT1_In 57 LQFP 64-pin 24 PB3/CTS0 /RESET 58 23 PB.2/RTS0 VSS 59 22 PB.1/TXD0 VDD 60 21 PB.0/RXD0 PS2DAT 61 20 D+ PS2CLK 62 19 D- PVSS 63 18 VDD33 TM0/PB.8 64 17 VBUS 0 1 2 3 4 5 6 1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 INT0/PB.14 X32O X32I 1SCL/PA.11 1SDA/PA.10 PD.8 PD.9 PD.10 PD.11 RXD1/PB.4 TXD1/PB.5 RTS1/PB.6 CTS1/PB.7 LDO VDD VSS C C 2 2 I I Figure 3-1 NuMicro NUC122 LQFP 64-pin Pin Diagram Jan. 09, 2015 Page 11 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 3.2.2 NuMicro NUC122 LQFP 48-pin 0 1 0 0 0 1 2 3 1 K 1 1 M M M M S L O SI W W W W S C S O K AT P P P P PI PI MI M _C _D 12/ 13/ 14/ 15/ 8/S 9/S 10/ 11/ 12 13 E E A. A. A. A. C. C. C. C. C. C. C C P P P P P P P P P P I I 6 5 4 3 2 1 0 9 8 7 6 5 3 3 3 3 3 3 3 2 2 2 2 2 AVDD 37 24 PB.9/SPISS11/TM1 PD.0 38 23 PB.10/SPISS01/TM2 PD.1 39 22 PC.0/SPISS00 PD.2 40 21 PC.1/SPICLK0 PD.3 41 20 PC.2/MISO00 NUC122 PD.4 42 19 PC.3/MOSI00 PD.5 43 LQFP 48-pin 18 PB.1/TXD0 XT1_Out 44 17 PB.0/RXD0 XT1_In 45 16 D+ /RESET 46 15 D- PS2DAT 47 14 VDD33 PS2CLK 48 13 VBUS 0 1 2 1 2 3 4 5 6 7 8 9 1 1 1 VSS 32O X32I A.11 A.10 PB.4 PB.5 PB.6 PB.7 LDO VDD VSS P X L/P A/P D1/ D1/ S1/ S1/ C D X X T T S S R T R C 1 1 C C 2 2 I I Figure 3-2 NuMicro NUC122 LQFP 48-pin Pin Diagram Jan. 09, 2015 Page 12 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 3.2.3 NuMicro NUC122 QFN 33-pin 0 1 0 0 1 K 1 1 S L O SI S C S O K AT PI PI MI M C D S S 0/ 1/ 2 3 / / _ _ 8 9 1 1 1 1 E E . . . . . . C C C C C C C C P P P P P P I I 4 3 2 1 0 9 8 7 2 2 2 2 2 1 1 1 AVDD 25 16 PC.0/SPISS00 SPISS01/PD.1 26 15 PC.1/SPICLK0 PD.2 27 NUC122 14 PC.2/MISO00 PD.3 28 13 PC.3/MOSI00 QFN 33-pin XT1_Out 29 12 D+ XT1_In 30 11 D- /RESET 31 10 VDD33 33 VSS PVSS 32 9 VBUS 1 2 3 4 5 6 7 8 4 1 0 4 5 O D S 1 1 1 B. B. D D S . . . B A A P P L V V P P P / / 1 1 / / / 0 L A D D T C D X X N S S R T I 1 1 / C C 1 1 2 2 S I I S I P S Figure 3-3 NuMicro NUC122 QFN 33-pin Pin Diagram Jan. 09, 2015 Page 13 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 3.3 NuMicro NUC122 Pin Description 3.3.1 NuMicro NUC122 Pin Description for LQFP64/LQFP48/QFN33 Pin No. Pin Name Pin Type Description LQFP LQFP QFN 64 48 33 PB.14 I/O General purpose input/output digital pin 1 1 /INT0 I /INT0: External interrupt1 input pin 2 2 X32O O 32.768 KHz low speed crystal output pin 3 3 X32I I 32.768 KHz low speed crystal input pin PA.11 I/O General purpose input/output digital pin 4 4 2 I2C1SCL I/O I2C1SCL: I2C1 clock pin PA.10 I/O General purpose input/output digital pin 5 5 3 I2C1SDA I/O I2C1SDA: I2C1 data input/output pin 6 PD.8 I/O General purpose input/output digital pin 7 PD.9 I/O General purpose input/output digital pin 8 PD.10 I/O General purpose input/output digital pin 9 PD.11 I/O General purpose input/output digital pin PB.4 I/O General purpose input/output digital pin 10 6 4 RXD1 I RXD1: Data receiver input pin for UART1 SPISS11 I/O SPISS11: SPI1 slave select pin (for QFN33 only) PB.5 I/O General purpose input/output digital pin 11 7 5 TXD1 O TXD1: Data transmitter output pin for UART1 PB.6 I/O General purpose input/output digital pin 12 8 RTS1 O RTS1: Request to Send output pin for UART1 PB.7 I/O General purpose input/output digital pin 13 9 CTS1 I CTS1: Clear to Send input pin for UART1 14 10 6 LDO P LDO output pin Power supply for I/O ports and LDO source for 15 11 7 VDD P internal PLL and digital function 16 12 8 VSS P Ground 17 13 9 VBUS P POWER SUPPLY: From USB Host or HUB. Internal Power Regulator Output 3.3 V Decoupling 18 14 10 VDD33 P Pin Jan. 09, 2015 Page 14 of 66 Revision 1.11

 NuMicro NUC122 Datasheet Pin No. Pin Name Pin Type Description LQFP LQFP QFN 64 48 33 19 15 11 D- USB USB Differential Signal D- 20 16 12 D+ USB USB Differential Signal D+ PB.0 I/O General purpose input/output digital pin 21 17 RXD0 I RXD0: Data Receiver input pin for UART0 PB.1 I/O General purpose input/output digital pin 22 18 TXD0 O TXD0: Data transmitter output pin for UART0 PB.2 I/O General purpose input/output digital pin 23 RTS0 O RTS0: Request to Send output pin for UART0 PB.3 I/O General purpose input/output digital pin 24 CTS0 I CTS0: Clear to Send input pin for UART0 25 PC.5 I/O General purpose input/output digital pin 26 PC.4 I/O General purpose input/output digital pin PC.3 I/O General purpose input/output digital pin 27 19 13 MOSI00 O MOSI00: SPI0 MOSI (Master Out, Slave In) pin PC.2 I/O General purpose input/output digital pin 28 20 14 MISO00 I MISO00: SPI0 MISO (Master In, Slave Out) pin PC.1 I/O General purpose input/output digital pin 29 21 15 SPICLK0 I/O SPICLK0: SPI0 serial clock pin PC.0 I/O General purpose input/output digital pin 30 22 16 SPISS00 I/O SPISS00: SPI0 slave select pin PB.10 I/O General purpose input/output digital pin 31 23 TM2 O TM2: Timer2 external counter input SPISS01 I/O SPISS01: SPI0 2nd slave select pin PB.9 I/O General purpose input/output digital pin 32 24 TM1 O TM1: Timer1 external counter input SPISS11 I/O SPISS11: SPI1 2nd slave select pin 33 VSS P Ground 34 25 17 PC.13 I/O General purpose input/output digital pin 35 26 18 PC.12 I/O General purpose input/output digital pin Jan. 09, 2015 Page 15 of 66 Revision 1.11

 NuMicro NUC122 Datasheet Pin No. Pin Name Pin Type Description LQFP LQFP QFN 64 48 33 PC.11 I/O General purpose input/output digital pin 36 27 19 MOSI10 O MOSI10: SPI1 MOSI (Master Out, Slave In) pin PC.10 I/O General purpose input/output digital pin 37 28 20 MISO10 I MISO10: SPI1 MISO (Master In, Slave Out) pin 38 VDD P Power supply for I/O ports PC.9 I/O General purpose input/output digital pin 39 29 21 SPICLK1 I/O SPICLK1: SPI1 serial clock pin PC.8 I/O General purpose input/output digital pin 40 30 22 SPISS10 I/O SPISS10: SPI1 slave select pin PA.15 I/O General purpose input/output digital pin 41 31 PWM3 O PWM3: PWM output pin 42 VSS P Ground PA.14 I/O General purpose input/output digital pin 43 32 PWM2 O PWM2: PWM output pin PA.13 I/O General purpose input/output digital pin 44 33 PWM1 O PWM1: PWM output pin PA.12 I/O General purpose input/output digital pin 45 34 PWM0 O PWM0: PWM output pin 46 35 23 ICE_DAT I/O Serial Wired Debugger Data pin 47 36 24 ICE_CK I Serial Wired Debugger Clock pin 48 37 25 AVDD AP Power supply for internal analog circuit 49 38 PD.0 I/O General purpose input/output digital pin PD.1 I/O General purpose input/output digital pin 50 39 26 SPISS01 I/O SPISS01: SPI0 2nd slave select pin (for QFN33 only) 51 40 27 PD.2 I/O General purpose input/output digital pin 52 41 28 PD.3 I/O General purpose input/output digital pin 53 42 PD.4 I/O General purpose input/output digital pin 54 43 PD.5 I/O General purpose input/output digital pin 55 PB.15 I/O General purpose input/output digital pin Jan. 09, 2015 Page 16 of 66 Revision 1.11

 NuMicro NUC122 Datasheet Pin No. Pin Name Pin Type Description LQFP LQFP QFN 64 48 33 /INT1 I /INT1: External interrupt 1 input pin 56 44 29 XT1_OUT O Crystal output pin 57 45 30 XT1_IN I Crystal input pin External reset input: Low active, set this pin low reset 58 46 31 /RESET I chip to initial state. With internal pull-up. 59 33 VSS P Ground 60 VDD P Power supply for I/O ports 61 47 PS2DAT I/O PS/2 data pin 62 48 PS2CLK I/O PS/2 clock pin 63 1 32 PVSS P PLL Ground PB.8 I/O General purpose input/output digital pin 64 TM0 O TM0: Timer0 external counter input Note: Pin Type I=Digital Input, O=Digital Output; AI=Analog Input; P=Power Pin; AP=Analog Power Jan. 09, 2015 Page 17 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 4 BLOCK DIAGRAM 4.1 NuMicro NUC122 Block Diagram FLASH Cortex-M0 64 KB 60 MHz 10 KHz P 32.768 KHz L L 22.1184 MHz ISP SRAM GPIO 4~24 MHz CLK_CTL 4 KB 8 KB A,B,C,D 2.5 V~ LDO 5.5 V PS/2 RTC WDT SPI 0/1 UART 0 -115K Timer 0/1 UART 1 -115K Timer 2/3 POR Brownout PWM 0~3 LVR USB-FS RAM I2C 1 USBPHY 512 B Figure 4-1 NuMicro NUC122 Block Diagram Jan. 09, 2015 Page 18 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5 FUNCTIONAL DESCRIPTION 5.1 ARM® Cortex®-M0 Core The Cortex®-M0 processor is a configurable, multistage, 32-bit RISC processor. It has an AMBA AHB- Lite interface and includes an NVIC component. It also has optional hardware debug functionality. The processor can execute Thumb code and is compatible with other Cortex®-M profile processor. Following figure shows the functional controllers of processor. Cortex-M0 components Cortex-M0 processor Debug Interrupts Nested Breakpoint Vectored Cortex-M0 and Interrupt Processor Watchpoint Controller Core Unit (NVIC) Wakeup Debug Interrupt Access Debugger Controller Bus Matrix Port interface (WIC) (DAP) AHB-Lite Serial Wire or interface JTAG debug port Figure 5-1 Functional Controller Diagram The implemented device provides:  A low gate count processor that features: – The ARM® v6-M Thumb® instruction set – Thumb-2 technology – ARM® v6-M compliant 24-bit SysTick timer – A 32-bit hardware multiplier – The system interface supports little-endian data accesses – The ability to have deterministic, fixed-latency, and interrupt handling – Load/store-multiples and multicycle-multiplies that can be abandoned and restarted to facilitate rapid interrupt handling – C Application Binary Interface compliant exception model. This is the ARM® v6-M, C Application Binary Interface (C-ABI) compliant exception model that enables the use of pure C functions as interrupt handlers – Low power sleep mode entry using Wait For Interrupt (WFI), Wait For Event (WFE) instructions, or the return from interrupt sleep-on-exit feature  NVIC that features: – 32 external interrupt inputs, each with four levels of priority – Dedicated Non-Maskable Interrupt (NMI) input. – Support for both level-sensitive and pulse-sensitive interrupt lines – Wake-Up Interrupt Controller (WIC), providing ultra-low power sleep mode support. Jan. 09, 2015 Page 19 of 66 Revision 1.11

 NuMicro NUC122 Datasheet  Debug support – Four hardware breakpoints. – Two watchpoints. – Program Counter Sampling Register (PCSR) for non-intrusive code profiling. – Single step and vector catch capabilities.  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). Jan. 09, 2015 Page 20 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.2 System Manager 5.2.1 Overview System management includes these following sections:  System Resets  System Memory Map  System management registers for Part Number ID, chip reset and on-chip controllers reset, multi-functional pin control  System Timer (SysTick)  Nested Vectored Interrupt Controller (NVIC)  System Control registers 5.2.2 System Reset The system reset can be issued by one of the below listed events. These reset event flags can be read from RSTSRC register.  The Power-On Reset  The low level on the /RESET pin  Watchdog Timer Time-Out Reset  Low Voltage Reset  Brownout Detector Reset  Cortex®-M0 Reset  System Reset Both System Reset and Power-On Reset can 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 doesn’t reset external Crystal circuit and ISPCON.BS bit, but Power-On Reset does. Jan. 09, 2015 Page 21 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.2.3 System Power Distribution In this chip, the power distribution is divided into three segments.  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 1.8 V power for digital operation and I/O pins.  USB transceiver power from VBUS offers the power for operating the USB transceiver. 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). The following diagram shows the power distribution of this chip. AVDD USB D+ AVSS Low Transceiver D- Voltage Power Reset Distribution VDD33 3.3V Brown Out 1uF Detector 5V to 3.3V VBUS LDO IRC FLASH Digital Logic 22.1184MHz & 10KHz Osc. LDO 1.8V 10uF RTC POR18 5V to 1.8V PLL 32K IO cell GPIO LDO Osc. POR50 S O 2I D S S 2 3 D S V 3 X V V P X Figure 5-2 NuMicro NUC122 Power Distribution Diagram Jan. 09, 2015 Page 22 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.2.4 System Timer (SysTick) The Cortex®-M0 includes an integrated system timer, SysTick. SysTick provides a simple, 24-bit clear-on-write, decrementing, wrap-on-zero counter with a flexible control mechanism. The counter can be used in several different ways, for example:  An RTOS tick timer which fires at a programmable rate (for example 100Hz) and invokes a SysTick routine.  A high speed alarm timer using Core clock.  A variable rate alarm or signal timer – the duration range dependent on the reference clock used and the dynamic range of the counter.  A simple counter. Software can use this to measure time to completion and time used.  An internal clock source control based on missing/meeting durations. The COUNTFLAG bit-field in the control and status register can be used to determine if an action completed within a set duration, as part of a dynamic clock management control loop. When enabled, the timer will count down from the value in the SysTick Current Value Register (SYST_CVR) to zero, and reload (wrap) to the value in the SysTick Reload Value Register (SYST_RVR) on the next clock cycle, then decrement on subsequent clocks. When the counter transitions to zero, the COUNTFLAG status bit is set. The COUNTFLAG bit clears on reads. The SYST_CVR value is UNKNOWN on reset. Software should write to the register to clear it to zero before enabling the feature. This ensures the timer will count from the SYST_RVR value rather than an arbitrary value when it is enabled. If the SYST_RVR is zero, the timer will be maintained with a current value of zero after it is reloaded with this value. This mechanism can be used to disable the feature independently from the timer enable bit. For more detailed information, please refer to the documents “ARM® Cortex®-M0 Technical Reference Manual” and “ARM® v6-M Architecture Reference Manual”. Jan. 09, 2015 Page 23 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.2.5 Nested Vectored Interrupt Controller (NVIC) Cortex®-M0 provides an interrupt controller as an integral part of the exception mode, named as “Nested Vectored Interrupt Controller (NVIC)”. It is closely coupled to the processor kernel and provides following features:  Nested and Vectored interrupt support  Automatic processor state saving and restoration  Dynamic priority changing  Reduced and deterministic interrupt latency 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 one’s 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”. Jan. 09, 2015 Page 24 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.2.5.1 Exception Model and System Interrupt Map The following table lists the exception model supported by NuMicro NUC122. Software can set four levels of priority on some of these exceptions as well as on all interrupts. The highest user- configurable 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 1 -3 NMI 2 -2 Hard Fault 3 -1 Reserved 4 ~ 10 Reserved SVCall 11 Configurable Reserved 12 ~ 13 Reserved PendSV 14 Configurable SysTick 15 Configurable Interrupt (IRQ0 ~ IRQ31) 16 ~ 47 Configurable Table 5-1 Exception Model Interrupt Number Vector Interrupt Number (Bit in Interrupt Name Source IP Interrupt description Registers) 0 ~ 15 - - - System exceptions 16 0 BOD_OUT Brownout Brownout low voltage detected interrupt 17 1 WDT_INT WDT Watchdog Timer interrupt 18 2 EINT0 GPIO External signal interrupt from PB.14 pin 19 3 EINT1 GPIO External signal interrupt from PB.15 pin 20 4 GPAB_INT GPIO External signal interrupt from PA[15:0]/PB[13:0] 21 5 GPCD_INT GPIO External interrupt from PC[15:0]/PD[15:0] 22 6 PWMA_INT PWM0~3 PWM0, PWM1, PWM2 and PWM3 interrupt 23 7 Reserved Reserved Reserved 24 8 TMR0_INT TMR0 Timer 0 interrupt 25 9 TMR1_INT TMR1 Timer 1 interrupt 26 10 TMR2_INT TMR2 Timer 2 interrupt 27 11 TMR3_INT TMR3 Timer 3 interrupt Jan. 09, 2015 Page 25 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 28 12 Reserved Reserved Reserved 29 13 UART1_INT UART1 UART1 interrupt 30 14 SPI0_INT SPI0 SPI0 interrupt 31 15 SPI1_INT SPI1 SPI1 interrupt 32 16 Reserved Reserved Reserved 33 17 Reserved Reserved Reserved 34 18 Reserved Reserved Reserved 35 19 I2C1_INT I2C1 I2C1 interrupt 36 20 Reserved Reserved Reserved 37 21 Reserved Reserved Reserved 38 22 Reserved Reserved Reserved 39 23 USB_INT USBD USB 2.0 FS Device interrupt 40 24 PS2_INT PS/2 PS/2 interrupt 41 25 Reserved Reserved Reserved 42 26 Reserved Reserved Reserved 43 27 Reserved Reserved Reserved 44 28 PWRWU_INT CLKC Power Down Wake-up interrupt 45 29 Reserved Reserved Reserved 46 30 Reserved Reserved Reserved 47 31 RTC_INT RTC Real time clock interrupt Table 5-2 System Interrupt Map Jan. 09, 2015 Page 26 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.2.5.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 ARM® v6-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. Vector Table Word Offset Description 0 SP_main – The Main stack pointer Vector Number Exception Entry Pointer using that Vector Number Table 5-3 Vector Table Format 5.2.5.3 Operation Description NVIC interrupts can be enabled and disabled by writing to their corresponding Interrupt Set-Enable or Interrupt Clear-Enable register bit-field. The registers use a write-1-to-enable and write-1-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. Jan. 09, 2015 Page 27 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 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 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 enters 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. 22.1184 22.1184 MHz MHz 111 CPUCLK CPU 10 KHz 011 4~12 MHz PLLFOUT 010 1/(HCLK_N+1) HCLK 32.768 KHz 32.768 001 KHz 4~24 MHz PCLK I2C 1 000 10 22.1184 MHz SPI 0-1 KHz CLKSEL0[2:0] 111 HCLK TMR 0 010 TMR 1 22.1184 MHz 1 32.768 KHz 001 TMR 2 4~24 MHz 0 PLLFOUT 4~24 MHz 000 TMR 3 PLLCON[19] CLKSEL1[22:20] 22.1184 MHz PS2 CLKSEL1[18:16] FMC 22.1184 MHz CLKSEL1[14:12] 1/2 111 CLKSEL1[10:8] HCLK CPUCLK 1/2 011 1 4~24 MHz SysTick 1/2 010 0 32.768 KHz 001 SYST_CSR[2] 4~24 MHz 000 22.1184 MHz 11 CLKSEL0[5:3] HCLK 10 PWM 2-3 PWM 0-1 32.768 KHz 01 4~24 MHz 00 32.768 KHz CLKSEL1[31:28] RTC 10 KHz BOD 11 HCLK WDT 1/2048 10 22.1184 MHz CLKSEL1[1:0] 11 PLLFOUT 01 4~24 MHz 00 1/(UART_N+1) UART 0-1 CLKSEL1[25:24] PLLFOUT 1/(USB_N+1) USB Figure 5-3 Clock Generator Global View Diagram Jan. 09, 2015 Page 28 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.3.2 Clock Generator The clock generator consists of 5 clock sources which are listed as below:  One external 32.768 KHz low speed crystal  One external 4~24 MHz high speed crystal  One programmable PLL FOUT (PLL source consists of external 4~24 MHz high speed crystal and internal 22.1184 MHz high speed oscillator)  One internal 22.1184 MHz high speed oscillator  One internal 10 KHz low speed oscillator XTL32K_EN (PWRCON[1]) X32I External 32.768 KHz 32.768 KHz Crystal X32O XTL12M_EN (PWRCON[0]) 4~24 MHz XT_IN External 4~24 MHz PLL_SRC (PLLCON[19]) Crystal XT_OUT 0 PLL FOUT PLL OSC22M_EN (PWRCON[2]) 1 Internal 22.1184 MHz Oscillator 22.1184 MHz OSC10K_EN(PWRCON[3]) Internal 10 KHz 10 KHz Oscillator Figure 5-4 Clock Generator Block Diagram Jan. 09, 2015 Page 29 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.3.3 System Clock & SysTick Clock The system clock has 5 clock sources which were generated from clock generator block. The clock source switch depends on the register HCLK_S (CLKSEL0[2:0]). The block diagram is listed below. HCLK_S (CLKSEL0[2:0]) 22.1184 MHz 111 10 KHz 011 CPUCLK CPU PLLFOUT 010 HCLK 1/(HCLK_N+1) AHB 32.768 KHz 001 HCLK_N (CLKDIV[3:0]) PCLK APB 4~24 MHz 000 CPU in Power Down Mode Figure 5-5 System Clock Block Diagram The clock source of SysTick in Cortex®-M0 core can use CPU clock or external clock (SYST_CSR[2]). If using external clock, the SysTick clock (STCLK) has 5 clock sources. The clock source switch depends on the setting of the register STCLK_S (CLKSEL0[5:3]. The block diagram is listed below. STCLK_S (CLKSEL0[5:3]) 22.1184 MHz 1/2 111 HCLK 1/2 011 4~24 MHz STCLK 1/2 010 32.768 KHz 001 4~24 MHz 000 Figure 5-6 SysTick Clock Control Block Diagram Jan. 09, 2015 Page 30 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.3.4 Peripherals Clock The peripherals clock had different clock source switch setting which depends on the different peripheral. 5.3.5 Power Down Mode Clock When chip enters into power down mode, system clocks, some clock sources, and some peripheral clocks will be disabled. Some clock sources and peripherals clock are still active in power down mode. These clocks which still keep activity that are listed as below:  Clock Generator  Internal 10 KHz low speed oscillator clock  External 32.768 KHz low speed crystal clock  Peripherals Clock (When WDT adopts 10 KHz low speed as clock source and RTC adopts 32.768 KHz low speed as clock source) Jan. 09, 2015 Page 31 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.4 FLASH MEMORY CONTROLLER (FMC) 5.4.1 Overview NuMicro NUC122 equips with 64/32K bytes on chip embedded Flash for application program memory (APROM) that can be updated through ISP procedure. In System Programming (ISP) function enables user to update program memory when chip is soldered on PCB. After chip power on, Cortex®- M0 CPU fetches code from APROM or LDROM decided by boot select (CBS) in Config0. By the way, NuMicro NUC122 also provides additional DATA Flash for user, to store some application dependent data before chip power off. For 64K/32K bytes APROM device, the data flash is fixed at 4K bytes. 5.4.2 Features  Run up to 60 MHz with zero wait state for continuous address read access  64/32KB application program memory (APROM)  4KB in system programming (ISP) loader program memory (LDROM)  Fixed 4KB data flash with 512 bytes page erase unit  In System Program (ISP) to update on chip Flash Jan. 09, 2015 Page 32 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.5 General Purpose I/O (GPIO) 5.5.1 Overview and Features NuMicro NUC122 has up to 41 General Purpose I/O pins can be shared with other function pins; it depends on the chip configuration. These 41 pins are arranged in 4 ports named with GPIOA, GPIOB, GPIOC and GPIOD. Each port equips maximum 16 pins. Each one of the 41 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, open-drain 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 110K~300K for V is from 5.5 V to 2.5 V. DD 5.5.2 Function Description 5.5.2.1 Input Mode Explanation Set GPIOx_PMD (PMDn[1:0]) to 00b the GPIOx port [n] pin is in Input mode and the I/O pin is in tri- state (high impedance) without output drive capability. The GPIOx_PIN value reflects the status of the corresponding port pins. 5.5.2.2 Output Mode Explanation Set GPIOx_PMD (PMDn[1:0]) to 01b the GPIOx port [n] pin is in Output mode and the I/O pin supports digital output function with source/sink current capability. The bit value in the corresponding bit [n] of GPIOx_DOUT is driven on the pin. VDD P Port Pin Port Latch N Data Input Data Figure 5-7 Push-Pull Output Jan. 09, 2015 Page 33 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.5.2.3 Open-Drain Mode Explanation Set GPIOx_PMD (PMDn[1:0]) to 10b the GPIOx port [n] pin is in Open-Drain mode and the digital output function of I/O pin supports only sink current capability, an additional pull-up resister is needed for driving high state. If the bit value in the corresponding bit [n] of GPIOx_DOUT is 0, the pin drive a “low” output on the pin. If the bit value in the corresponding bit [n] of GPIOx_DOUT is 1, the pin output drives high that is controlled by external pull high resistor. Port Pin Port Latch N Data Input Data Figure 5-8 Open-Drain Output 5.5.2.4 Quasi-bidirectional Mode Explanation Set GPIOx_PMD (PMDn[1:0]) to 11b the GPIOx port [n] pin is in Quasi-bidirectional mode and the I/O pin supports digital output and input function at the same time but the source current is only up to hundreds uA. Before the digital input function is performed the corresponding bit in GPIOx_DOUT must be set to 1. The quasi-bidirectional output is common on the 80C51 and most of its derivatives. If the bit value in the corresponding bit [n] of GPIOx_DOUT is 0, the pin drive a “low” output on the pin. If the bit value in the corresponding bit [n] of GPIOx_DOUT is 1, the pin will check the pin value. If pin value is high, no action takes. If pin state is low, then pin will drive strong high with 2 clock cycles on the pin and then disable the strong output drive and then the pin status is control by internal pull-up resistor. Note that the source current capability in quasi-bidirectional mode is only about 200 uA to 30 uA for VDD is form 5.0 V to 2.5 V. VDD 2 CPU P P Very P Clock Delay Strong Weak Weak Port Pin Port Latch N Data Input Data Figure 5-9 Quasi-bidirectional I/O Mode Jan. 09, 2015 Page 34 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.6 Timer Controller (TMR) 5.6.1 Overview The timer controller includes four 32-bit timers, TIMER0~TIMER3, which allows user to easily implement a timer control for applications. The timer can perform functions like frequency measurement, event counting, interval measurement, clock generation, delay timing, and so on. The timer can generates an interrupt signal upon timeout, or provide the current value during operation. 5.6.2 Features  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  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  24-bit timer value is readable through TDR (Timer Data Register)  Support event counting function to count the event from external pin Jan. 09, 2015 Page 35 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.7 PWM Generator and Capture Timer (PWM) 5.7.1 Overview NuMicro NUC122 only support 1 set of PWM group supports total 2 sets of PWM Generators which can be configured as 4 independent PWM outputs, PWM0~PWM3, or as 2 complementary PWM pairs, (PWM0, PWM1) and (PWM2, PWM3) with 2 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 down-counters for PWM period control, two 16-bit comparators for PWM duty control and one dead-zone 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), are controlled by PWM2, timer and Dead-zone generator 2. Refer to figures bellowed for the architecture of PWM Timers. 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 PWM-timer 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 PIIRx to get interrupt source and Read CRLRx/CFLRx(x=0~3) to get capture value and finally write 1 to clear PIIRx to zero. If interrupt latency will take time T0 to finish, the capture signal mustn’t 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/900 ns ≈ 1000 KHz Jan. 09, 2015 Page 36 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.7.2 Features 5.7.2.1 PWM function features:  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 bits resolution  PWM Interrupt request synchronized with PWM period  One-shot or Auto-reload mode PWM  Up to 1 PWM group to support 4 PWM channels or 2 PWM paired channels 5.7.2.2 Capture Function Features:  Timing control logic shared with PWM Generators  4 Capture input channels shared with 4 PWM output channels  Each channel supports one rising latch register (CRLR), one falling latch register (CFLR) and Capture interrupt flag (CAPIFx) Jan. 09, 2015 Page 37 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.8 Watchdog Timer (WDT) The purpose of Watchdog Timer is to perform a system reset when system runs into an unknown state. This prevents system from hanging for an infinite period of time. Besides, this Watchdog Timer supports another function to wake-up chip from power down mode. The Watchdog Timer includes an 18-bit free running counter with programmable time-out intervals. Table 5-4 show the Watchdog Timer time-out interval selection and Figure 5-10 shows the timing of Watchdog interrupt signal and reset signal. Setting WTE (WDTCR [7]) enables the watchdog timer and the WDT counter starts counting up. When the counter reaches the selected time-out interval, Watchdog timer interrupt flag WTIF will be set immediately to request a WDT interrupt if the watchdog timer interrupt enable bit WTIE is set, in the meanwhile, a specified delay time (1024 * T ) follows the time-out event. User must set WTR WDT (WDTCR [0]) (Watchdog timer reset) high to reset the 18-bit WDT counter to avoid chip from Watchdog timer reset before the delay time expires. WTR bit is cleared automatically by hardware after WDT counter is reset. There are eight time-out intervals with specific delay time which are selected by Watchdog timer interval select bits WTIS (WDTCR [10:8]). If the WDT counter has not been cleared after the specific delay time expires, the watchdog timer will set Watchdog Timer Reset Flag (WTRF) high and reset chip. This reset will last 63 WDT clocks (T ) then chip restarts executing RST program from reset vector (0x0000_0000). WTRF will not be cleared by Watchdog reset. User may poll WTRF by software to recognize the reset source. WDT also provides wake-up function. When chip is powered down and the Watchdog Timer Wake-up Function Enable bit (WDTR[4]) is set, if the WDT counter reaches the specific time interval defined by WTIS (WDTCR [10:8]) , the chip is woken- up from power down state. First example, if WTIS is set as 000, the specific time interval for chip to be woken-up from power down state is 24 * T . When power down command is set by software, then, WDT chip enters power down state. After 24 * T time is elapsed, chip is woken-up from power down WDT state. Second example, if WTIS (WDTCR [10:8]) is set as 111, the specific time interval for chip to be woken-up from power down state is 218 * T . If power down command is set by software, then, chip WDT enters power down state. After 218 * T time is elapsed, chip is woken-up from power down state. WDT Notice if WTRE (WDTCR [1]) is set to 1, after chip is woken-up, software should clear the Watchdog Timer counter by setting WTR(WDTCR [0]) to 1 as soon as possible. Otherwise, if the Watchdog Timer counter is not cleared by setting WTR (WDTCR [0]) to 1 before time starting from waking up to software clearing Watchdog Timer counter is over 1024 * T , the chip is reset by Watchdog Timer. WDT Time-out Interval WTR Time-out Interval Interrupt Period WTIS Selection (WDT_CLK=10 KHz) T T INT Min. T ~ Max. T TIS WTR WTR 000 24 * T 1024 * T 1.6 ms ~ 104 ms WDT WDT 001 26 * T 1024 * T 6.4 ms ~ 108.8 ms WDT WDT 010 28 * T 1024 * T 25.6 ms ~ 128 ms WDT WDT 011 210 * T 1024 * T 102.4 ms ~ 204.8 ms WDT WDT 100 212 * T 1024 * T 409.6 ms ~ 512 ms WDT WDT 101 214 * T 1024 * T 1.6384 s ~ 1.7408 s WDT WDT 110 216 * T 1024 * T 6.5536 s ~ 6.656 s WDT WDT 111 218 * T 1024 * T 26.2144 s ~ 26.3168 s WDT WDT Table 5-4 Watchdog Timer Time-out Interval Selection Jan. 09, 2015 Page 38 of 66 Revision 1.11

 NuMicro NUC122 Datasheet T WDT INT TTIS TINT 1024 * T WDT T RST RST Minimum TWTR 63 * TWDT Maximum T WTR  T : Watchdog Engine Clock Time Period WDT  T : Watchdog Timeout Interval Selection Period TIS  T : Watchdog Interrupt Period INT  T : Watchdog Reset Period RST  T : Watchdog Timeout Interval Period WTR Figure 5-10 Timing of Interrupt and Reset Signals 5.8.1 Features  18-bit free running counter to avoid chip from Watchdog Timer reset before the delay time expires.  Selectable time-out interval (2^4 ~ 2^18) and the time-out interval is 104 ms ~ 26.3168 s (if WDT_CLK = 10 KHz).  Reset period = (1 / 10 KHz) * 63, if WDT_CLK = 10 KHz. Jan. 09, 2015 Page 39 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.9 Real Time Clock (RTC) 5.9.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 be woken-up from power down mode if wake-up function is enabled (TWKE (TTR[3])=1). 5.9.2 Features  There is a time counter (second, minute, hour) and calendar counter (day, month, year) for user to check the time  Alarm register (second, minute, hour, day, month, year)  12-hour or 24-hour mode is selectable  Leap year compensation automatically  Day of week counter  Frequency compensate register (FCR)  All time and calendar message is expressed in BCD code  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 RTC Time Tick and Alarm Match interrupt  Support wake-up chip from power down mode Jan. 09, 2015 Page 40 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.10 UART Interface Controller (UART) NuMicro NUC122 provides two channels of Universal Asynchronous Receiver/Transmitters (UART0/1). Both of UART0 and UART1 perform Normal Speed UART, besides, UART0 and UART1 also support flow control function. 5.10.1 Overview The Universal Asynchronous Receiver/Transmitter (UART0/1) 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 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). Interrupt number 13 (vector number is 29) supports UART0/1 interrupt. Refer to Nested Vectored Interrupt Controller chapter for System Interrupt Map. The UART0/1 are equipped 14-byte transmitter FIFO (TX_FIFO) and 14-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). Below table lists the equations in the various conditions and the UART baud rate setting table. Mode DIV_X_EN DIV_X_ONE Divider X BRD Baud rate equation 0 0 0 B A UART_CLK / [16 * (A+2)] 1 1 0 B A UART_CLK / [(B+1) * (A+2)] , B must >= 8 2 1 1 Don’t care A UART_CLK / (A+2), A must >=3 Table 5-5 UART Baud Rate Equation System clock = 22.1184 MHz high speed Baud rate Mode0 Mode1 Mode2 921600 x A=0,B=11 A=22 A=1,B=15 460800 A=1 A=46 A=2,B=11 A=4,B=15 230400 A=4 A=94 A=6,B=11 A=10,B=15 115200 A=10 A=190 A=14,B=11 A=22,B=15 57600 A=22 A=382 A=30,B=11 Jan. 09, 2015 Page 41 of 66 Revision 1.11

 NuMicro NUC122 Datasheet A=62,B=8 38400 A=34 A=46,B=11 A=574 A=34,B=15 A=126,B=8 19200 A=70 A=94,B=11 A=1150 A=70,B=15 A=254,B=8 9600 A=142 A=190,B=11 A=2302 A=142,B=15 A=510,B=8 4800 A=286 A=382,B=11 A=4606 A=286,B=15 Table 5-6 UART Baud Rate Setting Table The UART0/1 controllers support auto-flow control function that uses two low-level signals, /CTS (clear-to-send) and /RTS (request-to-send), to control the flow of data transfer between the UART and external devices (ex: Modem). When auto-flow is enabled, the UART is not allowed to receive data until the UART asserts /RTS to external device. When the number of bytes in the RX FIFO equals the value of RTS_TRI_LEV (UA_FCR [19:16]), the /RTS is de-asserted. The UART sends data out when UART controller detects /CTS is asserted from external device. If a valid asserted /CTS is not detected the UART controller will not send data out. The UART controllers also provides Serial IrDA (SIR, Serial Infrared) function (User must set IrDA_EN (UA_FUN_SEL [1]) to enable IrDA function). The SIR specification defines a short-range infrared asynchronous serial transmission mode with one start bit, 8 data bits, and 1 stop bit. The maximum data rate is 115.2 Kbps (half duplex). The IrDA SIR block contains an IrDA SIR Protocol encoder/decoder. The IrDA SIR protocol is half-duplex only. So it cannot transmit and receive data at the same time. The IrDA SIR physical layer specifies a minimum 10 ms transfer delay between transmission and reception. This delay feature must be implemented by software. For NuMicro NUC122, another alternate function of UART controllers is RS-485 9-bit mode function, and direction control provided by RTS pin or can program GPIO (PB.2 for RTS0 and PB.6 for RTS1) to implement the function by software. The RS-485 mode is selected by setting the UA_FUN_SEL register to select RS-485 function. The RS-485 driver control is implemented using the RTS control signal from an asynchronous serial port to enable the RS-485 driver. In RS-485 mode, many characteristics of the RX and TX are same as UART. Jan. 09, 2015 Page 42 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.10.2 Features  Full duplex, asynchronous communications  Separate receive / transmit 14 bytes entry FIFO for data payloads  Support hardware auto flow control/flow control function (CTS, RTS) and programmable RTS flow control trigger level  Programmable receiver buffer trigger level  Support programmable baud-rate generator for each channel individually  Support CTS wake-up function  Support 8 bits receiver buffer time-out detection function  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  Fully programmable serial-interface characteristics  Programmable number of data bit, 5, 6, 7, 8 bits character  Programmable parity bit, even, odd, no parity or stick parity bit generation and detection  Programmable stop bit, 1, 1.5, or 2 stop bits generation  Support IrDA SIR function mode  Support for 3/16 bits duration for normal mode  Support RS-485 function mode.  Support RS-485 9-bit mode  Support hardware or software direct enable control provided by RTS pin Jan. 09, 2015 Page 43 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.11 PS/2 Device Controller (PS2D) 5.11.1 Overview PS/2 device controller provides basic timing control for PS/2 communication. All communication between the device and the host is managed through the CLK and DATA pins. Unlike PS/2 keyboard or mouse device controller, the received/transmit code needs to be translated as meaningful code by firmware. The device controller generates the CLK signal after receiving a request to send, but host has ultimate control over communication. DATA sent from the host to the device is read on the rising edge and DATA sent from device to the host is change after rising edge. A 16 bytes FIFO is used to reduce CPU intervention. S/W can select 1 to 16 bytes for a continuous transmission. 5.11.2 Features  Host communication inhibit and request to send detection  Reception frame error detection  Programmable 1 to 16 bytes transmit buffer to reduce CPU intervention  Double buffer for data reception  S/W override bus Jan. 09, 2015 Page 44 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.12 I2C Serial Interface Controller (Master/Slave) (I2C) 5.12.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 bits 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 following figure for more detail I2C BUS Timing. Repeated STOP START START STOP SDA tBUF tLOW tr tf SCL tHIGH tHD;STA tHD;DAT tSU;DAT tSU;STA tSU;STO Figure 5-11 I2C Bus Timing The device’s on-chip I2C logic provides the serial interface that meets the I2C bus standard mode specification. The I2C port handles byte transfers autonomously. To enable this port, the bit ENS1 in I2CON should be set to '1'. The I2C H/W interfaces to the I2C bus via two pins: SDA (PA10, serial data line) and SCL (PA11, serial clock line). Pull up resistor is needed for Pin PA10 and PA11 for I2C operation as these are open drain pins. When the I/O pins are used as I2C port, user must set the pins function to I2C in advance. 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:  Master/Slave mode  Bidirectional data transfer between masters and slaves  Multi-master bus (no central master)  Arbitration between simultaneously transmitting masters without corruption of serial data on the bus  Serial clock synchronization allows devices with different bit rates to communicate via one serial bus  Serial clock synchronization can be used as a handshake mechanism to suspend and resume serial transfer  Built-in a 14-bit time-out counter will request the I2C interrupt if the I2C bus hangs up and timer- out counter overflows. Jan. 09, 2015 Page 45 of 66 Revision 1.11

 NuMicro NUC122 Datasheet  External pull-up are needed for high output  Programmable clocks allow versatile rate control  Supports 7-bit addressing mode  I2C-bus controllers support multiple address recognition ( Four slave address with mask option) Jan. 09, 2015 Page 46 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.13 Serial Peripheral Interface (SPI) 5.13.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 NUC122 contains up to two 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 that can drive up to 2 external peripheral slave devices; it also can be configured as a slave device controlled by an off-chip master device. This controller also supports a variable serial clock for special application. 5.13.2 Features  Up to two sets of SPI controller for NuMicro NUC122  Support master or slave mode operation  Support 1-bit transfer mode  Configurable bit length up to 32 bits of a transfer word and configurable word numbers up to 2 of a transaction, so the maximum bit length is 64 bits for each data transfer  Provide burst mode operation, transmit/receive can be transferred up to two times word transaction in one transfer  Support MSB or LSB first transfer  2 device/slave select lines in master mode, but 1 device/slave select line in slave mode  Support byte reorder in data register  Support byte or word suspend mode  Variable output serial clock frequency in master mode  Support two programmable serial clock frequencies in master mode Jan. 09, 2015 Page 47 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 5.14 USB Device Controller (USB) 5.14.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 (BUFSEGx)”. There are six 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 support 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.14.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.  Compliant with USB 2.0 Full-Speed specification  Provide 1 interrupt vector with 4 different interrupt events (WAKEUP, FLDET, USB and BUS)  Support Control/Bulk/Interrupt/Isochronous transfer type  Support suspend function when no bus activity existing for 3 ms  Provide 6 endpoints for configurable Control/Bulk/Interrupt/Isochronous transfer types and maximum 512 bytes buffer size  Provide remote wake-up capability Jan. 09, 2015 Page 48 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 6 ELECTRICAL CHARACTERISTICS 6.1 Absolute Maximum Ratings SYMBOL PARAMETER MIN. MAX. UNIT DC Power Supply VDDVSS -0.3 +7.0 V Input Voltage VIN VSS-0.3 VDD+0.3 V Oscillator Frequency 1/t 4 24 MHz CLCL Operating Temperature TA -40 +85 C Storage Temperature TST -55 +150 C Maximum Current into VDD - 120 mA Maximum Current out of VSS 120 mA Maximum Current sunk by a I/O pin 35 mA Maximum Current sourced by a I/O pin 35 mA Maximum Current sunk by total I/O pins 100 mA Maximum Current sourced by total I/O pins 100 mA Note: Exposure to conditions beyond those listed under absolute maximum ratings may adversely affects the lift and reliability of the device. Jan. 09, 2015 Page 49 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 6.2 DC Electrical Characteristics 6.2.1 NuMicro NUC122 DC Electrical Characteristics (VDD-VSS=3.3 V, TA = 25 C, FOSC = 60 MHz unless otherwise specified.) SPECIFICATION PARAMETER SYM. TEST CONDITIONS MIN. TYP. MAX. UNIT Operation voltage V 2.5 5.5 V V =2.5 V ~ 5.5 V up to 60 MHz DD DD LDO Output Voltage VLDO 1.6 1.8 2.1 V VDD ≧ 2.5 V Analog Operating Voltage AV 0 V V DD DD V = 5.5 V @ 60 MHz, DD I 26 mA DD1 enable all IP and PLL, XTAL=12 MHz V = 5.5 V @ 60 MHz, DD IDD2 21 mA disable all IP and enable PLL, Operating Current XTAL=12 MHz Normal Run Mode V = 3.3 V @ 60 MHz, DD @ 60 MHz I 24 mA DD3 enable all IP and PLL, XTAL=12 MHz V = 3.3 V @ 60 MHz, DD IDD4 19 mA disable all IP and enable PLL, XTAL=12 MHz V = 5.5 V @ 12MHz, DD IDD5 6.5 mA enable all IP and disable PLL, XTAL=12 MHz V = 5.5 V @ 12 MHz, Operating Current DD I 5 mA DD6 disable all IP and PLL, XTAL=12 MHz Normal Run Mode @ 12 MHz V = 3.3 V @ 12 MHz, DD IDD7 4.5 mA enable all IP and disable PLL, XTAL=12 MHz V = 3.3 V @ 12 MHz, DD I 3.5 mA DD8 disable all IP and PLL, XTAL=12 MHz V = 5.5 V @ 4 MHz, DD Operating Current IDD9 3.5 mA enable all IP and disable PLL, Normal Run Mode XTAL=4 MHz @ 4 MHz I 3 mA V = 5.5 V @ 4 MHz, DD10 DD Jan. 09, 2015 Page 50 of 66 Revision 1.11

 NuMicro NUC122 Datasheet SPECIFICATION PARAMETER SYM. TEST CONDITIONS MIN. TYP. MAX. UNIT disable all IP and PLL, XTAL=4 MHz V = 3.3 V @ 4 MHz, DD IDD11 3 mA enable all IP and disable PLL, XTAL=4 MHz V = 3.3 V @ 4 MHz, DD I 2 mA DD12 disable all IP and PLL, XTAL=4 MHz V = 5.5 V @ 60 MHz, DD I 17 mA IDLE1 enable all IP and PLL, XTAL=12 MHz V = 5.5 V @ 60 MHz, DD IIDLE2 12 mA disable all IP and enable PLL, Operating Current XTAL=12 MHz Idle Mode V = 3.3 V @ 60 MHz, @ 60 MHz I 15 mA DD IDLE3 enable all IP and PLL, XTAL=12 MHz V = 3.3 V @ 60 MHz, DD IIDLE4 11 mA disable all IP and enable PLL, XTAL=12 MHz V = 5.5 V @ 12 MHz, DD IIDLE5 4.5 mA enable all IP and disable PLL, XTAL=12 MHz V = 5.5 V @ 12 MHz, DD Operating Current IIDLE6 3.5 mA disable all IP and PLL, XTAL=12 MHz Idle Mode V = 3.3 V @ 12 MHz, @ 12 MHz DD IIDLE7 3 mA enable all IP and disable PLL, XTAL=12 MHz V = 3.3 V @ 12 MHz, DD I 2 mA IDLE8 disable all IP and PLL, XTAL=12 MHz V = 5.5 V @ 4 MHz, DD IIDLE9 3 mA enable all IP and disable PLL, XTAL=4 MHz V = 5.5 V @ 4 MHz, DD I 2.5 mA Operating Current IDLE10 disable all IP and PLL, XTAL=4 MHz Idle Mode V = 3.3 V @ 4 MHz, DD @ 4 MHz IIDLE11 2 mA enable all IP and disable PLL, XTAL=4 MHz V = 3.3 V @ 4 MHz, DD I 1 mA IDLE12 disable all IP and PLL, XTAL=4 MHz Jan. 09, 2015 Page 51 of 66 Revision 1.11

 NuMicro NUC122 Datasheet SPECIFICATION PARAMETER SYM. TEST CONDITIONS MIN. TYP. MAX. UNIT V = 5.5 V, RTC OFF, No load I 13 A DD PWD1 @ Disable BOV function Standby Current IPWD2 12 A V@D DD =is a3b.3le V B, ORVTC fu OncFtFio,n N o load Power Down Mode V = 5.5 V, RTC run , No load IPWD3 15 A @D DDisable BOV function V = 3.3 V, RTC run , No load I 13 A DD PWD4 @ Disable BOV function Input Current PA, PB, PC, PD (Quasi-bidirectional mode) IIN1 -60 - +15 A VDD = 5.5 V, VIN = 0 V or VIN=VDD Input Current at /RESET[1] IIN2 -55 -45 -30 A VDD = 3.3 V, VIN = 0.45 V Input Leakage Current PA, PB, PC, PD ILK -2 - +2 A VDD = 5.5 V, 0<VIN<VDD Logic 1 to 0 Transition Current PA~PD (Quasi-bidirectional ITL [3] -650 - -200 A VDD = 5.5 V, VIN<2.0 V mode) Input Low Voltage PA, PB, PC, -0.3 - 0.8 VDD = 4.5 V V V PD (TTL input) IL1 -0.3 - 0.6 VDD = 2.5 V V 2.0 - DD VDD = 5.5 V Input High Voltage PA, PB, PC, +0.2 V V PD(TTL input) IH1 V 1.5 - DD VDD = 3.0 V +0.2 Input Low Voltage PA, PB, PC, V -0.5 0.4 V V PD (Schmitt input) IL2 DD Input High Voltage PA, PB, PC, V +0. PD(Schmitt input) VIH2 0.6 VDD DD5 V Hysteresis voltage of PA~PD (Schmitt input) VHY 0.2 VDD V Negative going threshold V -0.5 - 0.3 V V ILS DD (Schmitt input), /RESET Positive going threshold V +0. V 0.7 V - DD V (Schmitt input), /RESET IHS DD 5 ISR11 -300 -370 -450 A VDD = 4.5 V, VS = 2.4 V Source Current PA, PB, PC, PD (Quasi-bidirectional Mode) ISR12 -50 -70 -90 A VDD = 2.7 V, VS = 2.2 V ISR12 -40 -60 -80 A VDD = 2.5 V, VS = 2.0 V ISR21 -22 -28 -32 mA VDD = 4.5 V, VS = 2.4 V Source Current PA, PB, PC, PD (Push-pull Mode) ISR22 -4 -6 -8 mA VDD = 2.7 V, VS = 2.2 V ISR22 -3 -5 -7 mA VDD = 2.5 V, VS = 2.0 V Jan. 09, 2015 Page 52 of 66 Revision 1.11

 NuMicro NUC122 Datasheet SPECIFICATION PARAMETER SYM. TEST CONDITIONS MIN. TYP. MAX. UNIT ISK1 10 17 20 mA VDD = 4.5 V, VS = 0.45 V Sink Current PA, PB, PC, PD(Quasi-bidirectional and ISK1 7 10 13 mA VDD = 2.7 V, VS = 0.45 V Push-pull Mode) ISK1 6 9 12 mA VDD = 2.5 V, VS = 0.45 V Brownout voltage with V 2.1 2.2 2.3 V BOV_VL [1:0] =00b BO2.2 Brownout voltage with V 2.6 2.7 2.8 V BOV_VL [1:0] =01b BO2.7 Brownout voltage with V 3.6 3.75 3.9 V BOV_VL [1:0] =10b BO3.8 Brownout voltage with V 4.2 4.4 4.6 V BOV_VL [1:0] =11b BO4.5 Hysteresis range of BOD voltage VBH 30 - 150 mV VDD = 2.5 V ~ 5.5 V Note: 1. /RESET pin is a Schmitt trigger input. 2. Crystal Input is a CMOS input. 3. Pins of PA, PB, PC and PD can source a transition current when they are being externally driven from 1 to 0. In the condition of V =5.5 V, the transition current reaches its maximum value when V approximates to 2 V. DD IN Jan. 09, 2015 Page 53 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 6.3 AC Electrical Characteristics 6.3.1 External 4~24 MHz High Speed Crystal AC Electrical Characteristics tCLCL tCLCH tCLCX tCHCL tCHCX Note: Duty cycle is 50 %. SYMBOL PARAMETER CONDITION MIN. TYP. MAX. UNIT t Clock High Time 20 - - nS CHCX t Clock Low Time 20 - - nS CLCX t Clock Rise Time - - 10 nS CLCH t Clock Fall Time - - 10 nS CHCL 6.3.2 External 4~24 MHz High Speed Crystal PARAMETER CONDITION MIN. TYP. MAX. UNIT Input clock frequency External crystal 4 12 24 MHz Temperature - -40 - 85 ℃ 6.3.2.1 Typical Crystal Application Circuits CRYSTAL C1 C2 R 4 MHz ~ 24 MHz without without without C1 XTAL1 R XTAL2 C2 Figure 6-1 Typical Crystal Application Circuit Jan. 09, 2015 Page 54 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 6.3.3 External 32.768 KHz Low Speed Crystal PARAMETER CONDITION MIN. TYP. MAX. UNIT Input clock frequency External crystal - 32.768 - KHz Temperature - -40 - 85 ℃ 6.3.4 Internal 22.1184 MHz High Speed Oscillator PARAMETER CONDITION MIN. TYP. MAX. UNIT Center Frequency - - 22.1184 - MHz +25 ℃; V = 3.3 V -1 - +1 % DD Calibrated Internal Oscillator Frequency -40 ℃ ~ +85 ℃; -5 - +5 % V = 2.5 V ~ 5.5 V DD 6.3.5 Internal 10 KHz Low Speed Oscillator PARAMETER CONDITION MIN. TYP. MAX. UNIT Center Frequency - - 10 - KHz +25℃; V = 5 V -30 - +30 % DD Calibrated Internal Oscillator Frequency -40 ℃ ~ +85 ℃; -50 - +50 % V = 2.5 V ~ 5.5 V DD Jan. 09, 2015 Page 55 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 6.4 Analog Characteristics 6.4.1 Specification of LDO & Power management PARAMETER MIN. TYP. MAX. UNIT NOTE Input Voltage 2.5 5 5.5 V V input voltage DD Output Voltage 1.6 1.8 2.1 V V ≥ 2.5 V DD Temperature -40 25 85 ℃ Quiescent Current - 100 - A (PD=0) Quiescent Current - 5 - A (PD=1) Iload (PD=0) - - 100 mA Iload (PD=1) - - 100 A Cbp - 4.7 - F Resr=1 ohm Note: 1. It is recommended that a 10 F or higher capacitor and a 100 nF bypass capacitor are connected between VDD and the closest VSS pin of the device. 2. For ensuring power stability, a 4.7 F or higher capacitor must be connected between LDO pin and the closest VSS pin of the device. Jan. 09, 2015 Page 56 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 6.4.2 Specification of Low Voltage Reset PARAMETER CONDITION MIN. TYP. MAX. UNIT Quiescent current V =5.5 V - - 5 A DD Temperature - -40 25 85 ℃ Temperature=25 ℃ 1.7 2.0 2.3 V Threshold voltage Temperature=-40 ℃ - - V Temperature=85 ℃ - - V Hysteresis - 0 0 0 V 6.4.3 Specification of Brownout Detector PARAMETER CONDITION MIN. TYP. MAX. UNIT Quiescent current AV =5.5 V - - 140 μA DD Temperature - -40 25 85 ℃ BOV_VL[1:0]=11 4.2 4.4 4.6 V BOV_VL [1:0]=10 3.6 3.75 3.9 V Brownout voltage BOV_VL [1:0]=01 2.6 2.7 2.8 V BOV_VL [1:0]=00 2.1 2.2 2.3 V Hysteresis - 30 - 150 mV 6.4.4 Specification of Power-On Reset (5 V) PARAMETER CONDITION MIN. TYP. MAX. UNIT Temperature - -40 25 85 ℃ Reset voltage V+ - 2 - V Quiescent current Vin>reset voltage - 1 - nA Jan. 09, 2015 Page 57 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 6.4.5 Specification of USB PHY 6.4.5.1 USB DC Electrical Characteristics SYMBOL PARAMETER CONDITIONS MIN. TYP. MAX. UNIT V Input high (driven) 2.0 V IH V Input low 0.8 V IL V Differential input sensitivity |PADP-PADM| 0.2 V DI Differential V Includes V range 0.8 2.5 V CM DI common-mode range V Single-ended receiver threshold 0.8 2.0 V SE Receiver hysteresis 200 mV V Output low (driven) 0 0.3 V OL V Output high (driven) 2.8 3.6 V OH V Output signal cross voltage 1.3 2.0 V CRS R Pull-up resistor 1.425 1.575 kΩ PU R Pull-down resistor 14.25 15.75 kΩ PD Termination Voltage for upstream V 3.0 3.6 V TRM port pull up (RPU) Z Driver output resistance Steady state drive* 10 Ω DRV C Transceiver capacitance Pin to GND 20 pF IN *Driver output resistance doesn’t include series resistor resistance. 6.4.5.2 USB Full-Speed Driver Electrical Characteristics SYMBOL PARAMETER CONDITIONS MIN. TYP. MAX. UNIT T Rise Time C =50p 4 20 ns FR L T Fall Time C =50p 4 20 ns FF L T Rise and fall time matching T =T /T 90 111.11 % FRFF FRFF FR FF 6.4.5.3 USB Power Dissipation SYMBOL PARAMETER CONDITIONS MIN. TYP. MAX. UNIT Standby 50 A I VDDREG V and V Supply Current (Full (SDtDeDady StatDeD) REG Input mode A Speed) Output mode A Jan. 09, 2015 Page 58 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 6.5 SPI Dynamic Characteristics 6.5.1 Dynamic Characteristics of Data Input and Output Pin SYMBOL PARAMETER MIN. TYP. MAX. UNIT SPI Master Mode (VDD = 4.5 V ~ 5.5 V, 30 pF loading Capacitor) t Data setup time 16 10 - ns DS t Data hold time 0 - - ns DH t Data output valid time - 5 8 ns V SPI Master Mode (VDD = 3.0 V ~ 3.6 V, 30 pF loading Capacitor) t Data setup time 20 13 - ns DS t Data hold time 0 - - ns DH t Data output valid time - 7 14 ns V SPI Slave Mode (VDD = 4.5 V ~ 5.5 V, 30 pF loading Capacitor) t Data setup time 0 - - ns DS t Data hold time 2*PCLK+4 - - ns DH t Data output valid time - 2*PCLK+11 2*PCLK+20 ns V SPI Slave Mode (VDD = 3.0 V ~ 3.6 V, 30 pF loading Capacitor) t Data setup time 0 - - ns DS t Data hold time 2*PCLK+8 - - ns DH t Data output valid time - 2*PCLK+20 2*PCLK+32 ns V CLKP=0 SPICLK CLKP=1 t V MOSI Data Valid Data Valid CLKP=0, TX_NEG=1, RX_NEG=0 tDS tDH or CLKP=1, TX_NEG=0, RX_NEG=1 MISO Data Valid Data Valid t V MOSI Data Valid Data Valid CLKP=0, TX_NEG=0, RX_NEG=1 t t or DS DH CLKP=1, TX_NEG=1, RX_NEG=0 MISO Data Valid Data Valid Figure 6-2 SPI Master Mode Timing Jan. 09, 2015 Page 59 of 66 Revision 1.11

 NuMicro NUC122 Datasheet CLKP=0 SPICLK CLKP=1 t t DS DH MOSI Data Valid Data Valid CLKP=0, TX_NEG=1, RX_NEG=0 tv or CLKP=1, TX_NEG=0, RX_NEG=1 MISO Data Valid Data Valid t t DS DH MOSI Data Valid Data Valid CLKP=0, TX_NEG=0, RX_NEG=1 tv or CLKP=1, TX_NEG=1, RX_NEG=0 MISO Data Valid Data Valid Figure 6-3 SPI Slave Mode Timing Jan. 09, 2015 Page 60 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 7 PACKAGE DIMENSIONS 7.1 64L LQFP (7x7x1.4mm footprint 2.0 mm) Jan. 09, 2015 Page 61 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 7.2 48L LQFP (7x7x1.4mm footprint 2.0mm) Jan. 09, 2015 Page 62 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 7.3 33L QFN (5x5x0.8mm) Jan. 09, 2015 Page 63 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 8 REVISION HISTORY PAGE/ VERSION DATE DESCRIPTION CHAP. V1.00 Nov. 15, 2010 - Preliminary version initial issued V1.01 Dec. 7, 2010 Chap. 3 Corrected the Selection Guide Table for QFN33. Chap. 5 1. Corrected the Watchdog Timer Clock Source Selection V1.02 Jan. 13, 2011 Chap. 7 2. Corrected the Electrical Characteristics. 1. Added the LQFP 64-pin part number for 7x7x1.4mm package. (NUC122SD2AN, NUC122SC1AN) Chap. 3 2. Corrected the LQFP 64-pin Pin Diagram. V1.03 March 14, 2011 Chap. 7 3. Updated DC and AC Electrical Characteristics and added the Chap. 8 SPI Dynamic Characteristics. 4. Updated LQFN 48-pin package dimensions. Chap. 2 Chap. 3 1. Removed the LQFP 64-pin part number for 10x10x1.4mm package. V1.04 March 31, 2011 Chap. 4 2. Replaced “12 MHz” with “4~24 MHz” in some contents and block Chap. 5 diagrams. Chap. 8 1. Updated the table of specification of LDO and Power Management. 2. Removed the LIN function from UART controller. Chap. 1 3. Corrected the “PWM_CRLx/PWM_CFLx(x=0~3)” to Chap. 2 “CRLRx/CFLRx(x=0~3)” in the Overview of PWM Generator and V1.05 Apr.29 , 2011 Chap. 3 Capture Timer chapter. Chap. 5 4. Corrected the “1xx” to “111” in System Clock and SysTick Clock Control Block Diagram. Chap. 7 5. Added the Clock Generator Global View Diagram. 6. Corrected the “RX0/1” and “TX0/1” to “RXD0/1” and “TXD0/1” in Pin Configuration and Pin Description. Chap. 3 1. Corrected the Pin Description of pins 17 and 18 for LQFP 48-pin. V1.06 May 30, 2011 All 2. Corrected the typo of Year on the Footer. 1. Corrected the trimmed condition for the internal 22.1184 MHz Chap. 2 high speed oscillator in the “Clock Control” item of Feature list. V1.07 June 8, 2011 Chap. 7 2. Corrected the specification of the “Internal 22.1184 MHz High Speed Oscillator”. 1. Added the condition and corrected the speed of SPI in V1.08 June 21, 2011 Chap. 2 Master/Slave mode in the “SPI” item of Feature list. 1. Added the PF.2 and PF.3 function on PS2DAT and PS2CLK in Chap. 3 V1.09 May 16, 2014 Pin Diagram and Pin Description. Chap. 8 2. Corrected QFN33 package dimension. 1. Corrected the 5.9.2 Features of SPI. V1.10 Dec. 22, 2014 Chap. 5 2. Rearranged the chapter 5 session sequence. Jan. 09, 2015 Page 64 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 1. Corrected the UART FIFO to 14-byte. Chap. 2 V1.11 Jan. 09, 2015 2. Removed the GPIO PF.2 and PF.3 from Pin Diagram and Pin Chap. 5 Description. Jan. 09, 2015 Page 65 of 66 Revision 1.11

 NuMicro NUC122 Datasheet 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 customer’s risk, and in the event that third parties lay claims to Nuvoton as a result of customer’s Insecure Usage, customer shall indemnify the damages and liabilities thus incurred by Nuvoton. Jan. 09, 2015 Page 66 of 66 Revision 1.11