0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
M2351ZIAAE

M2351ZIAAE

  • 厂商:

    NUVOTON(新唐)

  • 封装:

    WFQFN32

  • 描述:

    IC MCU 32BIT 512KB FLASH 33QFN

  • 数据手册
  • 价格&库存
M2351ZIAAE 数据手册
NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller NuMicro® Family M2351 Series Datasheet (M2351/M2351SF) ® NUMICRO M2351 SERIES DATASHEET The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton. Nuvoton is providing this document only for reference purposes of Micro 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 Oct.09 2019 Page 1 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller TABLE OF CONTENTS 1 GENERAL DESCRIPTION ............................................................................ 11 2 FEATURE DESCRIPTION ............................................................................. 13 3 PARTS INFORMATION ................................................................................. 24 3.1 Summary....................................................................................................................... 24 3.2 Package Type .............................................................................................................. 24 3.3 NuMicro® M2351 Series Selection Guide ................................................................ 25 3.4 NuMicro® M2351 Naming Rule ................................................................................. 26 4 PIN CONFIGURATION .................................................................................. 27 4.1 NuMicro® M2351 Series QFN33 Pin Diagram ........................................................ 27 4.2 NuMicro® M2351 Series WLCSP49 Pin Diagram .................................................. 28 4.3 NuMicro® M2351 Series LQFP64 Pin Diagram ...................................................... 29 4.4 NuMicro® M2351 Series LQFP64 Pin Diagram ...................................................... 30 4.5 NuMicro® M2351 Series LQFP128 Pin Diagram .................................................... 31 4.6 M2351 Performance Series Pin Description ........................................................... 32 4.7 M2351 Multi-function Summary Table Sorted by GPIO ......................................... 82 5 BLOCK DIAGRAM ....................................................................................... 108 5.1 NuMicro® M2351 Series Block Diagram ................................................................ 108 ® NUMICRO M2351 SERIES DATASHEET 5.2 NuMicro® M2351 Series TrustZone® Architecture................................................. 109 6 FUNCTIONAL DESCRIPTION ..................................................................... 110 6.1 Arm® Cortex®-M23 Core ........................................................................................... 110 6.2 Arm® TrustZone®........................................................................................................ 112 6.2.1 Address Space Partition .............................................................................................. 113 6.2.2 Security Attribute Configuration .................................................................................. 115 6.2.3 System Address Map and Access Scheme .............................................................. 116 6.3 System Manager ....................................................................................................... 119 6.3.1 Overview ........................................................................................................................ 119 6.3.2 Reset .............................................................................................................................. 119 6.3.3 Power Modes and Wake-up Sources ........................................................................ 125 6.3.4 System Power Distribution .......................................................................................... 129 6.3.5 Bus Matrix ...................................................................................................................... 131 6.3.6 System Memory Map ................................................................................................... 131 6.3.7 Implementation Defined Attribution Unit (IDAU) ...................................................... 135 6.3.8 SRAM Memory Orginization ....................................................................................... 137 6.3.9 Auto Trim ....................................................................................................................... 139 6.3.10 System Timer (SysTick) ............................................................................................... 140 Oct.09 2019 Page 2 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.3.11 Nested Vectored Interrupt Controller (NVIC) ............................................................ 140 6.4 Clock Controller ......................................................................................................... 141 6.4.1 Overview ........................................................................................................................ 141 6.4.2 Clock Generator............................................................................................................ 144 6.4.3 System Clock and SysTick Clock............................................................................... 146 6.4.4 Peripherals Clock ......................................................................................................... 147 6.4.5 Power-down Mode Clock ............................................................................................ 148 6.4.6 Clock Output ................................................................................................................. 148 6.5 Security Configuration Unit (SCU) .......................................................................... 149 6.5.1 Overview ........................................................................................................................ 149 6.5.2 Features ......................................................................................................................... 149 6.6 True Random Number Generator (TRNG) ............................................................ 150 6.6.1 Overview ........................................................................................................................ 150 6.6.2 Features ......................................................................................................................... 150 6.7 Flash Memeory Controller (FMC) ........................................................................... 151 6.7.1 Overview ........................................................................................................................ 151 6.7.2 Features ......................................................................................................................... 151 6.8 General Purpose I/O (GPIO) ................................................................................... 152 6.8.1 Overview ........................................................................................................................ 152 6.8.2 Features ......................................................................................................................... 152 6.9 PDMA Controller (PDMA) ......................................................................................... 153 6.9.2 Features ......................................................................................................................... 153 6.10 Timer Controller (TMR) ....................................................................................... 154 6.10.2 Features ......................................................................................................................... 154 6.11 Watchdog Timer (WDT) ...................................................................................... 156 6.11.1 Overview ........................................................................................................................ 156 6.11.2 Features ......................................................................................................................... 156 6.12 Window Watchdog Timer (WWDT) ................................................................... 157 6.12.1 Overview ........................................................................................................................ 157 6.12.2 Features ......................................................................................................................... 157 6.13 Real Time Clock (RTC) ....................................................................................... 158 6.13.1 Overview ........................................................................................................................ 158 6.13.2 Features ......................................................................................................................... 158 6.14 EPWM Generator and Capture Timer (EPWM) .............................................. 159 6.14.1 Overview ........................................................................................................................ 159 6.14.2 Features ......................................................................................................................... 159 6.15 Oct.09 2019 Basic PWM Generator and Capture Timer (BPWM) ...................................... 161 Page 3 of 246 Rev 1.02 ® 6.10.1 Overview ........................................................................................................................ 154 NUMICRO M2351 SERIES DATASHEET 6.9.1 Overview ........................................................................................................................ 153 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.15.1 Overview ........................................................................................................................ 161 6.15.2 Features ......................................................................................................................... 161 6.16 Quadrature Encoder Interface (QEI) ................................................................ 162 6.16.1 Overview ........................................................................................................................ 162 6.16.2 Features ......................................................................................................................... 162 6.17 Enhanced Input Capture Timer (ECAP) ........................................................... 163 6.17.1 Overview ........................................................................................................................ 163 6.17.2 Features ......................................................................................................................... 163 6.18 UART Interface Controller (UART) ................................................................... 164 6.18.1 Overview ........................................................................................................................ 164 6.18.2 Features ......................................................................................................................... 164 6.19 Smart Card Host Interface (SC) ........................................................................ 166 6.19.1 Overview ........................................................................................................................ 166 6.19.2 Features ......................................................................................................................... 166 6.20 I2S Controller (I2S) ............................................................................................... 167 6.20.1 Overview ........................................................................................................................ 167 6.20.2 Features ......................................................................................................................... 167 6.21 Serial Peripheral Interface (SPI) ....................................................................... 168 6.21.1 Overview ........................................................................................................................ 168 6.21.2 Features ......................................................................................................................... 168 6.22 Quad Serial Peripheral Interface (QSPI).......................................................... 169 6.22.2 Features ......................................................................................................................... 169 6.23 I2C Serial Interface Controller (I2C) ................................................................... 170 6.23.1 Overview ........................................................................................................................ 170 ® NUMICRO M2351 SERIES DATASHEET 6.22.1 Overview ........................................................................................................................ 169 6.23.2 Features ......................................................................................................................... 170 6.24 USCI - Universal Serial Control Interface Controller (USCI)......................... 171 6.24.1 Overview ........................................................................................................................ 171 6.24.2 Features ......................................................................................................................... 171 6.25 USCI – UART Mode ............................................................................................ 172 6.25.1 Overview ........................................................................................................................ 172 6.25.2 Features ......................................................................................................................... 172 6.26 USCI - SPI Mode ................................................................................................. 173 6.26.1 Overview ........................................................................................................................ 173 6.26.2 Features ......................................................................................................................... 173 6.27 USCI - I2C Mode .................................................................................................. 175 6.27.1 Overview ........................................................................................................................ 175 6.27.2 Features ......................................................................................................................... 175 6.28 Oct.09 2019 Controller Area Network (CAN) ......................................................................... 176 Page 4 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.28.1 Overview ........................................................................................................................ 176 6.28.2 Features ......................................................................................................................... 176 6.29 Secure Digital Host Controller (SDH) ............................................................... 177 6.29.1 Overview ........................................................................................................................ 177 6.29.2 Features ......................................................................................................................... 177 6.30 External Bus Interface (EBI) .............................................................................. 178 6.30.1 Overview ........................................................................................................................ 178 6.30.2 Features ......................................................................................................................... 178 6.31 USB 1.1 Device Controller (USBD) .................................................................. 179 6.31.1 Overview ........................................................................................................................ 179 6.31.2 Features ......................................................................................................................... 179 6.32 USB 1.1 Host Controller (USBH) ...................................................................... 180 6.32.1 Overview ........................................................................................................................ 180 6.32.2 Features ......................................................................................................................... 180 6.33 USB On-The-Go (OTG) ...................................................................................... 181 6.33.1 Overview ........................................................................................................................ 181 6.33.2 Features ......................................................................................................................... 181 6.34 CRC Controller (CRC) ........................................................................................ 182 6.34.1 Overview ........................................................................................................................ 182 6.34.2 Features ......................................................................................................................... 182 6.35 Cryptographic Accelerator (CRYPTO) .............................................................. 183 6.35.2 Features ......................................................................................................................... 183 6.36 Enhanced 12-bit Analog-to-Digital Converter (EADC) ................................... 185 6.36.2 Features ......................................................................................................................... 185 6.37 Digital to Analog Converter (DAC) .................................................................... 187 6.37.1 Overview ........................................................................................................................ 187 6.37.2 Features ......................................................................................................................... 187 6.38 Analog Comparator Controller (ACMP)............................................................ 188 6.38.1 Overview ........................................................................................................................ 188 6.38.2 Features ......................................................................................................................... 188 7 APPLICATION CIRCUIT .............................................................................. 189 7.1 Power Supply Scheme with External VREF............................................................. 189 7.2 Power Supply Scheme with Internal VREF .............................................................. 190 7.3 Peripheral Application Scheme ............................................................................... 191 8 ELECTRICAL CHARACTERISTICS............................................................ 192 8.1 Absolute Maximum Ratings ..................................................................................... 192 Oct.09 2019 Page 5 of 246 Rev 1.02 ® 6.36.1 Overview ........................................................................................................................ 185 NUMICRO M2351 SERIES DATASHEET 6.35.1 Overview ........................................................................................................................ 183 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.1.1 Voltage Characteristics ................................................................................................ 192 8.1.2 Current Characteristics ................................................................................................ 192 8.1.3 Thermal Characteristics............................................................................................... 193 8.1.4 EMC Characteristics ..................................................................................................... 193 8.2 General Operating Conditions ................................................................................. 195 8.3 DC Electrical Characteristics ................................................................................... 196 8.3.1 Typical Current Consumption ..................................................................................... 196 8.3.2 On-chip Peripheral Current Consumption................................................................. 207 8.3.3 Wakeup Time ................................................................................................................ 209 8.3.4 I/O DC Characteristics ................................................................................................. 210 8.3.5 Winbond Secure Flash W77F32W Electrical Characteristics ................................ 211 8.4 AC Electrical Characteristics ................................................................................... 212 8.4.1 External 4~24 MHz High Speed Crystal (HXT) Characteristics ............................ 212 8.4.2 External 4~24 MHz High Speed Crystal (OSC) Input Clock .................................. 213 8.4.3 External 32.768 kHz Low Speed Crystal (LXT) Characteristics ............................ 215 8.4.4 External 32.768 kHz Low Speed Crystal (OSC) Input Clock ................................. 215 8.4.5 12 MHz Internal High Speed RC Oscillator (HIRC) ................................................. 216 8.4.6 48 MHz Internal High Speed RC Oscillator (HIRC48) ............................................ 216 8.4.7 10 kHz Internal Low Speed RC Oscillator (LIRC) ................................................... 217 8.4.8 PLL Characteristics ...................................................................................................... 217 8.4.9 I/O AC Characteristics ................................................................................................. 218 8.5 Analog Electrical Characteristics ............................................................................ 219 8.5.2 DC-DC ............................................................................................................................ 219 8.5.3 Low-Voltage Reset ....................................................................................................... 220 8.5.4 Internal Voltage Reference ......................................................................................... 222 ® NUMICRO M2351 SERIES DATASHEET 8.5.1 LDO ................................................................................................................................ 219 8.5.5 12-bit ADC ..................................................................................................................... 223 8.5.6 Temperature Sensor .................................................................................................... 226 8.5.7 Digital to Analog Converter (DAC) ............................................................................. 226 8.5.8 Analog Comparator Controller (ACMP)..................................................................... 228 8.6 Flash DC Electrical Characteristics ........................................................................ 229 8.7 I2C Dynamic Characteristics .................................................................................... 230 8.8 SPI Dynamic Characteristics ................................................................................... 231 8.9 I2S Dynamic Characteristics .................................................................................... 233 8.10 USCI - I2C Dynamic Characteristics ................................................................. 235 8.11 USCI - SPI Dynamic Characteristics ................................................................ 236 8.12 USB Characteristics ............................................................................................ 238 8.12.1 USB Full-Speed PHY Characteristics ....................................................................... 238 8.13 Oct.09 2019 SDIO Characteristics........................................................................................... 239 Page 6 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.13.1 Default Mode Timing .................................................................................................... 239 8.13.2 SDIO Dynamic Characteristics ................................................................................... 240 9 PACKAGE DIMENSIONS ............................................................................ 241 9.1 QFN 33 (5x5x0.8 mm Pitch 0.5 mm) ...................................................................... 241 9.2 LQFP 64 (7x7x1.4 mm Footprint 2.0 mm) ............................................................. 242 9.3 LQFP 128 (14x14x1.4 mm Footprint 2.0 mm) ...................................................... 243 10 ABBREVIATIONS ........................................................................................ 244 11 REVISION HISTORY ................................................................................... 246 ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 7 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller LIST OF FIGURES ® Figure 4.1-1 NuMicro M2351 Series QFN 33-pin Diagram .......................................................... 27 ® Figure 4.2-1 NuMicro M2351 Series WLCSP 49-pin Diagram ..................................................... 28 ® Figure 4.3-1 NuMicro M2351 Series LQFP 64-pin Diagram ........................................................ 29 ® Figure 4.4-1 NuMicro M2351SF Series LQFP 64-pin Diagram ................................................... 30 ® Figure 4.5-1 NuMicro M2351 Series LQFP 128-pin Diagram ...................................................... 31 ® Figure 5.1-1 NuMicro M2351 Block Diagram ............................................................................. 108 ® ® Figure 5.2-1 NuMicro M2351 Series Cortex -M23 Architecture ................................................ 109 ® Figure 6.1-1 Cortex -M23 Block Diagram .................................................................................... 110 Figure 6.2-1 Secure World View and Non-secure World View on a Chip.................................... 112 Figure 6.2-2 The 4 GB Memory Map Divided Into Secure and Non-secure Regions by IDAU ... 114 Figure 6.2-3 Typical Setting of SAU ............................................................................................. 115 Figure 6.2-4 Example of SRAM Divided Into Secure Block and Non-secure Block .................... 117 Figure 6.2-5 Checking Point of Accesses .................................................................................... 118 Figure 6.3-1 System Reset Sources ............................................................................................ 120 Figure 6.3-2 nRESET Reset Waveform ....................................................................................... 122 Figure 6.3-3 Power-on Reset (POR) Waveform .......................................................................... 122 Figure 6.3-4 Low Voltage Reset (LVR) Waveform....................................................................... 123 Figure 6.3-5 Brown-out Detector (BOD) Waveform ..................................................................... 124 Figure 6.3-6 Power Mode State Machine .................................................................................... 126 Figure 6.3-8 IDAU Memory Map .................................................................................................. 136 Figure 6.3-9 IDAU Block Diagram ................................................................................................ 137 ® NUMICRO M2351 SERIES DATASHEET Figure 6.3-7 Power Distribution Diagram ..................................................................................... 130 Figure 6.3-10 SRAM Block Diagram ............................................................................................ 137 Figure 6.3-11 SRAM Memory Organization ................................................................................. 138 Figure 6.3-12 SRAM Marco Organization .................................................................................... 139 Figure 6.4-1 Clock Generator Global View Diagram (1/3) ........................................................... 142 Figure 6.4-2 Clock Generator Global View Diagram (2/3) ........................................................... 143 Figure 6.4-3 Clock Generator Global View Diagram (3/3) ........................................................... 144 Figure 6.4-4 Clock Generator Block Diagram .............................................................................. 145 Figure 6.4-5 System Clock Block Diagram .................................................................................. 146 Figure 6.4-6 HXT Stop Protect Procedure ................................................................................... 147 Figure 6.4-7 SysTick Clock Control Block Diagram ..................................................................... 147 Figure 6.4-8 Clock Output Block Diagram ................................................................................... 148 Figure 6.26-1 SPI Master Mode Application Block Diagram ........................................................ 173 Figure 6.26-2 SPI Slave Mode Application Block Diagram .......................................................... 173 2 Figure 6.27-1 I C Bus Timing ....................................................................................................... 175 Oct.09 2019 Page 8 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Figure 8.4-1 Typical Crystal Application Circuit ........................................................................... 213 Figure 8.4-2 Typical Crystal Application Circuit ........................................................................... 215 Figure 8.5-1 Power-up Ramp Condition ...................................................................................... 221 Figure 8.5-2 Typical Connection with Internal Voltage Reference............................................... 222 Figure 8.5-3 Typical Connection Using the ADC ......................................................................... 225 2 Figure 8.7-1 I C Timing Diagram ................................................................................................. 230 Figure 8.8-1 SPI Master Mode Timing Diagram .......................................................................... 231 Figure 8.8-2 SPI Slave Mode Timing Diagram ............................................................................ 232 2 Figure 8.9-1 I S Master Mode Timing Diagram ........................................................................... 233 2 Figure 8.9-2 I S Slave Mode Timing Diagram ............................................................................. 234 2 Figure 8.10-1 I C Timing Diagram ............................................................................................... 235 Figure 8.11-1 SPI Master Mode Timing Diagram ........................................................................ 236 Figure 8.11-2 SPI Slave Mode Timing Diagram .......................................................................... 237 Figure 8.13-1 SDIO Default Mode ............................................................................................... 239 Figure 8.13-2 SDIO High-speed Mode ........................................................................................ 240 ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 9 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller List of Tables Table 6.2-1 Peripherals and Regions that are Always Secure .................................................... 116 Table 6.3-1 Reset Value of Registers .......................................................................................... 122 Table 6.3-2 Power Mode Table .................................................................................................... 125 Table 6.3-3 Power Mode Entry Setting Table .............................................................................. 126 Table 6.3-4 Power Mode Difference Table .................................................................................. 126 Table 6.3-5 Clocks in Power Modes ............................................................................................ 127 Table 6.3-6 Condition of Entering Power-down Mode Again ....................................................... 129 Table 6.3-7 Address Space Assignments for On-Chip Controllers.............................................. 133 ® Table 6.18-1 NuMicro M2351 Series UART Features ............................................................... 165 Table 8.1-1 Voltage Characteristics ............................................................................................. 192 Table 8.1-2 Current Characteristics ............................................................................................. 193 Table 8.1-3 Thermal Characteristics ............................................................................................ 193 Table 8.1-4 EMC Characteristics ................................................................................................. 194 Table 8.3-1 Current Consumption in LDO Normal Run Mode ..................................................... 197 Table 8.3-2 Current Consumption in DC-DC Normal Run Mode ................................................. 198 Table 8.3-3 Current consumption in LDO Idle mode ................................................................... 199 Table 8.3-4 Current Consumption in DC-DC Idle Mode .............................................................. 200 Table 8.3-5 Chip Current Consumption in Power-down Mode .................................................... 206 Table 8.3-6 Current Consumption for VBAT .................................................................................. 207 Table 8.3-8 PIN input Characteristics .......................................................................................... 210 Table 8.3-9 PIN Output Characteristics ....................................................................................... 211 ® NUMICRO M2351 SERIES DATASHEET Table 8.3-7 Low-power Mode Wakeup Timings .......................................................................... 209 Table 8.3-10 nRESET Pin Characteristics ................................................................................... 211 Table 8.4-1 External 4~24 MHz High Speed Crystal (HXT) Oscillator ........................................ 212 Table 8.4-2 External 32.768 kHz Crystal ..................................................................................... 215 Table 8.4-3 I/O AC Characteristics .............................................................................................. 218 Oct.09 2019 Page 10 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 1 GENERAL DESCRIPTION NuMicro® M2351 Series – a TrustZone® empowered microcontroller series focusing on IoT security. The rise of the internet of things (IoT) era has increased awareness for the integration of the physical world into digital systems. While the efficiency improvements and economic benefits coming behind the digitization of our everyday lives, it has also placed pressure on system designers to deliver the innovative products capable of connecting and exchanging data incessantly. Since security and power consumption are the key requirements of IoT applications, Nuvoton NuMicro® M2351 series is excellence in supporting the proliferation of intelligent connected devices. The NuMicro® M2351 microcontroller series is powered by Arm® Cortex® -M23 core with TrustZone® for Armv8-M architecture, which elevates the traditional firmware security to the new level of robust software security. The low-power M2351 microcontrollers run up to 64 MHz with up to 512 Kbytes embedded Flash memory in dual bank mode, supporting secure OTA (Over-The-Air) firmware update and up to 96 Kbytes embedded SRAM. Furthermore, the M2351 series provides high-performance connectivity 2 peripheral interfaces such as UART, SPI, I C, GPIOs, USB and ISO 7816-3 for smart card reader. Its secure and low-power features strengthen the innovation of IoT security. TrustZone® for Armv8-M Empowered The NuMicro® M2351 series is empowered by Arm® TrustZone® for Armv8-M architecture. The TrustZone® technology is a System on Chip (SoC) and CPU system-wide approach to security. In addition to the firmware-level security, the M2351 series offers a more enhanced software-level security for more robust security and greater power efficiency. Nuvoton Security Functions Strengthened Other than security, low power is also vital for IoT applications. Regarding the power consumption of the M2351 series, the normal run mode consumes 97 μA/MHz in LDO mode and 45 μA/MHz in DCDC mode. The current consumption of Standby Power-down mode is 2.8 μA and the Deep Powerdown mode without VBAT is less than 2μA. Arm® PSA with Nuvoton Secure Microcontroller Platform (NuSMP) Supported The Platform Security Architecture (PSA) is a holistic set of threat models, security analysis, hardware and firmware architecture specifications, and an open source firmware reference implementation. The PSA is a contribution from Arm® to the entire IoT ecosystem, offering common ground rules and a more economical approach to building more secure devices. Nuvoton has developed the Nuvoton Secure Microcontroller Platform (NuSMP) to support Arm® PSA. The NuSMP is a range of hardware and software mixture technologies for security requirements of general purpose and secure IoT microcontrollers. With NuSMP, developers can easily achieve the secure services with the M2351 series in coverage of: Trusted Boot (Root of Trust), Secure OTA (Over-The-Air) firmware update (including secure software download), Power Management APIs for non-secure world and PC side crypto related development software tool. Oct.09 2019 Page 11 of 246 Rev 1.02 ® Low-power Technology for IoT Innovation NUMICRO M2351 SERIES DATASHEET In addition to the TrustZone® technology, the NuMicro® M2351 series is also equipped with rich functions to improve system security. The Secure Bootloader supports trusted boot feature. The hardware crypto accelerators, including ECC, support encryption and decryption operations to offload the main processor’s computing power. The KPROM is a password protection mechanism to allow Flash memory write and erase. The XOM defines execute-only memory regions to protect critical program codes. The Flash lock bits are designed to disable external Flash-read/ -write and debug interface. Tamper detection pins can detect the state transition on the tamper pins. NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Security Features Applications - Arm Cortex -M23 TrustZone Technology - IoT Devices with Secure Connection - 8 regions MPU_NS (for non-secure world); 8 regions MPU_S (for secure world) - Collaborative Secure Software Development Business Model - 8 regions Security Attribution Units (SAU) - Fingerprint Card, Fingerprint Lock - Implementation Defined Attribution Unit (IDAU) - Smart Home Appliance - 2 KB OTP ROM with additional 1KB lock bits - Smart City Facilities - Hardware Crypto Accelerators - Wireless Sensor Node Device (WSND) - CRC calculation unit - Auto Meter Reading (AMR) - Up to 6 tamper detection pins - Portable Wireless Data Collector - 96-bit Unique ID (UID), 128-bit Unique Customer ID (UCID) - Digital Currency Authentication ® ® ® - Arm Platform Security Architecture (PSA) and Trusted Base System Architecture-M (TBSA-M) supported ® - Trusted Execution Environment (TEE) with Trusted Applications (TAs) ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 12 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 2 FEATURE DESCRIPTION Core and System ® ®  Arm Cortex -M23 processor, running up to 64 MHz  64MHz at 1.8V-3.6V; 48MHz at 1.7V-3.6V ® ®  Supports Arm TrustZone technology  Built-in PMSAv8 Memory Protection Unit (MPU)  Built-in Security Attribution Unit (SAU)  Built-in Nested Vectored Interrupt Controller (NVIC) ® ® Arm Cortex -M23  Built-in Embedded Trace Macrocell (ETM)  32-bit Single-cycle hardware multiplier and 32-bit 17-cycle hardware divider  24-bit system tick timer  Supports Programmble and maskable interrupt  Supports Low Power Sleep mode by WFI and WFE instructions  Supports single cycle I/O access  Configures SRAM’s secure attribution block by block Secure Configuration Unit  Configures GPIO’s secure attribution port by port (SCU)  Monitor secure violation incident on the chip  Brown-out Detector (BOD) 24-bit non-secure state monitor timer  Eight-level BOD with brown-out interrupt and reset option (3.0V/2.8V/2.6V/2.4V/2.2V/2.0V/1.8V/1.6V)  Dual voltage regulator is available for DC-DC converter or LDO ®  Supports 1.26v and 1.2v core voltage  Supports Power-down mode Power Manager  Supports Standby Power-down mode  Supports low leakage Power-down mode  Supports ultra low leakage Power-down mode  Supports fast wake-up Power-down mode  Supports deep Power-down mode  96-bit Unique ID (UID) Security  128-bit Unique Customer ID (UCID)  One built-in temperature sensor with 1℃ resolution Memories Boot Loader Flash Oct.09 2019  Factory pre-loaded 32 KB mask ROM for secure boot procedure  Root of Trust for Nuvoton Secure Microcontroller Platform  Dual bank 512 KB on-chip Application ROM (APROM) for Over- Page 13 of 246 NUMICRO M2351 SERIES DATASHEET Low Voltage Reset (LVR)  LVR with 1.5V threshold voltage level Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller The-Air (OTA) upgrade  64 MHz maximum frequency, with performance at zero wait cycle in continuous address read access  4 KB on-chip Flash memory for user-defined loader (LDROM)  4 KB non-readbale Key Protection ROM (KPROM) for firmware programming protection  2 KB OTP for general-purpose control use, (2 KB data + 1 KB lock bit) easy for PLM (Product Lifecycle Management) implementation  Execute Only Memory (XOM) for software intelectual property protection  32 KB Secure Boot ROM  All on-chip Flash support 2 KB page erase  Fast Flash programming verification with CRC  On-chip Flash programming with In-Chip Programming (ICP), InSystem Programming (ISP) and In-Application Programming (IAP) capabilities  Configurable boot up sources including boot loader, user-defined loader (LDROM) or Application ROM (APROM)  2-wired ICP Flash updating through SWD interface  32-bit/64-bit and multi-word Flash programming function  Up to 96 KB on-chip SRAM includes: – 32 KB SRAM located in bank 0 that supports hardware parity check; Exception (NMI) generated upon a parity check error – 64 KB SRAM located in bank 1 SRAM  PDMA operation  Supports CRC-CCITT, CRC-8, CRC-16 and CRC-32 polynomials ® NUMICRO M2351 SERIES DATASHEET  Byte-, half-word- and word-access  Programmable initial value and seed value  Programmable order reverse setting and one’s complement setting for input data and CRC checksum Cyclic Redundancy Calculation (CRC)  8-bit, 16-bit, and 32-bit data width  8-bit write mode with 1-AHB clock cycle operation  16-bit write mode with 2-AHB clock cycle operation  32-bit write mode with 4-AHB clock cycle operation  Uses DMA to write data with performing CRC operation  16 independent and configurable channels for automatic data transfer between memories and peripherals  8 channels of PDMA1 can be configured as secure or non-secure channels Peripheral DMA (PDMA)  Supports time-out function when transfer time-out  Basic and Scatter-Gather transfer modes  Each channel supports circular buffer management using ScatterGather Transfer mode Oct.09 2019 Page 14 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller  Stride function for rectangle image data movement  Fixed-priority and Round-robin priorities modes  Single and burst transfer types  Byte-, half-word- and word tranfer unit with count up to 65536  Incremental or fixed source and destination address Clocks  4~24 MHz High-speed external crystal oscillator (HXT) for precise timing operation External Clock Source  32.768 kHz Low-speed external crystal oscillator (LXT) for RTC function and low-power system operation  Supports clock failure detection for external crystal oscillators and exception generation (NMI)  12 MHz High-speed Internal RC oscillator (HIRC) trimmed to 0.25% accuracy that can optionally be used as a system clock  48 MHz High-speed Internal RC oscillator (HIRC48) trimmed to 0.25% accuracy that can optionally be used as a system clock Internal Clock Source  10 kHz Low-speed Internal RC oscillator (LIRC) for watchdog timer and wakeup operation  32 kHz Low-speed Internal RC oscillator (LIRC32) for RTC function  Up to 144 MHz on-chip PLL, sourced from HIRC or HXT, allowing for CPU operation up to the maximum CPU frequency without the need for a high-frequency crystal  Real-Time Clock with a separate power domain  Supports 6 static and dynamic tamper pins Real-Time Clock (RTC)  Able to wake up CPU from any reduced power mode  Supports Alarm registers (second, minute, hour, day, month, year)  Supports RTC Time Tick and Alarm Match interrupt  Automatic leap year recognition  Supports 1 Hz clock output for calibration  Frequency of RTC clock source compensate by RTC_FREQADJ register Timers TIMER 32-bit Timer  Four sets of 32-bit timers with 24-bit up counter and one 8-bit prescale counter from independent clock source  One-shot, Periodic, Toggle and Continuous Counting operation modes  Supports event counting function to count the event from external Oct.09 2019 Page 15 of 246 Rev 1.02 ®  The RTC block includes 80 bytes of battery-powered backup registers, which can be cleared by tamper pins NUMICRO M2351 SERIES DATASHEET  The RTC clock source includes Low-speed external crystal oscillator (LXT) and 32kHz Low-speed Internal RC oscillator (LIRC32) and 10kHz Low-speed Internal RC oscillator (LIRC) NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller pins  Supports external capture pin for interval measurement and resetting 24-bit up counter  Supports chip wake-up function, if a timer interrupt signal is generated PWM  Eight 16-bit PWM counters with 12-bit clock prescale with up to 64 MHz  Supports 12-bit deadband (dead time)  Up, down or up-down PWM counter type  Supports brake function  Supports mask function and tri-state output for each PWM channel  Twelve 16-bit counters with 12-bit clock prescale for twelve 64 MHz PWM output channels  Up to 12 independent input capture channels with 16-bit resolution counter  Supports dead time with maximum divided 12-bit prescale  Up, down or up-down PWM counter type Enhanced PWM (EPWM)  Supports complementary mode for 3 complementary paired PWM output channels  Synchronous function for phase control  Counter synchronous start function  Brake function with auto recovery mechanism  Able to trigger EADC or DAC to start conversion  Two 16-bit counters with 12-bit clock prescale for twelve 64 MHz PWM output channels ® NUMICRO M2351 SERIES DATASHEET  Mask function and tri-state output for each PWM channel  Up to 6 independent input capture channels with 16-bit resolution counter Basic PWM (BPWM)  Up, down or up-down PWM counter type  Counter synchronous start function  Mask function and tri-state output for each PWM channel  Able to trigger EADC to start conversion  18-bit free running up counter for WDT time-out interval  Supports multiple clock sources from LIRC (default selection), HCLK/2048 and LXT with 8 selectable time-out period Watchdog  Able to wake up system from Power-down or Idle mode  Time-out event to trigger interrupt or reset system  Supports four WDT reset delay periods, including 1026, 130, 18 or 3 WDT_CLK reset delay period  Configured to force WDT enabled on chip power-on or reset Window Watchdog Oct.09 2019  Clock sourced from HCLK/2048 or LIRC; the window set by 6-bit down counter with 11-bit prescale Page 16 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller  Suspended in Idle/Power-down mode Analog Interfaces  One 12-bit, 16-ch 3.76 MSPS SAR EADC with up to 16 singleended input channels or 8 differential input pairs; 10-bit accuracy is guaranteed.  Three internal channels for VBAT, band-gap VBG input and Temperature sensor input.  Supports external VREF pin or internal reference voltage VREF: 1.6V, 2.0V, 2.5V, and 3.0V. Enhanced Analog-to-Digital  Two power saving modes: Power-down mode and Standby mode. Converter (EADC)  Supports calibration capability.  Analog-to-Digital conversion can be triggered by software enable, external pin, Timer 0~3 overflow pulse trigger or EPWM trigger.  Configurable EADC sampling time.  Up to 19 sample modules.  Double data buffers for sample module 0~3.  PDMA operation.  Two 12-bit, 1 MSPS voltage type DAC with 8-bit mode and 8μs railto-rail settle time  Maximum output voltage AVDD -0.2V in buffer mode. Digital-to-Analog Converter  Digital-to-Analog conversion triggered by Timer0~3, EPWM0, (DAC) EPWM1, external trigger pin to start DAC conversion or software.  Supports group mode for synchronized data update of two DACs.  Two rail-to-rail Analog Comparators.  Supports four multiplexed I/O pins at positive input. Analog Comparator (ACMP)  Supports four programmable propagation speeds for power saving.  Supports wake up from Power-down by interrput.  Supports triggers for brake events and cycle-by-cycle control for PWM.  Supports window compare mode and window latch mode.  Supports programmable hysteresis window: 0mV, 10mV, 20mV and 30mV. Communication Interfaces  Six sets of UARTs with up to 10.66 MHz baud rate  Auto-Baud Rate measurement and baud rate compensation function Low-power UART  Supports low power UART (LPUART): baud rate clock from LXT(32.768 KHz) with 9600bps in Power-down mode even system clock is stopped  16-byte FIFOs with programmable level trigger Oct.09 2019 Page 17 of 246 Rev 1.02 ®  Supports I/O pins, band-gap, DAC output, and 16-level Voltage divider from AVDD or VREF at negative input. NUMICRO M2351 SERIES DATASHEET  PDMA operation. NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller  Auto flow control ( nCTS and nRTS)  Supports IrDA (SIR) function  Supports LIN function on UART0 and UART1  Supports RS-485 9-bit mode and direction control  Supports nCTS, incoming data, Received Data FIFO reached threshold and RS-485 Address Match (AAD mode) wake-up function in idle mode  Supports hardware or software enables to program nRTS pin to control RS-485 transmission direction  Supports wake-up function  8-bit receiver FIFO time-out detection function  Supports break error, frame error, parity error and receive/transmit FIFO overflow detection function  PDMA operation  Three sets of ISO-7816-3 which are compliant with ISO-7816-3 T=0, T=1  Supports full duplex UART function  4-byte FIFOs with programmable level trigger  Programmable guard time selection (11 ETU ~ 266 ETU) Smart Card Interface  One 24-bit and two 8 bit time-out counters for Answer to Request (ATR) and waiting times processing  Auto inverse convention function  Stop clock level and clock stop (clock keep) function  Transmitter and receiver error retry function  Supports hardware auto deactivation sequence after card removal ® NUMICRO M2351 SERIES DATASHEET  Supports hardware activation, deactivation and warm reset sequence process 2  Three sets of I C devices with Master/Slave mode  Supports Standard mode (100 kbps), Fast mode (400 kbps) and Fast mode plus (1 Mbps)  Supports 10 bits mode  Programmable clocks allowing for versatile rate control 2 IC  Supports multiple address recognition (four slave address with mask option)  Supports SM (Sytem Management) Bus and PM (Power Management) Bus  Supports multi-address power-down wake-up function  PDMA operation  One set of SPI Quad controller with Master/Slave mode, up to 64 MHz at 2.7V~3.6V stsyem voltage. Quad SPI  Supports Dual and Quad I/O Transfer mode  Supports one/two data channel half-duplex transfer  Supports receive-only mode Oct.09 2019 Page 18 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller  Configurable bit length of a transfer word from 8 to 32-bit  Provides separate 8-level depth transmit and receive FIFO buffers  MSB first or LSB first transfer sequence  The byte reorder function  Supports Byte or Word Suspend mode  Supports 3-wired, no slave select signal, bi-direction interface  PDMA operation. 2  Up to four sets of SPI/I S controllers with Master/Slave mode  SPI can communicate at up to 64 Mbit/s 2  SPI/I S provides separate 4-level of 32-bit (or 8-level of 16-bit) transmit and receive FIFO buffers SPI  Configurable bit length of a transfer word from 8 to 32-bit  MSB first or LSB first transfer sequence  Byte reorder function 2 SPI/I S  Supports Byte or Word Suspend mode  Supports one data channel half-duplex transfer  Supports receive-only mode 2 IS  Supports mono and stereo audio data with 8-, 16-, 24- and 32-bit audio data sizes  PDMA operation 2  One set of I S interface with Master/Slave mode  Supports mono and stereo audio data with 8-, 16-, 24- and 32-bit word sizes  Two 16-level FIFO data buffers, one for transmitting and the other for receiving 2 IS 2  Supports I S protocols: Philips standard, MSB-justified, and LSBjustified data format  Supports PCM protocols: PCM standard, MSB-justified, and LSBjustified data format  PCM protocol supports TDM multi-channel transmission in one audio sample; the number of data channel can be set as 2, 4, 6 or 8  PDMA operation 2  Two sets of USCI,configured as UART, SPI or I C function  Supports single byte TX and RX buffer mode Universal Serial Control Interface (USCI)  UART  Supports one transmit buffer and two receive buffers for data payload  Supports hardware auto flow control function and programmable Oct.09 2019 Page 19 of 246 Rev 1.02 ® 2  I S audio sampling frequencies up to 192 kHz are supported NUMICRO M2351 SERIES DATASHEET  Supports PCM mode A, PCM mode B, I2S and MSB justified data format NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller flow control trigger level  9-bit Data Transfer  Baud rate detection by built-in capture event of baud rate generator  Supports wake-up function  PDMA operation  SPI  Supports Master or Slave mode operation  Supports one transmit buffer and two receive buffer for data payload  Configurable bit length of a transfer word from 4 to 16-bit  Supports MSB first or LSB first transfer sequence  Supports Word Suspend function  Supports 3-wire, no slave select signal, bi-direction interface  Supports wake-up function by slave select signal in slave mode  Supports one data channel half-duplex transfer  PDMA operation 2  IC  Supports master and slave device capability  Supports one transmit buffer and two receive buffer for data payload  Communication in standard mode (100 kbps), fast mode (up to 400 kbps), and Fast mode plus (1 Mbps)  Supports 10-bit mode  Supports 10-bit bus time out capability  Supports power-down wake-up by data toggle or address match  Supports multiple address recognition  Supports device address flag ® NUMICRO M2351 SERIES DATASHEET  Supports bus monitor mode  Programmable setup/hold time  Two sets of CAN 2.0B controllers  Each supports 32 Message Objects; each Message Object has its own identifier mask Controller Area Network (CAN)  Programmable FIFO mode (concatenation of Message Object)  Disabled Automatic Re-transmission mode for Time Triggered CAN applications  Supports power-down wake-up function  One set of Secure Digital Host Controller, compliant with SD Memory Card Specification Version 2.0 Secure Digital Host Controller (SDHC) External Bus Interface (EBI) Oct.09 2019  Supports 50 MHz to achieve 200 Mbps at 3.3V operation  Supports dedicated DMA master with Scatter-Gather function to accelerate the data transfer between system memory and SD/SDHC/SDIO card  Supports up to three memory banks with individual adjustment of timing parameter Page 20 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller  Each bank supports dedicated external chip select pin with polarity control and up to 1 MB addressing space  8-/16-bit data width  Supports byte write in 16-bit data width mode  Supports variable external bus base clock (MCLK) which based on HCLK  Configurable idle cycle for different access condition: Idle of Write command finish (W2X) and Idle of Read-to-Read (R2R)  Supports Address/Data multiplexed mode  Supports address bus and data bus separate mode  Supports LCD interface i80 mode  PDMA operation  Supports four I/O modes: Quasi bi-direction, Push-Pull output, Open-Drain output and Input only with high impendence mode  Selectable TTL/Schmitt trigger input  Configured as interrupt source with edge/level trigger setting GPIO  Supports independent pull-up/pull-down control  Supports high driver and high sink current I/O  Supports software selectable slew rate control  Supports 5V-tolerance function except analog I/O. (Except PA.8 ~ 15; PB.0 ~ 15; PD.10 ~ 12; PF.2 ~ 5; nReset.)  Improve access efficiency by using single cycle IO bus Control Interfaces  Supports 2/4 times free-counting mode and 2/4 compare-counting mode  Supports encoder pulse width measurement mode with ECAP  Input Capture Timer/Counter  Supports three input channels with independent capture counter hold register Enhanced Capture (ECAP)  24-bit Input Capture up-counting timer/counter supports captured events reset and/or reload capture counter  Supports rising edge, falling edge and both edge detector options with noise filter in front of input ports  Supports compare-match function Advanced Connectivity USB 2.0 Full Speed OTG (On-The-Go) USB 2.0 Full Speed with on-chip transceiver  On-chip USB 2.0 full speed OTG transceiver  Compliant with USB OTG Supplement 2.0  Configurable as host-only, device-only or ID-dependent Oct.09 2019 Page 21 of 246 Rev 1.02 ® Quadrature Encoder Interface (QEI) NUMICRO M2351 SERIES DATASHEET  Two QEI phase inputs (QEI_A, QEI_B) and one Index input (QEI_INDEX) NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller USB 1.1 Host Controller  Compliant with USB Revision 1.1 Specification  Compatible with OHCI (Open Host Controller Interface) Revision 1.0  Supports full-speed (12Mbps) and low-speed (1.5Mbps) USB devices  Supports Control, Bulk, Interrupt, Isochronous and Split transfers  Integrated a port routing logic to route full/low speed device to OHCI controller  Supports an integrated Root Hub  Supports port power control and port over current detection  Built-in DMA USB 2.0 Full Speed Device Controller  Compliant with USB Revision 2.0 Specification  Supports crystal-less  Supports suspend function when no bus activity existing for 3 ms  12 configurable endpoints for configurable Isochronous, Bulk, Interrupt and Control transfer types  1024 bytes configurable RAM for endpoint buffer  Remote wake-up capability Cryptography Accelerator  Hardware ECC accelerator  Supports both prime field GF(p) and binary field GF(2m) Elliptic Curve Cryptography (ECC)  Supports NIST B-163, B-233, B-283, B-409 and B-571 curve sizes  Supports NIST K-163, K-233, K-283, K-409 and K-571 curve sizes  Supports point multiplication, addition and doubling operations in m GF(p) and GF(2 ) ® NUMICRO M2351 SERIES DATASHEET  Supports NIST P-192, P-224, P-256, P-384 and P-521 curve sizes  Supports modulus division, multiplication, addition and subtraction operations in GF(p)  Hardware AES accelerator Advanced Encryption Standard (AES)  Supports 128-bit, 192-bit and 256-bit key length and key expander, and is compliant with FIPS 197  Supports ECB, CBC, CFB, OFB, CTR, CBC-CS1, CBC-CS2 and CBC-CS3 block cipher modes  Compliant with NIST SP800-38A and addendum  Hardware DES accelerator Data Encryption Standard  Supports ECB, CBC, CFB, OFB, and CTR block cipher mode (DES)  Compliant with FIPS 46-3  Hardware Triple DES accelerator Triple Data Encryption Standard (3DES) Oct.09 2019  Supports two or three different keys in each round  Supports ECB, CBC, CFB, OFB, and CTR block cipher mode Page 22 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller  Implemented based on X9.52 standard and compliant with FIPS SP 800-67  Hardware SHA accelerator Secure Hash Algorithm (SHA)  Supports SHA-160, SHA-224, SHA-256 and SHA-384  Compliant with FIPS 180/180-2 Pseudo Random Number  Supports 64-bit, 128-bit, 192-bit and 256-bit random number generation Generator (PRNG) True Randon Number Generator (TRNG)  Up to 800 random bits per second ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 23 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 3 PARTS INFORMATION 3.1 Summary Part No. USB FS CAN Crypto M2351 √ √ √ 3.2 Package Type Part No. QFN33 WLCSP49 M2351 M2351ZIAAE M2351CIAAE LQFP64 M2351SIAAE M2351SFSIAAP LQFP128 M2351KIAAE ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 24 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 3.3 NuMicro® M2351 Series Selection Guide M2351 PART NUMBER ZIAAE CIAAE SIAAE KIAAE SFSIAAP Flash (KB) 512 512 512 512 512 SRAM (KB) 96 96 96 96 96 107 45 ISP Loader ROM (KB) I/O 4 25 41 32-bit Timer Tamper 4 - - Connectivity 4 1 RTC √ LPUART 6 ISO-7816 3 Quad SPI SPI/I2S 3 1 4 4 2 2 4 1 2 IC 3 USCI (UART/I C/ SPI) 2 CAN 1 LIN 2 2 1 2 2 DES / 3-DES / AES √ ECC √ SHA √ 16-bit Enhanced PWM 12 16-bit Basic PWM 12 ® √ QEI 1 2 2 2 2 ECAP - 1 1 1 1 16 16 2 2 USB 2.0 FS OTG 12-bit ADC √ 10 12 12-bit DAC Analog Comparator 2 1 2 Cryptography External Bus Interface Package 16 2 √ - √ √ √ √ QFN 33 WLCSP 49 LQFP 64 LQFP 128 LQFP 64 Page 25 of 246 NUMICRO M2351 SERIES DATASHEET TRNG Oct.09 2019 6 1 3 I2S SDHC Crypto 51 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 3.4 NuMicro® M2351 Naming Rule M23 51 SF S I A A E Core Line MCP Package Flash SRAM Revision Temperature 51: Base Line SF: Secure Flash (optional letters) C: WLCSP49 (3.2x3.2 mm) I: 512 KB C: 128 KB *M2351SF E: -40°C ~ 105°C G: 256 KB A: 96 KB A: 4 MB P: -25°C ~ 85°C E: 128 KB 8: 64 KB B: 2 MB 6: 32 KB C: 512 KB Cortex®-M23 Z: QFN33 (5x5 mm) S: LQFP64 (7x7 mm) K: LQFP128 (14x14 mm) ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 26 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 4 4.1 PIN CONFIGURATION NuMicro® M2351 Series QFN33 Pin Diagram VSS 25 Vsw PA.15 PA.14 PA.13 PA.12 PC.0 PC.1 PF.1 PF.0 24 23 22 21 20 19 18 17 Corresponding Part Number: M2351ZIAAE nRESET 26 15 VDDIO VDD 27 14 PA.0 LDO_CAP 28 13 PA.1 PB.14 29 12 PA.2 PB.13 30 11 PA.3 PB.12 31 10 PF.2 9 PF.3 33 VSS 2 3 4 5 6 7 8 PB.4 PB.3 PB.2 PB.1 PB.0 PF.5 PF.4 ® 1 32 PB.5 AVDD QFN33 NUMICRO M2351 SERIES DATASHEET 16 Top transparent view VDDIO power domain ® Figure 4.1-1 NuMicro M2351 Series QFN 33-pin Diagram Oct.09 2019 Page 27 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 4.2 NuMicro® M2351 Series WLCSP49 Pin Diagram Corresponding Part Number: M2351CIAAE A B C D E F ® NUMICRO M2351 SERIES DATASHEET G ® Figure 4.2-1 NuMicro M2351 Series WLCSP 49-pin Diagram Oct.09 2019 Page 28 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 4.3 NuMicro® M2351 Series LQFP64 Pin Diagram PA.15 PA.14 PA.13 PA.12 PD.0 PD.1 PD.2 PD.3 PC.0 PC.1 PC.2 PC.3 PC.4 PC.5 PF.1 PF.0 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 Corresponding Part Number: M2351SIAAE 49 32 nRESET VSW 50 31 VDDIO VD D 51 30 PA.0 LDO_CAP 52 29 PA.1 PB.15 53 28 PA.2 PB.14 54 27 PA.3 PB.13 55 26 PA.4 PB.12 56 25 PA.5 AVD D 57 24 LDO_CAP VR EF 58 23 VD D AVSS 59 22 VSS PB.11 60 21 PA.6 PB.10 61 20 PA.7 PB.9 62 19 PC.6 PB.8 63 18 PC.7 PB.7 64 17 PF.2 LQFP64 13 14 15 16 VBA T PF.5 PF.4 PF.3 12 PF.6 PA.9 11 10 PA.8 9 6 PB.1 PA.10 5 PB.2 8 4 PB.3 PB.0 3 PB.4 PA.11 2 PB.5 VD DIO power domain 7 1 PB.6 ® NUMICRO M2351 SERIES DATASHEET VSS VBA T power domain ® Figure 4.3-1 NuMicro M2351 Series LQFP 64-pin Diagram Oct.09 2019 Page 29 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 4.4 NuMicro® M2351 Series LQFP64 Pin Diagram PA.15 PA.14 PA.13 PA.12 PD.0 PD.1 PD.2 PD.3 PC.0 PC.1 PC.2 PC.3 PC.4 PC.5 PF.1 PF.0 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 Corresponding Part Number: M2351SFSIAAP VSS 49 32 nRESET VSW 50 31 VDDIO VDD 51 30 NC LDO_CAP 52 29 NC NC PB.15 53 28 NC PB.14 54 27 SFSH_CSn PB.13 55 26 NC PB.12 56 25 NC AVDD 57 24 LDO_CAP VREF 58 23 VDD LQFP64 NC PC.7 17 PF.2 1 2 3 4 5 6 7 8 9 10 PB.6 PB.5 PB.4 PB.3 PB.2 PB.1 PB.0 PA.11 PA.10 PA.9 VDDIO power domain PF.3 18 64 16 63 PB.7 15 PB.8 14 PC.6 PF.4 PA.7 19 PF.5 20 62 13 61 PB.9 VBAT PB.10 12 PA.6 PF.6 VSS 21 PA.8 22 60 11 59 ® NUMICRO M2351 SERIES DATASHEET AVSS PB.11 VBAT power domain ® Figure 4.44-1 NuMicro M2351SF Series LQFP 64-pin Diagram Oct.09 2019 Page 30 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 4.5 NuMicro® M2351 Series LQFP128 Pin Diagram PA.15 PA.14 PA.13 PA.12 PD.13 PD.0 PD.1 PD.2 PD.3 PD.4 PD.5 PD.6 PD.7 PG.15 PG.14 PG.13 PG.12 PG.11 PG.10 PG.9 VD D VSS PC.0 PC.1 PC.2 PC.3 PC.4 PC.5 PD.8 PD.9 PF.1 PF.0 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 Corresponding Part Number: M2351KIAAE 64 nRESET 98 63 PE.15 PE.5 99 62 PE.14 PE.4 100 61 VDDIO PE.3 101 60 PA.0 PE.2 102 59 PA.1 VSS 103 58 PA.2 VDD 104 57 PA.3 PE.1 105 56 PA.4 PE.0 106 55 PA.5 PH.8 107 54 LDO_CAP PH.9 108 53 VDD PH.10 109 52 VSS PH.11 110 51 PA.6 PD.14 111 50 PA.7 VSS 112 49 PC.6 VSW 113 48 PC.7 VDD 114 47 PC.8 LDO_CAP 115 46 PE.13 PB.15 116 45 PE.12 PB.14 117 44 PE.11 PB.13 118 43 PE.10 PB.12 119 42 PE.9 AVDD 120 41 PE.8 VREF 121 40 VDD AVSS 122 39 VSS PB.11 123 38 PF.2 PB.10 124 37 PF.3 PB.9 125 36 PH.7 PB.8 126 35 PH.6 PB.7 127 34 PH.5 PB.6 128 33 PH.4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 PB.5 PB.4 PB.3 PB.2 PC.12 PC.11 PC.10 PC.9 PB.1 PB.0 VSS VD D PA.11 PA.10 PA.9 PA.8 PC.13 PD.12 PD.11 PD.10 PG.2 PG.3 PG.4 PF.11 PF.10 PF.9 PF.8 PF.7 PF.6 VBA T PF.5 PF.4 LQFP128 VDDIO power domain ® 97 PE.6 NUMICRO M2351 SERIES DATASHEET PE.7 VBA T power domain ® Figure 4.55-1 NuMicro M2351 Series LQFP 128-pin Diagram Oct.09 2019 Page 31 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 4.6 M2351 Performance Series Pin Description MFP* = Multi-function pin. (Refer to section SYS_GPx_MFPL and SYS_GPx_MFPH) PA.0 MFP0 means SYS_GPA_MFPL[3:0] = 0x0. PA.9 MFP5 means SYS_GPA_MFPH[7:4] = 0x5. 33 49 64 128 Pin Name Pin Pin Pin Pin 1 C2 2 3 1 2 MFP Description I/O MFP0 General purpose digital I/O pin. EADC0_CH5 A MFP1 EADC0 channel 5 analog input. ACMP1_N A MFP1 Analog comparator 1 negative input pin. EBI_ADR0 O MFP2 EBI address bus bit 0. SD0_DAT3 I/O MFP3 SD/SDIO0 data line bit 3. SPI1_MISO I/O MFP5 SPI1 MISO (Master In, Slave Out) pin. I2C0_SCL I/O MFP6 I2C0 clock pin. UART5_TXD O MFP7 UART5 data transmitter output pin. USCI1_CTL0 I/O MFP8 USCI1 control 0 pin. SC0_CLK O MFP9 Smart Card 0 clock pin. I2S0_BCLK O MFP10 I2S0 bit clock output pin. EPWM0_CH0 I/O MFP11 EPWM0 channel 0 output/capture input. TM0 I/O MFP14 Timer0 event counter input/toggle output pin. INT0 I MFP15 External interrupt 0 input pin. PB.4 I/O MFP0 General purpose digital I/O pin. EADC0_CH4 A MFP1 EADC0 channel 4 analog input. ACMP1_P1 A MFP1 Analog comparator 1 positive input 1 pin. EBI_ADR1 O MFP2 EBI address bus bit 1. SD0_DAT2 I/O MFP3 SD/SDIO0 data line bit 2. SPI1_MOSI I/O MFP5 SPI1 MOSI (Master Out, Slave In) pin. I2C0_SDA I/O MFP6 I2C0 data input/output pin. UART5_RXD I MFP7 UART5 data receiver input pin. USCI1_CTL1 I/O MFP8 USCI1 control 1 pin. SC0_DAT I/O MFP9 Smart Card 0 data pin. I2S0_MCLK O MFP10 I2S0 master clock output pin. EPWM0_CH1 I/O MFP11 EPWM0 channel 1 output/capture input. TM1 I/O MFP14 Timer1 event counter input/toggle output pin. INT1 I MFP15 External interrupt 1 input pin. PB.3 I/O MFP0 General purpose digital I/O pin. PB.5 ® NUMICRO M2351 SERIES DATASHEET 2 D3 Type 3 B1 4 3 Oct.09 2019 Page 32 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin 4 E3 5 4 Description EADC0_CH3 A MFP1 EADC0 channel 3 analog input. ACMP0_N A MFP1 Analog comparator 0 negative input pin. EBI_ADR2 O MFP2 EBI address bus bit 2. SD0_DAT1 I/O MFP3 SD/SDIO0 data line bit 1. SPI1_CLK I/O MFP5 SPI1 serial clock pin. UART1_TXD O MFP6 UART1 data transmitter output pin. UART5_nRTS O MFP7 UART5 request to Send output pin. USCI1_DAT1 I/O MFP8 USCI1 data 1 pin. SC0_RST O MFP9 Smart Card 0 reset pin. I2S0_DI I MFP10 I2S0 data input pin. EPWM0_CH2 I/O MFP11 EPWM0 channel 2 output/capture input. TM2 I/O MFP14 Timer2 event counter input/toggle output pin. INT2 I MFP15 External interrupt 2 input pin. PB.2 I/O MFP0 General purpose digital I/O pin. EADC0_CH2 A MFP1 EADC0 channel 2 analog input. ACMP0_P1 A MFP1 Analog comparator 0 positive input 1 pin. EBI_ADR3 O MFP2 EBI address bus bit 3. SD0_DAT0 I/O MFP3 SD/SDIO0 data line bit 0. SPI1_SS I/O MFP5 SPI1 slave select pin. UART1_RXD I MFP6 UART1 data receiver input pin. UART5_nCTS I MFP7 UART5 clear to Send input pin. USCI1_DAT0 I/O MFP8 USCI1 data 0 pin. SC0_PWR O MFP9 Smart Card 0 power pin. I2S0_DO O MFP10 I2S0 data output pin. EPWM0_CH3 I/O MFP11 EPWM0 channel 3 output/capture input. TM3 I/O MFP14 Timer3 event counter input/toggle output pin. INT3 I MFP15 External interrupt 3 input pin. PC.12 I/O MFP0 General purpose digital I/O pin. EBI_ADR4 O MFP2 EBI address bus bit 4. UART0_TXD O MFP3 UART0 data transmitter output pin. I2C0_SCL I/O MFP4 I2C0 clock pin. SPI3_MISO I/O MFP6 SPI3 MISO (Master In, Slave Out) pin. SC0_nCD I MFP9 Smart Card 0 card detect pin. ECAP1_IC2 I MFP11 Enhanced capture unit 1 input 2 pin. Page 33 of 246 ® Oct.09 2019 MFP NUMICRO M2351 SERIES DATASHEET 5 Type Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin 6 7 8 ® NUMICRO M2351 SERIES DATASHEET 5 D2 6 9 Type MFP EPWM1_CH0 I/O MFP12 EPWM1 channel 0 output/capture input. ACMP0_O O MFP14 Analog comparator 0 output pin. PC.11 I/O MFP0 General purpose digital I/O pin. EBI_ADR5 O MFP2 EBI address bus bit 5. UART0_RXD I MFP3 UART0 data receiver input pin. I2C0_SDA I/O MFP4 I2C0 data input/output pin. SPI3_MOSI I/O MFP6 SPI3 MOSI (Master Out, Slave In) pin. ECAP1_IC1 I MFP11 Enhanced capture unit 1 input 1 pin. EPWM1_CH1 I/O MFP12 EPWM1 channel 1 output/capture input. ACMP1_O O MFP14 Analog comparator 1 output pin. PC.10 I/O MFP0 General purpose digital I/O pin. EBI_ADR6 O MFP2 EBI address bus bit 6. SPI3_CLK I/O MFP6 SPI3 serial clock pin. UART3_TXD O MFP7 UART3 data transmitter output pin. ECAP1_IC0 I MFP11 Enhanced capture unit 1 input 0 pin. EPWM1_CH2 I/O MFP12 EPWM1 channel 2 output/capture input. PC.9 I/O MFP0 General purpose digital I/O pin. EBI_ADR7 O MFP2 EBI address bus bit 7. SPI3_SS I/O MFP6 SPI3 slave select pin. UART3_RXD I MFP7 UART3 data receiver input pin. EPWM1_CH3 I/O MFP12 EPWM1 channel 3 output/capture input. PB.1 I/O MFP0 General purpose digital I/O pin. EADC0_CH1 A MFP1 EADC0 channel 1 analog input. EBI_ADR8 O MFP2 EBI address bus bit 8. SD0_CLK O MFP3 SD/SDIO0 clock output pin SPI1_I2SMCLK I/O MFP5 SPI1 I2S master clock output pin SPI3_I2SMCLK I/O MFP6 SPI3 I2S master clock output pin UART2_TXD O MFP7 UART2 data transmitter output pin. USCI1_CLK I/O MFP8 USCI1 clock pin. I2C1_SCL I/O MFP9 I2C1 clock pin. I2S0_LRCK O MFP10 I2S0 left right channel clock output pin. EPWM0_CH4 I/O MFP11 EPWM0 channel 4 output/capture input. EPWM1_CH4 I/O MFP12 EPWM1 channel 4 output/capture input. I MFP13 EPWM0 Brake 0 input pin. EPWM0_BRAKE0 Oct.09 2019 Description Page 34 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin 6 C1 7 MFP Description I/O MFP0 General purpose digital I/O pin. EADC0_CH0 A MFP1 EADC0 channel 0 analog input. EBI_ADR9 O MFP2 EBI address bus bit 9. SD0_CMD I/O MFP3 SD/SDIO0 command/response pin I MFP7 UART2 data receiver input pin. SPI0_I2SMCLK I/O MFP8 SPI0 I2S master clock output pin I2C1_SDA I/O MFP9 I2C1 data input/output pin. EPWM0_CH5 I/O MFP11 EPWM0 channel 5 output/capture input. EPWM1_CH5 I/O MFP12 EPWM1 channel 5 output/capture input. I MFP13 EPWM0 Brake 1 input pin. 11 VSS P MFP0 Ground pin for digital circuit. 12 VDD P MFP0 Power supply for I/O ports and LDO source for internal PLL and digital circuit. I/O MFP0 General purpose digital I/O pin. ACMP0_P0 A MFP1 Analog comparator 0 positive input 0 pin. EBI_nRD O MFP2 EBI read enable output pin. SC2_PWR O MFP3 Smart Card 2 power pin. SPI2_SS I/O MFP4 SPI2 slave select pin. USCI0_CLK I/O MFP6 USCI0 clock pin. I2C2_SCL I/O MFP7 I2C2 clock pin. BPWM0_CH0 I/O MFP9 BPWM0 channel 0 output/capture input. EPWM0_SYNC_OUT O MFP10 EPWM0 counter synchronous trigger output pin. TM0_EXT I/O MFP13 Timer0 external capture input/toggle output pin. DAC1_ST I MFP14 DAC1 external trigger input. I/O MFP0 General purpose digital I/O pin. ACMP1_P0 A MFP1 Analog comparator 1 positive input 0 pin. EBI_nWR O MFP2 EBI write enable output pin. SC2_RST O MFP3 Smart Card 2 reset pin. SPI2_CLK I/O MFP4 SPI2 serial clock pin. USCI0_DAT0 I/O MFP6 USCI0 data 0 pin. I2C2_SDA I/O MFP7 I2C2 data input/output pin. BPWM0_CH1 I/O MFP9 BPWM0 channel 1 output/capture input. QEI1_INDEX I MFP10 Quadrature encoder 1 index input ECAP0_IC0 I MFP11 Enhanced capture unit 0 input 0 pin. 10 PB.0 UART2_RXD EPWM0_BRAKE1 D1 8 13 PA.11 ® NUMICRO M2351 SERIES DATASHEET Type E2 9 14 PA.10 Oct.09 2019 Page 35 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin E1 10 Type MFP TM1_EXT I/O MFP13 Timer1 external capture input/toggle output pin. DAC0_ST I MFP14 DAC0 external trigger input. I/O MFP0 General purpose digital I/O pin. EBI_MCLK O MFP2 EBI external clock output pin. SC2_DAT I/O MFP3 Smart Card 2 data pin. SPI2_MISO I/O MFP4 SPI2 MISO (Master In, Slave Out) pin. USCI0_DAT1 I/O MFP6 USCI0 data 1 pin. UART1_TXD O MFP7 UART1 data transmitter output pin. BPWM0_CH2 I/O MFP9 BPWM0 channel 2 output/capture input. QEI1_A I MFP10 Quadrature encoder 1 phase A input ECAP0_IC1 I MFP11 Enhanced capture unit 0 input 1 pin. I/O MFP13 Timer2 external capture input/toggle output pin. I/O MFP0 General purpose digital I/O pin. EBI_ALE O MFP2 EBI address latch enable output pin. SC2_CLK O MFP3 Smart Card 2 clock pin. SPI2_MOSI I/O MFP4 SPI2 MOSI (Master Out, Slave In) pin. USCI0_CTL1 I/O MFP6 USCI0 control 1 pin. UART1_RXD I MFP7 UART1 data receiver input pin. BPWM0_CH3 I/O MFP9 BPWM0 channel 3 output/capture input. QEI1_B I MFP10 Quadrature encoder 1 phase B input ECAP0_IC2 I MFP11 Enhanced capture unit 0 input 2 pin. I/O MFP13 Timer3 external capture input/toggle output pin. I MFP15 External interrupt 4 input pin. I/O MFP0 General purpose digital I/O pin. EBI_ADR10 O MFP2 EBI address bus bit 10. SC2_nCD I MFP3 Smart Card 2 card detect pin. SPI2_I2SMCLK I/O MFP4 SPI2 I2S master clock output pin USCI0_CTL0 I/O MFP6 USCI0 control 0 pin. UART2_TXD O MFP7 UART2 data transmitter output pin. BPWM0_CH4 I/O MFP9 BPWM0 channel 4 output/capture input. CLKO O MFP13 Clock Out EADC0_ST I MFP14 EADC0 external trigger input. I/O MFP0 General purpose digital I/O pin. O MFP2 EBI chip select 0 output pin. 15 PA.9 TM2_EXT F2 11 16 PA.8 ® NUMICRO M2351 SERIES DATASHEET TM3_EXT INT4 17 PC.13 18 PD.12 EBI_nCS0 Oct.09 2019 Description Page 36 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Description UART2_RXD I MFP7 UART2 data receiver input pin. BPWM0_CH5 I/O MFP9 BPWM0 channel 5 output/capture input. QEI0_INDEX I MFP10 Quadrature encoder 0 index input CLKO O MFP13 Clock Out EADC0_ST I MFP14 EADC0 external trigger input. INT5 I MFP15 External interrupt 5 input pin. I/O MFP0 General purpose digital I/O pin. EBI_nCS1 O MFP2 EBI chip select 1 output pin. UART1_TXD O MFP3 UART1 data transmitter output pin. CAN0_TXD O MFP4 CAN0 bus transmitter output. QEI0_A I MFP10 Quadrature encoder 0 phase A input INT6 I MFP15 External interrupt 6 input pin. I/O MFP0 General purpose digital I/O pin. EBI_nCS2 O MFP2 EBI chip select 2 output pin. UART1_RXD I MFP3 UART1 data receiver input pin. CAN0_RXD I MFP4 CAN0 bus receiver input. QEI0_B I MFP10 Quadrature encoder 0 phase B input INT7 I MFP15 External interrupt 7 input pin. I/O MFP0 General purpose digital I/O pin. EBI_ADR11 O MFP2 EBI address bus bit 11. SPI2_SS I/O MFP3 SPI2 slave select pin. I2C0_SMBAL O MFP4 I2C0 SMBus SMBALTER pin I2C1_SCL I/O MFP5 I2C1 clock pin. TM0 I/O MFP13 Timer0 event counter input/toggle output pin. 22 PG.3 I/O MFP0 General purpose digital I/O pin. EBI_ADR12 O MFP2 EBI address bus bit 12. SPI2_CLK I/O MFP3 SPI2 serial clock pin. I2C0_SMBSUS O MFP4 I2C0 SMBus SMBSUS pin (PMBus CONTROL pin) I2C1_SDA I/O MFP5 I2C1 data input/output pin. TM1 I/O MFP13 Timer1 event counter input/toggle output pin. 23 PG.4 I/O MFP0 General purpose digital I/O pin. EBI_ADR13 O MFP2 EBI address bus bit 13. SPI2_MISO I/O MFP3 SPI2 MISO (Master In, Slave Out) pin. TM2 I/O MFP13 Timer2 event counter input/toggle output pin. 19 PD.11 20 PD.10 21 PG.2 Oct.09 2019 Page 37 of 246 ® MFP NUMICRO M2351 SERIES DATASHEET Type Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP Description I/O MFP0 General purpose digital I/O pin. EBI_ADR14 O MFP2 EBI address bus bit 14. SPI2_MOSI I/O MFP3 SPI2 MOSI (Master Out, Slave In) pin. TAMPER5 I/O MFP10 TAMPER detector loop pin 5. TM3 I/O MFP13 Timer3 event counter input/toggle output pin. I/O MFP0 General purpose digital I/O pin. EBI_ADR15 O MFP2 EBI address bus bit 15. SC0_nCD I MFP3 Smart Card 0 card detect pin. I2S0_BCLK O MFP4 I2S0 bit clock output pin. SPI0_I2SMCLK I/O MFP5 SPI0 I2S master clock output pin TAMPER4 I/O MFP10 TAMPER detector loop pin 4. I/O MFP0 General purpose digital I/O pin. EBI_ADR16 O MFP2 EBI address bus bit 16. SC0_PWR O MFP3 Smart Card 0 power pin. I2S0_MCLK O MFP4 I2S0 master clock output pin. SPI0_SS I/O MFP5 SPI0 slave select pin. TAMPER3 I/O MFP10 TAMPER detector loop pin 3. I/O MFP0 General purpose digital I/O pin. EBI_ADR17 O MFP2 EBI address bus bit 17. SC0_RST O MFP3 Smart Card 0 reset pin. I2S0_DI I MFP4 I2S0 data input pin. SPI0_CLK I/O MFP5 SPI0 serial clock pin. TAMPER2 I/O MFP10 TAMPER detector loop pin 2. I/O MFP0 General purpose digital I/O pin. EBI_ADR18 O MFP2 EBI address bus bit 18. SC0_DAT I/O MFP3 Smart Card 0 data pin. I2S0_DO O MFP4 I2S0 data output pin. SPI0_MISO I/O MFP5 SPI0 MISO (Master In, Slave Out) pin. UART4_TXD O MFP6 UART4 data transmitter output pin. TAMPER1 I/O MFP10 TAMPER detector loop pin 1. I/O MFP0 General purpose digital I/O pin. EBI_ADR19 O MFP2 EBI address bus bit 19. SC0_CLK O MFP3 Smart Card 0 clock pin. I2S0_LRCK O MFP4 I2S0 left right channel clock output pin. 24 PF.11 25 PF.10 26 PF.9 27 PF.8 ® NUMICRO M2351 SERIES DATASHEET 28 PF.7 12 29 PF.6 Oct.09 2019 Page 38 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP Description I/O MFP5 SPI0 MOSI (Master Out, Slave In) pin. UART4_RXD I MFP6 UART4 data receiver input pin. EBI_nCS0 O MFP7 EBI chip select 0 output pin. TAMPER0 I/O MFP10 TAMPER detector loop pin 0. SPI0_MOSI 7 8 F1 G1 30 VBAT P MFP0 Power supply by batteries for RTC. 14 31 PF.5 I/O MFP0 General purpose digital I/O pin. UART2_RXD I MFP2 UART2 data receiver input pin. UART2_nCTS I MFP4 UART2 clear to Send input pin. BPWM0_CH4 I/O MFP8 BPWM0 channel 4 output/capture input. EPWM0_SYNC_OUT O MFP9 EPWM0 counter synchronous trigger output pin. X32_IN I MFP10 External 32.768 kHz crystal input pin. EADC0_ST I MFP11 EADC0 external trigger input. I/O MFP0 General purpose digital I/O pin. UART2_TXD O MFP2 UART2 data transmitter output pin. UART2_nRTS O MFP4 UART2 request to Send output pin. BPWM0_CH5 I/O MFP8 BPWM0 channel 5 output/capture input. X32_OUT O MFP10 External 32.768 kHz crystal output pin. I/O MFP0 General purpose digital I/O pin. EBI_ADR3 O MFP2 EBI address bus bit 3. SPI1_MISO I/O MFP3 SPI1 MISO (Master In, Slave Out) pin. I/O MFP0 General purpose digital I/O pin. EBI_ADR2 O MFP2 EBI address bus bit 2. SPI1_MOSI I/O MFP3 SPI1 MOSI (Master Out, Slave In) pin. I/O MFP0 General purpose digital I/O pin. EBI_ADR1 O MFP2 EBI address bus bit 1. SPI1_CLK I/O MFP3 SPI1 serial clock pin. I/O MFP0 General purpose digital I/O pin. EBI_ADR0 O MFP2 EBI address bus bit 0. SPI1_SS I/O MFP3 SPI1 slave select pin. I/O MFP0 General purpose digital I/O pin. EBI_nCS0 O MFP2 EBI chip select 0 output pin. UART0_TXD O MFP3 UART0 data transmitter output pin. I2C0_SCL I/O MFP4 I2C0 clock pin. I MFP10 External 4~24 MHz (high speed) crystal input pin. 15 32 PF.4 33 PH.4 35 PH.6 36 PH.7 9 G2 16 37 PF.3 XT1_IN Oct.09 2019 Page 39 of 246 ® 34 PH.5 NUMICRO M2351 SERIES DATASHEET 13 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP I/O MFP11 BPWM1 channel 0 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_nCS1 O MFP2 EBI chip select 1 output pin. UART0_RXD I MFP3 UART0 data receiver input pin. I2C0_SDA I/O MFP4 I2C0 data input/output pin. QSPI0_CLK I/O MFP5 Quad SPI0 serial clock pin. XT1_OUT O MFP10 External 4~24 MHz (high speed) crystal output pin. BPWM1_CH1 I/O MFP11 BPWM1 channel 1 output/capture input. 39 VSS P MFP0 Ground pin for digital circuit. 40 VDD P MFP0 Power supply for I/O ports and LDO source for internal PLL and digital circuit. 41 PE.8 I/O MFP0 General purpose digital I/O pin. EBI_ADR10 O MFP2 EBI address bus bit 10. I2S0_BCLK O MFP4 I2S0 bit clock output pin. SPI2_CLK I/O MFP5 SPI2 serial clock pin. USCI1_CTL1 I/O MFP6 USCI1 control 1 pin. UART2_TXD O MFP7 UART2 data transmitter output pin. EPWM0_CH0 I/O MFP10 EPWM0 channel 0 output/capture input. EPWM0_BRAKE0 I MFP11 EPWM0 Brake 0 input pin. ECAP0_IC0 I MFP12 Enhanced capture unit 0 input 0 pin. TRACE_DATA3 O MFP14 ETM Trace Data 3 output pin I/O MFP0 General purpose digital I/O pin. EBI_ADR11 O MFP2 EBI address bus bit 11. I2S0_MCLK O MFP4 I2S0 master clock output pin. SPI2_MISO I/O MFP5 SPI2 MISO (Master In, Slave Out) pin. USCI1_CTL0 I/O MFP6 USCI1 control 0 pin. UART2_RXD I MFP7 UART2 data receiver input pin. EPWM0_CH1 I/O MFP10 EPWM0 channel 1 output/capture input. EPWM0_BRAKE1 I MFP11 EPWM0 Brake 1 input pin. ECAP0_IC1 I MFP12 Enhanced capture unit 0 input 1 pin. TRACE_DATA2 O MFP14 ETM Trace Data 2 output pin I/O MFP0 General purpose digital I/O pin. EBI_ADR12 O MFP2 EBI address bus bit 12. I2S0_DI I MFP4 I2S0 data input pin. BPWM1_CH0 10 G3 17 38 PF.2 Description ® NUMICRO M2351 SERIES DATASHEET 42 PE.9 43 PE.10 Oct.09 2019 Page 40 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Description SPI2_MOSI I/O MFP5 SPI2 MOSI (Master Out, Slave In) pin. USCI1_DAT0 I/O MFP6 USCI1 data 0 pin. UART3_TXD O MFP7 UART3 data transmitter output pin. EPWM0_CH2 I/O MFP10 EPWM0 channel 2 output/capture input. EPWM1_BRAKE0 I MFP11 EPWM1 Brake 0 input pin. ECAP0_IC2 I MFP12 Enhanced capture unit 0 input 2 pin. TRACE_DATA1 O MFP14 ETM Trace Data 1 output pin I/O MFP0 General purpose digital I/O pin. EBI_ADR13 O MFP2 EBI address bus bit 13. I2S0_DO O MFP4 I2S0 data output pin. SPI2_SS I/O MFP5 SPI2 slave select pin. USCI1_DAT1 I/O MFP6 USCI1 data 1 pin. UART3_RXD I MFP7 UART3 data receiver input pin. UART1_nCTS I MFP8 UART1 clear to Send input pin. EPWM0_CH3 I/O MFP10 EPWM0 channel 3 output/capture input. EPWM1_BRAKE1 I MFP11 EPWM1 Brake 1 input pin. ECAP1_IC2 I MFP13 Enhanced capture unit 1 input 2 pin. TRACE_DATA0 O MFP14 ETM Trace Data 0 output pin I/O MFP0 General purpose digital I/O pin. EBI_ADR14 O MFP2 EBI address bus bit 14. I2S0_LRCK O MFP4 I2S0 left right channel clock output pin. SPI2_I2SMCLK I/O MFP5 SPI2 I2S master clock output pin USCI1_CLK I/O MFP6 USCI1 clock pin. UART1_nRTS O MFP8 UART1 request to Send output pin. EPWM0_CH4 I/O MFP10 EPWM0 channel 4 output/capture input. ECAP1_IC1 I MFP13 Enhanced capture unit 1 input 1 pin. TRACE_CLK O MFP14 ETM Trace Clock output pin I/O MFP0 General purpose digital I/O pin. EBI_ADR15 O MFP2 EBI address bus bit 15. I2C0_SCL I/O MFP4 I2C0 clock pin. UART4_nRTS O MFP5 UART4 request to Send output pin. UART1_TXD O MFP8 UART1 data transmitter output pin. EPWM0_CH5 I/O MFP10 EPWM0 channel 5 output/capture input. EPWM1_CH0 I/O MFP11 EPWM1 channel 0 output/capture input. 44 PE.11 45 PE.12 46 PE.13 Oct.09 2019 Page 41 of 246 ® MFP NUMICRO M2351 SERIES DATASHEET Type Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP I/O MFP12 BPWM1 channel 5 output/capture input. I MFP13 Enhanced capture unit 1 input 0 pin. I/O MFP0 General purpose digital I/O pin. EBI_ADR16 O MFP2 EBI address bus bit 16. I2C0_SDA I/O MFP4 I2C0 data input/output pin. UART4_nCTS I MFP5 UART4 clear to Send input pin. UART1_RXD I MFP8 UART1 data receiver input pin. EPWM1_CH1 I/O MFP11 EPWM1 channel 1 output/capture input. BPWM1_CH4 I/O MFP12 BPWM1 channel 4 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD9 I/O MFP2 EBI address/data bus bit 9. SPI1_MISO I/O MFP4 SPI1 MISO (Master In, Slave Out) pin. UART4_TXD O MFP5 UART4 data transmitter output pin. SC2_PWR O MFP6 Smart Card 2 power pin. UART0_nCTS I MFP7 UART0 clear to Send input pin. I2C1_SMBAL O MFP8 I2C1 SMBus SMBALTER pin EPWM1_CH2 I/O MFP11 EPWM1 channel 2 output/capture input. BPWM1_CH0 I/O MFP12 BPWM1 channel 0 output/capture input. TM0 I/O MFP14 Timer0 event counter input/toggle output pin. INT3 I MFP15 External interrupt 3 input pin. I/O MFP0 General purpose digital I/O pin. EBI_AD8 I/O MFP2 EBI address/data bus bit 8. SPI1_MOSI I/O MFP4 SPI1 MOSI (Master Out, Slave In) pin. UART4_RXD I MFP5 UART4 data receiver input pin. SC2_RST O MFP6 Smart Card 2 reset pin. UART0_nRTS O MFP7 UART0 request to Send output pin. I2C1_SMBSUS O MFP8 I2C1 SMBus SMBSUS pin (PMBus CONTROL pin) EPWM1_CH3 I/O MFP11 EPWM1 channel 3 output/capture input. BPWM1_CH1 I/O MFP12 BPWM1 channel 1 output/capture input. TM1 I/O MFP14 Timer1 event counter input/toggle output pin. INT2 I MFP15 External interrupt 2 input pin. I/O MFP0 General purpose digital I/O pin. EBI_AD7 I/O MFP2 EBI address/data bus bit 7. SPI1_CLK I/O MFP4 SPI1 serial clock pin. BPWM1_CH5 ECAP1_IC0 47 PC.8 18 NUMICRO M2351 SERIES DATASHEET ® 19 F3 20 48 PC.7 49 PC.6 50 PA.7 Oct.09 2019 Description Page 42 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin G4 MFP Description SC2_DAT I/O MFP6 Smart Card 2 data pin. UART0_TXD O MFP7 UART0 data transmitter output pin. I2C1_SCL I/O MFP8 I2C1 clock pin. EPWM1_CH4 I/O MFP11 EPWM1 channel 4 output/capture input. BPWM1_CH2 I/O MFP12 BPWM1 channel 2 output/capture input. ACMP0_WLAT I MFP13 Analog comparator 0 window latch input pin TM2 I/O MFP14 Timer2 event counter input/toggle output pin. INT1 I MFP15 External interrupt 1 input pin. I/O MFP0 General purpose digital I/O pin. EBI_AD6 I/O MFP2 EBI address/data bus bit 6. SPI1_SS I/O MFP4 SPI1 slave select pin. SC2_CLK O MFP6 Smart Card 2 clock pin. UART0_RXD I MFP7 UART0 data receiver input pin. I2C1_SDA I/O MFP8 I2C1 data input/output pin. EPWM1_CH5 I/O MFP11 EPWM1 channel 5 output/capture input. BPWM1_CH3 I/O MFP12 BPWM1 channel 3 output/capture input. ACMP1_WLAT I MFP13 Analog comparator 1 window latch input pin TM3 I/O MFP14 Timer3 event counter input/toggle output pin. INT0 I MFP15 External interrupt 0 input pin. 51 PA.6 52 VSS P MFP0 Ground pin for digital circuit. 23 53 VDD P MFP0 Power supply for I/O ports and LDO source for internal PLL and digital circuit. 24 54 LDO_CAP P MFP0 LDO output pin. 25 55 PA.5 I/O MFP0 General purpose digital I/O pin. QSPI0_MISO1 I/O MFP3 Quad SPI0 MISO1 (Master In, Slave Out) pin. SPI1_I2SMCLK I/O MFP4 SPI1 I2S master clock output pin SC2_nCD I MFP6 Smart Card 2 card detect pin. UART0_nCTS I MFP7 UART0 clear to Send input pin. UART5_TXD O MFP8 UART5 data transmitter output pin. I2C0_SCL I/O MFP9 I2C0 clock pin. CAN0_TXD O MFP10 CAN0 bus transmitter output. BPWM0_CH5 I/O MFP12 BPWM0 channel 5 output/capture input. EPWM0_CH0 I/O MFP13 EPWM0 channel 0 output/capture input. QEI0_INDEX I MFP14 Quadrature encoder 0 index input Oct.09 2019 Page 43 of 246 Rev 1.02 ® 22 NUMICRO M2351 SERIES DATASHEET G5 21 Type NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin F4 26 Type MFP Description I/O MFP0 General purpose digital I/O pin. QSPI0_MOSI1 I/O MFP3 Quad SPI0 MOSI1 (Master Out, Slave In) pin. SPI0_I2SMCLK I/O MFP4 SPI0 I2S master clock output pin SC0_nCD I MFP6 Smart Card 0 card detect pin. UART0_nRTS O MFP7 UART0 request to Send output pin. UART5_RXD I MFP8 UART5 data receiver input pin. I2C0_SDA I/O MFP9 I2C0 data input/output pin. CAN0_RXD I MFP10 CAN0 bus receiver input. BPWM0_CH4 I/O MFP12 BPWM0 channel 4 output/capture input. EPWM0_CH1 I/O MFP13 EPWM0 channel 1 output/capture input. I MFP14 Quadrature encoder 0 phase A input I/O MFP0 General purpose digital I/O pin. QSPI0_SS I/O MFP3 Quad SPI0 slave select pin. SPI0_SS I/O MFP4 SPI0 slave select pin. SC0_PWR O MFP6 Smart Card 0 power pin. UART4_TXD O MFP7 UART4 data transmitter output pin. UART1_TXD O MFP8 UART1 data transmitter output pin. I2C1_SCL I/O MFP9 I2C1 clock pin. BPWM0_CH3 I/O MFP12 BPWM0 channel 3 output/capture input. EPWM0_CH2 I/O MFP13 EPWM0 channel 2 output/capture input. I MFP14 Quadrature encoder 0 phase B input I/O MFP0 General purpose digital I/O pin. QSPI0_CLK I/O MFP3 Quad SPI0 serial clock pin. SPI0_CLK I/O MFP4 SPI0 serial clock pin. SC0_RST O MFP6 Smart Card 0 reset pin. UART4_RXD I MFP7 UART4 data receiver input pin. UART1_RXD I MFP8 UART1 data receiver input pin. I2C1_SDA I/O MFP9 I2C1 data input/output pin. BPWM0_CH2 I/O MFP12 BPWM0 channel 2 output/capture input. EPWM0_CH3 I/O MFP13 EPWM0 channel 3 output/capture input. I/O MFP0 General purpose digital I/O pin. QSPI0_MISO0 I/O MFP3 Quad SPI0 MISO0 (Master In, Slave Out) pin. SPI0_MISO I/O MFP4 SPI0 MISO (Master In, Slave Out) pin. SC0_DAT I/O MFP6 Smart Card 0 data pin. 56 PA.4 QEI0_A 11 E4 27 57 PA.3 ® NUMICRO M2351 SERIES DATASHEET QEI0_B 12 G6 13 F5 28 29 58 PA.2 59 PA.1 Oct.09 2019 Page 44 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Description UART0_TXD O MFP7 UART0 data transmitter output pin. UART1_nCTS I MFP8 UART1 clear to Send input pin. I2C2_SCL I/O MFP9 I2C2 clock pin. BPWM0_CH1 I/O MFP12 BPWM0 channel 1 output/capture input. EPWM0_CH4 I/O MFP13 EPWM0 channel 4 output/capture input. I MFP15 DAC1 external trigger input. I/O MFP0 General purpose digital I/O pin. QSPI0_MOSI0 I/O MFP3 Quad SPI0 MOSI0 (Master Out, Slave In) pin. SPI0_MOSI I/O MFP4 SPI0 MOSI (Master Out, Slave In) pin. SC0_CLK O MFP6 Smart Card 0 clock pin. UART0_RXD I MFP7 UART0 data receiver input pin. UART1_nRTS O MFP8 UART1 request to Send output pin. I2C2_SDA I/O MFP9 I2C2 data input/output pin. BPWM0_CH0 I/O MFP12 BPWM0 channel 0 output/capture input. EPWM0_CH5 I/O MFP13 EPWM0 channel 5 output/capture input. I MFP15 DAC0 external trigger input. 61 VDDIO P MFP0 Power supply for PA.0~PA.5. 62 PE.14 I/O MFP0 General purpose digital I/O pin. EBI_AD8 I/O MFP2 EBI address/data bus bit 8. UART2_TXD O MFP3 UART2 data transmitter output pin. CAN0_TXD O MFP4 CAN0 bus transmitter output. I/O MFP0 General purpose digital I/O pin. I/O MFP2 EBI address/data bus bit 9. UART2_RXD I MFP3 UART2 data receiver input pin. CAN0_RXD I MFP4 CAN0 bus receiver input. I MFP0 External reset input: active LOW, with an internal pull-up. Set this pin low reset to initial state. I/O MFP0 General purpose digital I/O pin. UART1_TXD O MFP2 UART1 data transmitter output pin. I2C1_SCL I/O MFP3 I2C1 clock pin. BPWM1_CH0 I/O MFP12 BPWM1 channel 0 output/capture input. ICE_DAT O MFP14 Serial wired debugger data pin. I/O MFP0 General purpose digital I/O pin. I MFP2 UART1 data receiver input pin. DAC1_ST 14 E5 30 60 PA.0 DAC0_ST 15 F6 31 63 PE.15 EBI_AD9 16 G7 32 64 nRESET 17 33 65 PF.0 18 D5 E6 34 66 PF.1 UART1_RXD Oct.09 2019 Page 45 of 246 ® MFP NUMICRO M2351 SERIES DATASHEET Type Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP Description I2C1_SDA I/O MFP3 I2C1 data input/output pin. BPWM1_CH1 I/O MFP12 BPWM1 channel 1 output/capture input. I MFP14 Serial wired debugger clock pin. I/O MFP0 General purpose digital I/O pin. EBI_AD7 I/O MFP2 EBI address/data bus bit 7. I2C2_SCL I/O MFP3 I2C2 clock pin. I MFP4 UART2 clear to Send input pin. I/O MFP0 General purpose digital I/O pin. EBI_AD6 I/O MFP2 EBI address/data bus bit 6. I2C2_SDA I/O MFP3 I2C2 data input/output pin. UART2_nRTS O MFP4 UART2 request to Send output pin. I/O MFP0 General purpose digital I/O pin. EBI_AD5 I/O MFP2 EBI address/data bus bit 5. QSPI0_MISO1 I/O MFP4 Quad SPI0 MISO1 (Master In, Slave Out) pin. UART2_TXD O MFP8 UART2 data transmitter output pin. I2C1_SCL I/O MFP9 I2C1 clock pin. CAN0_TXD O MFP10 CAN0 bus transmitter output. UART4_TXD O MFP11 UART4 data transmitter output pin. EPWM1_CH0 I/O MFP12 EPWM1 channel 0 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD4 I/O MFP2 EBI address/data bus bit 4. QSPI0_MOSI1 I/O MFP4 Quad SPI0 MOSI1 (Master Out, Slave In) pin. SC1_nCD I MFP5 Smart Card 1 card detect pin. I2S0_BCLK O MFP6 I2S0 bit clock output pin. SPI1_I2SMCLK I/O MFP7 SPI1 I2S master clock output pin I MFP8 UART2 data receiver input pin. I2C1_SDA I/O MFP9 I2C1 data input/output pin. CAN0_RXD I MFP10 CAN0 bus receiver input. UART4_RXD I MFP11 UART4 data receiver input pin. EPWM1_CH1 I/O MFP12 EPWM1 channel 1 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD3 I/O MFP2 EBI address/data bus bit 3. QSPI0_SS I/O MFP4 Quad SPI0 slave select pin. SC1_PWR O MFP5 Smart Card 1 power pin. ICE_CLK 67 PD.9 UART2_nCTS 68 PD.8 D6 36 69 PC.5 70 PC.4 ® NUMICRO M2351 SERIES DATASHEET C6 35 UART2_RXD F7 37 71 PC.3 Oct.09 2019 Page 46 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin E7 38 MFP Description I2S0_MCLK O MFP6 I2S0 master clock output pin. SPI1_MISO I/O MFP7 SPI1 MISO (Master In, Slave Out) pin. UART2_nRTS O MFP8 UART2 request to Send output pin. I2C0_SMBAL O MFP9 I2C0 SMBus SMBALTER pin UART3_TXD O MFP11 UART3 data transmitter output pin. EPWM1_CH2 I/O MFP12 EPWM1 channel 2 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD2 I/O MFP2 EBI address/data bus bit 2. QSPI0_CLK I/O MFP4 Quad SPI0 serial clock pin. SC1_RST O MFP5 Smart Card 1 reset pin. I2S0_DI I MFP6 I2S0 data input pin. I/O MFP7 SPI1 MOSI (Master Out, Slave In) pin. UART2_nCTS I MFP8 UART2 clear to Send input pin. I2C0_SMBSUS O MFP9 I2C0 SMBus SMBSUS pin (PMBus CONTROL pin) UART3_RXD I MFP11 UART3 data receiver input pin. EPWM1_CH3 I/O MFP12 EPWM1 channel 3 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD1 I/O MFP2 EBI address/data bus bit 1. QSPI0_MISO0 I/O MFP4 Quad SPI0 MISO0 (Master In, Slave Out) pin. SC1_DAT I/O MFP5 Smart Card 1 data pin. I2S0_DO O MFP6 I2S0 data output pin. SPI1_CLK I/O MFP7 SPI1 serial clock pin. UART2_TXD O MFP8 UART2 data transmitter output pin. I2C0_SCL I/O MFP9 I2C0 clock pin. EPWM1_CH4 I/O MFP12 EPWM1 channel 4 output/capture input. ACMP0_O O MFP14 Analog comparator 0 output pin. I/O MFP0 General purpose digital I/O pin. EBI_AD0 I/O MFP2 EBI address/data bus bit 0. QSPI0_MOSI0 I/O MFP4 Quad SPI0 MOSI0 (Master Out, Slave In) pin. SC1_CLK O MFP5 Smart Card 1 clock pin. I2S0_LRCK O MFP6 I2S0 left right channel clock output pin. SPI1_SS I/O MFP7 SPI1 slave select pin. I MFP8 UART2 data receiver input pin. I/O MFP9 I2C0 data input/output pin. 72 PC.2 SPI1_MOSI 19 C7 39 40 73 PC.1 74 PC.0 UART2_RXD I2C0_SDA Oct.09 2019 Page 47 of 246 ® 20 D7 NUMICRO M2351 SERIES DATASHEET Type Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP EPWM1_CH5 I/O MFP12 EPWM1 channel 5 output/capture input. ACMP1_O O MFP14 Analog comparator 1 output pin. 75 VSS P MFP0 Ground pin for digital circuit. 76 VDD P MFP0 Power supply for I/O ports and LDO source for internal PLL and digital circuit. I/O MFP0 General purpose digital I/O pin. EBI_AD0 I/O MFP2 EBI address/data bus bit 0. BPWM0_CH5 I/O MFP12 BPWM0 channel 5 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD1 I/O MFP2 EBI address/data bus bit 1. BPWM0_CH4 I/O MFP12 BPWM0 channel 4 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD2 I/O MFP2 EBI address/data bus bit 2. BPWM0_CH3 I/O MFP12 BPWM0 channel 3 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD3 I/O MFP2 EBI address/data bus bit 3. BPWM0_CH2 I/O MFP12 BPWM0 channel 2 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD4 I/O MFP2 EBI address/data bus bit 4. BPWM0_CH1 I/O MFP12 BPWM0 channel 1 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_AD5 I/O MFP2 EBI address/data bus bit 5. BPWM0_CH0 I/O MFP12 BPWM0 channel 0 output/capture input. 83 PG.15 I/O MFP0 General purpose digital I/O pin. CLKO O MFP14 Clock Out EADC0_ST I MFP15 EADC0 external trigger input. I/O MFP0 General purpose digital I/O pin. UART1_TXD O MFP3 UART1 data transmitter output pin. I2C0_SCL I/O MFP4 I2C0 clock pin. SPI1_MISO I/O MFP5 SPI1 MISO (Master In, Slave Out) pin. USCI1_CLK I/O MFP6 USCI1 clock pin. SC1_PWR O MFP8 Smart Card 1 power pin. I/O MFP0 General purpose digital I/O pin. I MFP3 UART1 data receiver input pin. 77 PG.9 78 PG.10 79 PG.11 80 PG.12 81 PG.13 ® NUMICRO M2351 SERIES DATASHEET 82 PG.14 Description 84 PD.7 85 PD.6 UART1_RXD Oct.09 2019 Page 48 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Description I2C0_SDA I/O MFP4 I2C0 data input/output pin. SPI1_MOSI I/O MFP5 SPI1 MOSI (Master Out, Slave In) pin. USCI1_DAT1 I/O MFP6 USCI1 data 1 pin. SC1_RST O MFP8 Smart Card 1 reset pin. I/O MFP0 General purpose digital I/O pin. I2C1_SCL I/O MFP4 I2C1 clock pin. SPI1_CLK I/O MFP5 SPI1 serial clock pin. USCI1_DAT0 I/O MFP6 USCI1 data 0 pin. SC1_DAT I/O MFP8 Smart Card 1 data pin. I/O MFP0 General purpose digital I/O pin. USCI0_CTL0 I/O MFP3 USCI0 control 0 pin. I2C1_SDA I/O MFP4 I2C1 data input/output pin. SPI1_SS I/O MFP5 SPI1 slave select pin. USCI1_CTL1 I/O MFP6 USCI1 control 1 pin. SC1_CLK O MFP8 Smart Card 1 clock pin. USB_VBUS_ST I MFP14 USB external VBUS regulator status pin. I/O MFP0 General purpose digital I/O pin. EBI_AD10 I/O MFP2 EBI address/data bus bit 10. USCI0_CTL1 I/O MFP3 USCI0 control 1 pin. SPI0_SS I/O MFP4 SPI0 slave select pin. UART3_nRTS O MFP5 UART3 request to Send output pin. USCI1_CTL0 I/O MFP6 USCI1 control 0 pin. SC2_PWR O MFP7 Smart Card 2 power pin. SC1_nCD I MFP8 Smart Card 1 card detect pin. UART0_TXD O MFP9 UART0 data transmitter output pin. I/O MFP0 General purpose digital I/O pin. EBI_AD11 I/O MFP2 EBI address/data bus bit 11. USCI0_DAT1 I/O MFP3 USCI0 data 1 pin. SPI0_CLK I/O MFP4 SPI0 serial clock pin. UART3_nCTS I MFP5 UART3 clear to Send input pin. SC2_RST O MFP7 Smart Card 2 reset pin. UART0_RXD I MFP9 UART0 data receiver input pin. I/O MFP0 General purpose digital I/O pin. I/O MFP2 EBI address/data bus bit 12. 86 PD.5 87 PD.4 41 42 43 88 PD.3 89 PD.2 90 PD.1 EBI_AD12 Oct.09 2019 Page 49 of 246 ® MFP NUMICRO M2351 SERIES DATASHEET Type Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin 44 Type MFP Description USCI0_DAT0 I/O MFP3 USCI0 data 0 pin. SPI0_MISO I/O MFP4 SPI0 MISO (Master In, Slave Out) pin. UART3_TXD O MFP5 UART3 data transmitter output pin. I2C2_SCL I/O MFP6 I2C2 clock pin. SC2_DAT I/O MFP7 Smart Card 2 data pin. I/O MFP0 General purpose digital I/O pin. EBI_AD13 I/O MFP2 EBI address/data bus bit 13. USCI0_CLK I/O MFP3 USCI0 clock pin. SPI0_MOSI I/O MFP4 SPI0 MOSI (Master Out, Slave In) pin. I MFP5 UART3 data receiver input pin. I2C2_SDA I/O MFP6 I2C2 data input/output pin. SC2_CLK O MFP7 Smart Card 2 clock pin. TM2 I/O MFP14 Timer2 event counter input/toggle output pin. I/O MFP0 General purpose digital I/O pin. EBI_AD10 I/O MFP2 EBI address/data bus bit 10. SD0_nCD I MFP3 SD/SDIO0 card detect input pin SPI0_I2SMCLK I/O MFP4 SPI0 I2S master clock output pin SPI1_I2SMCLK I/O MFP5 SPI1 I2S master clock output pin I MFP7 Smart Card 2 card detect pin. I/O MFP0 General purpose digital I/O pin. I2S0_BCLK O MFP2 I2S0 bit clock output pin. UART4_TXD O MFP3 UART4 data transmitter output pin. I2C1_SCL I/O MFP4 I2C1 clock pin. SPI2_SS I/O MFP5 SPI2 slave select pin. CAN0_TXD O MFP6 CAN0 bus transmitter output. SC2_PWR O MFP7 Smart Card 2 power pin. BPWM1_CH2 I/O MFP11 BPWM1 channel 2 output/capture input. QEI1_INDEX I MFP12 Quadrature encoder 1 index input USB_VBUS P MFP14 Power supply from USB host or HUB. I/O MFP0 General purpose digital I/O pin. I2S0_MCLK O MFP2 I2S0 master clock output pin. UART4_RXD I MFP3 UART4 data receiver input pin. I2C1_SDA I/O MFP4 I2C1 data input/output pin. SPI2_CLK I/O MFP5 SPI2 serial clock pin. 91 PD.0 UART3_RXD 92 PD.13 21 B6 45 93 PA.12 ® NUMICRO M2351 SERIES DATASHEET SC2_nCD 22 B7 46 94 PA.13 Oct.09 2019 Page 50 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin 23 24 A6 A7 47 48 Description CAN0_RXD I MFP6 CAN0 bus receiver input. SC2_RST O MFP7 Smart Card 2 reset pin. BPWM1_CH3 I/O MFP11 BPWM1 channel 3 output/capture input. QEI1_A I MFP12 Quadrature encoder 1 phase A input USB_D- A MFP14 USB differential signal D-. I/O MFP0 General purpose digital I/O pin. I2S0_DI I MFP2 I2S0 data input pin. UART0_TXD O MFP3 UART0 data transmitter output pin. SPI2_MISO I/O MFP5 SPI2 MISO (Master In, Slave Out) pin. I2C2_SCL I/O MFP6 I2C2 clock pin. SC2_DAT I/O MFP7 Smart Card 2 data pin. BPWM1_CH4 I/O MFP11 BPWM1 channel 4 output/capture input. QEI1_B I MFP12 Quadrature encoder 1 phase B input USB_D+ A MFP14 USB differential signal D+. I/O MFP0 General purpose digital I/O pin. I2S0_DO O MFP2 I2S0 data output pin. UART0_RXD I MFP3 UART0 data receiver input pin. SPI2_MOSI I/O MFP5 SPI2 MOSI (Master Out, Slave In) pin. I2C2_SDA I/O MFP6 I2C2 data input/output pin. SC2_CLK O MFP7 Smart Card 2 clock pin. BPWM1_CH5 I/O MFP11 BPWM1 channel 5 output/capture input. EPWM0_SYNC_IN I MFP12 EPWM0 counter synchronous trigger input pin. USB_OTG_ID I MFP14 USB_ identification. I/O MFP0 General purpose digital I/O pin. SD0_CMD I/O MFP3 SD/SDIO0 command/response pin UART5_TXD O MFP8 UART5 data transmitter output pin. QEI1_INDEX I MFP11 Quadrature encoder 1 index input EPWM0_CH0 I/O MFP12 EPWM0 channel 0 output/capture input. BPWM0_CH5 I/O MFP13 BPWM0 channel 5 output/capture input. I/O MFP0 General purpose digital I/O pin. SD0_CLK O MFP3 SD/SDIO0 clock output pin SPI3_I2SMCLK I/O MFP5 SPI3 I2S master clock output pin I MFP6 Smart Card 0 card detect pin. I/O MFP7 USCI0 control 0 pin. 95 PA.14 96 PA.15 97 PE.7 98 PE.6 SC0_nCD USCI0_CTL0 Oct.09 2019 Page 51 of 246 ® MFP NUMICRO M2351 SERIES DATASHEET Type Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP Description UART5_RXD I MFP8 UART5 data receiver input pin. QEI1_A I MFP11 Quadrature encoder 1 phase A input EPWM0_CH1 I/O MFP12 EPWM0 channel 1 output/capture input. BPWM0_CH4 I/O MFP13 BPWM0 channel 4 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_nRD O MFP2 EBI read enable output pin. SD0_DAT3 I/O MFP3 SD/SDIO0 data line bit 3. SPI3_SS I/O MFP5 SPI3 slave select pin. SC0_PWR O MFP6 Smart Card 0 power pin. USCI0_CTL1 I/O MFP7 USCI0 control 1 pin. I MFP11 Quadrature encoder 1 phase B input EPWM0_CH2 I/O MFP12 EPWM0 channel 2 output/capture input. BPWM0_CH3 I/O MFP13 BPWM0 channel 3 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_nWR O MFP2 EBI write enable output pin. SD0_DAT2 I/O MFP3 SD/SDIO0 data line bit 2. SPI3_CLK I/O MFP5 SPI3 serial clock pin. SC0_RST O MFP6 Smart Card 0 reset pin. USCI0_DAT1 I/O MFP7 USCI0 data 1 pin. QEI0_INDEX I MFP11 Quadrature encoder 0 index input EPWM0_CH3 I/O MFP12 EPWM0 channel 3 output/capture input. BPWM0_CH2 I/O MFP13 BPWM0 channel 2 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_MCLK O MFP2 EBI external clock output pin. SD0_DAT1 I/O MFP3 SD/SDIO0 data line bit 1. SPI3_MISO I/O MFP5 SPI3 MISO (Master In, Slave Out) pin. SC0_DAT I/O MFP6 Smart Card 0 data pin. USCI0_DAT0 I/O MFP7 USCI0 data 0 pin. I MFP11 Quadrature encoder 0 phase A input EPWM0_CH4 I/O MFP12 EPWM0 channel 4 output/capture input. BPWM0_CH1 I/O MFP13 BPWM0 channel 1 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_ALE O MFP2 EBI address latch enable output pin. SD0_DAT0 I/O MFP3 SD/SDIO0 data line bit 0. 99 PE.5 QEI1_B 100 PE.4 ® NUMICRO M2351 SERIES DATASHEET 101 PE.3 QEI0_A 102 PE.2 Oct.09 2019 Page 52 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin MFP Description SPI3_MOSI I/O MFP5 SPI3 MOSI (Master Out, Slave In) pin. SC0_CLK O MFP6 Smart Card 0 clock pin. USCI0_CLK I/O MFP7 USCI0 clock pin. I MFP11 Quadrature encoder 0 phase B input EPWM0_CH5 I/O MFP12 EPWM0 channel 5 output/capture input. BPWM0_CH0 I/O MFP13 BPWM0 channel 0 output/capture input. 103 VSS P MFP0 Ground pin for digital circuit. 104 VDD P MFP0 Power supply for I/O ports and LDO source for internal PLL and digital circuit. 105 PE.1 I/O MFP0 General purpose digital I/O pin. EBI_AD10 I/O MFP2 EBI address/data bus bit 10. QSPI0_MISO0 I/O MFP3 Quad SPI0 MISO0 (Master In, Slave Out) pin. SC2_DAT I/O MFP4 Smart Card 2 data pin. I2S0_BCLK O MFP5 I2S0 bit clock output pin. SPI1_MISO I/O MFP6 SPI1 MISO (Master In, Slave Out) pin. UART3_TXD O MFP7 UART3 data transmitter output pin. I2C1_SCL I/O MFP8 I2C1 clock pin. I MFP9 UART4 clear to Send input pin. I/O MFP0 General purpose digital I/O pin. EBI_AD11 I/O MFP2 EBI address/data bus bit 11. QSPI0_MOSI0 I/O MFP3 Quad SPI0 MOSI0 (Master Out, Slave In) pin. SC2_CLK O MFP4 Smart Card 2 clock pin. I2S0_MCLK O MFP5 I2S0 master clock output pin. SPI1_MOSI I/O MFP6 SPI1 MOSI (Master Out, Slave In) pin. I MFP7 UART3 data receiver input pin. I2C1_SDA I/O MFP8 I2C1 data input/output pin. UART4_nRTS O MFP9 UART4 request to Send output pin. I/O MFP0 General purpose digital I/O pin. EBI_AD12 I/O MFP2 EBI address/data bus bit 12. QSPI0_CLK I/O MFP3 Quad SPI0 serial clock pin. SC2_PWR O MFP4 Smart Card 2 power pin. I2S0_DI I MFP5 I2S0 data input pin. SPI1_CLK I/O MFP6 SPI1 serial clock pin. UART3_nRTS O MFP7 UART3 request to Send output pin. QEI0_B UART4_nCTS 106 PE.0 ® NUMICRO M2351 SERIES DATASHEET Type UART3_RXD 107 PH.8 Oct.09 2019 Page 53 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP Description I2C1_SMBAL O MFP8 I2C1 SMBus SMBALTER pin I2C2_SCL I/O MFP9 I2C2 clock pin. UART1_TXD O MFP10 UART1 data transmitter output pin. I/O MFP0 General purpose digital I/O pin. EBI_AD13 I/O MFP2 EBI address/data bus bit 13. QSPI0_SS I/O MFP3 Quad SPI0 slave select pin. SC2_RST O MFP4 Smart Card 2 reset pin. I2S0_DO O MFP5 I2S0 data output pin. SPI1_SS I/O MFP6 SPI1 slave select pin. UART3_nCTS I MFP7 UART3 clear to Send input pin. I2C1_SMBSUS O MFP8 I2C1 SMBus SMBSUS pin (PMBus CONTROL pin) I2C2_SDA I/O MFP9 I2C2 data input/output pin. I MFP10 UART1 data receiver input pin. I/O MFP0 General purpose digital I/O pin. EBI_AD14 I/O MFP2 EBI address/data bus bit 14. QSPI0_MISO1 I/O MFP3 Quad SPI0 MISO1 (Master In, Slave Out) pin. SC2_nCD I MFP4 Smart Card 2 card detect pin. I2S0_LRCK O MFP5 I2S0 left right channel clock output pin. SPI1_I2SMCLK I/O MFP6 SPI1 I2S master clock output pin UART4_TXD O MFP7 UART4 data transmitter output pin. UART0_TXD O MFP8 UART0 data transmitter output pin. I/O MFP0 General purpose digital I/O pin. EBI_AD15 I/O MFP2 EBI address/data bus bit 15. QSPI0_MOSI1 I/O MFP3 Quad SPI0 MOSI1 (Master Out, Slave In) pin. UART4_RXD I MFP7 UART4 data receiver input pin. UART0_RXD I MFP8 UART0 data receiver input pin. EPWM0_CH5 I/O MFP11 EPWM0 channel 5 output/capture input. I/O MFP0 General purpose digital I/O pin. EBI_nCS0 O MFP2 EBI chip select 0 output pin. SPI3_I2SMCLK I/O MFP3 SPI3 I2S master clock output pin I MFP4 Smart Card 1 card detect pin. USCI0_CTL0 I/O MFP5 USCI0 control 0 pin. SPI0_I2SMCLK I/O MFP6 SPI0 I2S master clock output pin EPWM0_CH4 I/O MFP11 EPWM0 channel 4 output/capture input. 108 PH.9 UART1_RXD 109 PH.10 ® NUMICRO M2351 SERIES DATASHEET 110 PH.11 111 PD.14 SC1_nCD Oct.09 2019 Page 54 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP Description P MFP0 Ground pin for digital circuit. 25 D4 49 112 VSS 26 A5 50 113 Vsw 27 A4 51 114 VDD P MFP0 Power supply for I/O ports and LDO source for internal PLL and digital circuit. 28 B5 52 115 LDO_CAP A MFP0 LDO output pin. A3 53 116 PB.15 I/O MFP0 General purpose digital I/O pin. A MFP1 EADC0 channel 15 analog input. EBI_AD12 I/O MFP2 EBI address/data bus bit 12. SC1_PWR O MFP3 Smart Card 1 power pin. SPI0_SS I/O MFP4 SPI0 slave select pin. USCI0_CTL1 I/O MFP5 USCI0 control 1 pin. UART0_nCTS I MFP6 UART0 clear to Send input pin. UART3_TXD O MFP7 UART3 data transmitter output pin. I2C2_SMBAL O MFP8 I2C2 SMBus SMBALTER pin EPWM1_CH0 I/O MFP11 EPWM1 channel 0 output/capture input. TM0_EXT I/O MFP13 Timer0 external capture input/toggle output pin. USB_VBUS_EN O MFP14 USB external VBUS regulator enable pin. I/O MFP0 General purpose digital I/O pin. A MFP1 EADC0 channel 14 analog input. EBI_AD13 I/O MFP2 EBI address/data bus bit 13. SC1_RST O MFP3 Smart Card 1 reset pin. SPI0_CLK I/O MFP4 SPI0 serial clock pin. USCI0_DAT1 I/O MFP5 USCI0 data 1 pin. UART0_nRTS O MFP6 UART0 request to Send output pin. UART3_RXD I MFP7 UART3 data receiver input pin. I2C2_SMBSUS O MFP8 I2C2 SMBus SMBSUS pin (PMBus CONTROL pin) EPWM1_CH1 I/O MFP11 EPWM1 channel 1 output/capture input. TM1_EXT I/O MFP13 Timer1 external capture input/toggle output pin. CLKO O MFP14 Clock Out USB_VBUS_ST I MFP15 USB external VBUS regulator status pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH13 A MFP1 EADC0 channel 13 analog input. DAC1_OUT A MFP1 DAC1 channel analog output. ACMP0_P3 A MFP1 Analog comparator 0 positive input 3 pin. EADC0_CH15 29 C5 54 117 PB.14 ® NUMICRO M2351 SERIES DATASHEET EADC0_CH14 MFP0 30 B4 55 118 PB.13 Oct.09 2019 Page 55 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin 31 C4 MFP Description ACMP1_P3 A MFP1 Analog comparator 1 positive input 3 pin. EBI_AD14 I/O MFP2 EBI address/data bus bit 14. SC1_DAT I/O MFP3 Smart Card 1 data pin. SPI0_MISO I/O MFP4 SPI0 MISO (Master In, Slave Out) pin. USCI0_DAT0 I/O MFP5 USCI0 data 0 pin. UART0_TXD O MFP6 UART0 data transmitter output pin. UART3_nRTS O MFP7 UART3 request to Send output pin. I2C2_SCL I/O MFP8 I2C2 clock pin. EPWM1_CH2 I/O MFP11 EPWM1 channel 2 output/capture input. TM2_EXT I/O MFP13 Timer2 external capture input/toggle output pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH12 A MFP1 EADC0 channel 12 analog input. DAC0_OUT A MFP1 DAC0 channel analog output. ACMP0_P2 A MFP1 Analog comparator 0 positive input 2 pin. ACMP1_P2 A MFP1 Analog comparator 1 positive input 2 pin. EBI_AD15 I/O MFP2 EBI address/data bus bit 15. SC1_CLK O MFP3 Smart Card 1 clock pin. SPI0_MOSI I/O MFP4 SPI0 MOSI (Master Out, Slave In) pin. USCI0_CLK I/O MFP5 USCI0 clock pin. UART0_RXD I MFP6 UART0 data receiver input pin. UART3_nCTS I MFP7 UART3 clear to Send input pin. I2C2_SDA I/O MFP8 I2C2 data input/output pin. SD0_nCD I MFP9 SD/SDIO0 card detect input pin EPWM1_CH3 I/O MFP11 EPWM1 channel 3 output/capture input. TM3_EXT I/O MFP13 Timer3 external capture input/toggle output pin. 57 120 AVDD P MFP0 Power supply for internal analog circuit. 58 121 VREF A MFP0 ADC reference voltage input. 56 119 PB.12 ® NUMICRO M2351 SERIES DATASHEET Type 32 A2 Note: This pin needs to be connected with a 1uF capacitor. B3 59 122 AVSS P MFP0 Ground pin for analog circuit. 60 123 PB.11 I/O MFP0 General purpose digital I/O pin. EADC0_CH11 A MFP1 EADC0 channel 11 analog input. EBI_ADR16 O MFP2 EBI address bus bit 16. UART0_nCTS I MFP5 UART0 clear to Send input pin. UART4_TXD O MFP6 UART4 data transmitter output pin. Oct.09 2019 Page 56 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin MFP Description I2C1_SCL I/O MFP7 I2C1 clock pin. CAN0_TXD O MFP8 CAN0 bus transmitter output. SPI0_I2SMCLK I/O MFP9 SPI0 I2S master clock output pin BPWM1_CH0 I/O MFP10 BPWM1 channel 0 output/capture input. SPI3_CLK I/O MFP11 SPI3 serial clock pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH10 A MFP1 EADC0 channel 10 analog input. EBI_ADR17 O MFP2 EBI address bus bit 17. USCI1_CTL0 I/O MFP4 USCI1 control 0 pin. UART0_nRTS O MFP5 UART0 request to Send output pin. UART4_RXD I MFP6 UART4 data receiver input pin. I2C1_SDA I/O MFP7 I2C1 data input/output pin. CAN0_RXD I MFP8 CAN0 bus receiver input. BPWM1_CH1 I/O MFP10 BPWM1 channel 1 output/capture input. SPI3_SS I/O MFP11 SPI3 slave select pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH9 A MFP1 EADC0 channel 9 analog input. EBI_ADR18 O MFP2 EBI address bus bit 18. USCI1_CTL1 I/O MFP4 USCI1 control 1 pin. UART0_TXD O MFP5 UART0 data transmitter output pin. UART1_nCTS I MFP6 UART1 clear to Send input pin. I2C1_SMBAL O MFP7 I2C1 SMBus SMBALTER pin BPWM1_CH2 I/O MFP10 BPWM1 channel 2 output/capture input. SPI3_MISO I/O MFP11 SPI3 MISO (Master In, Slave Out) pin. I MFP13 External interrupt 7 input pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH8 A MFP1 EADC0 channel 8 analog input. EBI_ADR19 O MFP2 EBI address bus bit 19. USCI1_CLK I/O MFP4 USCI1 clock pin. UART0_RXD I MFP5 UART0 data receiver input pin. UART1_nRTS O MFP6 UART1 request to Send output pin. I2C1_SMBSUS O MFP7 I2C1 SMBus SMBSUS pin (PMBus CONTROL pin) BPWM1_CH3 I/O MFP10 BPWM1 channel 3 output/capture input. SPI3_MOSI I/O MFP11 SPI3 MOSI (Master Out, Slave In) pin. 61 124 PB.10 62 125 PB.9 C3 63 126 PB.8 Oct.09 2019 Page 57 of 246 ® INT7 NUMICRO M2351 SERIES DATASHEET Type Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 33 49 64 128 Pin Name Pin Pin Pin Pin Type MFP I MFP13 External interrupt 6 input pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH7 A MFP1 EADC0 channel 7 analog input. EBI_nWRL O MFP2 EBI low byte write enable output pin. USCI1_DAT0 I/O MFP4 USCI1 data 0 pin. UART1_TXD O MFP6 UART1 data transmitter output pin. EBI_nCS0 O MFP8 EBI chip select 0 output pin. BPWM1_CH4 I/O MFP10 BPWM1 channel 4 output/capture input. I MFP11 EPWM1 Brake 0 input pin. I/O MFP12 EPWM1 channel 4 output/capture input. INT5 I MFP13 External interrupt 5 input pin. USB_VBUS_ST I MFP14 USB external VBUS regulator status pin. ACMP0_O O MFP15 Analog comparator 0 output pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH6 A MFP1 EADC0 channel 6 analog input. EBI_nWRH O MFP2 EBI high byte write enable output pin USCI1_DAT1 I/O MFP4 USCI1 data 1 pin. UART1_RXD I MFP6 UART1 data receiver input pin. EBI_nCS1 O MFP8 EBI chip select 1 output pin. BPWM1_CH5 I/O MFP10 BPWM1 channel 5 output/capture input. I MFP11 EPWM1 Brake 1 input pin. I/O MFP12 EPWM1 channel 5 output/capture input. INT4 I MFP13 External interrupt 4 input pin. USB_VBUS_EN O MFP14 USB external VBUS regulator enable pin. ACMP1_O O MFP15 Analog comparator 1 output pin. INT6 A1 64 127 PB.7 EPWM1_BRAKE0 EPWM1_CH4 B2 1 128 PB.6 ® NUMICRO M2351 SERIES DATASHEET EPWM1_BRAKE1 EPWM1_CH5 Description M2351 Multi-function Summary Table Group Pin Name GPIO MFP Type ACMP0_N PB.3 MFP1 A PC.12 MFP14 O PC.1 MFP14 O PB.7 MFP15 O ACMP0_P0 PA.11 MFP1 A Analog comparator 0 positive input 0 pin. ACMP0_P1 PB.2 MFP1 A Analog comparator 0 positive input 1 pin. ACMP0_O Description Analog comparator 0 negative input pin. Analog comparator 0 output pin. ACMP0 Oct.09 2019 Page 58 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type ACMP0_P2 PB.12 MFP1 A Analog comparator 0 positive input 2 pin. ACMP0_P3 PB.13 MFP1 A Analog comparator 0 positive input 3 pin. ACMP0_WLAT PA.7 MFP13 I Analog comparator 0 window latch input pin ACMP1_N PB.5 MFP1 A Analog comparator 1 negative input pin. PB.6 MFP15 O PC.11 MFP14 O PC.0 MFP14 O ACMP1_P0 PA.10 MFP1 A Analog comparator 1 positive input 0 pin. ACMP1_P1 PB.4 MFP1 A Analog comparator 1 positive input 1 pin. ACMP1_P2 PB.12 MFP1 A Analog comparator 1 positive input 2 pin. ACMP1_P3 PB.13 MFP1 A Analog comparator 1 positive input 3 pin. ACMP1_WLAT PA.6 MFP13 I Analog comparator 1 window latch input pin PA.11 MFP9 I/O PA.0 MFP12 I/O PG.14 MFP12 I/O PE.2 MFP13 I/O PA.10 MFP9 I/O PA.1 MFP12 I/O PG.13 MFP12 I/O PE.3 MFP13 I/O PA.9 MFP9 I/O PA.2 MFP12 I/O PG.12 MFP12 I/O PE.4 MFP13 I/O PA.8 MFP9 I/O PA.3 MFP12 I/O PG.11 MFP12 I/O PE.5 MFP13 I/O PC.13 MFP9 I/O PF.5 MFP8 I/O PA.4 MFP12 I/O PG.10 MFP12 I/O PE.6 MFP13 I/O PD.12 MFP9 I/O ACMP1_O ACMP1 BPWM0_CH0 Description Analog comparator 1 output pin. BPWM0 channel 0 output/capture input. BPWM0_CH1 BPWM0 channel 1 output/capture input. ® NUMICRO M2351 SERIES DATASHEET BPWM0_CH2 BPWM0 channel 2 output/capture input. BPWM0 BPWM0_CH3 BPWM0_CH4 BPWM0_CH5 Oct.09 2019 BPWM0 channel 3 output/capture input. Page 59 of 246 BPWM0 channel 4 output/capture input. BPWM0 channel 5 output/capture input. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PF.4 MFP8 I/O PA.5 MFP12 I/O PG.9 MFP12 I/O PE.7 MFP13 I/O PF.3 MFP11 I/O PC.7 MFP12 I/O PF.0 MFP12 I/O PB.11 MFP10 I/O PF.2 MFP11 I/O PC.6 MFP12 I/O PF.1 MFP12 I/O PB.10 MFP10 I/O PA.7 MFP12 I/O PA.12 MFP11 I/O PB.9 MFP10 I/O PA.6 MFP12 I/O PA.13 MFP11 I/O PB.8 MFP10 I/O PC.8 MFP12 I/O PA.14 MFP11 I/O PB.7 MFP10 I/O PB.6 MFP10 I/O PE.13 MFP12 I/O PA.15 MFP11 I/O PD.10 MFP4 I PA.4 MFP10 I PE.15 MFP4 I PC.4 MFP10 I PA.13 MFP6 I PB.10 MFP8 I PD.11 MFP4 O PA.5 MFP10 O PE.14 MFP4 O PC.5 MFP10 O BPWM1_CH0 BPWM1 channel 0 output/capture input. BPWM1_CH1 BPWM1_CH2 Description BPWM1 channel 1 output/capture input. BPWM1 channel 2 output/capture input. BPWM1 BPWM1_CH3 NUMICRO M2351 SERIES DATASHEET BPWM1_CH4 BPWM1 channel 3 output/capture input. BPWM1 channel 4 output/capture input. ® BPWM1_CH5 CAN0_RXD BPWM1 channel 5 output/capture input. CAN0 bus receiver input. CAN0 CAN0_TXD Oct.09 2019 CAN0 bus transmitter output. Page 60 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group CLKO Pin Name GPIO MFP Type PA.12 MFP6 O PB.11 MFP8 O PC.13 MFP13 O PD.12 MFP13 O PG.15 MFP14 O PB.14 MFP14 O PB.12 MFP1 A PA.10 MFP14 I PA.0 MFP15 I PB.13 MFP1 A PA.11 MFP14 I PA.1 MFP15 I EADC0_CH0 PB.0 MFP1 A EADC0 channel 0 analog input. EADC0_CH1 PB.1 MFP1 A EADC0 channel 1 analog input. EADC0_CH2 PB.2 MFP1 A EADC0 channel 2 analog input. EADC0_CH3 PB.3 MFP1 A EADC0 channel 3 analog input. EADC0_CH4 PB.4 MFP1 A EADC0 channel 4 analog input. EADC0_CH5 PB.5 MFP1 A EADC0 channel 5 analog input. EADC0_CH6 PB.6 MFP1 A EADC0 channel 6 analog input. EADC0_CH7 PB.7 MFP1 A EADC0 channel 7 analog input. EADC0_CH8 PB.8 MFP1 A EADC0 channel 8 analog input. EADC0_CH9 PB.9 MFP1 A EADC0 channel 9 analog input. EADC0_CH10 PB.10 MFP1 A EADC0 channel 10 analog input. EADC0_CH11 PB.11 MFP1 A EADC0 channel 11 analog input. EADC0_CH12 PB.12 MFP1 A EADC0 channel 12 analog input. EADC0_CH13 PB.13 MFP1 A EADC0 channel 13 analog input. EADC0_CH14 PB.14 MFP1 A EADC0 channel 14 analog input. EADC0_CH15 PB.15 MFP1 A EADC0 channel 15 analog input. PC.13 MFP14 I PD.12 MFP14 I PF.5 MFP11 I PG.15 MFP15 I PC.0 MFP2 I/O PG.9 MFP2 I/O CLKO DAC0_OUT DAC0 Clock Out DAC0_ST DAC1_OUT DAC1 DAC1_ST Description DAC0 channel analog output. DAC0 external trigger input. DAC1 channel analog output. DAC1 external trigger input. ® NUMICRO M2351 SERIES DATASHEET EADC0 EADC0_ST EBI EADC0 external trigger input. EBI_AD0 Oct.09 2019 EBI address/data bus bit 0. Page 61 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PC.1 MFP2 I/O PG.10 MFP2 I/O PC.2 MFP2 I/O PG.11 MFP2 I/O PC.3 MFP2 I/O PG.12 MFP2 I/O PC.4 MFP2 I/O PG.13 MFP2 I/O PC.5 MFP2 I/O PG.14 MFP2 I/O PA.6 MFP2 I/O PD.8 MFP2 I/O PA.7 MFP2 I/O PD.9 MFP2 I/O PC.6 MFP2 I/O PE.14 MFP2 I/O PC.7 MFP2 I/O PE.15 MFP2 I/O PD.3 MFP2 I/O PD.13 MFP2 I/O PE.1 MFP2 I/O PD.2 MFP2 I/O PE.0 MFP2 I/O PD.1 MFP2 I/O PH.8 MFP2 I/O PB.15 MFP2 I/O PD.0 MFP2 I/O PH.9 MFP2 I/O PB.14 MFP2 I/O PH.10 MFP2 I/O PB.13 MFP2 I/O PH.11 MFP2 I/O PB.12 MFP2 I/O PB.5 MFP2 O EBI_AD1 EBI address/data bus bit 1. EBI_AD2 EBI address/data bus bit 2. EBI_AD3 EBI address/data bus bit 3. EBI_AD4 EBI address/data bus bit 4. EBI_AD5 EBI address/data bus bit 5. EBI_AD6 EBI address/data bus bit 6. EBI_AD7 EBI address/data bus bit 7. EBI_AD8 EBI address/data bus bit 8. EBI_AD9 EBI address/data bus bit 9. EBI address/data bus bit 10. ® NUMICRO M2351 SERIES DATASHEET EBI_AD10 Description EBI_AD11 EBI_AD12 EBI_AD13 EBI address/data bus bit 11. EBI_AD14 Oct.09 2019 EBI address/data bus bit 13. EBI address/data bus bit 14. EBI_AD15 EBI_ADR0 EBI address/data bus bit 12. EBI address/data bus bit 15. Page 62 of 246 EBI address bus bit 0. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PH.7 MFP2 O PB.4 MFP2 O PH.6 MFP2 O PB.3 MFP2 O PH.5 MFP2 O PB.2 MFP2 O PH.4 MFP2 O EBI_ADR4 PC.12 MFP2 O EBI address bus bit 4. EBI_ADR5 PC.11 MFP2 O EBI address bus bit 5. EBI_ADR6 PC.10 MFP2 O EBI address bus bit 6. EBI_ADR7 PC.9 MFP2 O EBI address bus bit 7. EBI_ADR8 PB.1 MFP2 O EBI address bus bit 8. EBI_ADR9 PB.0 MFP2 O EBI address bus bit 9. PC.13 MFP2 O PE.8 MFP2 O PG.2 MFP2 O PE.9 MFP2 O PG.3 MFP2 O PE.10 MFP2 O PG.4 MFP2 O PE.11 MFP2 O PF.11 MFP2 O PE.12 MFP2 O PF.10 MFP2 O PE.13 MFP2 O PF.9 MFP2 O PC.8 MFP2 O PB.11 MFP2 O PF.8 MFP2 O PB.10 MFP2 O PF.7 MFP2 O PB.9 MFP2 O PF.6 MFP2 O PB.8 MFP2 O EBI_ADR1 Description EBI address bus bit 1. EBI_ADR2 EBI address bus bit 2. EBI_ADR3 EBI address bus bit 3. EBI_ADR10 EBI address bus bit 10. EBI_ADR11 EBI address bus bit 11. EBI_ADR12 EBI address bus bit 12. NUMICRO M2351 SERIES DATASHEET EBI_ADR13 EBI address bus bit 13. ® EBI_ADR14 EBI address bus bit 14. EBI_ADR15 EBI_ADR16 EBI address bus bit 15. EBI_ADR17 EBI address bus bit 17. EBI_ADR18 EBI address bus bit 18. EBI_ADR19 Oct.09 2019 EBI address bus bit 16. EBI address bus bit 19. Page 63 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PA.8 MFP2 O PE.2 MFP2 O PA.9 MFP2 O PE.3 MFP2 O PD.12 MFP2 O PF.6 MFP7 O PF.3 MFP2 O PD.14 MFP2 O PB.7 MFP8 O PB.6 MFP8 O PD.11 MFP2 O PF.2 MFP2 O PD.10 MFP2 O PA.11 MFP2 O PE.5 MFP2 O PA.10 MFP2 O PE.4 MFP2 O EBI_nWRH PB.6 MFP2 O EBI high byte write enable output pin EBI_nWRL PB.7 MFP2 O EBI low byte write enable output pin. PA.10 MFP11 I PE.8 MFP12 I PA.9 MFP11 I PE.9 MFP12 I PA.8 MFP11 I PE.10 MFP12 I PC.10 MFP11 I PE.13 MFP13 I PC.11 MFP11 I PE.12 MFP13 I PC.12 MFP11 I PE.11 MFP13 I PB.5 MFP6 I/O PC.12 MFP4 I/O PF.3 MFP4 I/O EBI_ALE EBI address latch enable output pin. EBI_MCLK EBI_nCS0 EBI_nCS1 EBI_nCS2 Description EBI external clock output pin. EBI_nRD EBI chip select 0 output pin. EBI chip select 1 output pin. EBI chip select 2 output pin. EBI read enable output pin. EBI_nWR EBI write enable output pin. Enhanced capture unit 0 input 0 pin. ® NUMICRO M2351 SERIES DATASHEET ECAP0_IC0 ECAP0 ECAP0_IC1 Enhanced capture unit 0 input 1 pin. ECAP0_IC2 Enhanced capture unit 0 input 2 pin. ECAP1_IC0 ECAP1 Enhanced capture unit 1 input 0 pin. ECAP1_IC1 Enhanced capture unit 1 input 1 pin. ECAP1_IC2 I2C0 I2C0_SCL Oct.09 2019 Enhanced capture unit 1 input 2 pin. Page 64 of 246 I2C0 clock pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name I2C0_SDA GPIO MFP Type PE.13 MFP4 I/O PA.5 MFP9 I/O PC.1 MFP9 I/O PD.7 MFP4 I/O PB.4 MFP6 I/O PC.11 MFP4 I/O PF.2 MFP4 I/O PC.8 MFP4 I/O PA.4 MFP9 I/O PC.0 MFP9 I/O PD.6 MFP4 I/O PG.2 MFP4 O PC.3 MFP9 O PG.3 MFP4 O PC.2 MFP9 O PB.1 MFP9 I/O PG.2 MFP5 I/O PA.7 MFP8 I/O PA.3 MFP9 I/O PF.0 MFP3 I/O PC.5 MFP9 I/O PD.5 MFP4 I/O PA.12 MFP4 I/O PE.1 MFP8 I/O PB.11 MFP7 I/O PB.0 MFP9 I/O PG.3 MFP5 I/O PA.6 MFP8 I/O PA.2 MFP9 I/O PF.1 MFP3 I/O PC.4 MFP9 I/O PD.4 MFP4 I/O PA.13 MFP4 I/O PE.0 MFP8 I/O I2C0_SMBAL Description I2C0 data input/output pin. I2C0 SMBus SMBALTER pin I2C0_SMBSUS NUMICRO M2351 SERIES DATASHEET I2C1_SCL I2C0 SMBus SMBSUS pin (PMBus CONTROL pin) I2C1 clock pin. ® I2C1 I2C1_SDA Oct.09 2019 Page 65 of 246 I2C1 data input/output pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PB.10 MFP7 I/O PC.7 MFP8 O PH.8 MFP8 O PB.9 MFP7 O PC.6 MFP8 O PH.9 MFP8 O PB.8 MFP7 O PA.11 MFP7 I/O PA.1 MFP9 I/O PD.9 MFP3 I/O PD.1 MFP6 I/O PA.14 MFP6 I/O PH.8 MFP9 I/O PB.13 MFP8 I/O PA.10 MFP7 I/O PA.0 MFP9 I/O PD.8 MFP3 I/O PD.0 MFP6 I/O PA.15 MFP6 I/O PH.9 MFP9 I/O PB.12 MFP8 I/O I2C2_SMBAL PB.15 MFP8 O I2C2 SMBus SMBALTER pin I2C2_SMBSUS PB.14 MFP8 O I2C2 SMBus SMBSUS pin (PMBus CONTROL pin) PB.5 MFP10 O PF.10 MFP4 O PE.8 MFP4 O PC.4 MFP6 O PA.12 MFP2 O PE.1 MFP5 O PB.3 MFP10 I PF.8 MFP4 I PE.10 MFP4 I PC.2 MFP6 I PA.14 MFP2 I I2C1_SMBAL I2C1_SMBSUS I2C2_SCL I2C2 I2C2_SDA Description I2C1 SMBus SMBALTER pin I2C1 SMBus SMBSUS pin (PMBus CONTROL pin) I2C2 clock pin. I2C2 data input/output pin. ® NUMICRO M2351 SERIES DATASHEET I2S0_BCLK I2S0 I2S0_DI Oct.09 2019 I2S0 bit clock output pin. Page 66 of 246 I2S0 data input pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PH.8 MFP5 I PB.2 MFP10 O PF.7 MFP4 O PE.11 MFP4 O PC.1 MFP6 O PA.15 MFP2 O PH.9 MFP5 O PB.1 MFP10 O PF.6 MFP4 O PE.12 MFP4 O PC.0 MFP6 O PH.10 MFP5 O PB.4 MFP10 O PF.9 MFP4 O PE.9 MFP4 O PC.3 MFP6 O PA.13 MFP2 O PE.0 MFP5 O ICE_CLK PF.1 MFP14 I Serial wired debugger clock pin. ICE_DAT PF.0 MFP14 O Serial wired debugger data pin. PB.5 MFP15 I PA.6 MFP15 I PB.4 MFP15 I PA.7 MFP15 I PB.3 MFP15 I PC.6 MFP15 I PB.2 MFP15 I PC.7 MFP15 I PB.6 MFP13 I PA.8 MFP15 I PD.12 MFP15 I PB.7 MFP13 I PD.11 MFP15 I PB.8 MFP13 I I2S0_DO I2S0_LRCK Description I2S0 data output pin. I2S0_MCLK I2S0 left right channel clock output pin. I2S0 master clock output pin. NUMICRO M2351 SERIES DATASHEET ICE INT1 INT2 INT3 INT4 INT5 INT6 INT0 External interrupt 0 input pin. INT1 External interrupt 1 input pin. INT2 External interrupt 2 input pin. INT3 External interrupt 3 input pin. INT4 External interrupt 4 input pin. INT5 External interrupt 5 input pin. INT6 Oct.09 2019 ® INT0 External interrupt 6 input pin. Page 67 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type INT7 INT7 Description PD.10 MFP15 I PB.9 MFP13 I PB.1 MFP13 I PE.8 MFP11 I PB.0 MFP13 I PE.9 MFP11 I PB.5 MFP11 I/O PE.8 MFP10 I/O PA.5 MFP13 I/O PE.7 MFP12 I/O PB.4 MFP11 I/O PE.9 MFP10 I/O PA.4 MFP13 I/O PE.6 MFP12 I/O PB.3 MFP11 I/O PE.10 MFP10 I/O PA.3 MFP13 I/O PE.5 MFP12 I/O PB.2 MFP11 I/O PE.11 MFP10 I/O PA.2 MFP13 I/O PE.4 MFP12 I/O PB.1 MFP11 I/O PE.12 MFP10 I/O PA.1 MFP13 I/O PE.3 MFP12 I/O PD.14 MFP11 I/O PB.0 MFP11 I/O PE.13 MFP10 I/O PA.0 MFP13 I/O PE.2 MFP12 I/O PH.11 MFP11 I/O PA.15 MFP12 I EPWM0 counter synchronous trigger input pin. EPWM0_SYNC_OUT PA.11 MFP10 O EPWM0 counter synchronous trigger output External interrupt 7 input pin. EPWM0_BRAKE0 EPWM0 Brake 0 input pin. EPWM0_BRAKE1 EPWM0 Brake 1 input pin. EPWM0_CH0 EPWM0 channel 0 output/capture input. EPWM0_CH1 EPWM0 channel 1 output/capture input. EPWM0_CH2 EPWM0 channel 2 output/capture input. EPWM0 EPWM0 channel 3 output/capture input. ® NUMICRO M2351 SERIES DATASHEET EPWM0_CH3 EPWM0_CH4 EPWM0_CH5 EPWM0_SYNC_IN Oct.09 2019 Page 68 of 246 PWM0 channel 4 output/capture input. EPWM0 channel 5 output/capture input. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PF.5 MFP9 O PE.10 MFP11 I PB.7 MFP11 I PB.6 MFP11 I PE.11 MFP11 I PC.12 MFP12 I/O PE.13 MFP11 I/O PC.5 MFP12 I/O PB.15 MFP11 I/O PC.11 MFP12 I/O PC.8 MFP11 I/O PC.4 MFP12 I/O PB.14 MFP11 I/O PC.10 MFP12 I/O PC.7 MFP11 I/O PC.3 MFP12 I/O PB.13 MFP11 I/O PC.9 MFP12 I/O PC.6 MFP11 I/O PC.2 MFP12 I/O PB.12 MFP11 I/O PB.1 MFP12 I/O PA.7 MFP11 I/O PC.1 MFP12 I/O PB.7 MFP12 I/O PB.6 MFP12 I/O PB.0 MFP12 I/O PA.6 MFP11 I/O PC.0 MFP12 I/O PD.11 MFP10 I PA.4 MFP14 I PE.3 MFP11 I PD.10 MFP10 I PA.3 MFP14 I EPWM1_BRAKE0 pin. EPWM1 Brake 0 input pin. EPWM1_BRAKE1 EPWM1 Brake 1 input pin. PWM1_CH0 EPWM1 channel 0 output/capture input. EPWM1_CH1 PWM1 Description PWM1 channel 1 output/capture input. EPWM1_CH2 EPWM1 channel 2 output/capture input. EPWM1 channel 3 output/capture input. ® NUMICRO M2351 SERIES DATASHEET EPWM1_CH3 EPWM1_CH4 EPWM1 channel 4 output/capture input. EPWM1_CH5 QEI0_A QEI0 EPWM1 channel 5 output/capture input. QEI0_B Oct.09 2019 Quadrature encoder 0 phase A input Quadrature encoder 0 phase B input Page 69 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name QEI0_INDEX QEI1_A QEI1 QEI1_B QEI1_INDEX GPIO MFP Type PE.2 MFP11 I PD.12 MFP10 I PA.5 MFP14 I PE.4 MFP11 I PA.9 MFP10 I PA.13 MFP12 I PE.6 MFP11 I PA.8 MFP10 I PA.14 MFP12 I PE.5 MFP11 I PA.10 MFP10 I PA.12 MFP12 I PE.7 MFP11 I PB.5 MFP9 O PF.6 MFP3 O PA.0 MFP6 O PE.2 MFP6 O PB.4 MFP9 I/O PF.7 MFP3 I/O PA.1 MFP6 I/O PE.3 MFP6 I/O PB.2 MFP9 O PF.9 MFP3 O PA.3 MFP6 O PE.5 MFP6 O PB.3 MFP9 O PF.8 MFP3 O PA.2 MFP6 O PE.4 MFP6 O PC.12 MFP9 I PF.10 MFP3 I PA.4 MFP6 I PE.6 MFP6 I PC.0 MFP5 O SC0_CLK Description Quadrature encoder 0 index input Quadrature encoder 1 phase A input Quadrature encoder 1 phase B input Quadrature encoder 1 index input Smart Card 0 clock pin. Smart Card 0 data pin. ® NUMICRO M2351 SERIES DATASHEET SC0_DAT SC0 SC0_PWR Smart Card 0 power pin. SC0_RST Smart Card 0 reset pin. SC0_nCD SC1 SC1_CLK Oct.09 2019 Smart Card 0 card detect pin. Page 70 of 246 Smart Card 1 clock pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name SC1_DAT SC1_PWR SC1_RST SC1_nCD SC2_CLK Type PD.4 MFP8 O PB.12 MFP3 O PC.1 MFP5 I/O PD.5 MFP8 I/O PB.13 MFP3 I/O PC.3 MFP5 O PD.7 MFP8 O PB.15 MFP3 O PC.2 MFP5 O PD.6 MFP8 O PB.14 MFP3 O PC.4 MFP5 I PD.3 MFP8 I PD.14 MFP4 I PA.8 MFP3 O PA.6 MFP6 O PD.0 MFP7 O PA.15 MFP7 O PE.0 MFP4 O PA.9 MFP3 I/O PA.7 MFP6 I/O PD.1 MFP7 I/O PA.14 MFP7 I/O PE.1 MFP4 I/O PA.11 MFP3 O PC.7 MFP6 O PD.3 MFP7 O PA.12 MFP7 O PH.8 MFP4 O PA.10 MFP3 O PC.6 MFP6 O PD.2 MFP7 O PA.13 MFP7 O PH.9 MFP4 O Description Smart Card 1 data pin. Smart Card 1 power pin. Smart Card 1 reset pin. Smart Card 1 card detect pin. Smart Card 2 clock pin. ® MFP NUMICRO M2351 SERIES DATASHEET GPIO SC2_DAT Smart Card 2 data pin. SC2 SC2_PWR SC2_RST Oct.09 2019 Page 71 of 246 Smart Card 2 power pin. Smart Card 2 reset pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PC.13 MFP3 I PA.5 MFP6 I PD.13 MFP7 I PH.10 MFP4 I PB.1 MFP3 O PE.6 MFP3 O PB.0 MFP3 I/O PE.7 MFP3 I/O PB.2 MFP3 I/O PE.2 MFP3 I/O PB.3 MFP3 I/O PE.3 MFP3 I/O PB.4 MFP3 I/O PE.4 MFP3 I/O PB.5 MFP3 I/O PE.5 MFP3 I/O PD.13 MFP3 I PB.12 MFP9 I PF.2 MFP5 I/O PA.2 MFP3 I/O PC.2 MFP4 I/O PH.8 MFP3 I/O PA.1 MFP3 I/O PC.1 MFP4 I/O PE.1 MFP3 I/O PA.5 MFP3 I/O PC.5 MFP4 I/O PH.10 MFP3 I/O PA.0 MFP3 I/O PC.0 MFP4 I/O PE.0 MFP3 I/O PA.4 MFP3 I/O PC.4 MFP4 I/O PH.11 MFP3 I/O SC2_nCD Smart Card 2 card detect pin. SD0_CLK SD/SDIO0 clock output pin SD0_CMD SD/SDIO0 command/response pin SD0_DAT0 SD0 Description SD/SDIO0 data line bit 0. SD0_DAT1 SD/SDIO0 data line bit 1. SD0_DAT2 SD/SDIO0 data line bit 2. SD0_DAT3 SD/SDIO0 data line bit 3. SD0_nCD SD/SDIO0 card detect input pin Quad SPI0 serial clock pin. ® NUMICRO M2351 SERIES DATASHEET QSPI0_CLK QSPI0_MISO0 Quad SPI0 MISO0 (Master In, Slave Out) pin. QSPI0 QSPI0_MISO1 QSPI0_MOSI0 QSPI0_MOSI1 Oct.09 2019 Page 72 of 246 Quad SPI0 MISO1 (Master In, Slave Out) pin. Quad SPI0 MOSI0 (Master Out, Slave In) pin. Quad SPI0 MOSI1 (Master Out, Slave In) pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name QSPI0_SS GPIO MFP Type PA.3 MFP3 I/O PC.3 MFP4 I/O PH.9 MFP3 I/O PF.8 MFP5 I/O PA.2 MFP4 I/O PD.2 MFP4 I/O PB.14 MFP4 I/O PB.0 MFP8 I/O PF.10 MFP5 I/O PA.4 MFP4 I/O PD.13 MFP4 I/O PD.14 MFP6 I/O PB.11 MFP9 I/O PF.7 MFP5 I/O PA.1 MFP4 I/O PD.1 MFP4 I/O PB.13 MFP4 I/O PF.6 MFP5 I/O PA.0 MFP4 I/O PD.0 MFP4 I/O PB.12 MFP4 I/O PF.9 MFP5 I/O PA.3 MFP4 I/O PD.3 MFP4 I/O PB.15 MFP4 I/O PB.3 MFP5 I/O PH.6 MFP3 I/O PA.7 MFP4 I/O PC.1 MFP7 I/O PD.5 MFP5 I/O PH.8 MFP6 I/O PB.1 MFP5 I/O PA.5 MFP4 I/O PC.4 MFP7 I/O SPI0_CLK Description Quad SPI0 slave select pin. SPI0 serial clock pin. SPI0_I2SMCLK SPI0 I2S master clock output pin SPI0 SPI0_MISO SPI0 MISO (Master In, Slave Out) pin. SPI0 MOSI (Master Out, Slave In) pin. ® NUMICRO M2351 SERIES DATASHEET SPI0 _MOSI SPI0_SS SPI0 slave select pin. SPI1_CLK SPI1 SPI1_I2SMCLK Oct.09 2019 SPI1 serial clock pin. Page 73 of 246 SPI1 I2S master clock output pin Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PD.13 MFP5 I/O PH.10 MFP6 I/O PB.5 MFP5 I/O PH.4 MFP3 I/O PC.7 MFP4 I/O PC.3 MFP7 I/O PD.7 MFP5 I/O PE.1 MFP6 I/O PB.4 MFP5 I/O PH.5 MFP3 I/O PC.6 MFP4 I/O PC.2 MFP7 I/O PD.6 MFP5 I/O PE.0 MFP6 I/O PB.2 MFP5 I/O PH.7 MFP3 I/O PA.6 MFP4 I/O PC.0 MFP7 I/O PD.4 MFP5 I/O PH.9 MFP6 I/O PA.10 MFP4 I/O PG.3 MFP3 I/O PE.8 MFP5 I/O PA.13 MFP5 I/O PC.13 MFP4 I/O PE.12 MFP5 I/O PA.9 MFP4 I/O PG.4 MFP3 I/O PE.9 MFP5 I/O PA.14 MFP5 I/O PA.8 MFP4 I/O PF.11 MFP3 I/O PE.10 MFP5 I/O PA.15 MFP5 I/O SPI1_MISO Description SPI1 MISO (Master In, Slave Out) pin. SPI1_MOSI SPI1 MOSI (Master Out, Slave In) pin. SPI1_SS SPI1 slave select pin. ® NUMICRO M2351 SERIES DATASHEET SPI2_CLK SPI2 serial clock pin. SPI2_I2SMCLK SPI2 I2S master clock output pin SPI2 SPI2_MISO SPI2 MISO (Master In, Slave Out) pin. SPI2_MOSI Oct.09 2019 SPI2 MOSI (Master Out, Slave In) pin. Page 74 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PA.11 MFP4 I/O PG.2 MFP3 I/O PE.11 MFP5 I/O PA.12 MFP5 I/O PC.10 MFP6 I/O PE.4 MFP5 I/O PB.11 MFP11 I/O PB.1 MFP6 I/O PE.6 MFP5 I/O PD.14 MFP3 I/O PC.12 MFP6 I/O PE.3 MFP5 I/O PB.9 MFP11 I/O PC.11 MFP6 I/O PE.2 MFP5 I/O PB.8 MFP11 I/O PC.9 MFP6 I/O PE.5 MFP5 I/O PB.10 MFP11 I/O SPI2_SS SPI3_CLK SPI3_I2SMCLK SPI3 SPI3_MISO SPI3_MOSI SPI3_SS Description SPI2 slave select pin. SPI3 serial clock pin. SPI3 I2S master clock output pin SPI3 MISO (Master In, Slave Out) pin. SPI3 MOSI (Master Out, Slave In) pin. SPI3 slave select pin. PF.6 MFP10 I/O TAMPER detector loop pin 0. TAMPER1 TAMPER1 PF.7 MFP10 I/O TAMPER detector loop pin 1. TAMPER2 TAMPER2 PF.8 MFP10 I/O TAMPER detector loop pin 2. TAMPER3 TAMPER3 PF.9 MFP10 I/O TAMPER detector loop pin 3. TAMPER4 TAMPER4 PF.10 MFP10 I/O TAMPER detector loop pin 4. TAMPER5 TAMPER5 PF.11 MFP10 I/O TAMPER detector loop pin 5. PB.5 MFP14 I/O PG.2 MFP13 I/O PC.7 MFP14 I/O PA.11 MFP13 I/O PB.15 MFP13 I/O PB.4 MFP14 I/O PG.3 MFP13 I/O PC.6 MFP14 I/O PA.10 MFP13 I/O TM0 TM0 TM0_EXT TM1 ® TAMPER0 Timer0 event counter input/toggle output pin. Timer0 external capture input/toggle output pin. Timer1 event counter input/toggle output pin. TM1 TM1_EXT Oct.09 2019 Page 75 of 246 NUMICRO M2351 SERIES DATASHEET TAMPER0 Timer1 external capture input/toggle output Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PB.14 MFP13 I/O PB.3 MFP14 I/O PG.4 MFP13 I/O PA.7 MFP14 I/O PD.0 MFP14 I/O PA.9 MFP13 I/O PB.13 MFP13 I/O PB.2 MFP14 I/O PF.11 MFP13 I/O PA.6 MFP14 I/O PA.8 MFP13 I/O PB.12 MFP13 I/O TRACE_CLK PE.12 MFP14 O ETM Trace Clock output pin TRACE_DATA0 PE.11 MFP14 O ETM Trace Data 0 output pin TRACE_DATA1 PE.10 MFP14 O ETM Trace Data 1 output pin TRACE_DATA2 PE.9 MFP14 O ETM Trace Data 2 output pin TRACE_DATA3 PE.8 MFP14 O ETM Trace Data 3 output pin PC.11 MFP3 I PF.2 MFP3 I PA.6 MFP7 I PA.0 MFP7 I PD.2 MFP9 I PA.15 MFP3 I PH.11 MFP8 I PB.12 MFP6 I PB.8 MFP5 I PC.12 MFP3 O PF.3 MFP3 O PA.7 MFP7 O PA.1 MFP7 O PD.3 MFP9 O PA.14 MFP3 O PH.10 MFP8 O PB.13 MFP6 O TM2 Description pin. Timer2 event counter input/toggle output pin. TM2 TM2_EXT TM3 TM3 TM3_EXT TRACE Timer2 external capture input/toggle output pin. Timer3 event counter input/toggle output pin. Timer3 external capture input/toggle output pin. ® NUMICRO M2351 SERIES DATASHEET UART0_RXD UART0 UART0_TXD Oct.09 2019 UART0 data receiver input pin. UART0 data transmitter output pin. Page 76 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PB.9 MFP5 O PC.7 MFP7 I PA.5 MFP7 I PB.15 MFP6 I PB.11 MFP5 I PC.6 MFP7 O PA.4 MFP7 O PB.14 MFP6 O PB.10 MFP5 O PB.6 MFP6 I PB.2 MFP6 I PA.8 MFP7 I PD.10 MFP3 I PC.8 MFP8 I PA.2 MFP8 I PF.1 MFP2 I PD.6 MFP3 I PH.9 MFP10 I PB.3 MFP6 O PA.9 MFP7 O PD.11 MFP3 O PE.13 MFP8 O PA.3 MFP8 O PF.0 MFP2 O PD.7 MFP3 O PH.8 MFP10 O PB.7 MFP6 O PE.11 MFP8 I PA.1 MFP8 I PB.9 MFP6 I PE.12 MFP8 O PA.0 MFP8 O PB.8 MFP6 O PB.0 MFP7 I UART0_nCTS UART0 clear to Send input pin. UART0_nRTS UART1_RXD Description UART0 request to Send output pin. UART1 data receiver input pin. NUMICRO M2351 SERIES DATASHEET ® UART1 UART1_TXD UART1_nCTS UART1_nRTS UART2 UART2_RXD Oct.09 2019 Page 77 of 246 UART1 data transmitter output pin. UART1 clear to Send input pin. UART1 request to Send output pin. UART2 data receiver input pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name UART2_TXD UART2_nCTS UART2_nRTS MFP Type PD.12 MFP7 I PF.5 MFP2 I PE.9 MFP7 I PE.15 MFP3 I PC.4 MFP8 I PC.0 MFP8 I PB.1 MFP7 O PC.13 MFP7 O PF.4 MFP2 O PE.8 MFP7 O PE.14 MFP3 O PC.5 MFP8 O PC.1 MFP8 O PF.5 MFP4 I PD.9 MFP4 I PC.2 MFP8 I PF.4 MFP4 O PD.8 MFP4 O PC.3 MFP8 O PC.9 MFP7 I PE.11 MFP7 I PC.2 MFP11 I PD.0 MFP5 I PE.0 MFP7 I PB.14 MFP7 I PC.10 MFP7 O PE.10 MFP7 O PC.3 MFP11 O PD.1 MFP5 O PE.1 MFP7 O PB.15 MFP7 O PD.2 MFP5 I PH.9 MFP7 I PB.12 MFP7 I Description UART2 data transmitter output pin. UART2 clear to Send input pin. UART2 request to Send output pin. ® NUMICRO M2351 SERIES DATASHEET GPIO UART3_RXD UART3 UART3 data receiver input pin. UART3_TXD UART3_nCTS Oct.09 2019 UART3 data transmitter output pin. Page 78 of 246 UART3 clear to Send input pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PD.3 MFP5 O PH.8 MFP7 O PB.13 MFP7 O PF.6 MFP6 I PC.6 MFP5 I PA.2 MFP7 I PC.4 MFP11 I PA.13 MFP3 I PH.11 MFP7 I PB.10 MFP6 I PF.7 MFP6 O PC.7 MFP5 O PA.3 MFP7 O PC.5 MFP11 O PA.12 MFP3 O PH.10 MFP7 O PB.11 MFP6 O PC.8 MFP5 I PE.1 MFP9 I PE.13 MFP5 O PE.0 MFP9 O PB.4 MFP7 I PA.4 MFP8 I PE.6 MFP8 I PB.5 MFP7 O PA.5 MFP8 O PE.7 MFP8 O UART5_nCTS PB.2 MFP7 I UART5 clear to Send input pin. UART5_nRTS PB.3 MFP7 O UART5 request to Send output pin. USB_D+ PA.14 MFP14 A USB differential signal D+. USB_D- PA.13 MFP14 A USB differential signal D-. USB_OTG_ID PA.15 MFP14 I USB_ identification. USB_VBUS PA.12 MFP14 P Power supply from USB host or HUB. USB_VBUS_EN PB.6 MFP14 O USB external VBUS regulator enable pin. UART3_nRTS UART4_RXD Description UART3 request to Send output pin. UART4 data receiver input pin. UART4 UART4_TXD UART4_nCTS UART4 data transmitter output pin. UART4 clear to Send input pin. NUMICRO M2351 SERIES DATASHEET UART4_nRTS UART4 request to Send output pin. ® UART5_RXD UART5 data receiver input pin. UART5 UART5_TXD USB Oct.09 2019 Page 79 of 246 UART5 data transmitter output pin. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name USB_VBUS_ST GPIO MFP Type PB.15 MFP14 O PD.4 MFP14 I PB.14 MFP15 I PB.7 MFP14 I PA.11 MFP6 I/O PD.0 MFP3 I/O PE.2 MFP7 I/O PB.12 MFP5 I/O PC.13 MFP6 I/O PD.4 MFP3 I/O PE.6 MFP7 I/O PD.14 MFP5 I/O PA.8 MFP6 I/O PD.3 MFP3 I/O PE.5 MFP7 I/O PB.15 MFP5 I/O PA.10 MFP6 I/O PD.1 MFP3 I/O PE.3 MFP7 I/O PB.13 MFP5 I/O PA.9 MFP6 I/O PD.2 MFP3 I/O PE.4 MFP7 I/O PB.14 MFP5 I/O PB.1 MFP8 I/O PE.12 MFP6 I/O PD.7 MFP6 I/O PB.8 MFP4 I/O PB.5 MFP8 I/O PE.9 MFP6 I/O PD.3 MFP6 I/O PB.10 MFP4 I/O PB.4 MFP8 I/O PE.8 MFP6 I/O USCI0_CLK USB external VBUS regulator status pin. USCI0 clock pin. USCI0_CTL0 USCI0 Description USCI0 control 0 pin. USCI0_CTL1 USCI0 control 1 pin. USCI0_DAT0 USCI0 data 0 pin. ® NUMICRO M2351 SERIES DATASHEET USCI0_DAT1 USCI0 data 1 pin. USCI1_CLK USCI1 clock pin. USCI1 USCI1_CTL0 USCI1 control 0 pin. USCI1_CTL1 Oct.09 2019 USCI1 control 1 pin. Page 80 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Group Pin Name GPIO MFP Type PD.4 MFP6 I/O PB.9 MFP4 I/O PB.2 MFP8 I/O PE.10 MFP6 I/O PD.5 MFP6 I/O PB.7 MFP4 I/O PB.6 MFP4 I/O PB.3 MFP8 I/O PE.11 MFP6 I/O PD.6 MFP6 I/O X32_IN PF.5 MFP10 I External 32.768 kHz crystal input pin. X32_OUT PF.4 MFP10 O External 32.768 kHz crystal output pin. XT1_IN PF.3 MFP10 I External 4~24 MHz (high speed) crystal input pin. XT1_OUT PF.2 MFP10 O External 4~24 MHz (high speed) crystal output pin. USCI1_DAT0 Description USCI1 data 0 pin. USCI1_DAT1 USCI1 data 1 pin. X32 XT1 ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 81 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 4.7 M2351 Multi-function Summary Table Sorted by GPIO Pin Name Type MFP Description PA.0 I/O MFP0 General purpose digital I/O pin. QSPI0_MOSI0 I/O MFP3 Quad SPI0 MOSI0 (Master Out, Slave In) pin. SPI0_MOSI I/O MFP4 SPI0 MOSI (Master Out, Slave In) pin. SC0_CLK O MFP6 Smart Card 0 clock pin. UART0_RXD I MFP7 UART0 data receiver input pin. UART1_nRTS O MFP8 UART1 request to Send output pin. I2C2_SDA I/O MFP9 I2C2 data input/output pin. BPWM0_CH0 I/O MFP12 BPWM0 channel 0 output/capture input. EPWM0_CH5 I/O MFP13 EPWM0 channel 5 output/capture input. I MFP15 DAC0 external trigger input. PA.1 I/O MFP0 General purpose digital I/O pin. QSPI0_MISO0 I/O MFP3 Quad SPI0 MISO0 (Master In, Slave Out) pin. SPI0_MISO I/O MFP4 SPI0 MISO (Master In, Slave Out) pin. SC0_DAT I/O MFP6 Smart Card 0 data pin. UART0_TXD O MFP7 UART0 data transmitter output pin. UART1_nCTS I MFP8 UART1 clear to Send input pin. I2C2_SCL I/O MFP9 I2C2 clock pin. BPWM0_CH1 I/O MFP12 BPWM0 channel 1 output/capture input. EPWM0_CH4 I/O MFP13 EPWM0 channel 4 output/capture input. I MFP15 DAC1 external trigger input. PA.2 I/O MFP0 General purpose digital I/O pin. QSPI0_CLK I/O MFP3 Quad SPI0 serial clock pin. SPI0_CLK I/O MFP4 SPI serial clock pin. SC0_RST O MFP6 Smart Card 0 reset pin. UART4_RXD I MFP7 UART4 data receiver input pin. UART1_RXD I MFP8 UART1 data receiver input pin. I2C1_SDA I/O MFP9 I2C1 data input/output pin. BPWM0_CH2 I/O MFP12 BPWM0 channel 2 output/capture input. EPWM0_CH3 I/O MFP13 EPWM0 channel 3 output/capture input. PA.3 I/O MFP0 General purpose digital I/O pin. QSPI0_SS I/O MFP3 Quad SPI0 slave select pin. SPI0_SS I/O MFP4 SPI0 slave select pin. SC0_PWR O MFP6 Smart Card 0 power pin. PA.0 DAC0_ST PA.1 ® NUMICRO M2351 SERIES DATASHEET DAC1_ST PA.2 PA.3 Oct.09 2019 Page 82 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name MFP Description UART4_TXD O MFP7 UART4 data transmitter output pin. UART1_TXD O MFP8 UART1 data transmitter output pin. I2C1_SCL I/O MFP9 I2C1 clock pin. BPWM0_CH3 I/O MFP12 BPWM0 channel 3 output/capture input. EPWM0_CH2 I/O MFP13 EPWM0 channel 2 output/capture input. I MFP14 Quadrature encoder 0 phase B input PA.4 I/O MFP0 General purpose digital I/O pin. QSPI0_MOSI1 I/O MFP3 Quad SPI0 MOSI1 (Master Out, Slave In) pin. SPI0_I2SMCLK I/O MFP4 SPI0 I2S master clock output pin SC0_nCD I MFP6 Smart Card 0 card detect pin. UART0_nRTS O MFP7 UART0 request to Send output pin. UART5_RXD I MFP8 UART5 data receiver input pin. I2C0_SDA I/O MFP9 I2C0 data input/output pin. CAN0_RXD I MFP10 CAN0 bus receiver input. BPWM0_CH4 I/O MFP12 BPWM0 channel 4 output/capture input. EPWM0_CH1 I/O MFP13 EPWM0 channel 1 output/capture input. I MFP14 Quadrature encoder 0 phase A input PA.5 I/O MFP0 General purpose digital I/O pin. QSPI0_MISO1 I/O MFP3 Quad SPI0 MISO1 (Master In, Slave Out) pin. SPI1_I2SMCLK I/O MFP4 SPI1 I2S master clock output pin SC2_nCD I MFP6 Smart Card 2 card detect pin. UART0_nCTS I MFP7 UART0 clear to Send input pin. UART5_TXD O MFP8 UART5 data transmitter output pin. I2C0_SCL I/O MFP9 I2C0 clock pin. CAN0_TXD O MFP10 CAN0 bus transmitter output. BPWM0_CH5 I/O MFP12 BPWM0 channel 5 output/capture input. EPWM0_CH0 I/O MFP13 EPWM0 channel 0 output/capture input. QEI0_INDEX I MFP14 Quadrature encoder 0 index input PA.6 I/O MFP0 General purpose digital I/O pin. EBI_AD6 I/O MFP2 EBI address/data bus bit 6. SPI1_SS I/O MFP4 SPI1 slave select pin. SC2_CLK O MFP6 Smart Card 2 clock pin. UART0_RXD I MFP7 UART0 data receiver input pin. I/O MFP8 I2C1 data input/output pin. QEI0_B PA.4 QEI0_A ® NUMICRO M2351 SERIES DATASHEET Type PA.5 PA.6 I2C1_SDA Oct.09 2019 Page 83 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name PA.7 MFP Description EPWM1_CH5 I/O MFP11 EPWM1 channel 5 output/capture input. BPWM1_CH3 I/O MFP12 BPWM1 channel 3 output/capture input. ACMP1_WLAT I MFP13 Analog comparator 1 window latch input pin TM3 I/O MFP14 Timer3 event counter input/toggle output pin. INT0 I MFP15 External interrupt 0 input pin. PA.7 I/O MFP0 General purpose digital I/O pin. EBI_AD7 I/O MFP2 EBI address/data bus bit 7. SPI1_CLK I/O MFP4 SPI1 serial clock pin. SC2_DAT I/O MFP6 Smart Card 2 data pin. UART0_TXD O MFP7 UART0 data transmitter output pin. I2C1_SCL I/O MFP8 I2C1 clock pin. EPWM1_CH4 I/O MFP11 EPWM1 channel 4 output/capture input. BPWM1_CH2 I/O MFP12 BPWM1 channel 2 output/capture input. ACMP0_WLAT I MFP13 Analog comparator 0 window latch input pin TM2 I/O MFP14 Timer2 event counter input/toggle output pin. INT1 I MFP15 External interrupt 1 input pin. PA.8 I/O MFP0 General purpose digital I/O pin. EBI_ALE O MFP2 EBI address latch enable output pin. SC2_CLK O MFP3 Smart Card 2 clock pin. SPI2_MOSI I/O MFP4 SPI2 MOSI (Master Out, Slave In) pin. USCI0_CTL1 I/O MFP6 USCI0 control 1 pin. UART1_RXD I MFP7 UART1 data receiver input pin. BPWM0_CH3 I/O MFP9 BPWM0 channel 3 output/capture input. QEI1_B I MFP10 Quadrature encoder 1 phase B input ECAP0_IC2 I MFP11 Enhanced capture unit 0 input 2 pin. I/O MFP13 Timer3 external capture input/toggle output pin. INT4 I MFP15 External interrupt 4 input pin. PA.9 I/O MFP0 General purpose digital I/O pin. EBI_MCLK O MFP2 EBI external clock output pin. SC2_DAT I/O MFP3 Smart Card 2 data pin. SPI2_MISO I/O MFP4 SPI2 MISO (Master In, Slave Out) pin. USCI0_DAT1 I/O MFP6 USCI0 data 1 pin. UART1_TXD O MFP7 UART1 data transmitter output pin. BPWM0_CH2 I/O MFP9 BPWM0 channel 2 output/capture input. ® NUMICRO M2351 SERIES DATASHEET Type PA.8 TM3_EXT PA.9 Oct.09 2019 Page 84 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description QEI1_A I MFP10 Quadrature encoder 1 phase A input ECAP0_IC1 I MFP11 Enhanced capture unit 0 input 1 pin. TM2_EXT I/O MFP13 Timer2 external capture input/toggle output pin. PA.10 I/O MFP0 General purpose digital I/O pin. ACMP1_P0 A MFP1 Analog comparator 1 positive input 0 pin. EBI_nWR O MFP2 EBI write enable output pin. SC2_RST O MFP3 Smart Card 2 reset pin. SPI2_CLK I/O MFP4 SPI2 serial clock pin. USCI0_DAT0 I/O MFP6 USCI0 data 0 pin. I2C2_SDA I/O MFP7 I2C2 data input/output pin. BPWM0_CH1 I/O MFP9 BPWM0 channel 1 output/capture input. QEI1_INDEX I MFP10 Quadrature encoder 1 index input ECAP0_IC0 I MFP11 Enhanced capture unit 0 input 0 pin. TM1_EXT I/O MFP13 Timer1 external capture input/toggle output pin. DAC0_ST I MFP14 DAC0 external trigger input. I/O MFP0 General purpose digital I/O pin. ACMP0_P0 A MFP1 Analog comparator 0 positive input 0 pin. EBI_nRD O MFP2 EBI read enable output pin. SC2_PWR O MFP3 Smart Card 2 power pin. SPI2_SS I/O MFP4 SPI2 slave select pin. USCI0_CLK I/O MFP6 USCI0 clock pin. I2C2_SCL I/O MFP7 I2C2 clock pin. BPWM0_CH0 I/O MFP9 BPWM0 channel 0 output/capture input. EPWM0_SYNC_OUT O MFP10 EPWM0 counter synchronous trigger output pin. TM0_EXT I/O MFP13 Timer0 external capture input/toggle output pin. DAC1_ST I MFP14 DAC1 external trigger input. PA.12 I/O MFP0 General purpose digital I/O pin. I2S0_BCLK O MFP2 I2S0 bit clock output pin. UART4_TXD O MFP3 UART4 data transmitter output pin. I2C1_SCL I/O MFP4 I2C1 clock pin. SPI2_SS I/O MFP5 SPI2 slave select pin. CAN0_TXD O MFP6 CAN0 bus transmitter output. SC2_PWR O MFP7 Smart Card 2 power pin. BPWM1_CH2 I/O MFP11 BPWM1 channel 2 output/capture input. PA.10 PA.11 ® NUMICRO M2351 SERIES DATASHEET PA.11 PA.12 Oct.09 2019 Page 85 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description QEI1_INDEX I MFP12 Quadrature encoder 1 index input USB_VBUS P MFP14 Power supply from USB host or HUB. PA.13 I/O MFP0 General purpose digital I/O pin. I2S0_MCLK O MFP2 I2S0 master clock output pin. UART4_RXD I MFP3 UART4 data receiver input pin. I2C1_SDA I/O MFP4 I2C1 data input/output pin. SPI2_CLK I/O MFP5 SPI2 serial clock pin. CAN0_RXD I MFP6 CAN0 bus receiver input. SC2_RST O MFP7 Smart Card 2 reset pin. BPWM1_CH3 I/O MFP11 BPWM1 channel 3 output/capture input. QEI1_A I MFP12 Quadrature encoder 1 phase A input USB_D- A MFP14 USB differential signal D-. I/O MFP0 General purpose digital I/O pin. I2S0_DI I MFP2 I2S0 data input pin. UART0_TXD O MFP3 UART0 data transmitter output pin. SPI2_MISO I/O MFP5 SPI2 MISO (Master In, Slave Out) pin. I2C2_SCL I/O MFP6 I2C2 clock pin. SC2_DAT I/O MFP7 Smart Card 2 data pin. BPWM1_CH4 I/O MFP11 BPWM1 channel 4 output/capture input. QEI1_B I MFP12 Quadrature encoder 1 phase B input USB_D+ A MFP14 USB differential signal D+. PA.15 I/O MFP0 General purpose digital I/O pin. I2S0_DO O MFP2 I2S0 data output pin. UART0_RXD I MFP3 UART0 data receiver input pin. SPI2_MOSI I/O MFP5 SPI2 MOSI (Master Out, Slave In) pin. I2C2_SDA I/O MFP6 I2C2 data input/output pin. SC2_CLK O MFP7 Smart Card 2 clock pin. BPWM1_CH5 I/O MFP11 BPWM1 channel 5 output/capture input. EPWM0_SYNC_IN I MFP12 EPWM0 counter synchronous trigger input pin. USB_OTG_ID I MFP14 USB_ identification. I/O MFP0 General purpose digital I/O pin. EADC0_CH0 A MFP1 EADC0 channel 0 analog input. EBI_ADR9 O MFP2 EBI address bus bit 9. SD0_CMD I/O MFP3 SD/SDIO0 command/response pin PA.13 PA.14 PA.14 ® NUMICRO M2351 SERIES DATASHEET PA.15 PB.0 PB.0 Oct.09 2019 Page 86 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name MFP Description I MFP7 UART2 data receiver input pin. SPI0_I2SMCLK I/O MFP8 SPI0 I2S master clock output pin I2C1_SDA I/O MFP9 I2C1 data input/output pin. EPWM0_CH5 I/O MFP11 EPWM0 channel 5 output/capture input. EPWM1_CH5 I/O MFP12 EPWM1 channel 5 output/capture input. I MFP13 EPWM0 Brake 1 input pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH1 A MFP1 EADC0 channel 1 analog input. EBI_ADR8 O MFP2 EBI address bus bit 8. SD0_CLK O MFP3 SD/SDIO0 clock output pin SPI1_I2SMCLK I/O MFP5 SPI1 I2S master clock output pin SPI3_I2SMCLK I/O MFP6 SPI3 I2S master clock output pin UART2_TXD O MFP7 UART2 data transmitter output pin. USCI1_CLK I/O MFP8 USCI1 clock pin. I2C1_SCL I/O MFP9 I2C1 clock pin. I2S0_LRCK O MFP10 I2S0 left right channel clock output pin. EPWM0_CH4 I/O MFP11 EPWM0 channel 4 output/capture input. EPWM1_CH4 I/O MFP12 EPWM1 channel 4 output/capture input. I MFP13 EPWM0 Brake 0 input pin. I/O MFP0 General purpose digital I/O pin. EADC0_CH2 A MFP1 EADC0 channel 2 analog input. ACMP0_P1 A MFP1 Analog comparator 0 positive input 1 pin. EBI_ADR3 O MFP2 EBI address bus bit 3. SD0_DAT0 I/O MFP3 SD/SDIO0 data line bit 0. SPI1_SS I/O MFP5 SPI1 slave select pin. UART1_RXD I MFP6 UART1 data receiver input pin. UART5_nCTS I MFP7 UART5 clear to Send input pin. USCI1_DAT0 I/O MFP8 USCI1 data 0 pin. SC0_PWR O MFP9 Smart Card 0 power pin. I2S0_DO O MFP10 I2S0 data output pin. EPWM0_CH3 I/O MFP11 EPWM0 channel 3 output/capture input. TM3 I/O MFP14 Timer3 event counter input/toggle output pin. INT3 I MFP15 External interrupt 3 input pin. PB.3 I/O MFP0 General purpose digital I/O pin. UART2_RXD EPWM0_BRAKE1 PB.1 PB.1 EPWM0_BRAKE0 PB.2 ® NUMICRO M2351 SERIES DATASHEET Type PB.2 PB.3 Oct.09 2019 Page 87 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name MFP Description EADC0_CH3 A MFP1 EADC0 channel 3 analog input. ACMP0_N A MFP1 Analog comparator 0 negative input pin. EBI_ADR2 O MFP2 EBI address bus bit 2. SD0_DAT1 I/O MFP3 SD/SDIO0 data line bit 1. SPI1_CLK I/O MFP5 SPI1 serial clock pin. UART1_TXD O MFP6 UART1 data transmitter output pin. UART5_nRTS O MFP7 UART5 request to Send output pin. USCI1_DAT1 I/O MFP8 USCI1 data 1 pin. SC0_RST O MFP9 Smart Card 0 reset pin. I2S0_DI I MFP10 I2S0 data input pin. EPWM0_CH2 I/O MFP11 EPWM0 channel 2 output/capture input. TM2 I/O MFP14 Timer2 event counter input/toggle output pin. INT2 I MFP15 External interrupt 2 input pin. PB.4 I/O MFP0 General purpose digital I/O pin. EADC0_CH4 A MFP1 EADC0 channel 4 analog input. ACMP1_P1 A MFP1 Analog comparator 1 positive input 1 pin. EBI_ADR1 O MFP2 EBI address bus bit 1. SD0_DAT2 I/O MFP3 SD/SDIO0 data line bit 2. SPI1_MOSI I/O MFP5 SPI1 MOSI (Master Out, Slave In) pin. I2C0_SDA I/O MFP6 I2C0 data input/output pin. UART5_RXD I MFP7 UART5 data receiver input pin. USCI1_CTL1 I/O MFP8 USCI1 control 1 pin. SC0_DAT I/O MFP9 Smart Card 0 data pin. I2S0_MCLK O MFP10 I2S0 master clock output pin. EPWM0_CH1 I/O MFP11 EPWM0 channel 1 output/capture input. TM1 I/O MFP14 Timer1 event counter input/toggle output pin. INT1 I MFP15 External interrupt 1 input pin. PB.5 I/O MFP0 General purpose digital I/O pin. EADC0_CH5 A MFP1 EADC0 channel 5 analog input. ACMP1_N A MFP1 Analog comparator 1 negative input pin. EBI_ADR0 O MFP2 EBI address bus bit 0. SD0_DAT3 I/O MFP3 SD/SDIO0 data line bit 3. SPI1_MISO I/O MFP5 SPI1 MISO (Master In, Slave Out) pin. I2C0_SCL I/O MFP6 I2C0 clock pin. PB.4 ® NUMICRO M2351 SERIES DATASHEET Type PB.5 Oct.09 2019 Page 88 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description UART5_TXD O MFP7 UART5 data transmitter output pin. USCI1_CTL0 I/O MFP8 USCI1 control 0 pin. SC0_CLK O MFP9 Smart Card 0 clock pin. I2S0_BCLK O MFP10 I2S0 bit clock output pin. EPWM0_CH0 I/O MFP11 EPWM0 channel 0 output/capture input. TM0 I/O MFP14 Timer0 event counter input/toggle output pin. INT0 I MFP15 External interrupt 0 input pin. PB.6 I/O MFP0 General purpose digital I/O pin. EADC0_CH6 A MFP1 EADC0 channel 6 analog input. EBI_nWRH O MFP2 EBI high byte write enable output pin USCI1_DAT1 I/O MFP4 USCI1 data 1 pin. UART1_RXD I MFP6 UART1 data receiver input pin. EBI_nCS1 O MFP8 EBI chip select 1 output pin. BPWM1_CH5 I/O MFP10 BPWM1 channel 5 output/capture input. I MFP11 EPWM1 Brake 1 input pin. I/O MFP12 EPWM1 channel 5 output/capture input. INT4 I MFP13 External interrupt 4 input pin. USB_VBUS_EN O MFP14 USB external VBUS regulator enable pin. ACMP1_O O MFP15 Analog comparator 1 output pin. PB.7 I/O MFP0 General purpose digital I/O pin. EADC0_CH7 A MFP1 EADC0 channel 7 analog input. EBI_nWRL O MFP2 EBI low byte write enable output pin. USCI1_DAT0 I/O MFP4 USCI1 data 0 pin. UART1_TXD O MFP6 UART1 data transmitter output pin. EBI_nCS0 O MFP8 EBI chip select 0 output pin. BPWM1_CH4 I/O MFP10 BPWM1 channel 4 output/capture input. I MFP11 EPWM1 Brake 0 input pin. I/O MFP12 EPWM1 channel 4 output/capture input. INT5 I MFP13 External interrupt 5 input pin. USB_VBUS_ST I MFP14 USB external VBUS regulator status pin. ACMP0_O O MFP15 Analog comparator 0 output pin. PB.8 I/O MFP0 General purpose digital I/O pin. EADC0_CH8 A MFP1 EADC0 channel 8 analog input. EBI_ADR19 O MFP2 EBI address bus bit 19. PB.6 EPWM1_BRAKE1 EPWM1_CH5 ® NUMICRO M2351 SERIES DATASHEET PB.7 EPWM1_BRAKE0 EPWM1_CH4 PB.8 Oct.09 2019 Page 89 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description USCI1_CLK I/O MFP4 USCI1 clock pin. UART0_RXD I MFP5 UART0 data receiver input pin. UART1_nRTS O MFP6 UART1 request to Send output pin. I2C1_SMBSUS O MFP7 I2C1 SMBus SMBSUS pin (PMBus CONTROL pin) BPWM1_CH3 I/O MFP10 BPWM1 channel 3 output/capture input. SPI3_MOSI I/O MFP11 SPI3 MOSI (Master Out, Slave In) pin. INT6 I MFP13 External interrupt 6 input pin. PB.9 I/O MFP0 General purpose digital I/O pin. EADC0_CH9 A MFP1 EADC0 channel 9 analog input. EBI_ADR18 O MFP2 EBI address bus bit 18. USCI1_CTL1 I/O MFP4 USCI1 control 1 pin. UART0_TXD O MFP5 UART0 data transmitter output pin. UART1_nCTS I MFP6 UART1 clear to Send input pin. I2C1_SMBAL O MFP7 I2C1 SMBus SMBALTER pin BPWM1_CH2 I/O MFP10 BPWM1 channel 2 output/capture input. SPI3_MISO I/O MFP11 SPI3 MISO (Master In, Slave Out) pin. INT7 I MFP13 External interrupt 7 input pin. PB.10 I/O MFP0 General purpose digital I/O pin. EADC0_CH10 A MFP1 EADC0 channel 10 analog input. EBI_ADR17 O MFP2 EBI address bus bit 17. USCI1_CTL0 I/O MFP4 USCI1 control 0 pin. UART0_nRTS O MFP5 UART0 request to Send output pin. UART4_RXD I MFP6 UART4 data receiver input pin. I2C1_SDA I/O MFP7 I2C1 data input/output pin. CAN0_RXD I MFP8 CAN0 bus receiver input. BPWM1_CH1 I/O MFP10 BPWM1 channel 1 output/capture input. SPI3_SS I/O MFP11 SPI3 slave select pin. PB.11 I/O MFP0 General purpose digital I/O pin. EADC0_CH11 A MFP1 EADC0 channel 11 analog input. EBI_ADR16 O MFP2 EBI address bus bit 16. UART0_nCTS I MFP5 UART0 clear to Send input pin. UART4_TXD O MFP6 UART4 data transmitter output pin. I2C1_SCL I/O MFP7 I2C1 clock pin. CAN0_TXD O MFP8 CAN0 bus transmitter output. PB.9 ® NUMICRO M2351 SERIES DATASHEET PB.10 PB.11 Oct.09 2019 Page 90 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name PB.12 Description SPI0_I2SMCLK I/O MFP9 SPI0 I2S master clock output pin BPWM1_CH0 I/O MFP10 BPWM1 channel 0 output/capture input. SPI3_CLK I/O MFP11 SPI3 serial clock pin. PB.12 I/O MFP0 General purpose digital I/O pin. EADC0_CH12 A MFP1 EADC0 channel 12 analog input. DAC0_OUT A MFP1 DAC0 channel analog output. ACMP0_P2 A MFP1 Analog comparator 0 positive input 2 pin. ACMP1_P2 A MFP1 Analog comparator 1 positive input 2 pin. EBI_AD15 I/O MFP2 EBI address/data bus bit 15. SC1_CLK O MFP3 Smart Card 1 clock pin. SPI0_MOSI I/O MFP4 SPI0 MOSI (Master Out, Slave In) pin. USCI0_CLK I/O MFP5 USCI0 clock pin. UART0_RXD I MFP6 UART0 data receiver input pin. UART3_nCTS I MFP7 UART3 clear to Send input pin. I2C2_SDA I/O MFP8 I2C2 data input/output pin. SD0_nCD I MFP9 SD/SDIO0 card detect input pin EPWM1_CH3 I/O MFP11 EPWM1 channel 3 output/capture input. TM3_EXT I/O MFP13 Timer3 external capture input/toggle output pin. PB.13 I/O MFP0 General purpose digital I/O pin. EADC0_CH13 A MFP1 EADC0 channel 13 analog input. DAC1_OUT A MFP1 DAC1 channel analog output. ACMP0_P3 A MFP1 Analog comparator 0 positive input 3 pin. ACMP1_P3 A MFP1 Analog comparator 1 positive input 3 pin. EBI_AD14 I/O MFP2 EBI address/data bus bit 14. SC1_DAT I/O MFP3 Smart Card 1 data pin. SPI0_MISO I/O MFP4 SPI0 MISO (Master In, Slave Out) pin. USCI0_DAT0 I/O MFP5 USCI0 data 0 pin. UART0_TXD O MFP6 UART0 data transmitter output pin. UART3_nRTS O MFP7 UART3 request to Send output pin. I2C2_SCL I/O MFP8 I2C2 clock pin. EPWM1_CH2 I/O MFP11 EPWM1 channel 2 output/capture input. TM2_EXT I/O MFP13 Timer2 external capture input/toggle output pin. PB.14 I/O MFP0 General purpose digital I/O pin. A MFP1 EADC0 channel 14 analog input. ® MFP NUMICRO M2351 SERIES DATASHEET Type PB.13 PB.14 EADC0_CH14 Oct.09 2019 Page 91 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description EBI_AD13 I/O MFP2 EBI address/data bus bit 13. SC1_RST O MFP3 Smart Card 1 reset pin. SPI0_CLK I/O MFP4 SPI0 serial clock pin. USCI0_DAT1 I/O MFP5 USCI0 data 1 pin. UART0_nRTS O MFP6 UART0 request to Send output pin. UART3_RXD I MFP7 UART3 data receiver input pin. I2C2_SMBSUS O MFP8 I2C2 SMBus SMBSUS pin (PMBus CONTROL pin) EPWM1_CH1 I/O MFP11 EPWM1 channel 1 output/capture input. TM1_EXT I/O MFP13 Timer1 external capture input/toggle output pin. CLKO O MFP14 Clock Out USB_VBUS_ST I MFP15 USB external VBUS regulator status pin. I/O MFP0 General purpose digital I/O pin. A MFP1 EADC0 channel 15 analog input. EBI_AD12 I/O MFP2 EBI address/data bus bit 12. SC1_PWR O MFP3 Smart Card 1 power pin. SPI0_SS I/O MFP4 SPI0 slave select pin. USCI0_CTL1 I/O MFP5 USCI0 control 1 pin. UART0_nCTS I MFP6 UART0 clear to Send input pin. UART3_TXD O MFP7 UART3 data transmitter output pin. I2C2_SMBAL O MFP8 I2C2 SMBus SMBALTER pin EPWM1_CH0 I/O MFP11 EPWM1 channel 0 output/capture input. TM0_EXT I/O MFP13 Timer0 external capture input/toggle output pin. USB_VBUS_EN O MFP14 USB external VBUS regulator enable pin. PC.0 I/O MFP0 General purpose digital I/O pin. EBI_AD0 I/O MFP2 EBI address/data bus bit 0. QSPI0_MOSI0 I/O MFP4 Quad SPI0 MOSI0 (Master Out, Slave In) pin. SC1_CLK O MFP5 Smart Card 1 clock pin. I2S0_LRCK O MFP6 I2S0 left right channel clock output pin. SPI1_SS I/O MFP7 SPI1 slave select pin. I MFP8 UART2 data receiver input pin. I2C0_SDA I/O MFP9 I2C0 data input/output pin. EPWM1_CH5 I/O MFP12 EPWM1 channel 5 output/capture input. ACMP1_O O MFP14 Analog comparator 1 output pin. PC.1 I/O MFP0 General purpose digital I/O pin. PB.15 EADC0_CH15 PB.15 ® NUMICRO M2351 SERIES DATASHEET PC.0 UART2_RXD PC.1 Oct.09 2019 Page 92 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description EBI_AD1 I/O MFP2 EBI address/data bus bit 1. QSPI0_MISO0 I/O MFP4 Quad SPI0 MISO0 (Master In, Slave Out) pin. SC1_DAT I/O MFP5 Smart Card 1 data pin. I2S0_DO O MFP6 I2S0 data output pin. SPI1_CLK I/O MFP7 SPI1 serial clock pin. UART2_TXD O MFP8 UART2 data transmitter output pin. I2C0_SCL I/O MFP9 I2C0 clock pin. EPWM1_CH4 I/O MFP12 EPWM1 channel 4 output/capture input. ACMP0_O O MFP14 Analog comparator 0 output pin. PC.2 I/O MFP0 General purpose digital I/O pin. EBI_AD2 I/O MFP2 EBI address/data bus bit 2. QSPI0_CLK I/O MFP4 Quad SPI0 serial clock pin. SC1_RST O MFP5 Smart Card 1 reset pin. I2S0_DI I MFP6 I2S0 data input pin. I/O MFP7 SPI1 MOSI (Master Out, Slave In) pin. UART2_nCTS I MFP8 UART2 clear to Send input pin. I2C0_SMBSUS O MFP9 I2C0 SMBus SMBSUS pin (PMBus CONTROL pin) UART3_RXD I MFP11 UART3 data receiver input pin. EPWM1_CH3 I/O MFP12 EPWM1 channel 3 output/capture input. PC.3 I/O MFP0 General purpose digital I/O pin. EBI_AD3 I/O MFP2 EBI address/data bus bit 3. QSPI0_SS I/O MFP4 Quad SPI0 slave select pin. SC1_PWR O MFP5 Smart Card 1 power pin. I2S0_MCLK O MFP6 I2S0 master clock output pin. SPI1_MISO I/O MFP7 SPI1 MISO (Master In, Slave Out) pin. UART2_nRTS O MFP8 UART2 request to Send output pin. I2C0_SMBAL O MFP9 I2C0 SMBus SMBALTER pin UART3_TXD O MFP11 UART3 data transmitter output pin. EPWM1_CH2 I/O MFP12 EPWM1 channel 2 output/capture input. PC.4 I/O MFP0 General purpose digital I/O pin. EBI_AD4 I/O MFP2 EBI address/data bus bit 4. QSPI0_MOSI1 I/O MFP4 Quad SPI0 MOSI1 (Master Out, Slave In) pin. SC1_nCD I MFP5 Smart Card 1 card detect pin. I2S0_BCLK O MFP6 I2S0 bit clock output pin. PC.2 SPI1_MOSI ® NUMICRO M2351 SERIES DATASHEET PC.3 PC.4 Oct.09 2019 Page 93 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description I/O MFP7 SPI1 I2S master clock output pin I MFP8 UART2 data receiver input pin. I2C1_SDA I/O MFP9 I2C1 data input/output pin. CAN0_RXD I MFP10 CAN0 bus receiver input. UART4_RXD I MFP11 UART4 data receiver input pin. EPWM1_CH1 I/O MFP12 EPWM1 channel 1 output/capture input. PC.5 I/O MFP0 General purpose digital I/O pin. EBI_AD5 I/O MFP2 EBI address/data bus bit 5. QSPI0_MISO1 I/O MFP4 Quad SPI0 MISO1 (Master In, Slave Out) pin. UART2_TXD O MFP8 UART2 data transmitter output pin. I2C1_SCL I/O MFP9 I2C1 clock pin. CAN0_TXD O MFP10 CAN0 bus transmitter output. UART4_TXD O MFP11 UART4 data transmitter output pin. EPWM1_CH0 I/O MFP12 EPWM1 channel 0 output/capture input. PC.6 I/O MFP0 General purpose digital I/O pin. EBI_AD8 I/O MFP2 EBI address/data bus bit 8. SPI1_MOSI I/O MFP4 SPI1 MOSI (Master Out, Slave In) pin. UART4_RXD I MFP5 UART4 data receiver input pin. SC2_RST O MFP6 Smart Card 2 reset pin. UART0_nRTS O MFP7 UART0 request to Send output pin. I2C1_SMBSUS O MFP8 I2C1 SMBus SMBSUS pin (PMBus CONTROL pin) EPWM1_CH3 I/O MFP11 EPWM1 channel 3 output/capture input. BPWM1_CH1 I/O MFP12 BPWM1 channel 1 output/capture input. TM1 I/O MFP14 Timer1 event counter input/toggle output pin. INT2 I MFP15 External interrupt 2 input pin. PC.7 I/O MFP0 General purpose digital I/O pin. EBI_AD9 I/O MFP2 EBI address/data bus bit 9. SPI1_MISO I/O MFP4 SPI1 MISO (Master In, Slave Out) pin. UART4_TXD O MFP5 UART4 data transmitter output pin. SC2_PWR O MFP6 Smart Card 2 power pin. UART0_nCTS I MFP7 UART0 clear to Send input pin. I2C1_SMBAL O MFP8 I2C1 SMBus SMBALTER pin EPWM1_CH2 I/O MFP11 EPWM1 channel 2 output/capture input. BPWM1_CH0 I/O MFP12 BPWM1 channel 0 output/capture input. SPI1_I2SMCLK UART2_RXD PC.5 ® NUMICRO M2351 SERIES DATASHEET PC.6 PC.7 Oct.09 2019 Page 94 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name PC.8 PC.9 Type MFP Description TM0 I/O MFP14 Timer0 event counter input/toggle output pin. INT3 I MFP15 External interrupt 3 input pin. PC.8 I/O MFP0 General purpose digital I/O pin. EBI_ADR16 O MFP2 EBI address bus bit 16. I2C0_SDA I/O MFP4 I2C0 data input/output pin. UART4_nCTS I MFP5 UART4 clear to Send input pin. UART1_RXD I MFP8 UART1 data receiver input pin. EPWM1_CH1 I/O MFP11 EPWM1 channel 1 output/capture input. BPWM1_CH4 I/O MFP12 BPWM1 channel 4 output/capture input. PC.9 I/O MFP0 General purpose digital I/O pin. EBI_ADR7 O MFP2 EBI address bus bit 7. SPI3_SS I/O MFP6 SPI3 slave select pin. UART3_RXD I MFP7 UART3 data receiver input pin. EPWM1_CH3 I/O MFP12 EPWM1 channel 3 output/capture input. PC.10 I/O MFP0 General purpose digital I/O pin. EBI_ADR6 O MFP2 EBI address bus bit 6. SPI3_CLK I/O MFP6 SPI3 serial clock pin. UART3_TXD O MFP7 UART3 data transmitter output pin. ECAP1_IC0 I MFP11 Enhanced capture unit 1 input 0 pin. EPWM1_CH2 I/O MFP12 EPWM1 channel 2 output/capture input. PC.11 I/O MFP0 General purpose digital I/O pin. EBI_ADR5 O MFP2 EBI address bus bit 5. UART0_RXD I MFP3 UART0 data receiver input pin. I2C0_SDA I/O MFP4 I2C0 data input/output pin. SPI3_MOSI I/O MFP6 SPI3 MOSI (Master Out, Slave In) pin. ECAP1_IC1 I MFP11 Enhanced capture unit 1 input 1 pin. EPWM1_CH1 I/O MFP12 EPWM1 channel 1 output/capture input. ACMP1_O O MFP14 Analog comparator 1 output pin. PC.12 I/O MFP0 General purpose digital I/O pin. EBI_ADR4 O MFP2 EBI address bus bit 4. UART0_TXD O MFP3 UART0 data transmitter output pin. I2C0_SCL I/O MFP4 I2C0 clock pin. SPI3_MISO I/O MFP6 SPI3 MISO (Master In, Slave Out) pin. I MFP9 Smart Card 0 card detect pin. PC.10 ® NUMICRO M2351 SERIES DATASHEET PC.11 PC.12 SC0_nCD Oct.09 2019 Page 95 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP I MFP11 Enhanced capture unit 1 input 2 pin. EPWM1_CH0 I/O MFP12 EPWM1 channel 0 output/capture input. ACMP0_O O MFP14 Analog comparator 0 output pin. PC.13 I/O MFP0 General purpose digital I/O pin. EBI_ADR10 O MFP2 EBI address bus bit 10. SC2_nCD I MFP3 Smart Card 2 card detect pin. SPI2_I2SMCLK I/O MFP4 SPI2 I2S master clock output pin USCI0_CTL0 I/O MFP6 USCI0 control 0 pin. UART2_TXD O MFP7 UART2 data transmitter output pin. BPWM0_CH4 I/O MFP9 BPWM0 channel 4 output/capture input. CLKO O MFP13 Clock Out EADC0_ST I MFP14 EADC0 external trigger input. PD.0 I/O MFP0 General purpose digital I/O pin. EBI_AD13 I/O MFP2 EBI address/data bus bit 13. USCI0_CLK I/O MFP3 USCI0 clock pin. SPI0_MOSI I/O MFP4 SPI0 MOSI (Master Out, Slave In) pin. I MFP5 UART3 data receiver input pin. I2C2_SDA I/O MFP6 I2C2 data input/output pin. SC2_CLK O MFP7 Smart Card 2 clock pin. TM2 I/O MFP14 Timer2 event counter input/toggle output pin. PD.1 I/O MFP0 General purpose digital I/O pin. EBI_AD12 I/O MFP2 EBI address/data bus bit 12. USCI0_DAT0 I/O MFP3 USCI0 data 0 pin. SPI0_MISO I/O MFP4 SPI0 MISO (Master In, Slave Out) pin. UART3_TXD O MFP5 UART3 data transmitter output pin. I2C2_SCL I/O MFP6 I2C2 clock pin. SC2_DAT I/O MFP7 Smart Card 2 data pin. PD.2 I/O MFP0 General purpose digital I/O pin. EBI_AD11 I/O MFP2 EBI address/data bus bit 11. USCI0_DAT1 I/O MFP3 USCI0 data 1 pin. SPI0_CLK I/O MFP4 SPI0 serial clock pin. UART3_nCTS I MFP5 UART3 clear to Send input pin. SC2_RST O MFP7 Smart Card 2 reset pin. UART0_RXD I MFP9 UART0 data receiver input pin. ECAP1_IC2 PC.13 Description PD.0 UART3_RXD ® NUMICRO M2351 SERIES DATASHEET PD.1 PD.2 Oct.09 2019 Page 96 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name PD.3 PD.4 Description PD.3 I/O MFP0 General purpose digital I/O pin. EBI_AD10 I/O MFP2 EBI address/data bus bit 10. USCI0_CTL1 I/O MFP3 USCI0 control 1 pin. SPI0_SS I/O MFP4 SPI0 slave select pin. UART3_nRTS O MFP5 UART3 request to Send output pin. USCI1_CTL0 I/O MFP6 USCI1 control 0 pin. SC2_PWR O MFP7 Smart Card 2 power pin. SC1_nCD I MFP8 Smart Card 1 card detect pin. UART0_TXD O MFP9 UART0 data transmitter output pin. PD.4 I/O MFP0 General purpose digital I/O pin. USCI0_CTL0 I/O MFP3 USCI0 control 0 pin. I2C1_SDA I/O MFP4 I2C1 data input/output pin. SPI1_SS I/O MFP5 SPI1 slave select pin. USCI1_CTL1 I/O MFP6 USCI1 control 1 pin. SC1_CLK O MFP8 Smart Card 1 clock pin. USB_VBUS_ST I MFP14 USB external VBUS regulator status pin. PD.5 I/O MFP0 General purpose digital I/O pin. I2C1_SCL I/O MFP4 I2C1 clock pin. SPI1_CLK I/O MFP5 SPI1 serial clock pin. USCI1_DAT0 I/O MFP6 USCI1 data 0 pin. SC1_DAT I/O MFP8 Smart Card 1 data pin. PD.6 I/O MFP0 General purpose digital I/O pin. I MFP3 UART1 data receiver input pin. I2C0_SDA I/O MFP4 I2C0 data input/output pin. SPI1_MOSI I/O MFP5 SPI1 MOSI (Master Out, Slave In) pin. USCI1_DAT1 I/O MFP6 USCI1 data 1 pin. SC1_RST O MFP8 Smart Card 1 reset pin. PD.7 I/O MFP0 General purpose digital I/O pin. UART1_TXD O MFP3 UART1 data transmitter output pin. I2C0_SCL I/O MFP4 I2C0 clock pin. SPI1_MISO I/O MFP5 SPI1 MISO (Master In, Slave Out) pin. USCI1_CLK I/O MFP6 USCI1 clock pin. SC1_PWR O MFP8 Smart Card 1 power pin. PD.8 I/O MFP0 General purpose digital I/O pin. ® MFP NUMICRO M2351 SERIES DATASHEET PD.5 Type UART1_RXD PD.6 PD.7 PD.8 Oct.09 2019 Page 97 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description EBI_AD6 I/O MFP2 EBI address/data bus bit 6. I2C2_SDA I/O MFP3 I2C2 data input/output pin. UART2_nRTS O MFP4 UART2 request to Send output pin. PD.9 I/O MFP0 General purpose digital I/O pin. EBI_AD7 I/O MFP2 EBI address/data bus bit 7. I2C2_SCL I/O MFP3 I2C2 clock pin. I MFP4 UART2 clear to Send input pin. PD.10 I/O MFP0 General purpose digital I/O pin. EBI_nCS2 O MFP2 EBI chip select 2 output pin. UART1_RXD I MFP3 UART1 data receiver input pin. CAN0_RXD I MFP4 CAN0 bus receiver input. QEI0_B I MFP10 Quadrature encoder 0 phase B input INT7 I MFP15 External interrupt 7 input pin. PD.11 I/O MFP0 General purpose digital I/O pin. EBI_nCS1 O MFP2 EBI chip select 1 output pin. UART1_TXD O MFP3 UART1 data transmitter output pin. CAN0_TXD O MFP4 CAN0 bus transmitter output. QEI0_A I MFP10 Quadrature encoder 0 phase A input INT6 I MFP15 External interrupt 6 input pin. PD.12 I/O MFP0 General purpose digital I/O pin. EBI_nCS0 O MFP2 EBI chip select 0 output pin. UART2_RXD I MFP7 UART2 data receiver input pin. BPWM0_CH5 I/O MFP9 BPWM0 channel 5 output/capture input. QEI0_INDEX I MFP10 Quadrature encoder 0 index input CLKO O MFP13 Clock Out EADC0_ST I MFP14 EADC0 external trigger input. INT5 I MFP15 External interrupt 5 input pin. PD.13 I/O MFP0 General purpose digital I/O pin. EBI_AD10 I/O MFP2 EBI address/data bus bit 10. SD0_nCD I MFP3 SD/SDIO0 card detect input pin SPI0_I2SMCLK I/O MFP4 SPI0 I2S master clock output pin SPI1_I2SMCLK I/O MFP5 SPI1 I2S master clock output pin I MFP7 Smart Card 2 card detect pin. I/O MFP0 General purpose digital I/O pin. PD.9 UART2_nCTS PD.10 PD.11 ® NUMICRO M2351 SERIES DATASHEET PD.12 PD.13 SC2_nCD PD.14 PD.14 Oct.09 2019 Page 98 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Type MFP Description EBI_nCS0 O MFP2 EBI chip select 0 output pin. SPI3_I2SMCLK I/O MFP3 SPI3 I2S master clock output pin I MFP4 Smart Card 1 card detect pin. USCI0_CTL0 I/O MFP5 USCI0 control 0 pin. SPI0_I2SMCLK I/O MFP6 SPI0 I2S master clock output pin EPWM0_CH4 I/O MFP11 EPWM0 channel 4 output/capture input. PE.0 I/O MFP0 General purpose digital I/O pin. EBI_AD11 I/O MFP2 EBI address/data bus bit 11. QSPI0_MOSI0 I/O MFP3 Quad SPI0 MOSI0 (Master Out, Slave In) pin. SC2_CLK O MFP4 Smart Card 2 clock pin. I2S0_MCLK O MFP5 I2S0 master clock output pin. SPI1_MOSI I/O MFP6 SPI1 MOSI (Master Out, Slave In) pin. I MFP7 UART3 data receiver input pin. I2C1_SDA I/O MFP8 I2C1 data input/output pin. UART4_nRTS O MFP9 UART4 request to Send output pin. PE.1 I/O MFP0 General purpose digital I/O pin. EBI_AD10 I/O MFP2 EBI address/data bus bit 10. QSPI0_MISO0 I/O MFP3 Quad SPI0 MISO0 (Master In, Slave Out) pin. SC2_DAT I/O MFP4 Smart Card 2 data pin. I2S0_BCLK O MFP5 I2S0 bit clock output pin. SPI1_MISO I/O MFP6 SPI1 MISO (Master In, Slave Out) pin. UART3_TXD O MFP7 UART3 data transmitter output pin. I2C1_SCL I/O MFP8 I2C1 clock pin. I MFP9 UART4 clear to Send input pin. PE.2 I/O MFP0 General purpose digital I/O pin. EBI_ALE O MFP2 EBI address latch enable output pin. SD0_DAT0 I/O MFP3 SD/SDIO0 data line bit 0. SPI3_MOSI I/O MFP5 SPI3 MOSI (Master Out, Slave In) pin. SC0_CLK O MFP6 Smart Card 0 clock pin. USCI0_CLK I/O MFP7 USCI0 clock pin. I MFP11 Quadrature encoder 0 phase B input EPWM0_CH5 I/O MFP12 EPWM0 channel 5 output/capture input. BPWM0_CH0 I/O MFP13 BPWM0 channel 0 output/capture input. PE.3 I/O MFP0 General purpose digital I/O pin. SC1_nCD PE.0 UART3_RXD PE.1 ® NUMICRO M2351 SERIES DATASHEET Pin Name UART4_nCTS PE.2 QEI0_B PE.3 Oct.09 2019 Page 99 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description EBI_MCLK O MFP2 EBI external clock output pin. SD0_DAT1 I/O MFP3 SD/SDIO0 data line bit 1. SPI3_MISO I/O MFP5 SPI3 MISO (Master In, Slave Out) pin. SC0_DAT I/O MFP6 Smart Card 0 data pin. USCI0_DAT0 I/O MFP7 USCI0 data 0 pin. I MFP11 Quadrature encoder 0 phase A input EPWM0_CH4 I/O MFP12 EPWM0 channel 4 output/capture input. BPWM0_CH1 I/O MFP13 BPWM0 channel 1 output/capture input. PE.4 I/O MFP0 General purpose digital I/O pin. EBI_nWR O MFP2 EBI write enable output pin. SD0_DAT2 I/O MFP3 SD/SDIO0 data line bit 2. SPI3_CLK I/O MFP5 SPI3 serial clock pin. SC0_RST O MFP6 Smart Card 0 reset pin. USCI0_DAT1 I/O MFP7 USCI0 data 1 pin. QEI0_INDEX I MFP11 Quadrature encoder 0 index input EPWM0_CH3 I/O MFP12 EPWM0 channel 3 output/capture input. BPWM0_CH2 I/O MFP13 BPWM0 channel 2 output/capture input. PE.5 I/O MFP0 General purpose digital I/O pin. EBI_nRD O MFP2 EBI read enable output pin. SD0_DAT3 I/O MFP3 SD/SDIO0 data line bit 3. SPI3_SS I/O MFP5 SPI3 slave select pin. SC0_PWR O MFP6 Smart Card 0 power pin. USCI0_CTL1 I/O MFP7 USCI0 control 1 pin. I MFP11 Quadrature encoder 1 phase B input EPWM0_CH2 I/O MFP12 EPWM0 channel 2 output/capture input. BPWM0_CH3 I/O MFP13 BPWM0 channel 3 output/capture input. PE.6 I/O MFP0 General purpose digital I/O pin. SD0_CLK O MFP3 SD/SDIO0 clock output pin SPI3_I2SMCLK I/O MFP5 SPI3 I2S master clock output pin I MFP6 Smart Card 0 card detect pin. USCI0_CTL0 I/O MFP7 USCI0 control 0 pin. UART5_RXD I MFP8 UART5 data receiver input pin. QEI1_A I MFP11 Quadrature encoder 1 phase A input I/O MFP12 EPWM0 channel 1 output/capture input. QEI0_A PE.4 ® NUMICRO M2351 SERIES DATASHEET PE.5 QEI1_B SC0_nCD PE.6 EPWM0_CH1 Oct.09 2019 Page 100 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description BPWM0_CH4 I/O MFP13 BPWM0 channel 4 output/capture input. PE.7 I/O MFP0 General purpose digital I/O pin. SD0_CMD I/O MFP3 SD/SDIO0 command/response pin UART5_TXD O MFP8 UART5 data transmitter output pin. QEI1_INDEX I MFP11 Quadrature encoder 1 index input EPWM0_CH0 I/O MFP12 EPWM0 channel 0 output/capture input. BPWM0_CH5 I/O MFP13 BPWM0 channel 5 output/capture input. PE.8 I/O MFP0 General purpose digital I/O pin. EBI_ADR10 O MFP2 EBI address bus bit 10. I2S0_BCLK O MFP4 I2S0 bit clock output pin. SPI2_CLK I/O MFP5 SPI2 serial clock pin. USCI1_CTL1 I/O MFP6 USCI1 control 1 pin. UART2_TXD O MFP7 UART2 data transmitter output pin. EPWM0_CH0 I/O MFP10 EPWM0 channel 0 output/capture input. EPWM0_BRAKE0 I MFP11 EPWM0 Brake 0 input pin. ECAP0_IC0 I MFP12 Enhanced capture unit 0 input 0 pin. TRACE_DATA3 O MFP14 ETM Trace Data 3 output pin PE.9 I/O MFP0 General purpose digital I/O pin. EBI_ADR11 O MFP2 EBI address bus bit 11. I2S0_MCLK O MFP4 I2S0 master clock output pin. SPI2_MISO I/O MFP5 SPI2 MISO (Master In, Slave Out) pin. USCI1_CTL0 I/O MFP6 USCI1 control 0 pin. UART2_RXD I MFP7 UART2 data receiver input pin. EPWM0_CH1 I/O MFP10 EPWM0 channel 1 output/capture input. EPWM0_BRAKE1 I MFP11 EPWM0 Brake 1 input pin. ECAP0_IC1 I MFP12 Enhanced capture unit 0 input 1 pin. TRACE_DATA2 O MFP14 ETM Trace Data 2 output pin PE.10 I/O MFP0 General purpose digital I/O pin. EBI_ADR12 O MFP2 EBI address bus bit 12. I2S0_DI I MFP4 I2S0 data input pin. SPI2_MOSI I/O MFP5 SPI2 MOSI (Master Out, Slave In) pin. USCI1_DAT0 I/O MFP6 USCI1 data 0 pin. UART3_TXD O MFP7 UART3 data transmitter output pin. EPWM0_CH2 I/O MFP10 EPWM0 channel 2 output/capture input. PE.7 PE.8 ® NUMICRO M2351 SERIES DATASHEET PE.9 PE.10 Oct.09 2019 Page 101 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name PE.11 MFP Description EPWM1_BRAKE0 I MFP11 EPWM1 Brake 0 input pin. ECAP0_IC2 I MFP12 Enhanced capture unit 0 input 2 pin. TRACE_DATA1 O MFP14 ETM Trace Data 1 output pin PE.11 I/O MFP0 General purpose digital I/O pin. EBI_ADR13 O MFP2 EBI address bus bit 13. I2S0_DO O MFP4 I2S0 data output pin. SPI2_SS I/O MFP5 SPI2 slave select pin. USCI1_DAT1 I/O MFP6 USCI1 data 1 pin. UART3_RXD I MFP7 UART3 data receiver input pin. UART1_nCTS I MFP8 UART1 clear to Send input pin. EPWM0_CH3 I/O MFP10 EPWM0 channel 3 output/capture input. EPWM1_BRAKE1 I MFP11 EPWM1 Brake 1 input pin. ECAP1_IC2 I MFP13 Enhanced capture unit 1 input 2 pin. TRACE_DATA0 O MFP14 ETM Trace Data 0 output pin PE.12 I/O MFP0 General purpose digital I/O pin. EBI_ADR14 O MFP2 EBI address bus bit 14. I2S0_LRCK O MFP4 I2S0 left right channel clock output pin. SPI2_I2SMCLK I/O MFP5 SPI2 I2S master clock output pin USCI1_CLK I/O MFP6 USCI1 clock pin. UART1_nRTS O MFP8 UART1 request to Send output pin. EPWM0_CH4 I/O MFP10 EPWM0 channel 4 output/capture input. ECAP1_IC1 I MFP13 Enhanced capture unit 1 input 1 pin. TRACE_CLK O MFP14 ETM Trace Clock output pin PE.13 I/O MFP0 General purpose digital I/O pin. EBI_ADR15 O MFP2 EBI address bus bit 15. I2C0_SCL I/O MFP4 I2C0 clock pin. UART4_nRTS O MFP5 UART4 request to Send output pin. UART1_TXD O MFP8 UART1 data transmitter output pin. EPWM0_CH5 I/O MFP10 EPWM0 channel 5 output/capture input. EPWM1_CH0 I/O MFP11 EPWM1 channel 0 output/capture input. BPWM1_CH5 I/O MFP12 BPWM1 channel 5 output/capture input. I MFP13 Enhanced capture unit 1 input 0 pin. PE.14 I/O MFP0 General purpose digital I/O pin. EBI_AD8 I/O MFP2 EBI address/data bus bit 8. ® NUMICRO M2351 SERIES DATASHEET PE.12 Type PE.13 ECAP1_IC0 PE.14 Oct.09 2019 Page 102 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description UART2_TXD O MFP3 UART2 data transmitter output pin. CAN0_TXD O MFP4 CAN0 bus transmitter output. PE.15 I/O MFP0 General purpose digital I/O pin. EBI_AD9 I/O MFP2 EBI address/data bus bit 9. UART2_RXD I MFP3 UART2 data receiver input pin. CAN0_RXD I MFP4 CAN0 bus receiver input. PF.0 I/O MFP0 General purpose digital I/O pin. UART1_TXD O MFP2 UART1 data transmitter output pin. I2C1_SCL I/O MFP3 I2C1 clock pin. BPWM1_CH0 I/O MFP12 BPWM1 channel 0 output/capture input. ICE_DAT O MFP14 Serial wired debugger data pin. PF.1 I/O MFP0 General purpose digital I/O pin. I MFP2 UART1 data receiver input pin. I2C1_SDA I/O MFP3 I2C1 data input/output pin. BPWM1_CH1 I/O MFP12 BPWM1 channel 1 output/capture input. I MFP14 Serial wired debugger clock pin. PF.2 I/O MFP0 General purpose digital I/O pin. EBI_nCS1 O MFP2 EBI chip select 1 output pin. UART0_RXD I MFP3 UART0 data receiver input pin. I2C0_SDA I/O MFP4 I2C0 data input/output pin. QSPI0_CLK I/O MFP5 Quad SPI0 serial clock pin. XT1_OUT O MFP10 External 4~24 MHz (high speed) crystal output pin. BPWM1_CH1 I/O MFP11 BPWM1 channel 1 output/capture input. PF.3 I/O MFP0 General purpose digital I/O pin. EBI_nCS0 O MFP2 EBI chip select 0 output pin. UART0_TXD O MFP3 UART0 data transmitter output pin. I2C0_SCL I/O MFP4 I2C0 clock pin. I MFP10 External 4~24 MHz (high speed) crystal input pin. BPWM1_CH0 I/O MFP11 BPWM1 channel 0 output/capture input. PF.4 I/O MFP0 General purpose digital I/O pin. UART2_TXD O MFP2 UART2 data transmitter output pin. UART2_nRTS O MFP4 UART2 request to Send output pin. BPWM0_CH5 I/O MFP8 BPWM0 channel 5 output/capture input. X32_OUT O MFP10 External 32.768 kHz crystal output pin. PE.15 PF.0 UART1_RXD PF.1 ICE_CLK ® NUMICRO M2351 SERIES DATASHEET PF.2 PF.3 XT1_IN PF.4 Oct.09 2019 Page 103 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description I/O MFP0 General purpose digital I/O pin. UART2_RXD I MFP2 UART2 data receiver input pin. UART2_nCTS I MFP4 UART2 clear to Send input pin. BPWM0_CH4 I/O MFP8 BPWM0 channel 4 output/capture input. EPWM0_SYNC_OUT O MFP9 EPWM0 counter synchronous trigger output pin. X32_IN I MFP10 External 32.768 kHz crystal input pin. EADC0_ST I MFP11 EADC0 external trigger input. PF.6 I/O MFP0 General purpose digital I/O pin. EBI_ADR19 O MFP2 EBI address bus bit 19. SC0_CLK O MFP3 Smart Card 0 clock pin. I2S0_LRCK O MFP4 I2S0 left right channel clock output pin. SPI0_MOSI I/O MFP5 SPI0 MOSI (Master Out, Slave In) pin. UART4_RXD I MFP6 UART4 data receiver input pin. EBI_nCS0 O MFP7 EBI chip select 0 output pin. TAMPER0 I/O MFP10 TAMPER detector loop pin 0. PF.7 I/O MFP0 General purpose digital I/O pin. EBI_ADR18 O MFP2 EBI address bus bit 18. SC0_DAT I/O MFP3 Smart Card 0 data pin. I2S0_DO O MFP4 I2S0 data output pin. SPI0_MISO I/O MFP5 SPI0 MISO (Master In, Slave Out) pin. UART4_TXD O MFP6 UART4 data transmitter output pin. TAMPER1 I/O MFP10 TAMPER detector loop pin 1. PF.8 I/O MFP0 General purpose digital I/O pin. EBI_ADR17 O MFP2 EBI address bus bit 17. SC0_RST O MFP3 Smart Card 0 reset pin. I2S0_DI I MFP4 I2S0 data input pin. SPI0_CLK I/O MFP5 SPI0 serial clock pin. TAMPER2 I/O MFP10 TAMPER detector loop pin 2. PF.9 I/O MFP0 General purpose digital I/O pin. EBI_ADR16 O MFP2 EBI address bus bit 16. SC0_PWR O MFP3 Smart Card 0 power pin. I2S0_MCLK O MFP4 I2S0 master clock output pin. SPI0_SS I/O MFP5 SPI0 slave select pin. TAMPER3 I/O MFP10 TAMPER detector loop pin 3. PF.5 PF.5 PF.6 ® NUMICRO M2351 SERIES DATASHEET PF.7 PF.8 PF.9 Oct.09 2019 Page 104 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description PF.10 I/O MFP0 General purpose digital I/O pin. EBI_ADR15 O MFP2 EBI address bus bit 15. SC0_nCD I MFP3 Smart Card 0 card detect pin. I2S0_BCLK O MFP4 I2S0 bit clock output pin. SPI0_I2SMCLK I/O MFP5 SPI0 I2S master clock output pin TAMPER4 I/O MFP10 TAMPER detector loop pin 4. PF.11 I/O MFP0 General purpose digital I/O pin. EBI_ADR14 O MFP2 EBI address bus bit 14. SPI2_MOSI I/O MFP3 SPI2 MOSI (Master Out, Slave In) pin. TAMPER5 I/O MFP10 TAMPER detector loop pin 5. TM3 I/O MFP13 Timer3 event counter input/toggle output pin. PG.2 I/O MFP0 General purpose digital I/O pin. EBI_ADR11 O MFP2 EBI address bus bit 11. SPI2_SS I/O MFP3 SPI2 slave select pin. I2C0_SMBAL O MFP4 I2C0 SMBus SMBALTER pin I2C1_SCL I/O MFP5 I2C1 clock pin. TM0 I/O MFP13 Timer0 event counter input/toggle output pin. PG.3 I/O MFP0 General purpose digital I/O pin. EBI_ADR12 O MFP2 EBI address bus bit 12. SPI2_CLK I/O MFP3 SPI2 serial clock pin. I2C0_SMBSUS O MFP4 I2C0 SMBus SMBSUS pin (PMBus CONTROL pin) I2C1_SDA I/O MFP5 I2C1 data input/output pin. TM1 I/O MFP13 Timer1 event counter input/toggle output pin. PG.4 I/O MFP0 General purpose digital I/O pin. EBI_ADR13 O MFP2 EBI address bus bit 13. SPI2_MISO I/O MFP3 SPI2 MISO (Master In, Slave Out) pin. TM2 I/O MFP13 Timer2 event counter input/toggle output pin. PG.9 I/O MFP0 General purpose digital I/O pin. EBI_AD0 I/O MFP2 EBI address/data bus bit 0. BPWM0_CH5 I/O MFP12 BPWM0 channel 5 output/capture input. PG.10 I/O MFP0 General purpose digital I/O pin. EBI_AD1 I/O MFP2 EBI address/data bus bit 1. BPWM0_CH4 I/O MFP12 BPWM0 channel 4 output/capture input. PG.11 I/O MFP0 General purpose digital I/O pin. PF.10 PF.11 PG.2 ® NUMICRO M2351 SERIES DATASHEET PG.3 PG.4 PG.9 PG.10 PG.11 Oct.09 2019 Page 105 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller PG.12 PG.13 PG.14 PG.15 PH.4 Type MFP Description EBI_AD2 I/O MFP2 EBI address/data bus bit 2. BPWM0_CH3 I/O MFP12 BPWM0 channel 3 output/capture input. PG.12 I/O MFP0 General purpose digital I/O pin. EBI_AD3 I/O MFP2 EBI address/data bus bit 3. BPWM0_CH2 I/O MFP12 BPWM0 channel 2 output/capture input. PG.13 I/O MFP0 General purpose digital I/O pin. EBI_AD4 I/O MFP2 EBI address/data bus bit 4. BPWM0_CH1 I/O MFP12 BPWM0 channel 1 output/capture input. PG.14 I/O MFP0 General purpose digital I/O pin. EBI_AD5 I/O MFP2 EBI address/data bus bit 5. BPWM0_CH0 I/O MFP12 BPWM0 channel 0 output/capture input. PG.15 I/O MFP0 General purpose digital I/O pin. CLKO O MFP14 Clock Out EADC0_ST I MFP15 EADC0 external trigger input. PH.4 I/O MFP0 General purpose digital I/O pin. EBI_ADR3 O MFP2 EBI address bus bit 3. SPI1_MISO I/O MFP3 SPI1 MISO (Master In, Slave Out) pin. PH.5 I/O MFP0 General purpose digital I/O pin. EBI_ADR2 O MFP2 EBI address bus bit 2. SPI1_MOSI I/O MFP3 SPI1 MOSI (Master Out, Slave In) pin. PH.6 I/O MFP0 General purpose digital I/O pin. EBI_ADR1 O MFP2 EBI address bus bit 1. SPI1_CLK I/O MFP3 SPI1 serial clock pin. PH.7 I/O MFP0 General purpose digital I/O pin. EBI_ADR0 O MFP2 EBI address bus bit 0. SPI1_SS I/O MFP3 SPI1 slave select pin. PH.8 I/O MFP0 General purpose digital I/O pin. EBI_AD12 I/O MFP2 EBI address/data bus bit 12. QSPI0_CLK I/O MFP3 Quad SPI0 serial clock pin. SC2_PWR O MFP4 Smart Card 2 power pin. I2S0_DI I MFP5 I2S0 data input pin. SPI1_CLK I/O MFP6 SPI1 serial clock pin. UART3_nRTS O MFP7 UART3 request to Send output pin. I2C1_SMBAL O MFP8 I2C1 SMBus SMBALTER pin ® NUMICRO M2351 SERIES DATASHEET PH.5 Pin Name PH.6 PH.7 PH.8 Oct.09 2019 Page 106 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Pin Name Type MFP Description I2C2_SCL I/O MFP9 I2C2 clock pin. UART1_TXD O MFP10 UART1 data transmitter output pin. PH.9 I/O MFP0 General purpose digital I/O pin. EBI_AD13 I/O MFP2 EBI address/data bus bit 13. QSPI0_SS I/O MFP3 Quad SPI0 slave select pin. SC2_RST O MFP4 Smart Card 2 reset pin. I2S0_DO O MFP5 I2S0 data output pin. SPI1_SS I/O MFP6 SPI1 slave select pin. UART3_nCTS I MFP7 UART3 clear to Send input pin. I2C1_SMBSUS O MFP8 I2C1 SMBus SMBSUS pin (PMBus CONTROL pin) I2C2_SDA I/O MFP9 I2C2 data input/output pin. I MFP10 UART1 data receiver input pin. PH.10 I/O MFP0 General purpose digital I/O pin. EBI_AD14 I/O MFP2 EBI address/data bus bit 14. QSPI0_MISO1 I/O MFP3 Quad SPI0 MISO1 (Master In, Slave Out) pin. SC2_nCD I MFP4 Smart Card 2 card detect pin. I2S0_LRCK O MFP5 I2S0 left right channel clock output pin. SPI1_I2SMCLK I/O MFP6 SPI1 I2S master clock output pin UART4_TXD O MFP7 UART4 data transmitter output pin. UART0_TXD O MFP8 UART0 data transmitter output pin. PH.11 I/O MFP0 General purpose digital I/O pin. EBI_AD15 I/O MFP2 EBI address/data bus bit 15. QSPI0_MOSI1 I/O MFP3 Quad SPI0 MOSI1 (Master Out, Slave In) pin. UART4_RXD I MFP7 UART4 data receiver input pin. UART0_RXD I MFP8 UART0 data receiver input pin. EPWM0_CH5 I/O MFP11 EPWM0 channel 5 output/capture input. PH.9 UART1_RXD PH.10 ® NUMICRO M2351 SERIES DATASHEET PH.11 Oct.09 2019 Page 107 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 5 BLOCK DIAGRAM 5.1 NuMicro® M2351 Series Block Diagram ® Figure 5.1-1 NuMicro M2351 Block Diagram ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 108 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 5.2 NuMicro® M2351 Series TrustZone® Architecture ® ® Figure 5.2-1 NuMicro M2351 Series Cortex -M23 Architecture ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 109 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6 FUNCTIONAL DESCRIPTION 6.1 Arm® Cortex® -M23 Core ® ® ® The NuMicro M2351 series is embedded with the Cortex -M23 processor. The Cortex -M23 processor is a low gate count, two-stage, and highly energy efficient 32-bit RISC processor, which has ® ® an AMBA AHB5 interface supporting Arm TrustZone technology, a debug access port supporting serial wire debug and single-cycle I/O ports. It has an NVIC component and MPU for memoryprotection functionality. The processor also supports Security Extension. Figure 6.1-1 shows the functional controller of the processor. MTB AHB Cortex-M23 processor Micro Trace Buffer (MTB) MTB SRAM interface Cross Trigger Interface (CTI) Wakeup Interrupt Controller (WIC) Nested Vectored Interrupt (NVIC) IRQ and power control interface Cortex-M23 processor core APB Embedded Trace Macrocell (ETM) Memory Protection Implementation Defined Attribution Unit (IDAU) Secure Memory Protection Unit (MPU_S) Non-secure Memory Protection Unit (MPU_NS) Data Watchpoint and Trace (DWT) ETM ATB interface Slave AHB interface ® NUMICRO M2351 SERIES DATASHEET Flash Patch and Breakpoint Unit (FPB)* Security Attribution Unit (SAU) Bus matrix Processor ROM table Configurable Single-cycle I/O port AHB Master Optional * Flash Patching is not supported in the Cortex-M23 processor. ® Figure 6.1-1 Cortex -M23 Block Diagram Oct.09 2019 Page 110 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller ® Cortex -M23 processor features: ®  Arm v8-M Baseline architecture. ® Arm v8-M Baseline Thumb® -2 instruction set that combines high code density with 32-bit performance.  Support for single-cycle I/O access.  Power control optimization of system components.  Integrated sleep modes for low power consumption.  Optimized code fetching for reduced Flash and ROM power consumption.  32-bit Single cycle Hardware multiplier.  32-bit Hardware divider.  Deterministic, high-performance interrupt handling for time-critical applications.  Deterministic instruction cycle timing.  Support for system level debug authentication.  Support for Arm® Debug Interface Architecture ADIv5.1 Serial Wire Debug (SWD).  ETM for instruction trace.  Separated privileged and unprivileged modes.  Security Extension supporting a Secure and a Non-secure state.  Protected Memory System Architecture (PMSAv8) Memory Protection Units (MPUs) for both Secure and Non-secure states.  Security Attribution Unit (SAU).  SysTick timers for both Secure and Non-secure states.  A Nested Vectored Interrupt Controller (NVIC) closely integrated with the processor with up to 240 interrupts. ® NUMICRO M2351 SERIES DATASHEET  Oct.09 2019 Page 111 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.2 Arm® TrustZone® ® ® The Arm TrustZone can be considered as a physical partition that divides the microcontroller into Secure (Trusted) and Non-secure (Non-trusted) worlds according to memory address. The secure world is an isolated execution environment, code and data loaded inside are protected and cannot be accessed from Non-secure world. Code running at secure world is called secure code that can access both secure and non-secure memories and peripherals; while code running at non-secure world is called non-secure code that can only access non-secure memories and peripherals. Figure 6.2-1 shows an example of a system divided into the secure world and non-secure world. Green blocks indicate secure components, Red blocks indicate non-secure components and white ones are both/either secure and/or non-secure accessible. When the core processor is in secure state (left side of the figure), it belongs to secure world, which has its own MSP, PSP and VTOR registers and can access the green, red, white blocks. Contrarily, when the core processor is in non-secure state (right side of the figure), it belongs to non-secure world, which also has its own MSP, PSP and VTOR registers, but, it can only access red and white blocks so that non-secure world components are not able to impact secure world. Secure World SRAM Core Processor Non-Secure World CRYPTO SRAM UART Core Processor SRAM MSP / PSP DMA DMA I2C Timer SPI RTC GPIO VTOR Flash Flash Timer SPI NVIC By function calls NVIC Flash Flash RTC SCU GPIO SCU AHB5 / APB Bus AHB5 / APB Bus ® NUMICRO M2351 SERIES DATASHEET UART SRAM MSP / PSP I2C VTOR CRYPTO Figure 6.2-1 Secure World View and Non-secure World View on a Chip ® ® In order to support TrustZone to set up both secure world and non-secure world, Cortex -M23 provides three security attributes. Each memory address is assigned with one of the security attributes. These security attributes are listed below.  Non-secure (NS) Addresses used for non-secure memory or non-secure peripheral's registers.  Secure (S) Addresses used for secure memory or secure peripheral's registers.  Non-secure Callable (NSC) A special type of secure memory region which can contain SG instructions. The SG instruction allows a non-secure function calls to a secure function. The address space partitioning is completed by Implementation Define Attribution Unit (IDAU) and Security Attribution Unit (SAU) together. The IDAU is non-programmable, which defines static partition of address space. The static partition specifies the default security attribute of a memory region. In contrast with IDAU, the SAU is programmable which provides dynamic partition of address space. The Oct.09 2019 Page 112 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller dynamic partition is given by software programmer to specify the security attribute of a memory region. The core processor is in secure state when executing instructions from secure memory. Otherwise, the core processor is in non-secure state when executing instructions from non-secure memory. For setting IDAU and SAU, refer to sections “Implementation Defined Attribution Unit (IDAU)” and “Security Attribution Unit (SAU)” in “System Manager” chapter for more details. ® The security attribute of Flash, SRAM and peripherals are assigned by TrustZone related control units. The NSCBA register in FMC is used to divide the APROM into two parts, one is secure and the other is non-secure. The security attribute of SRAM and peripherals are assigned by programming Secure Configuration Unit (SCU). Whenever being reset, the M2351 is in secure state, that is, the core processor, Flash, SRAM and peripherals are all in secure state. Therefore, the system boots in secure state. The boot code is ® responsible to set up TrustZone related control units in M2351 to partition address space and assign non-secure resources that can be directly accessed from non-secure world. 6.2.1 Address Space Partition The SAU and IDAU are the control units used to define security attribute of memory addresses. The IDAU defines default partition of secure and non-secure addresses, while the SAU is programmable to change the security attribute defined by IDAU. 6.2.1.1 Implementation Define Attribution Unit (IDAU) The IDAU uses address bit 28 to distinguish between secure and non-secure world, i.e. the bit 28 of a secure address is always 0, and the bit 28 of a non-secure address is always 1, except regions above 0xE000_0000. ® NUMICRO M2351 SERIES DATASHEET The partition of 4GB address space is shown as Figure 6.2-2. Each region consists of a secure (bit 28 is 0) and a non-secure (bit 28 is 1) sub-regions, the size of a sub-region is 256MB. In order to store entry functions for non-secure code, the security attribute of secure SRAM region is assigned as nonsecure callable (NSC). Similarly, the secure “Code” region is assigned as NSC but has an exception at first 2 KB area. This first 2 KB area is defined as secure only to avoid accidental SG instruction after power on. Oct.09 2019 Page 113 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Region Range Memory Attribute 0xFFFFFFFF Device System Exempted 0xF0000000 Exempted 0xE0000000 Non-secure 0xD0000000 External Device External RAM Device Secure 0xC0000000 0xB0000000 Non-secure 0xA0000000 Secure 0x90000000 Non-secure Secure 0x80000000 0x70000000 Non-secure 0x60000000 Secure Non-secure 0x50000000 Secure 0x40000000 SRAM Non-secure 0x30000000 Secure+ NSC 0x20000000 Non-secure 0x10000000 Code 0x00000800 Secure + NSC 0x00000000 Secure 0x00000000 Memory Partition ® NUMICRO M2351 SERIES DATASHEET Figure 6.2-2 The 4 GB Memory Map Divided Into Secure and Non-secure Regions by IDAU 6.2.1.2 Security Attribution Unit (SAU) ® The SAU is a MPU-like function unit inside Cortex -M23. Up to 8 memory regions can be defined by programming control registers of SAU. Memory regions are enabled individually by programming SAU_RNR, SAU_RBAR and SAU_RLAR. The memory region is enabled once RENABLE (SAU_RLAR[0]) is set to 1, and the security attribute is defined by NSC (SAU_RLAR[1]):  NSC = 0, the memory region is Non-secure (NS).  NSC = 1, the memory region is Secure and Non-secure callable (NSC). The security attribute of each memory region defined by SAU is either NS or NSC. Those memory addresses not defined by SAU regions are treated as Secure. After all memory regions are set, SAU_CTRL[0] should be set to 1 to enable SAU. Both IDAU and SAU define the security attribute of a memory address. If the definitions are different, the more secure attribute will be used for the memory address. The priority of the security attribute from high to low is Secure > NSC > NS. When the core processor attempts to access a target, e.g. a memory or peripheral register, the security attribute of the target is decided by checking IDAU and SAU. If the core processor is nonsecure but the target is secure, a HardFault exception will be generated. Because non-specified memory addresses are treated as secure, non-secure memory regions need to be defined for the core processor to access non-secure memory and non-secure peripheral registers. Besides, whole secure code and SRAM regions are defined as NSC by IDAU. The size of NSC regions can be changed Oct.09 2019 Page 114 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller according to the NSC entry functions included in application code. The example usage of SAU regions is shown as Figure 6.2-3. Not used 7 Not used 6 Not used 5 Not used 4 Define Non-secure peripheral region (0x50000000~0x5FFFFFFF) 3 Allow core processor to successfully access Non-secure peripherals Define Non-secure SRAM region (0x30000000~0x3FFFFFFF) 2 Allow core processor to successfully access Non-secure SRAM Define Non-secure code region (0x10000000~0x1FFFFFFF) 1 Allow core processor to successfully access Non-secure Flash Define Non-secure callable area in Secure code region 0 Figure 6.2-3 Typical Setting of SAU Security Attribute Configuration 6.2.2.1 Security Attribute Configuration of Flash The M2351 Flash memory is split into a number of different regions such as LDROM, APROM and others. Most of the Flash regions are always secure and cannot be changed. The only one can be changed is the APROM region. Non-secure APROM region is set by programming a special control register, NSCBA (Non-secure base address). The NSCBA[23:0] indicates the starting address of nonsecure APROM and its value should be aligned with a Flash page size. The secure APROM region starts from address 0x0 and ends at NSCBA[23:0] – 1, while the non-secure APROM region ranges from NSCBA[23:0] to the end of APROM. For setting NSCBA, refer to FMC section for more details. 6.2.2.2 Security Attribute Configuration of SRAM and Peripherals The secure state of SRAM blocks and all peripherals can be configured by Security Configuration Unit (SCU), which contains a set of control registers used to assign the security attribute. Besides, the SCU monitors bus transfers to detect unsecure access. The unsecure access is one of the following conditions.  Non-secure master peripheral tries to access a secure address (address bit 28 = 0).  Secure code or secure master peripheral uses non-secure address (address bit 28 = 1) Oct.09 2019 Page 115 of 246 Rev 1.02 ® The previous section describes how to divide the address space of core processor view into secure world and non-secure world. For M2351, the memory and peripherals can be assigned to either secure or non-secure world during system initialization. The M2351 is designed to start execution in secure state after reset. In other words, core processor and all system resources including Flash, SRAM and peripherals are secure after reset. Then, the system initialization code may change some parts of the system resources to be non-secure. NUMICRO M2351 SERIES DATASHEET 6.2.2 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller to access secure SRAM or peripheral. When an unsecure access is detected, SCU blocks the access operation and generates a secure alarm interrupt. For more details, refer to the Security Configuration Unit (SCU) chapter. 6.2.3 System Address Map and Access Scheme In the M2351 series, the Flash, SRAM and most peripherals can be assigned to be Secure or Nonsecure, but each of them can be accessed through either Secure address or Non-secure address depending on its security attribute configuration. Core processor and master peripherals should use correct address to access resources, i.e. the secure resource should be accessed by using secure address. Similarly, the non-secure resource should be accessed by using non-secure address. 6.2.3.1 Permanent Secure Peripherals The security attribute of some peripherals are always secure and cannot be changed for safety and security. If necessary, the secure code should manage and provide functions for non-secure code to access these peripherals. Table 6.2-1 lists these secure peripherals. Function Address SYS System Control Registers 0x4000_0000 – 0x4000_01FF CLK Clock Control Registers 0x4000_0200 – 0x4000_02FF NMI NMI Control Registers 0x4000_0300 – 0x4000_03FF PDMA0 Peripheral DMA 0 Control Registers 0x4000_8000 – 0x4000_8FFF FMC Flash Memory Control Registers 0x4000_C000 – 0x4000_CFFF SCU Security Configuration Unit Registers 0x4002_F000 – 0x4002_FFFF WDT Watchdog Timer Control Registers 0x4004_0000 – 0x4004_0FFF TMR01 Timer0/Timer1 Control Registers 0x4005_0000 – 0x4005_0FFF Table 6.2-1 Peripherals and Regions that are Always Secure ® NUMICRO M2351 SERIES DATASHEET Peripheral 6.2.3.2 Secure Address vs. Non-secure Address A memory or a peripheral register may have secure and non-secure address in system address map, but the memory or register only responds to the address that is consistent with its security attribute. The different access modes of secure and non-secure target are illustrated in Figure 6.2-4. Suppose that SRAM block 0, 2, and 4 are in secure state, they will respond to an access when address bit 28 is 0 (secure address), but will not respond to an access with address bit 28 is 1 (nonsecure address). In this example, SRAM block 1 and 3 are in non-secure state. Hence, these blocks will only respond to an access when the address bit 28 is 1. Oct.09 2019 Page 116 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller SRAM Block 4 0x200XXXXX Secure address range inaccessible SRAM Block 2 inaccessible SRAM Block 0 The same SRAM Memory which contains secure and non-secure blocks inaccessible 0x300XXXXX Non-secure address range SRAM Block 3 inaccessible SRAM Block 1 inaccessible Secure Region Non-secure Region Figure 6.2-4 Example of SRAM Divided Into Secure Block and Non-secure Block Valid Access vs. Invalid Access When core processor or a master peripheral is trying to access (read or write) a memory or register, the result depends on the following conditions. Non-secure code or master peripheral is not allowed to access a secure memory or register.  A memory or register only responds to the related address which is consistent with its security attribute. Oct.09 2019 Page 117 of 246 Rev 1.02 ®  NUMICRO M2351 SERIES DATASHEET 6.2.3.3 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Cortex-M23 (a) SAU (b-1) IDAU FMC (NSCB A) Secure (c-1) Flash 2 (b- Non-secure ) ) (e1 CPU bus (c-2) Secure SRAM Master peripheral (d) SCU (e-2) Non-secure 2 (c) 3 (e) Secure Non-secure Non-secure Secure Non-secure Peripherals AHB/APB Bus Figure 6.2-5 Checking Point of Accesses ® ® NUMICRO M2351 SERIES DATASHEET Figure 6.2-5 illustrates how the above conditions are checked by TrustZone related control units. When the core processsor tries to fetch instructions or access data, the security attribute of the core processor and target address are verified by SAU and IDAU (refer to (a)). If the core processor is in non-secure state and target address is secure, a hard fault exception will be generated. The other cases will go to next checkpoints (refer to (b-1) and (b-2)). If the non-secure code tries to read/write a secure memory or register, the access will be blocked and a secure violation interrupt (SCU interrupt) can be generated. If a secure code uses non-secure address to access a secure memory or register, the operation has no effect. (refer to (c-1) and (c-2)) When a master peripheral tries to read/write a memory or register, the SCU will verify the access (refer to (d)). When a non-secure master peripheral wants to access a secure memory or register, the access will be blocked and a secure violation interrupt (SCU interrupt) can be generated. If a secure master peripheral uses non-secure address to read/write a secure memory or register, the operation has no effect. The responses of the accesses from the core processor and master peripherals follow the rule called memory access policy, which is described in the “Memory Access Policy (MAP)” section of “Security Configuration Unit (SCU)” chapter. Oct.09 2019 Page 118 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.3 System Manager 6.3.1 Overview System management includes the following sections:  System Reset  System Power Distribution  SRAM Memory Orginization  System Timer (SysTick)  Nested Vectored Interrupt Controller (NVIC)  System Control register 6.3.2 Reset The system reset can be issued by one of the events listed below. These reset event flags can be read from SYS_RSTSTS register to determine the reset source. Hardware reset sourcces are from peripheral signals. Software reset can trigger reset through setting control registers.  – Power-on Reset (POR) – Low level on the nRESET pin – Watchdog Time-out Reset and Window Watchdog Reset (WDT/WWDT Reset) – Low Voltage Reset (LVR) – Brown-out Detector Reset (BOD Reset) – CPU Lockup Reset Software Reset Sources CHIP Reset will reset whole chip by writing 1 to CHIPRST (SYS_IPRST0[0]) – System Reset to reboot but keeping the booting setting from APROM or LDROM by writing 1 to SYSRESETREQ (AIRCR[2]) – CPU Reset for Cortex -M23 core only by writing 1 to CPURST (SYS_IPRST0[1]) Oct.09 2019 ® Page 119 of 246 Rev 1.02 ® – NUMICRO M2351 SERIES DATASHEET  Hardware Reset Sources NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Glitch Filter 32 us nRESET ~50k ohm @3.3v VDD PORMASK(SYS_PORCTL0[15:0]) Power-on Reset POROFF(SYS_PORCTL1[15:0]) LVREN(SYS_BODCTL[7]) Reset Pulse Width ~3.2ms Low Voltage Reset AVDD BODRSTEN(SYS_BODCTL[3]) Brown-out Reset WDT/WWDT Reset Reset Pulse Width 64 WDT clocks CPU Lockup Reset Reset Pulse Width 2 system clocks System Reset CHIP Reset CHIPRST(SYS_IPRST0[0]) System Reset SYSRESETREQ(AIRCR[2]) Reset Pulse Width 2 system clocks Software Reset CPU Reset CPURST(SYS_IPRST0[1]) ® NUMICRO M2351 SERIES DATASHEET Figure 6.3-1 System Reset Sources ® There are a total of 9 reset sources in the NuMicro family. In general, CPU reset is used to reset ® ® Cortex -M23 only; the other reset sources will reset Cortex -M23 and all peripherals. However, there are small differences between each reset source and they are listed in Table 6.3-1. Reset Sources Register POR NRESET WDT LVR BOD Lockup CHIP SYSTEM CPU SYS_RSTSTS Bit 0 = 1 Bit 1 = 1 Bit 2 = 1 Bit 3 = 1 Bit 4 = 1 Bit 8 = 1 Bit 0 = 1 Bit 5 = 1 Bit 7 = 1 CHIPRST 0x0 - - - - - - - - Reload from CONFIG0 Reload Reload Reload from from from CONFIG0 CONFIG0 CONFIG0 Reload Reload from from CONFIG0 CONFIG0 Reload from CONFIG0 SYS_SRAMPCTL 0x0 - - - - - - - - SYS_SRAMPPCT 0x0 - - - - - - - - (SYS_IPRST0[0]) BODEN (SYS_BODCTL[0]) BODVL (SYS_BODCTL[18:16]) BODRSTEN (SYS_BODCTL[3]) Oct.09 2019 Page 120 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller LXTEN 0x0 - - - - - - - - 0x1 - 0x1 - - - 0x1 - - 0x3 0x3 - - - - - - - 0x0 - - - - - - - - 0x0 - - - - - - - - 0x0 - - - - - - - - 0x0 - - - - - - - - 0x0 0x0 - - - - - - - (CLK_PWRCTL[1]) WDTCKEN (CLK_APBCLK0[0]) WDTSEL (CLK_CLKSEL1[1:0]) HXTSTB (CLK_STATUS[0]) LXTSTB (CLK_STATUS[1]) PLLSTB (CLK_STATUS[2]) HIRCSTB (CLK_STATUS[4]) CLKSFAIL (CLK_STATUS[7]) CLK_PLLCTL 0x000D_44 0A - - - - - - - PDMSEL 0x0 - - - - - - - - Reload from CONFIG0 Reload Reload Reload Reload from from from from CONFIG0 CONFIG0 CONFIG0 CONFIG0 Reload from CONFIG0 - - 0x0700 0x0700 0x0700 0x0700 0x0700 - 0x0700 - - WDT_ALTCTL 0x0000 0x0000 0x0000 0x0000 0x0000 - 0x0000 - - WWDT_RLDCNT 0x0000 0x0000 0x0000 0x0000 0x0000 - 0x0000 - - WWDT_CTL 0x3F0800 0x3F0800 0x3F0800 0x3F0800 0x3F0800 - 0x3F0800 - - WWDT_STATUS 0x0000 0x0000 0x0000 0x0000 0x0000 - 0x0000 - - WWDT_CNT 0x3F 0x3F 0x3F 0x3F 0x3F - 0x3F - - BS Reload from CONFIG0 Reload Reload Reload Reload from from from from CONFIG0 CONFIG0 CONFIG0 CONFIG0 Reload from CONFIG0 - - Reload from CONFIG0 Reload Reload Reload Reload from from from from CONFIG0 CONFIG0 CONFIG0 CONFIG0 Reload from CONFIG0 - - Reload base on CONFIG0 - (CLK_PMUCTL [2:0]) RSTEN (WDT_CTL[1]) (WDT_CTL[7]) WDT_CTL (FMC_ISPCTL[1]) ® except bit 1 and bit 7. BL (FMC_ISPCTL[16]) CBS (FMC_ISPSTS[2]) VECMAP (FMC_ISPSTS[23:9]) Oct.09 2019 NUMICRO M2351 SERIES DATASHEET WDTEN Reload Reload Reload Reload Reload base on base on base on base on base on CONFIG0 CONFIG0 CONFIG0 CONFIG0 CONFIG0 Page 121 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Other Peripheral Registers Reset Value FMC Registers Reset Value - Note: ‘-‘ means that the value of register keeps original setting. Table 6.3-1 Reset Value of Registers 6.3.2.1 nRESET Reset The nRESET reset means to generate a reset signal by pulling low nRESET pin, which is an asynchronous reset input pin and can be used to reset system at any time. When the nRESET voltage is lower than 0.2 VDD and the state keeps longer than 32 us (glitch filter), chip will be reset. The nRESET reset will control the chip in reset state until the nRESET voltage rises above 0.7 V DD and the state keeps longer than 32 us (glitch filter). The PINRF(SYS_RSTSTS[1]) will be set to 1 if the previous reset source is nRESET reset. Figure 6.3-2 shows the nRESET reset waveform. nRESET 0.7 VDD 32 us 0.2 VDD 32 us nRESET Reset ® NUMICRO M2351 SERIES DATASHEET Figure 6.3-2 nRESET Reset Waveform 6.3.2.2 Power-on Reset (POR) The Power-on reset (POR) is used to generate a stable system reset signal and forces the system to be reset when power-on to avoid unexpected behavior of MCU. When applying the power to MCU, the POR module will detect the rising voltage and generate reset signal to system until the voltage is ready for MCU operation. At POR reset, the PORF(SYS_RSTSTS[0]) will be set to 1 to indicate there is a POR reset event. The PORF(SYS_RSTSTS[0]) bit can be cleared by writing 1 to it. Figure 6.3-3 shows the power-on reset waveform. VPOR 0.1V VDD Power-on Reset Figure 6.3-3 Power-on Reset (POR) Waveform Oct.09 2019 Page 122 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.3.2.3 Low Voltage Reset (LVR) If the Low Voltage Reset function is enabled by setting the Low Voltage Reset Enable Bit LVREN (SYS_BODCTL[7]) to 1, after 200us delay, LVR detection circuit will be stable and the LVR function will be active. Then LVR function will detect AVDD during system operation. When the AVDD voltage is lower than VLVR and the state keeps longer than De-glitch time set by LVRDGSEL (SYS_BODCTL[14:12]), chip will be reset. The LVR reset will control the chip in reset state until the AVDD voltage rises above VLVR and the state keeps longer than De-glitch time set by LVRDGSEL (SYS_BODCTL[14:12]). The default setting of Low Voltage Reset is enabled without De-glitch function. Figure 6.3-4 shows the Low Voltage Reset waveform. AVDD VLVR T1 ( < LVRDGSEL) T2 ( =LVRDGSEL) T3 ( =LVRDGSEL) Low Voltage Reset 200 us Delay for LVR stable LVREN 6.3.2.4 Brown-out Detector Reset (BOD Reset) ® NUMICRO M2351 SERIES DATASHEET Figure 6.3-4 Low Voltage Reset (LVR) Waveform If the Brown-out Detector (BOD) function is enabled by setting the Brown-out Detector Enable Bit BODEN (SYS_BODCTL[0]), Brown-out Detector function will detect AVDD during system operation. When the AVDD voltage is lower than VBOD which is decided by BODEN and BODVL (SYS_BODCTL[18:16]) and the state keeps longer than De-glitch time set by BODDGSEL (SYS_BODCTL[10:8]), chip will be reset. The BOD reset will control the chip in reset state until the AVDD voltage rises above VBOD and the state keeps longer than De-glitch time set by BODDGSEL. The default value of BODEN, BODVL and BODRSTEN (SYS_BODCTL[3]) is set by Flash controller user configuration register CBODEN (CONFIG0 [19]), CBOV (CONFIG0 [23:21]) and CBORST(CONFIG0[20]) respectively. User can determine the initial BOD setting by setting the CONFIG0 register. Figure 6.3-5 shows the Brown-out Detector waveform. Oct.09 2019 Page 123 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller AVDD VBODH VBODL Hysteresis T1 (< BODDGSEL) T2 (= BODDGSEL) BODOUT T3 (= BODDGSEL) BODRSTEN Brown-out Reset Figure 6.3-5 Brown-out Detector (BOD) Waveform ® NUMICRO M2351 SERIES DATASHEET 6.3.2.5 Watchdog Timer Reset (WDT) In most industrial applications, system reliability is very important. To automatically recover the MCU from failure status is one way to improve system reliability. The watchdog timer(WDT) is widely used to check if the system works fine. If the MCU is crashed or out of control, it may cause the watchdog time-out. User may decide to enable system reset during watchdog time-out to recover the system and take action for the system crash/out-of-control after reset. Software can check if the reset is caused by watchdog time-out to indicate the previous reset is a watchdog reset and handle the failure of MCU after watchdog time-out reset by checking WDTRF(SYS_RSTSTS[2]). 6.3.2.6 CPU Lockup Reset CPU enters lockup status after CPU produces hardfault at hardfault handler and chip gives immediate indication of seriously errant kernel software. This is the result of the CPU being locked because of an unrecoverable exception following the activation of the processor’s built in system state protection hardware. When chip enters debug mode, the CPU lockup reset will be ignored. 6.3.2.7 CPU Reset, CHIP Reset and System Reset ® The CPU Reset means only Cortex -M23 core is reset and all other peripherals remain the same status after CPU reset. User can set the CPURST(SYS_IPRST0[1]) to 1 to assert the CPU Reset signal. The CHIP Reset is same with Power-on Reset. The CPU and all peripherals are reset and BS(FMC_ISPCTL[1]) bit is automatically reloaded from CONFIG0 setting. User can set the CHIPRST(SYS_IPRST0[1]) to 1 to assert the CHIP Reset signal. The System Reset is similar with CHIP Reset. The difference is that BS(FMC_ISPCTL[1]) will not be reloaded from CONFIG0 setting and keep its original software setting for booting from APROM or Oct.09 2019 Page 124 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller LDROM. User can set the SYSRESETREQ(AIRCR[2]) to 1 to assert the System Reset. 6.3.3 Power Modes and Wake-up Sources ® The NuMicro M2351 series has power manager unit to support several operating modes for saving ® power. Table 6.3-2 lists all power modes in the NuMicro M2351 series. CPU Operating Maximum Speed Mode LDO_CAP Clock Disable (V) (MHz) Normal mode 48MHz 1.20 All clocks are disabled by control register. CLK_AHBCLK, CLK_APBCLK1. Turbo mode 64MHz 1.26 and All clocks are disabled by control register. CLK_AHBCLK, CLK_APBCLK1. Idle mode CLK_APBCLK0 CLK_APBCLK0 and keep Only CPU clock is disabled. CPU enters Deep Sleep mode keep Most clocks are disabled except LIRC/LXT, and only RTC/WDT/Timer/UART peripheral clocks still enable if their clock sources are selected as LIRC/LXT. Fast Wake-up mode (FWPD) Power-down CPU enters Deep Sleep mode keep Most clocks are disabled except LIRC/LXT, and only RTC/WDT/Timer/UART peripheral clocks still enable if their clock sources are selected as LIRC/LXT. Low leakage mode Power-down CPU enters Deep Sleep mode 0.96 Most clocks are disabled except LIRC/LXT, and only RTC/WDT/Timer/UART peripheral clocks still enable if their clock sources are selected as LIRC/LXT. Ultra Low leakage Power-down CPU enters Deep Sleep mode mode 0.9 Most clocks are disabled except LIRC/LXT, and only RTC/WDT/Timer/UART peripheral clocks still enable if their clock sources are selected as LIRC/LXT. Power-down mode (PD) (LLPD) (ULLPD) Power off Floating Only LIRC/LXT still enable for RTC function and wake-up timer usage. Power off Floating Only LIRC/LXT still enable for RTC function and wake-up timer usage. (SPD) Deep Power-down mode (DPD) Table 6.3-2 Power Mode Table Each power mode has different entry setting and leaving condition. Table 6.3-3 shows the entry setting for each power mode. When chip power-on, chip is running in normal mode. User can enter each mode by setting SLEEPDEEP (SCR[2]), PDEN (CLK_PWRCT[7]) and PDMSEL (CLK_PMUCTL[2:0]) and execute WFI instruction. Register/Instruction SLEEPDEEP PDEN Mode (SCR[2]) (CLK_PWRCTL[7]) (CLK_PMUCTL[2:0]) PDMSEL CPU Run WFI Instruction Normal mode 0 0 0 NO Idle mode 0 0 0 YES Power-down mode 1 1 0 YES Oct.09 2019 Page 125 of 246 Rev 1.02 ® Standby Power-down mode NUMICRO M2351 SERIES DATASHEET CPU enter Sleep mode NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Low leakage Power-down mode 1 1 1 YES Ultra Low mode 1 1 3 YES Fast Wake-up Power-down mode 1 1 2 YES Standby Power-down mode 1 1 4 YES Deep Power-down mode 1 1 6 YES leakage Power-down Table 6.3-3 Power Mode Entry Setting Table There are several wake-up sources in Idle mode and Power-down mode. Table 6.3-4 lists the available clocks for each power mode. Power Mode Normal Mode Idle Mode Power-Down Mode Definition CPU is in active state CPU is in sleep state CPU is in sleep state and all clocks stop except LXT and LIRC. SRAM content be retained by setting SYS_SRAMPCTL and SYS_SRAMPPCT. Entry Condition Chip is in normal mode after CPU executes WFI instruction. system reset released CPU sets sleep mode enable and power down enable and executes WFI instruction. Wake-up Sources N/A All interrupts EINT, GPIO, UART, USBD, USBH, OTG, CAN, BOD, WDT, SDH, Timer, I²C, USCI, RTC and ACMP. Available Clocks All All except CPU clock LXT and LIRC After Wake-up N/A CPU back to normal mode CPU back to normal mode ® NUMICRO M2351 SERIES DATASHEET Table 6.3-4 Power Mode Difference Table System reset released Normal Mode CPU Clock ON HXT, HIRC, HIRC48, LXT, LIRC, HCLK, PCLK ON Flash ON CPU executes WFI Interrupts occur 1. SLEEPDEEP(SCR[2]) = 1 2. PDEN(CLK_PWRCTL[7]) = 1 3. CPU executes WFI Wake-up events occur Power-down Mode CPU Clock OFF HXT, HIRC, HIRC48, PCLK OFF LXT, LIRC ON Flash Halt Idle Mode CPU Clock OFF HXT, HIRC, HIRC48, PCLK ON LXT, LIRC ON Flash Halt Figure 6.3-6 Power Mode State Machine 1. LXT ON or OFF depends on software setting in normal mode. Oct.09 2019 Page 126 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 2. LIRC ON or OFF depends on software setting in normal mode. 3. If TIMER clock source is selected as LIRC/LXT and LIRC/LXT is on. 4. If WDT clock source is selected as LIRC and LIRC is on. 5. If RTC clock source is selected as LXT and LXT is on. 6. If UART clock source is selected as LXT and LXT is on. Power-Down Mode Power-Down Mode (PD/FWPD/LLPD/ULLPD) (SPD/DPD) ON Halt Halt ON ON Halt Halt HIRC48 ON ON Halt Halt LXT ON ON ON/OFF1 ON/OFF1 LIRC ON ON ON/OFF2 ON/OFF2 PLL ON ON Halt Halt CPU ON Halt Halt Halt HCLK/PCLK ON ON Halt Halt FLASH ON ON Halt Normal Mode Idle Mode HXT ON HIRC Halt 3 Halt Halt TIMER ON ON ON/OFF WDT ON ON ON/OFF4 5 ON/OFF5 ON ON ON/OFF UART ON ON ON/OFF6 Halt Others ON ON Halt Halt Table 6.3-5 Clocks in Power Modes ® NUMICRO M2351 SERIES DATASHEET RTC Wake-up sources in Power-down mode: EINT, GPIO, UART, USBD, USBH, OTG, CAN, BOD, ACMP, WDT, SDH, Timer, I²C, USCI, , , RTC. After chip enters power down, the following wake-up sources can wake chip up to normal mode. Table 6.3-6 lists the condition about how to enter Power-down mode again for each peripheral. *User needs to wait this condition before setting PDEN(CLK_PWRCTL[7]) and execute WFI to enter Power-down mode. Power-down mode Wake-Up Source PD Wake-Up Condition LLPD ULLPD SPD DPD System Can Enter Power-Down Mode Again Condition* FWPD Brown-out Detector Reset / Interrupt √ - - After software writes (SYS_BODCTL[4]). Brown-out Detector Reset - √ - After software writes 1 to clear BODWK (CLK_PMUSTS[13]) when SPD mode is entered. BOD Oct.09 2019 Page 127 of 246 1 to clear BODIF Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller LVR √ - - After software writes (SYS_RSTSTS[3]) - √ - After software writes 1 to clear LVRWK (CLK_PMUSTS[12]) when SPD mode is entered. LVR Reset 1 √ - After software writes (SYS_RSTSTS[0]). EINT External Interrupt √ - - After software write 1 to clear the Px_INTSRC[n] bit. GPIO GPIO Interrupt √ - - After software write 1 to clear the Px_INTSRC[n] bit. GPIO(PA~P D) Wake-up pin rising or falling edge event, 61-pin - √ - GPxWK(CLK_PMUSTS[11:8]) is cleared when SPD mode is entered. GPIO(PC.0) Wake-up pin rising or falling edge event , 1-pin - - √ PINWK(CLK_PMUSTS[1]) is cleared when DPD mode is entered. TIMER Timer Interrupt √ - - After software writes (TIMERx_INTSTS[1]) (TIMERx_INTSTS[0]). Wakeup timer Wakeup by wake-up timer time-out - √ √ After software writes 1 to clear TMRWK (CLK_PMUSTS[1]) when SPD or DPD mode is entered. WDT WDT Interrupt √ - - After software writes 1 to (WDT_CTL[5]) (Write Protect). Alarm Interrupt √ - - After software writes (RTC_INTSTS[0]). 1 to clear ALMIF Time Tick Interrupt √ - - After software writes (RTC_INTSTS[1]). 1 to clear TICKIF Wakeup by RTC alarm - √ √ RTCWK (CLK_PMUSTS[5]) is cleared when DPD or SPD mode is entered. Wakeup by RTC tick time - √ √ RTCWK (CLK_PMUSTS[5]) is cleared when DPD or SPD mode is entered. Wakeup by tamper event - √ √ RTCWK (CLK_PMUSTS[5]) is cleared when DPD or SPD mode is entered. nCTS wake-up √ - - After software writes 1 to clear CTSWKF (UARTx_WKSTS[0]). RX Data wake-up √ - - After software writes 1 to clear DATWKF (UARTx_WKSTS[1]). Received FIFO Threshold Wake-up √ - - After software writes 1 to clear RFRTWKF (UARTx_WKSTS[2]). RS-485 AAD Mode Wake-up √ - - After software writes 1 to clear RS485WKF (UARTx_WKSTS[3]). Received FIFO Threshold Time-out Wake-up √ - - After software writes 1 to clear TOUTWKF (UARTx_WKSTS[4]). CTS Toggle √ - - After software writes (UUART_WKSTS[0]). 1 to clear WKF Data Toggle √ - - After software writes (UUART_WKSTS[0]). 1 to clear WKF ® NUMICRO M2351 SERIES DATASHEET √ UART clear LVRF POR Reset 1 to clear POR RTC 1 to to clear and clear PORF TWKF TIF WKF USCI UART Oct.09 2019 Page 128 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Data toggle √ - - After software writes (UI2C_WKSTS[0]). Address match √ - - After software writes 1 to clear WKAKDONE (UI2C_PROTSTS[16], then writes 1 to clear WKF (UI2C_WKSTS[0]). USCI SPI SS Toggle √ - - After software writes (USPI_WKSTS[0]). I2C Address match wake-up √ - - After software writes 1 to clear WKAKDONE (I2C_WKSTS[1]). Then software writes 1 to clear WKIF(I2C_WKSTS[0]). √ - - After software writes (USBD_INTSTS[0]). 1 1.After write 1 (HcInterruptStatus[7]). to clear RHSC 2.After write 1 (HcInterruptStatus[7]). to clear RHSC USCI I2C 1.Remote wake-up USBD 2.Pulg in wake-up 1.Connection detected 2.Disconnect detected USBH √ - - 3.Remote-wakeup 1 1 to to to clear clear clear WKF WKF BUSIF 3.After write 1 to clear RHSC (HcInterruptStatus[7]). and port suspended. ID pin state be change √ - - After software writes WKEN(OTG_CTL[5]). Comparator Power-Down Wake-Up Interrupt √ - - After software writes (ACMP_STATUS[8]) (ACMP_STATUS[9]). ACMPO status change - √ - ACMPWK (CLK_PMUSTS[3]) is cleared when SPD mode is entered. CAN Incoming Data Toggle √ - - After software writes 0 to clear WAKUP_STS (CAN_WU_STATUS[0]) SDH Card detection √ - - Clear CDIF0 (SDH_INTSTS[8]) after SDH wakeup. OTG 1 1 to to clear and set WKIF0 WKIF1 ACMP ® 6.3.4 System Power Distribution In this chip, power distribution is divided into four 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.2V or 1.26V power for digital operation and I/O pins.  USB transceiver power from VBUS offers the power for operating the USB transceiver.  RTC power from VBAT provides the power for RTC and 80 bytes backup registers. The outputs of internal voltage regulators, LDO and VDD, 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). If system enters SPD mode SW_SPD switch needs to be turned off, and internal voltage regulator can be set to LDO mode or DC-DC converter mode. Figure 6.3-7 shows the power distribution. Oct.09 2019 Page 129 of 246 NUMICRO M2351 SERIES DATASHEET Table 6.3-6 Condition of Entering Power-down Mode Again Rev 1.02 NuMicro® M2351 AVDD 12-bit ADC Internal Reference Voltage 12-bit DAC Temp. Sensor PA.0~PA.5 PF.5 PF.4 PF.6~PF.11 VREF VBAT 32-bit ARM® Cortex® -M23 Microcontroller 32.768 kHz crystal oscillator IO Cell IO Cell VDDIO 0.9V AVSS Analog Comparator Digital Logic LDO_CAP RTC & 80 bytes backup register RTCLDO 3.3V à 0.9V LVDR (Low Voltage Reset, Brown-out Detector) SRAM (64K) Flash 32 KHz LIRC Oscillator SRAM (32K) POR12 SW_SPD 1.2V/1.26V 2uF PLL PF.2 PF.3 4~24 MHz crystal oscillator 12 MHz HIRC Oscillator POR33 48 MHz HIRC Oscillator Power On Control TRNG 10 kHz LIRC Oscillator 3.3V à 1.2V/1.26V Regulator Power Management and Holder Logic USB 1.1 OTG PHY IO Cell GPIO except PF.4~PF.11 and PA.0~PA.5 NUMICRO M2351 SERIES DATASHEET ® VSS VDD M2351 Power Distribution Figure 6.3-7 Power Distribution Diagram Oct.09 2019 Page 130 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.3.5 Bus Matrix M4 PDMA1 M3 USBH Crypto M2 SDH0 M1 PDMA0 M0 Cortex-M23 S0 S1 S2 FLASH SRAM0 (32 KB) SRAM1 (64 KB) S3 APB0 Peripheral S4 APB1 Peripheral S5 EBI S6 AHB Peripheral Figure 6.3-2 M2351 Bus Martix Architecture Diagram System Memory Map This chip provides 4G-byte addressing space. The memory locations assigned to each on-chip controllers are shown in Table 6.3-7. The detailed register definition, memory space, and programming will be described in the following sections for each on-chip peripheral. This chip ® implement Arm Trust Zone Architecture as well as memory alias technique, secure code and nonsecure code can run together on the chip well, while both have different memory view. Secure code view is shown in Table 6.2-1 and non-secure code view is shown in Table 6.2-2. ® The NuMicro M2351 series only supports little-endian data format. Address Space Token Controllers 0x0000_0000 – 0x0003_FFFF FLASH_BA FLASH Memory Space (256 KB) 0x0000_0000 – 0x0007_FFFF FLASH_BA FLASH Memory Space (512 KB) Flash and SRAM Memory Space Oct.09 2019 Page 131 of 246 Rev 1.02 ® 6.3.6 NUMICRO M2351 SERIES DATASHEET Refer to Figure 6.3-2. This chip uses Advanced Microcontroller Bus Architecture (AMBA) protocol to implement system bus. The system has five masters and seven slaves, in which a different master ® can communicate with a different slave at the same time through Bus Matrix. The Cortex -M23 core processor acts as the master in Bus Matrix, located on M0 to communicate with any slaves through Bus Matrix. PDMA0 and PDMA1 are Peripheral Direct Memory Access and act as the master in Bus Matrix, respectively located on M1 and M4, which can communicate with any slaves through Bus Matrix. SDH0 and Crypto share the same master bandwidth located on M2. USBH acts as the master role in Bus Matrix and is located on M3. The slave AHB Peripheral is the Advanced High-performance Bus (AHB) controller, and any master can communicate with any AHB peripheral through Bus Matrix. NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 0x2000_0000 – 0x2000_7FFF SRAM0_BA SRAM Memory Space (32 KB) 0x2000_8000 – 0x2001_7FFF SRAM1_BA SRAM Memory Space (64 KB) 0x6000_0000 – 0x6FFF_FFFF EXTMEM_BA External Memory Space (256 MB) Secure Peripheral Controllers Space (0x4000_0000 – 0x400F_FFFF) 0x4000_0000 – 0x4000_01FF SYS_BA System Control Registers (always secure) 0x4000_0200 – 0x4000_02FF CLK_BA Clock Control Registers (always secure) 0x4000_0300 – 0x4000_03FF NMI_BA NMI Control Registers (always secure) 0x4000_4000 – 0x4000_4FFF GPIO_BA GPIO Control Registers 0x4000_8000 – 0x4000_8FFF PDMA0_BA Peripheral DMA 0 Control Registers (always secure) 0x4000_9000 – 0x4000_9FFF USBH_BA USB Host Control Registers 0x4000_C000 – 0x4000_CFFF FMC_BA Flash Memory Control Registers (always secure ) 0x4000_D000 – 0x4000_DFFF SDH0_BA SDHOST0 Control Registers 0x4001_0000 – 0x4001_0FFF EBI_BA External Bus Interface Control Registers 0x4001_8000 – 0x4000_8FFF PDMA1_BA Peripheral DMA 1Control Registers (secure or non-secure) 0x4003_1000 – 0x4003_1FFF CRC_BA CRC Generator Registers 0x4003_2000 – 0x4003_4FFF CRPT_BA Cryptographic Accelerator Registers 0x4002_F000 – 0x4002_FFFF SCU_BA Secure Configuration Unit Registers (always secure) Secure APB Controllers Space (0x4004_0000 ~ 0x400F_FFFF) WDT_BA Watchdog Timer Control Registers (always secure) 0x4004_1000 – 0x4004_1FFF RTC_BA Real Time Clock (RTC) Control Register 0x4004_3000 – 0x4004_3FFF EADC_BA Enhanced Analog-Digital-Converter (EADC) Control Registers 0x4004_5000 – 0x4004_5FFF ACMP01_BA Analog Comparator 0/ 1 Control Registers 0x4004_7000 – 0x4004_7FFF DAC_BA DAC Control Registers 0x4004_8000 – 0x4004_8FFF I2S0_BA I2S0 Interface Control Registers 0x4004_D000 – 0x4004_DFFF OTG_BA OTG Control Registers 0x4005_0000 – 0x4005_0FFF TMR01_BA Timer0/Timer1 Control Registers (always secure) 0x4005_1000 – 0x4005_1FFF TMR23_BA Timer2/Timer3 Control Registers 0x4005_8000 – 0x4005_8FFF EPWM0_BA EPWM0 Control Registers 0x4005_9000 – 0x4005_9FFF EPWM1_BA EPWM1 Control Registers 0x4005_A000 – 0x4005_AFFF BPWM0_BA BPWM0 Control Registers 0x4005_B000 – 0x4005_BFFF BPWM1_BA BPWM1 Control Registers 0x4006_0000 – 0x4006_0FFF QSPI0_BA Quad SPI0 Control Registers 0x4006_1000 – 0x4006_1FFF SPI0_BA SPI0 Control Registers 0x4006_2000 – 0x4006_2FFF SPI1_BA SPI1 Control Registers 0x4006_3000 – 0x4006_3FFF SPI2_BA SPI2 Control Registers ® NUMICRO M2351 SERIES DATASHEET 0x4004_0000 – 0x4004_0FFF Oct.09 2019 Page 132 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller SPI3 Control Registers 0x4007_0000 – 0x4007_0FFF UART0_BA UART0 Control Registers 0x4007_1000 – 0x4007_1FFF UART1_BA UART1 Control Registers 0x4007_2000 – 0x4007_2FFF UART2_BA UART2 Control Registers 0x4007_3000 – 0x4007_3FFF UART3_BA UART3 Control Registers 0x4007_4000 – 0x4007_4FFF UART4_BA UART4 Control Registers 0x4007_5000 – 0x4007_5FFF UART5_BA UART5 Control Registers 0x4007_4000 – 0x4007_4FFF Reserved Reserved 0x4007_5000 – 0x4007_5FFF Reserved Reserved 0x4008_0000 – 0x4008_0FFF I2C0_BA I2C0 Control Registers 0x4008_1000 – 0x4008_1FFF I2C1_BA I2C1 Control Registers 0x4008_2000 – 0x4008_2FFF I2C2_BA I2C2 Control Registers 0x4009_0000 – 0x4009_0FFF SC0_BA Smartcard Host 0 Control Registers 0x4009_1000 – 0x4009_1FFF SC1_BA Smartcard Host 1 Control Registers 0x4009_2000 – 0x4009_2FFF SC2_BA Smartcard Host 2 Control Registers 0x400A_0000 – 0x400A_0FFF CAN0_BA CAN0 Bus Control Registers 0x400B_0000 – 0x400B_0FFF QEI0_BA QEI0 Control Registers 0x400B_1000 – 0x400B_1FFF QEI1_BA QEI1 Control Registers 0x400B_4000 – 0x400B_4FFF ECAP0_BA ECAP0 Control Registers 0x400B_5000 – 0x400B_5FFF ECAP1_BA ECAP1 Control Registers 0x400B_9000 – 0x400B_9FFF TRNG_BA TRNG Control Registers 0x400C_0000 – 0x400C_0FFF USBD_BA USB Device Control Register 0x400D_0000 – 0x400D_0FFF USCI0_BA USCI0 Control Registers 0x400D_1000 – 0x400D_1FFF USCI1_BA USCI1 Control Registers ® SPI3_BA NUMICRO M2351 SERIES DATASHEET 0x4006_4000 – 0x4006_4FFF Table 6.3-7 Address Space Assignments for On-Chip Controllers Oct.09 2019 Page 133 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Address Space Token Controllers Non-secure Peripheral Controllers Space (0x5000_0000 – 0x500F_FFFF) 0x5000_4000 – 0x5000_4FFF GPIO_BA GPIO Control Registers 0x5000_9000 – 0x5000_9FFF USBH_BA USB Host Control Registers 0x5000_D000 – 0x5000_DFFF SDH0_BA SDHOST0 Control Registers 0x5001_0000 – 0x5001_0FFF EBI_BA External Bus Interface Control Registers 0x5001_8000 – 0x5000_8FFF PDMA1_BA Peripheral DMA 1Control Registers (secure or non-secure) 0x5003_1000 – 0x5003_1FFF CRC_BA CRC Generator Registers 0x5003_2000 – 0x5003_4FFF CRPT_BA Cryptographic Accelerator Registers Non-secure APB Controllers Space (0x5004_0000 ~ 0x500F_FFFF) RTC_BA Real Time Clock (RTC) Control Register 0x5004_3000 – 0x5004_3FFF EADC_BA Enhanced Analog-Digital-Converter (EADC) Control Registers 0x5004_5000 – 0x5004_5FFF ACMP01_BA Analog Comparator 0/ 1 Control Registers 0x5004_7000 – 0x5004_7FFF DAC_BA DAC Control Registers 0x5004_8000 – 0x5004_8FFF I2S0_BA I2S0 Interface Control Registers 0x5004_D000 – 0x5004_DFFF OTG_BA OTG Control Registers 0x5005_1000 – 0x5005_1FFF TMR23_BA Timer2/Timer3 Control Registers 0x5005_8000 – 0x5005_8FFF EPWM0_BA EPWM0 Control Registers 0x5005_9000 – 0x5005_9FFF EPWM1_BA EPWM1 Control Registers 0x5005_A000 – 0x5005_AFFF BPWM0_BA BPWM0 Control Registers 0x5005_B000 – 0x5005_BFFF BPWM1_BA BPWM1 Control Registers 0x5006_0000 – 0x5006_0FFF QSPI0_BA Quad SPI0 Control Registers 0x5006_1000 – 0x5006_1FFF SPI0_BA SPI0 Control Registers 0x5006_2000 – 0x5006_2FFF SPI1_BA SPI1 Control Registers 0x5006_3000 – 0x5006_3FFF SPI2_BA SPI2 Control Registers 0x5006_4000 – 0x5006_4FFF SPI3_BA SPI3 Control Registers 0x5007_0000 – 0x5007_0FFF UART0_BA UART0 Control Registers 0x5007_1000 – 0x5007_1FFF UART1_BA UART1 Control Registers 0x5007_2000 – 0x5007_2FFF UART2_BA UART2 Control Registers 0x5007_3000 – 0x5007_3FFF UART3_BA UART3 Control Registers 0x5007_4000 – 0x5007_4FFF UART4_BA UART4 Control Registers 0x5007_5000 – 0x5007_5FFF UART5_BA UART5 Control Registers 0x5007_4000 – 0x5007_4FFF Reserved Reserved 0x5007_5000 – 0x5007_5FFF Reserved Reserved 0x5008_0000 – 0x5008_0FFF I2C0_BA I2C0 Control Registers ® NUMICRO M2351 SERIES DATASHEET 0x5004_1000 – 0x5004_1FFF Oct.09 2019 Page 134 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 0x5008_1000 – 0x5008_1FFF I2C1_BA I2C1 Control Registers 0x5008_2000 – 0x5008_2FFF I2C2_BA I2C2 Control Registers 0x5009_0000 – 0x5009_0FFF SC0_BA Smartcard Host 0 Control Registers 0x5009_1000 – 0x5009_1FFF SC1_BA Smartcard Host 1 Control Registers 0x5009_2000 – 0x5009_2FFF SC2_BA Smartcard Host 2 Control Registers 0x500A_0000 – 0x500A_0FFF CAN0_BA CAN0 Bus Control Registers 0x500B_0000 – 0x500B_0FFF QEI0_BA QEI0 Control Registers 0x500B_1000 – 0x500B_1FFF QEI1_BA QEI1 Control Registers 0x500B_4000 – 0x500B_4FFF ECAP0_BA ECAP0 Control Registers 0x500B_5000 – 0x500B_5FFF ECAP1_BA ECAP1 Control Registers 0x500B_9000 – 0x500B_9FFF TRNG_BA TRNG Control Registers 0x500C_0000 – 0x500C_0FFF USBD_BA USB Device Control Register 0x500D_0000 – 0x500D_0FFF USCI0_BA USCI0 Control Registers 0x500D_1000 – 0x500D_1FFF USCI1_BA USCI1 Control Registers Table 6.3-2 Non-secure Address Space Assignments for On-Chip Controllers 6.3.7 Implementation Defined Attribution Unit (IDAU) 6.3.7.1 Overview ® ® Internal Security Attribution Unit (SAU)  Implementation Defined Attribution Unit (IDAU) ®  These attribution units define the memory space into four type regions:  Secure Region: contains Secure program code or data  Non-secure Callable Region (NSC): contains entry functions for Non-secure programs to access Secure functions  Non-secure Region: contains Non-secure program code or data  Exempt Region: exempt region will be exempted from security check For each memory region defined by the SAU and IDAU has a region number generated by the SAU or by the IDAU. Region number is used for determine a group of memory share the same security attribute. Overlapping region numbers are not allow. For testing security attributes and region numbers, a new instruction “TT” (Test Target) is introduced. By using a TT instruction on the start and end addresses of the memory range, and identifying that both reside in the same region number, user can determine that the memory range is located entirely in same space. To be more specific, please ® refer to the Arm v8-M Architecture Reference Manual. The M2351 IDAU memory map attributions and corresponding region numbers are shown in Figure 6.3-8. The address from 0xE000_0000 to 0xFFFF_FFFF is marked as exempt regions because the behavior of the address is fixed, so their security attributes don’t control by the SAU or IDAU. Oct.09 2019 Page 135 of 246 NUMICRO M2351 SERIES DATASHEET The Arm v8-M has the new feature called TrustZone , which adds an additional security state to allow full isolation of two security levels. The processor security state is decided by the memory definition. For example, processor is in Secure state when the code is excuted in the Secure region. The memory map security state will be defined by the combination of: Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Device Exempt Region num 15 System Exempt 14 NON-SECURE 13 SECURE 12 NON-SECURE 11 SECURE 10 NON-SECURE 9 SECURE 8 NON-SECURE 7 SECURE 6 NON-SECURE 5 SECURE 4 NON-SECURE 3 NSC 2 NON-SECURE NSC SECURE 1 16 0 External Device External RAM Device SRAM Code 0xFFFF_FFFF 0xF000_0000 0xE000_0000 0xD000_0000 0xC000_0000 0xB000_0000 0xA000_0000 0x9000_0000 0x8000_0000 0x7000_0000 0x6000_0000 0x5000_0000 0x4000_0000 0x3000_0000 0x2000_0000 0x1000_0000 0x0000_0800 0x0000_0000 ® NUMICRO M2351 SERIES DATASHEET Figure 6.3-8 IDAU Memory Map 6.3.7.2 IDAU Block Diagram The IDAU block diagram is shown in Figure 6.3-9. IDAU is security attribute unit connected outside of the processor. Both SAU and IDAU are responsible to response the security property of the address from processor, the only difference is that the memory security attribute of the SAU is configurable and the IDAU is fixed. After the processor compare the security property of the IDAU and SAU, it will take the highest security attribute applied. The hierarchy of security levels from high to low is: Secure > NSC > Non-secure. Oct.09 2019 Page 136 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller processor CPU address IDAU SAU Other Master MPU MPU Other Master Bus Matrix Slave Slave Slave Slave Slave Slave Figure 6.3-9 IDAU Block Diagram 6.3.8 SRAM Memory Orginization This chip supports embedded SRAM with a total of 96 Kbytes size and the SRAM organization is separated into two banks: SRAM bank0 and SRAM bank1. The first bank has 32 Kbytes address space and the second bank has 64Kbyte address space. These two banks address space can be accessed simultaneously. The SRAM bank0 supports parity error check to make sure the chip is operating more stable.  Supports byte / half word / word write  Supports fixed 32 Kbytes SRAM bank0 for independent access  Supports parity error check function for SRAM bank0  Supports oversize response error ® Supports total 96 Kbytes SRAM NUMICRO M2351 SERIES DATASHEET  AHB Bus  AHB interface controller SRAM decoder SRAM bank0 AHB interface controller SRAM decoder SRAM bank1 Figure 6.3-10 SRAM Block Diagram Figure 6.3-11 shows the SRAM organization. There are two SRAM banks. The bank0 is addressed to 32 Kbytes and the bank1 is addressed to 64 Kbytes. The bank0 address space is from 0x2000_0000 Oct.09 2019 Page 137 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller to 0x2000_7FFF(Secure) or 0x3000_0000 to 0x3000_7FFF(Non-secure). The bank1 address space is from 0x2000_8000 to 0x2001_7FFF(Secure) or 0x3000_8000 to 0x3001_7FFF(Non-secure). The address between 0x2001_8000 to 0x2FFF_FFFF(Secure) and 0x3001_8000 to 0x3FFF_FFFF(Nonsecure) is illegal memory space and chip will enter hardfault if CPU accesses these illegal memory addresses. 0x3FFF_FFFF 0x2FFF_FFFF Reserved 256MB 256MB Reserved 0x2001_8000 0x3001_8000 0x2001_7FFF 0x3001_7FFF NUMICRO M2351 SERIES DATASHEET 64 Kbytes SRAM bank1 64 Kbytes SRAM bank1 ® 0x2000_8000 0x3000_8000 0x2000_7FFF 0x3000_7FFF 32 Kbytes SRAM bank0 32 Kbytes SRAM bank0 0x3000_0000 0x2000_0000 96 Kbytes device (secure) 96 Kbytes device (non-secure) Figure 6.3-11 SRAM Memory Organization SRAM bank0 has byte parity error check function. When CPU is accessing SRAM bank0, the parity error checking mechanism is dynamic operating. As parity error occurs, the PERRIF (SYS_SRAMSTS[0]) will be asserted to 1 and the SYS_SRAMEADR register will recode the address with the parity error. Chip will enter interrupt when SRAM parity error occurs if PERRIEN (SYS_SRAMICTL[0]) is set to 1. When SRAM parity error occurs, chip will stop detecting SRAM parity error until user writes 1 to clear the PERRIF(SYS_SRAMSTS[0]) bit. Oct.09 2019 Page 138 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller SRAM Power Control SRAM bank0 and bank1 have marco retention and power shut down function. Each SRAM marco can be configured to retention or power shut down mode independently by SRAMxPMn (SYS_SRAMPCTL[23:8], x=0-1 n=0-3). When chip entering power-down, each SRAM marco will enter retention or power shut down or keep operation mode depended on SRAMxPMn(SYS_SRAMPCTL[23:8], x=0-1 n=0-3).When chip power down wake up, SRAM marco will wake up from retention or power shut down mode. User must identify which SRAM marco that CPU first accessed for saving power down wake up time by STACK(SYS_SRAMPCTL[1:0]). Figure 6.3-12 shows the SRAM marco number in bank0 and bank1. When chip power down wake up, the first wake up SRAM marco is depened on STACK (SYS_SRAMPCTL[1:0]), the rest SRAM marcos wake up in the order of marco number, from SRAM marco0 to SRAM marco7. 0x3001_7FFF 0x2001_7FFF 16 Kbytes SRAM Marco 7 16 Kbytes SRAM Marco 7 0x3001_4000 0x2001_4000 16 Kbytes SRAM Marco 6 Bank1 64KB Bnak1 64KB 16 Kbytes SRAM Marco 6 0x2001_0000 0x3001_0000 16 Kbytes SRAM Marco 5 16 Kbytes SRAM Marco 5 0x3000_C000 0x2000_C000 16 Kbytes SRAM Marco 4 16 Kbytes SRAM Marco 4 0x2000_2000 0x2000_0000 Bank0 32KB 0x2000_4000 0x3000_6000 0x3000_4000 0x3000_2000 0x3000_0000 96 Kbytes device (secure) 8 Kbytes SRAM Marco 3 8 Kbytes SRAM Marco 2 8 Kbytes SRAM Marco 1 8 Kbytes SRAM Marco 0 ® Bank0 32KB 0x2000_6000 8 Kbytes SRAM Marco 3 8 Kbytes SRAM Marco 2 8 Kbytes SRAM Marco 1 8K byte SRAM Marco 0 NUMICRO M2351 SERIES DATASHEET 0x3000_8000 0x2000_8000 96 Kbytes device (non-secure) Figure 6.3-12 SRAM Marco Organization 6.3.9 Auto Trim This chip supports auto-trim function: the HIRC trim (12 MHz RC oscillator, 48 MHz RC oscillator), according to the accurate external 32.768 kHz crystal oscillator or internal USB synchronous mode, to automatically get accurate HIRC output frequency, 0.25 % deviation within all temperature ranges. For instance, the system needs an accurate 12 MHz clock. In such case, if neither using PLL as the system clock source nor soldering 32.768 kHz crystal in system, user has to set REFCKSEL (SYS_TCTL12M[10] reference clock selection) to “1”, set FREQSEL (SYS_TCTL12M[1:0] trim frequency selection) to “01”, and the auto-trim function will be enabled. Interrupt status bit FREQLOCK (SYS_TISTS12M[8] HIRC frequency lock status) “1” indicates the HIRC output frequency is accurate within 0.25% deviation. Oct.09 2019 Page 139 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller In another case, the system needs an accurate 48 MHz clock. In such case, if neither using PLL as the system clock source nor soldering 32.768 kHz crystal in system, user has to set REFCKSEL (SYS_TCTL48M[10] reference clock selection) to “1”, set FREQSEL (SYS_TCTL48M[1:0] trim frequency selection) to “01”, and the auto-trim function will be enabled. Interrupt status bit FREQLOCK (SYS_TISTS48M[8] HIRC48 frequency lock status) “1” indicates the HIRC output frequency is accurate within 0.25% deviation. 6.3.10 System Timer (SysTick) ® The Cortex -M23 includes an integrated system timer, SysTick, which provides a simple, 24-bit clearon-write, decrementing, wrap-on-zero counter with a flexible control mechanism. The counter can be used as a Real Time Operating System (RTOS) tick timer or as a simple counter. When system timer is enabled, it will count down from the value in the SysTick Current Value Register (SYST_VAL) to zero, and reload (wrap) to the value in the SysTick Reload Value Register (SYST_LOAD) on the next clock cycle, and 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_VAL 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_LOAD value rather than an arbitrary value when it is enabled. If the SYST_LOAD 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 “Arm Cortex -M23 Technical Reference Manual” ® and “Arm v8-M Architecture Reference Manual”. 6.3.11 Nested Vectored Interrupt Controller (NVIC) ® NUMICRO M2351 SERIES DATASHEET The NVIC and the processor core interface are closely coupled to enable low latency interrupt processing and efficient processing of late arriving interrupts. The NVIC maintains knowledge of the stacked, or nested, interrupts to enable tail-chaining of interrupts. You can only fully access the NVIC from privileged mode, but you can cause interrupts to enter a pending state in user mode if you enable the Configuration and Control Register. Any other user mode access causes a bus fault. You can access all NVIC registers using byte, halfword, and word accesses unless otherwise stated. NVIC registers are located within the SCS (System Control Space). All NVIC registers and system debug registers are little-endian regardless of the endianness state of the processor. The NVIC supports:  An implementation-defined number of interrupts, in the range 1-240 interrupts.  A programmable priority level of 0-3 for each interrupt; a higher level corresponds to a lower priority, so level 0 is the highest interrupt priority.  Level and pulse detection of interrupt signals.  Dynamic reprioritization of interrupts.  Grouping of priority values into group priority and subpriority fields.  Interrupt tail-chaining.  An external Non Maskable Interrupt (NMI)  WIC with Ultra-low Power Sleep mode support The processor automatically stacks its state on exception entry and unstacks this state on exception exit, with no instruction overhead. This provides low latency exception handling. Oct.09 2019 Page 140 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.4 Clock Controller 6.4.1 Overview The clock controller generates clocks for the whole chip, including system clocks and all peripheral clocks. The clock controller also implements the power control function with the individually clock ON/OFF control, clock source selection and a clock divider. The chip will not enter Power-down mode until CPU sets the Power-down enable bit PDEN (CLK_PWRCTL[7]) and 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 Power-down mode, the clock controller turns off the 4~24 MHz external high speed crystal (HXT), 48MHz internal high speed RC oscillator (HIRC48) and 12 MHz internal high speed RC oscillator (HIRC) to reduce the overall system power consumption. Figure 6.4-1 to Figure 6.4-3 show the clock generator and the overview of the clock source control. ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 141 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller CPU HIRC HXT 12 MHz CRC 1/32 101 CRYPTO 1/16 100 EBI 1/8 011 FMC 1/4 010 GPIO 1/2 001 1 PLL FOUT 4~24 MHz 0 CLK_PLLCTL[19] ISP CAN0 ECAP0 PCLK0 I2C2 I2S0 000 EPWM0 PDMA0 BPWM0 PDMA1 12 MHz HIRC 48 MHz HIRC48 10 kHz LIRC PLL LXT HXT 111 SDH0 101 SRAM HCLK QEI0 CLK_PCLKDIV[2:0] SC0 SC2 USBH 1/(HCLKDIV+1) 011 PLLFOUT QSPI0 010 32.768 kHz SPI1 001 4~24 MHz I2C0 SPI3 000 TMR0 TMR1 CLK_CLKSEL0[2:0] UART0 UART2 HIRC 12 MHz HCLK HCLK HXT 4~24 MHz LXT 32.768 kHz HXT 4~24 MHz UART4 1/2 111 1/2 011 1/2 010 USBD CPUCLK 1 USCI0 SysTick WDT 0 001 000 SYST_CTRL[2] CLK_CLKSEL0[5:3] 1/32 101 1/16 100 1/8 011 1/4 010 1/2 001 ACMP PCLK1 DSRC ECAP1 000 1/(USBDIV+1) PLLFOUT DAC EADC USBH I2C1 USBD OTG OTG CLK_PCLKDIV[6:4] EPWM1 BPWM1 QEI1 RTC HIRC 11 HCLK 10 PLL 01 HXT 00 SC1 1/(SDH0DIV+1) SPI0 SDH0 SPI2 SPI4 TMR3 TRNG UART1 HIRC 1/(DSRCDIV+1) DSRC UART3 UART5 ® NUMICRO M2351 SERIES DATASHEET TMR2 CLK_CLKSEL0[21:20] USCI1 LIRC HCLK LXT 10 kHz 11 1/2048 10 32.768 kHz 01 LIRC WDT HCLK 10 kHz 1/2048 11 WWDT 10 CLK_CLKSEL1[31:30] CLK_CLKSEL1[1:0] Note: Before clock switching, both the pre-selected and newly selected clock sources must be turned on and stable. Figure 6.4-1 Clock Generator Global View Diagram (1/3) Oct.09 2019 Page 142 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 12 MHz HIRC 111 10 kHz LIRC TM0/TM1 101 TM0~TM1 011 PCLK0 PCLK0 001 4~24 MHz 12 MHz 111 10 kHz LIRC TM2/TM3 101 TM2~TM3 011 PCLK1 PCLK1 EPWM 1 PCLK0 BPWM 0 PCLK1 BPWM 1 12 MHz PCLK0 PCLK0 TMR 2 TMR 3 PLLFOUT 000 12 MHz 10 PLLFOUT 01 4~24 MHz HXT 1/(UART0DIV+1) UART 0 1/(UART1DIV+1) UART 1 00 12 MHz 32.768 kHz LXT PLLFOUT PLL 4~24 MHz HXT 11 1/(UART2DIV+1) 1/(UART3DIV+1) 01 1/(UART4DIV+1) 00 LXT HXT 32.768 kHz 4~24 MHz 11 10 SPI0 01 SPI2 00 SPI4 PLLFOUT 4~24 MHz HXT HIRC UART 3 PCLK0 UART 4 PLL 1/(UART5DIV+1) UART 5 HXT 12 MHz PCLK0 PLLFOUT 4~24 MHz 11 10 1/(SC0DIV+1) SC0 1/(SC2DIV+1) SC2 1/(SC1DIV+1) SC1 01 00 CLK_CLKSEL3[1:0] CLK_CLKSEL3[5:4] ® HCLK HCLK SPI3 11 HIRC 10 PCLK1 01 00 Clock Output PLL HXT CLK_CLKSEL1[29:28] 12 MHz PCLK1 PLLFOUT 4~24 MHz 11 10 01 00 CLK_CLKSEL3[3:2] Note: Before clock switching, both the pre-selected and newly selected clock sources must be turned on and stable. Figure 6.4-2 Clock Generator Global View Diagram (2/3) Oct.09 2019 NUMICRO M2351 SERIES DATASHEET 12 MHz PLLFOUT UART 2 10 CLK_CLKSEL3[25:24] CLK_CLKSEL3[27:26] CLK_CLKSEL3[29:28] CLK_CLKSEL3[31:30] HIRC SPI1 00 CLK_CLKSEL2[5:4] CLK_CLKSEL2[11:10] CLK_CLKSEL2[15:14] CLK_CLKSEL1[25:24] CLK_CLKSEL1[27:26] HIRC PCLK1 PCLK1 11 32.768 kHz PLL QSPI0 01 CLK_CLKSEL2[3:2] CLK_CLKSEL2[7:6] CLK_CLKSEL2[13:12] HIRC 12 MHz LXT 10 4~24 MHz HXT CLK_CLKSEL1 [18:16] CLK_CLKSEL1 [22:20] HIRC 11 PLLFOUT 001 4~24 MHz HXT PCLK1 HIRC 010 32.768 kHz LXT EPWM 0 000 CLK_CLKSEL1 [10: 8] CLK_CLKSEL1 [14:12] HIRC PCLK0 010 32.768 kHz LXT HXT TMR 0 TMR 1 Page 143 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller LIRC 1 LIRC32k LXT 1 RTC 0 0 extLXT HIRC PCLK0 PLL HXT CLK_CLKSEL3[8] 12 MHz PCLK0 PLLFOUT 4~24 MHz 11 10 I2S0 01 00 RTC_LXTCTL[7] CLK_CLKSEL3[17:16] PCLK1 1/(EADCDIV+1) EADC HIRC LIRC32k 1 extLXT 0 32.768kHz TRNG LIRC 12MHz 10kHz FMC BOD Note: Before clock switching, both the pre-selected and newly selected clock sources must be turned on and stable. RTC_LXTCTL[7] Figure 6.4-3 Clock Generator Global View Diagram (3/3) 6.4.2 Clock Generator The clock generator consists of 6 clock sources, which are listed below: 32.768 kHz external low speed crystal oscillator (LXT)  4~24 MHz external high speed crystal oscillator (HXT)  Programmable PLL output clock frequency (PLLFOUT), PLL source can be selected from external 4~24 MHz external high speed crystal (HXT) or 12 MHz internal high speed oscillator (HIRC)  12 MHz internal high speed RC oscillator (HIRC)  48 MHz internal high speed RC oscillator (HIRC48)  10 kHz internal low speed RC oscillator (LIRC) ® NUMICRO M2351 SERIES DATASHEET  Oct.09 2019 Page 144 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller LIRC32KEN (RTC_LXTCTL[0]) Internal 32 kHz Oscillator (LIRC32k) C32KS(RTC_LXTCTL[7]) LXTEN (CLK_PWRCTL[1]) X32_IN LXT 1 External 32.768 kHz Crystal (extLXT) 0 X32_OUT HXTEN (CLK_PWRCTL[0]) HXT XT1_IN External 4~24 MHz Crystal (HXT) PLLSRC (CLK_PLLCTL[19]) XT1_OUT 0 HIRCEN (CLK_PWRCTL[2]) PLL PLL FOUT 1 Internal 12 MHz Oscillator (HIRC) HIRC LIRCEN (CLK_PWRCTL[3]) NUMICRO M2351 SERIES DATASHEET Internal 10 kHz Oscillator (LIRC) LIRC ® HIRC48EN (CLK_PWRCTL[18]) Internal 48 MHz Oscillator (HIRC48) HIRC48 Note: Before clock switching, both the pre-selected and newly selected clock sources must be turned on and stable. Figure 6.4-4 Clock Generator Block Diagram Each of these clock sources has certain stable time to wait for clock operating at stable frequency. When clock source is enabled, a stable counter start counting and correlated clock stable index. That is, HXTSTB (CLK_STATUS[0]), LXTSTB (CLK_STATUS[1]), PLLSTB (CLK_STATUS[2]), LIRCSTB (CLK_STATUS[3]), HIRCSTB (CLK_STATUS[4]), HIRC48STB (CLK_STATUS[6]), EXTLXTSTB (CLK_STATUS[8]) and LIRC32STB(CLK_STATUS[9]) these bits are set to 1 after the stable counter value reaches a defined value. Oct.09 2019 Page 145 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller System and peripheral can use the clock as its operating clock only when correlate clock stable index is set to 1. The clock stable index will be auto cleared when the clock source (HXTEN (CLK_PWRCTL[0]), LXTEN (CLK_PWRCTL[1]), LIRC32KEN (RTC_LXTCTL[0]), HIRCEN (CLK_PWRCTL[2]), LIRCEN (CLK_PWRCTL[3]), HIRC48EN (CLK_PWRCTL[18]) and PD (CLK_PLLCTL[16])) are disabled. Besides, the clock stable index of HXT, HIRC, HIRC48 and PLL will be auto cleared when chip enters power-down and clock stable counter will re-count after chip wake-up if correlate clock is enabled. 6.4.3 System Clock and SysTick Clock The system clock has 6 clock sources which are generated from clock generator block. The clock source switch depends on the register HCLKSEL (CLK_CLKSEL0[2:0]). The block diagram is shown in Figure 6.4-5. HCLKSEL (CLK_CLKSEL0[2:0]) HIRC 111 HIRC48 100 CPUCLK LIRC PLLFOUT 011 HCLK LXT 001 HXT 000 1/(HCLKDIV+1) 010 HCLKDIV (CLK_CLKDIV0[3:0]) CPU in Power Down Mode PCLK0 PCLK1 CPU AHB APB0 APB1 Note: Before clock switching, both the pre-selected and newly selected clock sources must be turned on and stable. ® NUMICRO M2351 SERIES DATASHEET Figure 6.4-5 System Clock Block Diagram There are two clock fail detectors to observe HXT and LXT clock source and they have individual enable and interrupt control. When HXT detector is enabled, the HIRC clock is enabled automatically. When LXT detector is enabled, the LIRC clock is enabled automatically. When HXT clock detector is enabled, the system clock will auto switch to HIRC if HXT clock stop being detected on the following condition: system clock source comes from HXT or system clock source comes from PLL with HXT as the input of PLL. If HXT clock stop condition is detected, the HXTFIF (CLK_CLKDSTS[0]) is set to 1 and chip will enter interrupt if HXTFIE (CLK_CLKDCTL[5]) is set to 1. HXT clock source stable flag, HXTSTB (CLK_STATUS[0]), will be cleared if HXT stops when using HXT fail detector function. User can try to recover HXT by disable HXT and enable HXT again to check if the clock stable bit is set to 1 or not. If HXT clock stable bit is set to 1, it means HXT is recover to oscillate after re-enable action and user can switch system clock to HXT again. The HXT clock stop detect and system clock switch to HIRC procedure is shown in Figure 6.4-6. Oct.09 2019 Page 146 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Set HXTFDEN To enable HXT clock detector NO HXTFIF = 1? YES System clock source = “HXT” or “PLL with HXT” ? NO System clock keep original clock YES Switch system clock to HIRC Figure 6.4-6 HXT Stop Protect Procedure NUMICRO M2351 SERIES DATASHEET HIRC 1/2 other 1/2 011 1/2 010 ® HCLK CPUCLK HXT LXT HXT 1 SysTick 0 001 000 SYST_CTRL[2] CLK_CLKSEL0[5:3] Note: Before clock switching, both the pre-selected and newly selected clock sources must be turned on and stable. Figure 6.4-7 SysTick Clock Control Block Diagram The clock source of SysTick in processor can use CPU clock or external clock (SYST_CTRL[2]). If using external clock, the SysTick clock (STCLK) has 5 clock sources. The clock source switch depends on the setting of the register STCLKSEL (CLK_CLKSEL0[5:3]). The block diagram is shown in Figure 6.4-7. 6.4.4 Peripherals Clock Each peripheral clock has its own clock source selection. Refer to the CLK_CLKSEL1, CLK_CLKSEL2 Oct.09 2019 Page 147 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller and CLK_CLKSEL3 register. 6.4.5 Power-down Mode Clock When entering Power-down mode, system clocks, some clock sources and some peripheral clocks are disabled. Some clock sources and peripherals clock are still active in Power-down mode. For theses clocks, which still keep active, are listed below:   6.4.6 Clock Generator – 10 kHz internal low speed RC oscillator (LIRC) clock – 32.768 kHz external low speed crystal oscillator (LXT) clock Peripherals Clock (When the modules adopt LXT or LIRC as clock source) Clock Output This device is equipped with a power-of-2 frequency divider which is composed by 16 chained divideby-2 shift registers. One of the 16 shift register outputs selected by a sixteen to one multiplexer is reflected to CLKO function pin. Therefore, there are 16 options of power-of-2 divided clocks with the 1 16 frequency from Fin/2 to Fin/2 where Fin is input clock frequency to the clock divider. (N+1) The output formula is Fout = Fin/2 , where Fin is the input clock frequency, Fout is the clock divider output frequency and N is the 4-bit value in FREQSEL (CLK_CLKOCTL[3:0]). When writing 1 to CLKOEN (CLK_CLKOCTL[4]), the chained counter starts to count. When writing 0 to CLKOEN (CLK_CLKOCTL[4]), the chained counter continuously runs till divided clock reaches low state and stays in low state. If DIV1EN(CLK_CLKOCTL[5]) set to 1, the clock output clock (CLKO_CLK) will bypass power-of-2 frequency divider. The output divider clock will be output to CLKO pin directly. When entering Power-down mode, clock output does not out put clock even if the CKO clock source is LXT. FREQSEL (CLK_CLKOCTL[3:0]) 16 chained divide-by-2 counter ® NUMICRO M2351 SERIES DATASHEET Enable divide-by-2 counter CLKOEN (CLK_CLKOCTL[4]) 1/22 1/2 HIRC HCLK LXT HXT 1/23 …... 1/215 0000 0001 : : 1110 1111 CLKOCKEN (CLK_APBCLK0[6]) 11 DIV1EN (CLK_CLKOCTL[5]) 1/216 10 CLK1HZEN (CLK_CLKOCTL[6]) 16 to 1 MUX 0 0 1 CLKO 1 01 00 RTCSEL(CLK_CLKSEL3[8]) CLKOSEL (CLK_CLKSEL1[29:28]) LIRC 0 1 Hz clock from RTC /32768 LXT 1 Note: Before clock switching, both the pre-selected and newly selected clock sources must be turned on and stable. Figure 6.4-8 Clock Output Block Diagram Oct.09 2019 Page 148 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.5 Security Configuration Unit (SCU) 6.5.1 Overview ® ® Security configuration unit is designed for Arm TrustZone , and used to configure the security attribution of SRAM, GPIO and all other peripherals. SCU also collects AHB slaves’ security violation response and generates SCU interrupt. When non-secure master tries to access SCU, SCU will response AHB bus error and generate SCU interrupt. The AHB bus error will cause system hardfault, if the master is the core processor. SCU is also equipped with a timer to monitor the duration of the core processor in non-secure state. Note: SCU accepts secure access only. ® ® ® ® Note: For details on Arm TrustZone , refer to the section “Arm TrustZone ” 6.5.2 Features  Configure SRAM’s security attribution block by block  Configure GPIOs’ security attribution port by port  Configure peripherals’ security attribution  Generate secure violation interrupt  Equipped with a 24-bit timer as a non-secure state monitor ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 149 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.6 True Random Number Generator (TRNG) 6.6.1 Overview The True Random Number Generator (TRNG) is used to generate the randomness by extracting from physical phenomena. 6.6.2  Features Generates 800 random bits per second ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 150 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.7 Flash Memeory Controller (FMC) 6.7.1 Overview The FMC is equipped with dual-bank on-chip embedded Flash (BANK0 and BANK1) for application. Both BANK0 and BANK1 have 64/128/256 Kbytes space. Thus, the total size of Application ROM (APROM) is 128/256/512 Kbytes. A User Configuration block provides for system initiation in BANK0. A 4 Kbytes loader ROM (LDROM) is used for In-System-Programming (ISP) function in BANK0. A 2 Kbytes one-time-program ROM (OTP) is used for recording one-time-program data in BANK1. A 32K Secure Bootloader is used to check boot code integrity and authenticity, and consists of native ISP functions. A 4KB cache with zero wait cycle is used to improve Flash access performance. This chip also supports In-Application-Programming (IAP) function. User switches the code executing without chip reset after the embedded Flash is updated. 6.7.2 Features  Supports 128/256/512 Kbytes application ROM (APROM)  Supports 4 Kbytes loader ROM (LDROM)  Supports 4 XOM (Execution Only Memory) regions to conceal user program in APROM.  Supports 16 bytes User Configuration block to control system initiation  Supports 3 Kbytes one-time-program ROM (OTP)  Supports 2 Kbytes page erase for all embedded Flash  Supports block erase and bank erase for APROM, except XOM regions.  Supports two level locks for protecting secure region and non-sec region.  Supports Secure Bootloader with native In-System-Programming (ISP) functions  Supports Secure Boot function for check boot code integrity and authenticity  Supports Security Key protection function for APROM, LDROM, User Configuration block and KPROM protection  Supports 32-bit/64-bit and multi-word Flash programming function  Supports fast Flash programming verification function  Supports CRC32 checksum calculation function  Supports Flash all one verification function  Supports In-System-Programming (ISP) / In-Application-Programming (IAP) to update embedded Flash memory  Supports cache memory to improve Flash access performance and reduce power consumption  Supports auto-tuning Flash access cycle function to optimize the Flash access performance ® Supports dual-bank Flash macro for safe firmware upgrade NUMICRO M2351 SERIES DATASHEET  Oct.09 2019 Page 151 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.8 General Purpose I/O (GPIO) 6.8.1 Overview This chip has up to 107 General Purpose I/O pins to be shared with other function pins depending on the chip configuration. These 107 pins are arranged in 8 ports named as PA, PB, PC, PD, PE, PF, PG and PH. PA, PB and PE has 16 pins on port. PC has 14 pins on port. PD has 15 pins on port. PF has 12 pins on port. PG has 10 pins on port. PH has 8 pins on port. Each of the 107 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, Push-pull output, Open-drain output or Quasi-bidirectional mode. After the chip is reset, the I/O mode of all pins are depending on CIOINI (CONFIG0[10]). 6.8.2 Features  Four I/O modes: – Quasi-bidirectional mode – Push-Pull Output mode – Open-Drain Output mode – Input only with high impendence mode  TTL/Schmitt trigger input selectable  I/O pin can be configured as interrupt source with edge/level setting  Supports High Drive and High Slew Rate I/O mode  Configurable default I/O mode of all pins after reset by CIOINI (CONFIG0[10]) setting CIOINI = 0, all GPIO pins in Quasi-bidirectional mode after chip reset – CIOINI = 1, all GPIO pins in input mode after chip reset  I/O pin internal pull-up resistor enabled only in Quasi-bidirectional I/O mode  Enabling the pin interrupt function will also enable the wake-up function  Improve access efficiency by using single cycle IO bus. ® NUMICRO M2351 SERIES DATASHEET – Oct.09 2019 Page 152 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.9 PDMA Controller (PDMA) 6.9.1 Overview The peripheral direct memory access (PDMA) controller is used to provide high-speed data transfer. The PDMA controller can transfer data from one address to another without CPU intervention. This has the benefit of reducing the workload of CPU and keeps CPU resources free for other applications. There are two PDMA controller PDMA0 and PDMA1. PDMA0 is secure PDMA, PDMA1 can be configured as secure or non-secure PDMA. Each PDMA controller has a total of 8 channels and each channel can perform transfer between memory and peripherals or between memory and memory. 6.9.2 Features  Supports 2 PDMA controller PDMA0 and PDMA1, PDMA0 is secure PDMA, PDMA1 can be configured as secure or non-secure PDMA.  Supports 8 independently configurable channels  Supports selectable 2 level of priority (fixed priority or round-robin priority)  Supports transfer data width of 8, 16, and 32 bits  Supports source and destination address increment size can be byte, half-word, word or no increment  Supports software and USB, UART, USCI, SPI, EPWM, I C, I S, Timer, ADC, and DAC request  Supports Scatter-Gather mode to perform sophisticated transfer through the use of the descriptor link list table  Supports single and burst transfer type  Supports time-out function on channel 0 and channel1  Supports stride function from channel 0 to channel 5 2 2 ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 153 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.10 Timer Controller (TMR) 6.10.1 Overview The timer controller includes four 32-bit timers, Timer0 ~ Timer3, allowing user to easily implement a timer control for applications. The timer can perform functions, such as frequency measurement, delay timing, clock generation, and event counting by external input pins, and interval measurement by external capture pins. The timer controller also provides four PWM generators. Each PWM generator supports two PWM output channels in independent mode and complementary mode. The output state of PWM output pin can be control by pin mask, polarity and break control, and dead-time generator. 6.10.2 Features 6.10.2.1 Timer Function Features ® NUMICRO M2351 SERIES DATASHEET  Four sets of 32-bit timers, each timer having one 24-bit up counter and one 8-bit prescale counter  Independent clock source for each timer  Provides one-shot, periodic, toggle-output and continuous counting operation modes  24-bit up counter value is readable through CNT (TIMERx_CNT[23:0])  Supports event counting function  24-bit capture value is readable through CAPDAT (TIMERx_CAP[23:0])  Supports external capture pin event for interval measurement  Supports external capture pin event to reset 24-bit up counter  Supports chip wake-up from Idle/Power-down mode if a timer interrupt signal is generated  Support Timer0 ~ Timer3 time-out interrupt signal or capture interrupt signal to trigger PWM, EADC, DAC and PDMA function  Supports internal capture triggered while internal ACMP output signal transition  Supports Inter-Timer trigger mode  Supports event counting source from internal USB SOF signal 6.10.2.2 PWM Function Features  Supports maximum clock frequency up to maximum PCLK  Supports independent mode for PWM generator with two output channels  Supports complementary mode for PWM generator with paired PWM output channel – 12-bit dead-time insertion with 12-bit prescale  Supports 12-bit prescale from 1 to 4096  Supports 16-bit PWM counter – Up, down and up-down count operation type – One-shot or auto-reload counter operation mode  Supports mask function and tri-state enable for each PWM output pin  Supports brake function – Oct.09 2019 Brake source from pin, analog comparator and system safety events (clock failed, Page 154 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Brown-out detection, SRAM parity error and CPU lockup)   – Brake pin noise filter control for brake source – Edge detect brake source to control brake state until brake status cleared – Level detect brake source to auto recover function after brake condition removed Supports interrupt on the following events: – PWM zero point, period point, up-count compared or down-count compared point events – Brake condition happened Supports trigger EADC on the following events: – PWM zero point, period, zero or period point, up-count compared or down-count compared point events ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 155 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.11 Watchdog Timer (WDT) 6.11.1 Overview The Watchdog Timer (WDT) is used 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 the function to wake up system from Idle/Power-down mode. 6.11.2 Features  18-bit free running up counter for WDT time-out interval  Selectable time-out interval (24 ~ 218) and the time-out interval is 1.6 ms ~ 26.214 s if WDT_CLK = 10 kHz.  System kept in reset state for a period of (1 / WDT_CLK) * 63  Supports selectable WDT reset delay period, including 1026, 130, 18 or 3 WDT_CLK reset delay period  Supports to force WDT enabled after chip powered on or reset by setting CWDTEN[2:0] in Config0 register  Supports WDT time-out wake-up function only if WDT clock source is selected as 10 kHz or LXT. ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 156 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.12 Window Watchdog Timer (WWDT) 6.12.1 Overview The Window Watchdog Timer (WWDT) is used to perform a system reset within a specified window period to prevent software run to uncontrollable status by any unpredictable condition. 6.12.2 Features  6-bit down counter value (CNTDAT, WWDT_CNT[5:0]) and 6-bit compare value (CMPDAT, WWDT_CTL[21:16]) to make the WWDT time-out window period flexible  Supports 4-bit value (PSCSEL, WWDT_CTL[11:8]) to programmable maximum 11-bit prescale counter period of WWDT counter  WWDT counter suspends in Idle/Power-down mode ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 157 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.13 Real Time Clock (RTC) 6.13.1 Overview The Real Time Clock (RTC) controller provides the real time and calendar message. The RTC offers programmable time tick and alarm match interrupts. The data format of time and calendar messages are expressed in BCD format. A digital frequency compensation feature is available to compensate external crystal oscillator frequency accuracy. 6.13.2 Features Supports external power pin V BAT.  Supports real time counter in RTC_TIME (hour, minute, second) and calendar counter in RTC_CAL (year, month, day) for RTC time and calendar check.  Supports alarm time (hour, minute, second) and calendar (year, month, day) settings in RTC_TALM and RTC_CALM.  Supports alarm time (hour, minute, second) and calendar (year, month, day) mask enable in RTC_TAMSK and RTC_CAMSK.  Selectable 12-hour or 24-hour time scale in RTC_CLKFMT register.  Optional support 1/128 second HZCNT in RTC_TIME and RTC_TALM.  Supports Leap Year indication in RTC_LEAPYEAR register.  Supports Day of the Week counter in RTC_WEEKDAY register.  Frequency of RTC clock source compensate by RTC_FREQADJ register.  All time and calendar message expressed in BCD format.  Supports periodic RTC Time Tick interrupt with 8 period interval options 1/128, 1/64, 1/32, 1/16, 1/8, 1/4, 1/2 and 1 second.  Supports RTC Time Tick and Alarm Match interrupt.  Supports chip wake-up from Idle or Power-down mode while a RTC interrupt signal is generated.  Supports Daylight Saving Time software control in RTC_DSTCTL.  Supports up 3 pairs dynamic loop tamper pin or 6 individual tamper pin.  Built-in LXT frequency monitor .  Supports 80 bytes spare registers and tamper pins detection to clear the content of these spare registers.  Supports Flash mass erase operate will also clear the 80 bytes spare registers content. ® NUMICRO M2351 SERIES DATASHEET  Oct.09 2019 Page 158 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.14 EPWM Generator and Capture Timer (EPWM) 6.14.1 Overview The chip provides two EPWM generators - EPWM0 and EPWM1. Each EPWM supports 6 channels of EPWM output or input capture. There is a 12-bit prescaler to support flexible clock to the 16-bit EPWM counter with 16-bit comparator. The EPWM counter supports up, down and up-down counter types. EPWM uses comparator compared with counter to generate events. These events use to generate EPWM pulse, interrupt and trigger signal for EADC/DAC to start conversion. The EPWM generator supports two standard EPWM output modes: Independent mode and Complementary mode, which have difference architecture. There are two output functions based on standard output modes: Group function and Synchronous function. Group function can be enabled under Independent mode or complementary mode. Synchronous function only enabled under complementary mode. Complementary mode has two comparators to generate various EPWM pulse with 12-bit dead-time generator and another free trigger comparator to generate trigger signal for EADC. For EPWM output control unit, it supports polarity output, independent pin mask and brake functions. The EPWM generator also supports input capture function. It supports latch EPWM counter value to corresponding register when input channel has a rising transition, falling transition or both transition is happened. Capture function also support PDMA to transfer captured data to memory. 6.14.2 Features 6.14.2.1 EPWM Function Features Supports maximum clock frequency up to maximum PLL frequency  Supports up to two EPWM modules, each module provides 6 output channels  Supports independent mode for EPWM output/Capture input channel  Supports complementary mode for 3 complementary paired EPWM output channel Dead-time insertion with 12-bit resolution – Synchronous function for phase control – Two compared values during one period  Supports 12-bit prescaler from 1 to 4096  Supports 16-bit resolution EPWM counter – ® – Up, down and up/down counter operation type  Supports one-shot or auto-reload counter operation mode  Supports group function  Supports synchronous function  Supports mask function and tri-state enable for each EPWM pin  Supports brake function – Brake source from pin, analog comparator and system safety events (clock failed, SRAM parity error, Brown-out detection and CPU lockup). – Noise filter for brake source from pin – Leading edge blanking (LEB) function for brake source from analog comparator – Edge detect brake source to control brake state until brake interrupt cleared Oct.09 2019 Page 159 of 246 NUMICRO M2351 SERIES DATASHEET  Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller –   Level detect brake source to auto recover function after brake condition removed Supports interrupt on the following events: – EPWM counter matches 0, period value or compared value – Brake condition happened Supports trigger EADC/DAC on the following events: – EPWM counter matches 0, period value or compared value – EPWM counter match free trigger comparator compared value (only for EADC) 6.14.2.2 Capture Function Features  Supports up to 12 capture input channels with 16-bit resolution  Supports rising or falling capture condition  Supports input rising/falling capture interrupt  Supports rising/falling capture with counter reload option  Supports PDMA transfer function for EPWM all channels ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 160 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.15 Basic PWM Generator and Capture Timer (BPWM) 6.15.1 Overview The chip provides two BPWM generators - BPWM0 and BPWM1. Each BPWM supports 6 channels of BPWM output or input capture. There is a 12-bit prescaler to support flexible clock to the 16-bit BPWM counter with 16-bit comparator. The BPWM counter supports up, down and up-down counter types, all 6 channels share one counter. BPWM uses the comparator compared with counter to generate events. These events are used to generate BPWM pulse, interrupt and trigger signal for EADC to start conversion. For BPWM output control unit, it supports polarity output, independent pin mask and tri-state output enable. The BPWM generator also supports input capture function to latch BPWM counter value to corresponding register when input channel has a rising transition, falling transition or both transition is happened. 6.15.2 Features 6.15.2.1 BPWM Function Features  Supports maximum clock frequency up to maximum PLL frequency.  Supports up to two BPWM modules; each module provides 6 output channels  Supports independent mode for BPWM output/Capture input channel  Supports 12-bit prescalar from 1 to 4096  Supports 16-bit resolution BPWM counter; each module provides 1 BPWM counter – Up, down and up/down counter operation type Supports mask function and tri-state enable for each BPWM pin  Supports interrupt in the following events: –  NUMICRO M2351 SERIES DATASHEET  BPWM counter matches 0, period value or compared value Supports trigger EADC in the following events: BPWM counter matches 0, period value or compared value ® – 6.15.2.2 Capture Function Features  Supports up to 12 capture input channels with 16-bit resolution  Supports rising or falling capture condition  Supports input rising/falling capture interrupt  Supports rising/falling capture with counter reload option Oct.09 2019 Page 161 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.16 Quadrature Encoder Interface (QEI) 6.16.1 Overview There are two Quadrature Encoder Interfaces (QEI) QEI controllers in this device. The QEI decodes speed of rotation and motion sensor information and can be used in any application that uses a quadrature encoder for feedback. 6.16.2 Features 6.16.2.1 Quadrature Encoder Interface (QEI) Features  Up to two QEI controllers, QEI0 and QEI1.  Two QEI phase inputs, QEA and QEB; One Index input.  A 32-bit up/down Quadrature Encoder Pulse Counter (QEI_CNT)  A 32-bit software-latch Quadrature Encoder Pulse Counter Hold Register (QEI_CNTHOLD)  A 32-bit Quadrature Encoder Pulse Counter Index Latch Register (QEI_CNTLATCH)  A 32-bit Quadrature Encoder Pulse Counter Compare Register (QEI_CNTCMP) with a Pre-set Maximum Count Register (QEI_CNTMAX)  One QEI control register (QEI_CTL) and one QEI Status Register (QEI_STATUS)  Four Quadrature encoder pulse counter operation modes ® NUMICRO M2351 SERIES DATASHEET – Support x4 free-counting mode – Support x2 free-counting mode – Support x4 compare-counting mode – Support x2 compare-counting mode  Encoder Pulse Width measurement mode  Input frequency of QEA/QEB/IDX without noise filter must lower than PCLK/4  Input frequency of QEA/QEB/IDX with noise filter must lower than Noise Filter Clk/8 Oct.09 2019 Page 162 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.17 Enhanced Input Capture Timer (ECAP) 6.17.1 Overview This device provides up to two units of Input Capture Timer/Counter whose capture function can detect the digital edge-changed signal at channel inputs. Each unit has three input capture channels. The timer/counter is equipped with up counting, reload and compare-match capabilities. 6.17.2 Features  Up to two Input Capture Timer/Counter units, CAP0 and CAP1.  Each unit has 3 input channels.  Each unit has its own interrupt vector.  Each input channel has its own capture counter hold register.  24-bit Input Capture up-counting timer/counter.  With noise filter in front end of input ports.  Edge detector with three options: – Rising edge detection – Falling edge detection – Both edge detection  Captured events reset and/or reload capture counter.  Supports compare-match function. ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 163 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.18 UART Interface Controller (UART) 6.18.1 Overview The chip provides six channels of Universal Asynchronous Receiver/Transmitters (UART). The UART controller performs Normal Speed UART and supports flow control function. The UART controller performs a serial-to-parallel conversion on data received from the peripheral and a parallel-to-serial conversion on data transmitted from the CPU. Each UART controller channel supports ten types of interrupts. The UART controller also supports IrDA SIR, LIN and RS-485 function modes and autobaud rate measuring function. 6.18.2 Features  Full-duplex asynchronous communications  Separates receive and transmit 16/16 bytes entry FIFO for data payloads  Supports hardware auto-flow control  Programmable receiver buffer trigger level  Supports programmable baud rate generator for each channel individually  Supports nCTS, incoming data, Received Data FIFO reached threshold and RS-485 Address Match (AAD mode) wake-up function  Supports 8-bit receiver buffer time-out detection function  Programmable transmitting data delay time between the last stop and the next start bit by setting DLY (UART_TOUT [15:8])  Supports Auto-Baud Rate measurement and baud rate compensation function – Support 9600 bps for UART_CLK is selected LXT. Supports break error, frame error, parity error and receive/transmit buffer overflow detection function  Fully programmable serial-interface characteristics ® NUMICRO M2351 SERIES DATASHEET   – Programmable number of data bit, 5-, 6-, 7-, 8- bit character – Programmable parity bit, even, odd, no parity or stick parity bit generation and detection – Programmable stop bit, 1, 1.5, or 2 stop bit generation Supports IrDA SIR function mode –    Supports for 3/16 bit duration for normal mode Supports LIN function mode (Only UART0 /UART1 with LIN function) – Supports LIN master/slave mode – Supports programmable break generation function for transmitter – Supports break detection function for receiver Supports RS-485 function mode – Supports RS-485 9-bit mode – Supports hardware or software enables to program nRTS pin to control RS-485 transmission direction Supports PDMA transfer function Oct.09 2019 Page 164 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller UART Feature UART0/ UART1 UART2/UART3/ UART4/ UART5 SC_UART FIFO 16 Bytes 16 Bytes 4 Bytes Auto Flow Control (CTS/RTS) √ √ - √ IrDA √ √ - - LIN √ - - - RS-485 Function Mode √ √ - √ nCTS Wake-up √ √ - √ Imcoming Data Wake-up √ √ - √ √ √ - RS-485 Address Match (AAD mode) √ Wake-up √ - Auto-Baud Rate Measurement √ √ - √ STOP Bit Length 1, 1.5, 2 bit 1, 1.5, 2 bit 1, 2 bit 1, 2 bit Word Length 5, 6, 7, 8 bits 5, 6, 7, 8 bits 5, 6, 7, 8 bits 6~13 bits Even / Odd Parity √ √ √ √ Stick Bit √ √ - - Received Data threshold Wake-up FIFO reached USCI-UART TX: 1byte RX: 2byte - Note: √= Supported ® Table 6.18-1 NuMicro M2351 Series UART Features ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 165 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.19 Smart Card Host Interface (SC) 6.19.1 Overview The Smart Card Interface controller (SC controller) is based on ISO/IEC 7816-3 standard and fully compliant with PC/SC Specifications. It also provides status of card insertion/removal. 6.19.2 Features ® NUMICRO M2351 SERIES DATASHEET  ISO 7816-3 T = 0, T = 1 compliant  EMV2000 compliant  Three ISO 7816-3 ports  Separates receive/transmit 4 byte entry FIFO for data payloads  Programmable transmission clock frequency  Programmable receiver buffer trigger level  Programmable guard time selection (11 ETU ~ 267 ETU)  One 24-bit timer and two 8-bit timers for Answer to Request (ATR) and waiting times processing  Supports auto direct / inverse convention function  Supports transmitter and receiver error retry and error number limiting function  Supports hardware activation sequence process, and the time between PWR on and CLK start is configurable  Supports hardware warm reset sequence process  Supports hardware deactivation sequence process  Supports hardware auto deactivation sequence when detected the card removal  Supports UART mode – Full duplex, asynchronous communications – Separates receiving / transmitting 4 bytes entry FIFO for data payloads – Supports programmable baud rate generator – Supports programmable receiver buffer trigger level – Programmable transmitting data delay time between the last stop bit leaving the TXFIFO and the de-assertion by setting EGT (SCn_EGT[7:0]) – Programmable even, odd or no parity bit generation and detection – Programmable stop bit, 1- or 2- stop bit generation Oct.09 2019 Page 166 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller I2S Controller (I2S) 6.20 6.20.1 Overview 2 2 The I S controller consists of I S protocol to interface with external audio CODEC. Two 16-level depth FIFO for reading path and writing path respectively are capable of handling 8/16/24/32 bits audio data sizes. A PDMA controller handles the data movement between FIFO and memory. 6.20.2 Features  Supports Master mode and Slave mode  Capable of handling 8, 16, 24 and 32 bits data sizes in each audio channel  Supports monaural and stereo audio data  Supports I S protocols: Philips standard, MSB-justified, and LSB-justified data format  Supports PCM protocols: PCM standard, MSB-justified, and LSB-justified data format  PCM protocol supports TDM multi-channel transmission in one audio sample, and the number of data channel can be set as 2, 4, 6, or 8  Provides two 16-level FIFO data buffers, one for transmitting and the other for receiving  Generates interrupt requests when buffer levels cross a programmable boundary  Supports two PDMA requests, one for transmitting and the other for receiving 2 ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 167 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.21 Serial Peripheral Interface (SPI) 6.21.1 Overview The Serial Peripheral Interface (SPI) applies to synchronous serial data communication and allows full duplex transfer. Devices communicate in Master/Slave mode with the 4-wire bi-direction interface. The M2351 series contains up to four sets of SPI controllers 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 SPI controller can be configured as a master or a slave device and supports 2 the PDMA function to access the data buffer. Each SPI controller also supports I S mode to connect external audio CODEC. 6.21.2 Features  – Up to four sets of SPI controllers – Supports Master or Slave mode operation – Configurable bit length of a transaction word from 8 to 32-bit – Provides separate 4-level depth transmit and receive FIFO buffers – Supports MSB first or LSB first transfer sequence – Supports Byte Reorder function – Supports Byte or Word Suspend mode – Supports PDMA transfer – Supports one data channel half-duplex transfer – Supports receive-only mode 2 I S Mode – Supports Master or Slave – Capable of handling 8-, 16-, 24- and 32-bit word sizes – Each provides two 4-level FIFO data buffers, one for transmitting and the other for receiving – Supports monaural and stereo audio data – Supports PCM mode A, PCM mode B, I S and MSB justified data format – Supports two PDMA requests, one for transmitting and the other for receiving ® NUMICRO M2351 SERIES DATASHEET  SPI Mode Oct.09 2019 2 Page 168 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.22 Quad Serial Peripheral Interface (QSPI) 6.22.1 Overview The Quad Serial Peripheral Interface (QSPI) applies to synchronous serial data communication and allows full duplex transfer. Devices communicate in Master/Slave mode with the 4-wire bi-direction interface. The M2351 series contains one QSPI 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. The QSPI controller supports 2-bit Transfer mode to perform full-duplex 2-bit data transfer and also supports Dual and Quad I/O Transfer mode and the controller supports the PDMA function to access the data buffer. 6.22.2 Features Supports Master or Slave mode operation  Supports 2-bit Transfer mode  Supports Dual and Quad I/O Transfer mode  Configurable bit length of a transaction word from 8 to 32-bit  Provides separate 8-level depth transmit and receive FIFO buffers  Supports MSB first or LSB first transfer sequence  Supports Byte Reorder function  Supports Byte or Word Suspend mode  Supports PDMA transfer  Supports 3-Wire, no slave selection signal, bi-direction interface  Supports one data channel half-duplex transfer  Supports receive-only mode ® NUMICRO M2351 SERIES DATASHEET  Oct.09 2019 Page 169 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller I2C Serial Interface Controller (I2C) 6.23 6.23.1 Overview 2 I C is a two-wire, bi-directional serial bus that provides a simple and efficient method of data exchange 2 between devices. The I C 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. 2 There are three sets of I C controllers which support Power-down wake-up function. 6.23.2 Features 2 The I C bus uses two wires (SDA and SCL) to transfer information between devices connected to the 2 bus. The main features of the I C bus include: 2 Supports up to three I C ports  Master/Slave mode  Bidirectional data transfer between masters and slaves  Multi-master bus (no central master)  Supports High speed mode 3.4Mbps  Supports Standard mode (100 kbps), Fast mode (400 kbps) and Fast mode plus (1 Mbps)  Arbitration between simultaneously transmitting masters without corruption of serial data on the bus  Serial clock synchronization allow devices with different bit rates to communicate via one serial bus  Serial clock synchronization used as a handshake mechanism to suspend and resume serial transfer  Built-in 14-bit time-out counter requesting the I C interrupt if the I C bus hangs up and timer-out counter overflows  Programmable clocks allow for versatile rate control  Supports 7-bit addressing and 10-bit addressing mode  Supports multiple address recognition ( four slave address with mask option)  Supports Power-down wake-up function  Supports PDMA with one buffer capability  Supports setup/hold time programmable  Supports Bus Management (SM/PM compatible) function 2 2 ® NUMICRO M2351 SERIES DATASHEET  Oct.09 2019 Page 170 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.24 USCI - Universal Serial Control Interface Controller (USCI) 6.24.1 Overview The Universal Serial Control Interface (USCI) is a flexible interface module covering several serial 2 communication protocols. The user can configure this controller as UART, SPI, or I C functional protocol. 6.24.2 Features The controller can be individually configured to match the application needs. The following protocols are supported:  UART  SPI  IC 2 ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 171 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.25 USCI – UART Mode 6.25.1 Overview The asynchronous serial channel UART covers the reception and the transmission of asynchronous data frames. It performs a serial-to-parallel conversion on data received from the peripheral, and a parallel-to-serial conversion on data transmitted from the controller. The receiver and transmitter being independent, frames can start at different points in time for transmission and reception. The UART controller also provides auto flow control. There are two conditions to wake-up the system. 6.25.2 Features  Supports one transmit buffer and two receive buffer for data payload  Supports hardware auto flow control function  Supports programmable baud-rate generator  Support 9-bit Data Transfer (Support 9-bit RS-485)  Baud rate detection possible by built-in capture event of baud rate generator  Supports PDMA capability  Supports Wake-up function (Data and nCTS Wakeup Only) ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 172 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.26 USCI - SPI Mode 6.26.1 Overview The SPI protocol of USCI controller applies to synchronous serial data communication and allows full duplex transfer. It supports both master and Slave operation mode with the 4-wire bi-direction interface. SPI mode of USCI controller performs 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. The SPI mode is selected by FUNMODE (USCI_CTL[2:0]) = 0x1 This SPI protocol can operate as master or Slave mode by setting the SLAVE (USCI_PROTCTL[0]) to communicate with the off-chip SPI Slave or master device. The application block diagrams in master and Slave mode are shown below. USCI USCI SPI SPI Master Master SPI Slave Device SPI_MOSI Master Transmit Data (USCIx_DAT0) SPI_MISO Master Receive Data (USCIx_DAT1) SPI_CLK Serial Bus Clock (USCIx_CLK) SPI_SS Slave Select (USCIx_CTL) SPI_MOSI SPI_MISO SPI_CLK SPI_SS Note: x = 0, 1 Figure 6.26-1 SPI Master Mode Application Block Diagram NUMICRO M2351 SERIES DATASHEET USCI USCI SPI SPI Slave Slave SPI Master Device Slave Receive Data (USCIx_DAT0) SPI_MISO Slave Transmit Data (USCIx_DAT1) SPI_CLK Serial Bus Clock (USCIx_CLK) SPI_SS Slave Select (USCIx_CTL) ® SPI_MOSI SPI_MOSI SPI_MISO SPI_CLK SPI_SS Note: x = 0, 1 Figure 6.26-2 SPI Slave Mode Application Block Diagram 6.26.2 Features  Supports Master or Slave mode operation (the maximum frequency -- Master = fPCLK / 2, Slave < fPCLK / 5)  Configurable bit length of a transfer word from 4 to 16-bit  Supports one transmit buffer and two receive buffers for data payload  Supports MSB first or LSB first transfer sequence Oct.09 2019 Page 173 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller  Supports Word Suspend function  Supports PDMA transfer  Supports 3-wire, no slave select signal, bi-direction interface  Supports wake-up function by slave select signal in Slave mode  Supports one data channel half-duplex transfer ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 174 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.27 USCI - I2C Mode 6.27.1 Overview 2 On I C bus, data is transferred between a Master and a Slave. Data bits transfer on the SCL and SDA lines are synchronously on a byte-by-byte basis. Each data byte is 8-bit. There is one SCL clock pulse for each data bit with the MSB being transmitted first, and 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 Figure 2 6.27-1 for more detailed I C BUS Timing. STOP Repeated START START STOP SDA tBUF tLOW tr SCL tf tHIGH tHD_STA tSU_DAT tHD_DAT tSU_STA tSU_STO 2 Figure 6.27-1 I C Bus Timing 2 2 The device’s on-chip I C provides the serial interface that meets the I C bus standard mode 2 2 specification. The I C port handles byte transfers autonomously. The I C mode is selected by 2 FUNMODE (USCI_CTL [2:0]) = 100B. When enable this port, the USCI interfaces to the I C bus via 2 2 two pins: SDA and SCL. When I/O pins are used as I C ports, user must set the pins function to I C in advance. 2 6.27.2 Features Full master and slave device capability  Supports of 7-bit addressing, as well as 10-bit addressing  Communication in standard mode (100 kBit/s) or in fast mode (up to 400 kBit/s)  Supports multi-master bus  Supports one transmit buffer and two receive buffer for data payload  Supports 10-bit bus time-out capability  Supports bus monitor mode.  Supports Power down wake-up by data toggle or address match  Supports setup/hold time programmable  Supports multiple address recognition (two slave address with mask option) Oct.09 2019 Page 175 of 246 ®  NUMICRO M2351 SERIES DATASHEET Note: Pull-up resistor is needed for I C operation because the SDA and SCL are set to open-drain 2 pins when USCI is selected to I C operation mode . Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.28 Controller Area Network (CAN) 6.28.1 Overview The C_CAN consists of the CAN Core, Message RAM, Message Handler, Control Registers and Module Interface. The CAN Core performs communication according to the CAN protocol version 2.0 part A and B. The bit rate can be programmed to values up to 1MBit/s. For the connection to the physical layer, additional transceiver hardware is required. For communication on a CAN network, individual Message Objects are configured. The Message Objects and Identifier Masks for acceptance filtering of received messages are stored in the Message RAM. All functions concerning the handling of messages are implemented in the Message Handler. These functions include acceptance filtering, the transfer of messages between the CAN Core and the Message RAM, and the handling of transmission requests as well as the generation of the module interrupt. The register set of the C_CAN can be accessed directly by the software through the module interface. These registers are used to control/configure the CAN Core and the Message Handler and to access the Message RAM. 6.28.2 Features ® NUMICRO M2351 SERIES DATASHEET  Supports CAN protocol version 2.0 part A and B  Bit rates up to 1 MBit/s  32 Message Objects  Each Message Object has its own identifier mask  Programmable FIFO mode (concatenation of Message Objects)  Maskable interrupt  Disabled Automatic Re-transmission mode for Time Triggered CAN applications  Programmable loop-back mode for self-test operation  16-bit module interfaces to the AMBA APB bus  Supports wake-up function Oct.09 2019 Page 176 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.29 Secure Digital Host Controller (SDH) 6.29.1 Overview The Secure Digital Host Controller (SD Host) has DMAC unit and SD unit. The DMAC unit provides a DMA (Direct Memory Access) function for SD to exchange data between system memory and shared buffer (128 bytes), and the SD unit controls the interface of SD/SDHC. The SDHOST controller can support SD/SDHC and cooperated with DMAC to provide a fast data transfer between system memory and cards. 6.29.2 Features  AMBA AHB master/slave interface compatible, for data transfer and register read/write.  Supports single DMA channel.  Supports hardware Scatter-Gather function.  Using single 128 Bytes shared buffer for data exchange between system memory and cards.  Synchronous design for DMA with single clock domain, AHB bus clock (HCLK).  Interface with DMAC for register read/write and data transfer.  Supports SD/SDHC card.  Completely asynchronous design for Secure Digital with two clock domains, HCLK and Engine clock, note that frequency of HCLK should be higher than the frequency of peripheral clock. ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 177 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.30 External Bus Interface (EBI) 6.30.1 Overview This chip is equipped with an external bus interface (EBI) for external device use. To save the connections between an external device and a chip, EBI is operating at address bus and data bus multiplex mode. The EBI supports three chip selects that can connect three external devices with different timing setting requirements. 6.30.2 Features Supports up to three memory banks  Supports dedicated external chip select pin with polarity control for each bank  Supports accessible space up to 1 Mbytes for each bank, actually external addressable space is dependent on package pin out  Supports 8-/16-bit data width  Supports byte write in 16-bit data width mode  Supports Address/Data multiplexed Mode  Supports Timing parameters individual adjustment for each memory block  Supports LCD interface i80 mode  Supports PDMA mode  Supports variable external bus base clock (MCLK) which based on HCLK  Supports configurable idle cycle for different access condition: Idle of Write command finish (W2X) and Idle of Read-to-Read (R2R)  Supports address bus and data bus separate mode ® NUMICRO M2351 SERIES DATASHEET  Oct.09 2019 Page 178 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.31 USB 1.1 Device Controller (USBD) 6.31.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 supports 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 1 Kbytes 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. User needs to set the effective starting address of SRAM for each endpoint buffer through buffer segmentation register (USBD_BUFSEGx). There are 12 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 no-event-wake-up, device plugin 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 (USBD_INTSTS) to acknowledge what kind of interrupt occurring, and then check the related USB Endpoint Status Register (USBD_EPSTS0 and USBD_EPSTS1) to acknowledge what kind of event occurring in this endpoint. A software-disconnect function is also supported for this USB controller. It is used to simulate the disconnection of this device from the host. If user enables SE0 bit (USBD_SE0), the USB controller will force the output of USB_D+ and USB_D- to level low and its function is disabled. After disable the SE0 bit, host will enumerate the USB device again. ® NUMICRO M2351 SERIES DATASHEET For more information on the Universal Serial Bus, please refer to Universal Serial Bus Specification Revision 1.1. 6.31.2 Features  Compliant with USB 2.0 Full-Speed specification  Provides 1 interrupt vector with 4 different interrupt events (NEVWK, VBDET, USB and BUS)  Supports Control/Bulk/Interrupt/Isochronous transfer type  Supports suspend function when no bus activity existing for 3 ms  Supports 12 endpoints for configurable Control/Bulk/Interrupt/Isochronous transfer types and maximum 1 Kbytes buffer size  Provides remote wake-up capability Oct.09 2019 Page 179 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.32 USB 1.1 Host Controller (USBH) 6.32.1 Overview This chip is equipped with a USB 1.1 Host Controller (USBH) that supports Open Host Controller Interface (OpenHCI, OHCI) Specification, a register-level description of a host controller, to manage the devices and data transfer of Universal Serial Bus (USB). The USBH supports an integrated Root Hub with a USB port, a DMA for real-time data transfer between system memory and USB bus, port power control and port over current detection. The USBH is responsible for detecting the connect and disconnect of USB devices, managing data transfer, collecting status and activity of USB bus, providing power control and detecting over current of attached USB devices. 6.32.2 Features  Compliant with Universal Serial Bus (USB) Specification Revision 1.1.  Supports Open Host Controller Interface (OpenHCI) Specification Revision 1.0.  Supports both full-speed (12Mbps) and low-speed (1.5Mbps) USB devices.  Supports Control, Bulk, Interrupt and Isochronous transfers.  Supports an integrated Root Hub.  Supports a USB host port shared with USB device (OTG function).  Supports port power control and port over current detection.  Supports DMA for real-time data transfer. ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 180 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.33 USB On-The-Go (OTG) 6.33.1 Overview The OTG controller interfaces to USB PHY and USB controllers which consist of a USB 1.1 host controller and a USB 2.0 FS device controller. The OTG controller supports HNP and SRP protocols defined in the “On-The-Go and Embedded Host Supplement to the USB 2.0 Revision 2.0 Specification”. USB frame, including USB host, USB device, and OTG controller, can be configured as Host-only, Device-only, ID-dependent or OTG Device mode defined in USBROLE (SYS_USBPHY[1:0]). In Hostonly mode, USB frame acts as USB host. USB frame can support both full-speed and low-speed transfer. In Device-only mode, USB frame acts as USB device. USB frame only supports full-speed transfer. In ID-dependent mode, USB frame can be USB Host or USB device depending on USB_ID pin state. In OTG device mode, the role of USB frame depends on the definition of OTG specification. USB frame only supports full-speed transfer when OTG device acts as a peripheral. 6.33.2 Features  Built in USB PHY  Configurable to operate as: Host-only – Device-only – ID-dependent: The role of USB frame is only dependent on USB_ID pin value--as USB Host (USB_ID pin is low) or USB Device (USB_ID pin is high). Not support HNP or SRP protocol. – OTG device: dependent on USB_ID pin status to be A-device (USB_ID pin is low) or Bdevice (USB_ID pin is high). Support HNP and SRP protocols. ® NUMICRO M2351 SERIES DATASHEET – Oct.09 2019 Page 181 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.34 CRC Controller (CRC) 6.34.1 Overview The Cyclic Redundancy Check (CRC) generator can perform CRC calculation with four common polynomials CRC-CCITT, CRC-8, CRC-16, and CRC-32 settings. 6.34.2 Features  Supports four common polynomials CRC-CCITT, CRC-8, CRC-16, and CRC-32 16 5 CRC-CCITT: X – CRC-8: X + X + X + 1 – CRC-16: X 16 +X 15 +X +1 – CRC-32: X 32 +X 26 +X 8 +X 12 – +X +1 2 2 23 +X 22 +X 16 +X 12 +X 11 +X 10 8 7 5 4 2 +X +X +X +X +X +X+1  Programmable seed value  Supports programmable order reverse setting for input data and CRC checksum  Supports programmable 1’s complement setting for input data and CRC checksum  Supports 8/16/32-bit of data width  – 8-bit write mode: 1-AHB clock cycle operation – 16-bit write mode: 2-AHB clock cycle operation – 32-bit write mode: 4-AHB clock cycle operation Supports using PDMA to write data to perform CRC operation ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 182 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.35 Cryptographic Accelerator (CRYPTO) 6.35.1 Overview The Crypto (Cryptographic Accelerator) includes a secure pseudo random number generator (PRNG) core and supports AES, DES/TDES, SHA and ECC algorithms. The PRNG core supports 64 bits, 128 bits, 192 bits, and 256 bits random number generation. The AES accelerator is an implementation fully compliant with the AES (Advance Encryption Standard) encryption and decryption algorithm. The AES accelerator supports ECB, CBC, CFB, OFB, CTR, CBC-CS1, CBC-CS2, and CBC-CS3 mode. The DES/TDES accelerator is an implementation fully compliant with the DES and Triple DES encryption/decryption algorithm. The DES/TDES accelerator supports ECB, CBC, CFB, OFB, and CTR mode. The SHA accelerator is an implementation fully compliant with the SHA-160, SHA-224, SHA-256, and SHA-384. The ECC accelerator is an implementation fully compliant with elliptic curve cryptography by using polynomial basis in binary field and prime filed. 6.35.2 Features  PRNG –    – Supports FIPS NIST 197 – Supports SP800-38A and addendum – Supports 128, 192, and 256 bits key – Supports both encryption and decryption – Supports ECB, CBC, CFB, OFB, CTR, CBC-CS1, CBC-CS2, and CBC-CS3 mode – Supports key expander ®  AES DES – Supports FIPS 46-3 – Supports both encryption and decryption – Supports ECB, CBC, CFB, OFB, and CTR mode TDES – Supports FIPS NIST 800-67 – Implemented according to the X9.52 standard – Supports two keys or three keys mode – Supports both encryption and decryption – Supports ECB, CBC, CFB, OFB, and CTR mode SHA – Supports FIPS NIST 180, 180-2 – Supports SHA-160, SHA-224, SHA-256, and SHA-384 ECC Oct.09 2019 NUMICRO M2351 SERIES DATASHEET  Supports 64 bits, 128 bits, 192 bits, and 256 bits random number generation Page 183 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller m – Supports both prime field GF(p) and binary filed GF(2 ) – Supports NIST P-192, P-224, P-256, P-384, and P-521 – Supports NIST B-163, B-233, B-283, B-409, and B-571 – Supports NIST K-163, K-233, K-283, K-409, and K-571 – Supports point multiplication, addition and doubling operations in GF(p) and GF(2 ) – Supports modulus division, multiplication, addition and subtraction operations in GF(p) m ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 184 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.36 Enhanced 12-bit Analog-to-Digital Converter (EADC) 6.36.1 Overview The chip contains one 12-bit successive approximation analog-to-digital converter (SAR ADC converter) with 16 external input channels and 3 internal channels. The ADC converter can be started by software trigger, EPWM0/1 triggers, BPWM0/1 triggers, timer0~3 overflow pulse triggers, ADINT0, ADINT1 interrupt EOC (End of conversion) pulse trigger and external pin (EADC0_ST) input signal. 6.36.2 Features Analog input voltage range: 0~ VREF (Max to 3.6V)  Reference voltage from VREF pin  12-bit resolution and 10-bit accuracy is guaranteed  Up to 16 single-end analog external input channels or 8 pair differential analog input channels  Up to 3 internal channels: band-gap voltage (VBG), temperature sensor (VTEMP), and Battery power (VBAT)  Four ADC interrupts (ADINT0~3) with individual interrupt vector addresses  Maximum ADC clock frequency is 64 MHz  Up to 3.76 MSPS conversion rate  Configurable ADC internal sampling time.  12-bit, 10-bit, 8-bit, 6-bit configurable resolution.  Supports calibration and load calibration words capability.  Supports internal reference voltage VREF: 1.6V, 2.0V, 2.5V, and 3.0V.  Supports three power saving modes:  Deep Power-down mode – Power-down mode – Standby mode ®  – Up to 19 sample modules – Each of sample modules which is configurable for ADC converter channel EADC_CH0~15 and trigger source – Sample module 16~18 is fixed for ADC channel 16, 17, 18 input sources as band-gap voltage, temperature sensor, and battery power (VBAT) – Double buffer for sample control logic module 0~3 – Configurable sampling time for each sample module – Conversion results are held in 19 data registers with valid and overrun indicators An ADC conversion can be started by: – Write 1 to SWTRGn (EADC_SWTRG[n], n = 0~18) – External pin EADC0_ST – Timer0~3 overflow pulse triggers – ADINT0 and ADINT1 interrupt EOC (End of conversion) pulse triggers – EPWM/BPWM triggers Oct.09 2019 NUMICRO M2351 SERIES DATASHEET  Page 185 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller  Supports PDMA transfer  Conversion Result Monitor by Compare Mode ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 186 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.37 Digital to Analog Converter (DAC) 6.37.1 Overview The DAC module is a 12-bit, voltage output digital-to-analog converter. It can be configured to 12- or 8-bit output mode and can be used in conjunction with the PDMA controller. The DAC integrates a voltage output buffer that can be used to reduce output impendence and drive external loads directly without having to add an external operational amplifier. 6.37.2 Features  Analog output voltage range: 0~AVDD.  Supports 12- or 8-bit output mode.  Rail to rail settle time 8us.  Supports up to two 12-bit 1 MSPS voltage type DAC.  Reference voltage from internal reference voltage (INT_VREF), VREF pin.  DAC maximum conversion updating rate 1 MSPS.  Supports voltage output buffer mode and bypass voltage output buffer mode.  Supports software and hardware trigger, including Timer0~3, EPWM0, EPWM1, and external trigger pin to start DAC conversion.  Supports PDMA mode.  Supports group mode of synchronized update capability for two DACs. ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 187 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 6.38 Analog Comparator Controller (ACMP) 6.38.1 Overview The chip provides two comparators. The comparator output is logic 1 when positive input is greater than negative input; otherwise, the output is 0. Each comparator can be configured to generate an interrupt when the comparator output value changes. 6.38.2 Features  Analog input voltage range: 0 ~ AVDD (voltage of AVDD pin)  Up to two rail-to-rail analog comparators  Supports hysteresis function – Supports programmable hysteresis window: 0mV, 10mV, 20mV and 30mV  Supports wake-up function  Supports programmable propagaion speed and low power consumption  Selectable input sources of positive input and negative input  ACMP0 supports: –  – ACMP0_P0, ACMP0_P1, ACMP0_P2, or ACMP0_P3 4 negative sources:  ACMP0_N  Comparator Reference Voltage (CRV)  Internal band-gap voltage (VBG)  DAC0 output (DAC0_OUT) ACMP1 supports – ® NUMICRO M2351 SERIES DATASHEET  4 multiplexed I/O pins at positive sources:  – 4 multiplexed I/O pins at positive sources: ACMP1_P0, ACMP1_P1, ACMP1_P2, or ACMP1_P3 4 negative sources:  ACMP1_N  Comparator Reference Voltage (CRV)  Internal band-gap voltage (VBG)  DAC0 output (DAC0_OUT)  Shares one ACMP interrupt vector for all comparators  Interrupts generated when compare results change (Interrupt event condition is programmable)  Supports triggers for break events and cycle-by-cycle control for PWM  Supports window compare mode and window latch mode Oct.09 2019 Page 188 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 7 APPLICATION CIRCUIT 7.1 Power Supply Scheme with External VREF as close to AVDD as possible L=30Z EXT_PWR 1uF+0.1uF+0.01uF AVDD VDD as close to LDO as possible EXT_PWR AVSS VSW LDO_CAP VSS as close to the EXT_PWR as possible 4.7uH 10uF 2.2uF as close to VREF as possible L=30Z 2.2uF+1uF+470pF VREF VBAT 10uF+0.1uF AVSS as close to VBAT as possible 0.1uF VSS L=30Z as close to VDD as possible as close to VDDIO as possible VDD VDDIO VSS VSS 0.1uF 0.1uF*N EXT_VSS EXT_VSS NUMICRO M2351 SERIES DATASHEET Note:VDD which is near LDO need to be connected to 10 uF.(ex. QFN33 pin 27; LQFP64 pin 51; LQFP128 pin 114) ® Oct.09 2019 Page 189 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 7.2 Power Supply Scheme with Internal VREF as close to AVDD as possible L=30Z EXT_PWR 1uF+0.1uF+0.01uF AVDD VDD as close to LDO as possible EXT_PWR AVSS L=30Z VSW LDO_CAP VSS as close to the EXT_PWR as possible 10uF 2.2uF as close to VREF as possible VREF 10uF+0.1uF 4.7uH VBAT 0.1uF AVSS as close to VBAT as possible 0.1uF VSS as close to VDD as possible VDD VDDIO VSS VSS as close to VDDIO as possible 0.1uF 0.1uF*N EXT_VSS EXT_VSS ® NUMICRO M2351 SERIES DATASHEET Note:VDD which is near LDO need to be connected to 10 uF.(ex. QFN33 pin 27; LQFP64 pin 51; LQFP128 pin 114) Oct.09 2019 Page 190 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 7.3 Peripheral Application Scheme 5V USB Full Speed OTG Slot Power Switch (OTG Host) 64K x 16-bit SRAM LATCH 33R 33R USB_VBUS USB_DUSB_D+ USB_ID D ALE Q Addr[15:0] En nCS nCE nRD nOE nLB nWRL nWRH VDD ICE_DAT SWD Interface ICE_CLK nRESET EBI nWE nWR nUB Data[15:0] AD[15:0] VSS DVCC M2351 Series 20pF XT1_IN 4~24 MHz crystal 20pF SPI_SS SPI_CLK SPI_MISO SPI_MOSI CS VDD CLK MISO MOSI VSS SPI Device DVCC XT1_OUT DVCC Crystal 20pF 32.768 kHz crystal 20pF 4.7K 4.7K X32_IN I2C_SCL CLK VDD I2C_SDA DIO VSS I2C Device X32_OUT DVCC DVCC SC_PWR 10K nRST 10uF/10V Smart Card Slot SC_RST SC_CLK SC_DAT SC_nCD ® NUMICRO M2351 SERIES DATASHEET Reset Circuit CAN Transceiver ODB Port LDO_CAP LDO 2.2uF CAN_TX D CAN_H CAN_RX R CAN_L CAN RS 232 Transceiver PC COM Port Audio codec Line In NUC8822 Line Out I2 S UART_RXD ROUT UART_TXD TIN RIN TOUT UART *Note: USB_ID could be floating using USB or USB HS without OTG. Oct.09 2019 Page 191 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8 ELECTRICAL CHARACTERISTICS 8.1 Absolute Maximum Ratings Stesses above the absolute maximum ratings may cause permanent damage to the device. The limiting values are stress ratings only and cannot be used to functional operation of the device. Exposure to the absolute maximum ratings may affect device reliability and proper operation is not guaranteed. 8.1.1 Voltage Characteristics Symbol Parameter Min Max Unit VDD-VSS DC Power Supply -0.3 4.0 V VDDIO-VSS VDDIO Power Supply -0.3 4.0 V VBat RTC domain Power Supply -0.3 4.0 V |VDDX – VDD| Variations between different power pins - 50 mV |VDD –AVDD| Allowed voltage difference for VDD and AVDD - 50 mV |VSSX - VSS| Variations between different ground pins - 50 mV |VSS - AVSS| Allowed voltage difference for VSS and AVSS - 50 mV VIN Input Voltage on 5V-tolerance GPIO VSS-0.3 5.5 V Input Voltage on RTC domain (PF.6 ~ PF.11) VSS-0.3 4.0 V VSS-0.3 4.0 V [*2] Input Voltage on any other pin Note: All main power (VDD, AVDD) and ground (VSS, AVSS) pins must always be connected to the external power supply, in the permitted range. 2. Non 5V-tolerance PIN: PA.8 ~ 15; PB.0 ~ 15; PD.10, 11, 12; PF.2, 3, 4, 5; All USB High Speed pin and nRESET pin. Table 8.1-1 Voltage Characteristics ® NUMICRO M2351 SERIES DATASHEET 1. 8.1.2 Current Characteristics Symbol Parameter Max IDD Maximum Current into VDD 200 IDDIO Maximum Current into VDDIO 100 IBAT Maximum Current into VBAT 100 ISS Maximum Current out of VSS 100 Maximum Current sunk by a I/O Pin 20 Maximum Current Sourced by a I/O Pin 20 Maximum Current Sunk by Total I/O Pins 100 Maximum Current Sourced by Total I/O Pins 100 Unit mA IIO Oct.09 2019 Page 192 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Note: 1. Maximum allowable current is a function of device maximum power dissipation. 2. This current consumption must be correctly distributed over all I/Os and control pins. The total output current must not be sunk/sourced between two consecutive power supply pins. 3. A positive injection is caused by VIN>AVDD and a negative injection is caused by VIN1.7V - - 15 uA No load, normal mode, only buck regulator ® Symbol NUMICRO M2351 SERIES DATASHEET Typical values are at VDD = 3.3V, TA = 25°C, Vsw is connected to 4.7uH inductance and LDO_CAP is connected to 2.2uF capacitance unless otherwise specified. IOUT_MAX Maximum DC Output Current IQ_DCDC Quiescent Current VLINE Line Regulation -5 - 5 % IOUT=30mA, VIN=1.7V to 3.6V VLOAD Load Regulation -5 - 5 % IOUT=0.2mA to 30mA PEFF Power Efficiency - 80 - % IOUT= 2~30mA LOUT = 4.7uH, DCR ≤ 180mΩ Note: 1. It is recommended a 2.2μF and 0.1μF bypass capacitor is connected between VDD and the closest VSS pin of the device. 2. For ensuring power stability, a 2.2μF Capacitor must be connected between LDO_CAP pin and the closest V SS pin of the device. Oct.09 2019 Page 219 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.5.3 Low-Voltage Reset Symbol Parameter Min Typ Max Unit AVDD Supply Voltage 0 - 3.6 V TA Temperature -40 - 105 ℃ - ILVR Operating Current - 0.5 - uA AVDD = 3.6V VLVR * Threshold Voltage - 1.5 - V IBOD Operating Current - 65 - μA - - - VBOD_F Brown-out Voltage (Falling edge) - - - - - ® NUMICRO M2351 SERIES DATASHEET - - VBOD_R Brown-out Voltage (Rising edge) - - - - 3 2.8 2.6 2.4 2.2 2.0 1.8 1.6 3 2.8 2.6 2.4 2.2 2.0 1.8 1.6 - - - - - - - - - - - - - - - - V V V V V V V V V V V V V V V V Respond Time - 1 - ms VPOR Reset Voltage - 1.45 - V RRVDD VDD Raising Rate to Ensure Power-on Reset 10 - - us/V TBOD_RE Oct.09 2019 Page 220 of 246 Test Condition AVDD = 3.6V BODVL (SYS_BODCTL[18:16]) = 111 BODVL (SYS_BODCTL[18:16]) = 110 BODVL (SYS_BODCTL[18:16]) = 101 BODVL (SYS_BODCTL[18:16]) = 100 BODVL (SYS_BODCTL[18:16]) = 011 BODVL (SYS_BODCTL[18:16]) = 010 BODVL (SYS_BODCTL[18:16]) = 001 BODVL (SYS_BODCTL[18:16]) = 000 BODVL (SYS_BODCTL[18:16]) = 111 BODVL (SYS_BODCTL[18:16]) = 110 BODVL (SYS_BODCTL[18:16]) = 101 BODVL (SYS_BODCTL[18:16]) = 100 BODVL (SYS_BODCTL[18:16]) = 011 BODVL (SYS_BODCTL[18:16]) = 010 BODVL (SYS_BODCTL[18:16]) = 001 BODVL (SYS_BODCTL[18:16]) = 000 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller FRVDD tPOR VDD Falling Rate to Ensure Power-on Reset Minimum Time for VDD Stays at VPOR to Ensure Power-on Reset 500 - - us/V 500 - - us Note : 1. Guaranteed by characterization, not tested in production. 2. Design for specified applcaiton. VDD RVDDR RVDDF VBOD VLVR VPOR Time Figure 8.5-1 Power-up Ramp Condition ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 221 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.5.4 Internal Voltage Reference  The maximum values are obtained for VDD = 3.6 V and maximum ambient temperature (TA), and the typical values for T A= 25 °C and VDD = 3.3 V unless otherwise specified. Symbol VREF_INT Ts Parameter Min Typ Max - 1.6 - - 2.0 - Internal reference voltage Unit Comments AVDD > 2.0v AVDD > 2.2v V - 2.5 - AVDD > 2.7v - 3.0 - AVDD > 3.2v - - 2 ms CL =4.7 uF, VREF initial=0 - - 48 us CL =0.1 uF, VREF initial=0 stable time Note: Guaranteed by characterization, not tested in production. VREF 1uF NUMICRO M2351 SERIES DATASHEET Figure 8.5-2 Typical Connection with Internal Voltage Reference ® Oct.09 2019 Page 222 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.5.5 12-bit ADC 8.5.5.1 Fast Speed Channel Symbol Parameter Min. [*1] [*1] Typ. Max. Unit AVDD Operating voltage 3.3 - 3.6 V VREF Reference voltage - AVDD - V -40 - 105 ℃ 470 - 520 uA Resolution - - 12 Bit ADC channel input voltage 0 - VREF V 0.14 - 64 MHz TA Temperature AVDD = VDD Operating current (AVDD current) IADC (Enable ADC and disable all other analog modules) VIN Test Conditions AVDD = VDD = VREF = 3.3V ADC Clock Rate = 64 MHz High speed channel FADC ADC Clock frequency High speed channel TSMP Sampling Time 3 - 258 1/FADC TCONV Conversion time 17 - 272 1/FADC TCONV = TSMP + 14 FSPS Sampling Rate (FADC/TCONV) - - 3.76 MSPS High speed channel TPU Power-up time 20 - - μs INL Integral Non-Linearity Error -6.6 - 2.7 LSB VREF = AVDD DNL Differential Non-Linearity Error -1 - 6.6 LSB VREF = AVDD Gain error -0.6 - 2.0 LSB VREF = AVDD EOFFSET Offset error -0.37 - 3.0 LSB VREF = AVDD EA Absolute Error -5.94 - 6.5 LSB VREF = AVDD CIN Internal Capacitance[*1] - 5 - pF Monotonic Guaranteed ® - - Note: 1. Guaranteed by characterization, not tested in production. 2. REX max formula is used to determine the maximum external impedance allowed for 1/4 LSB error. N = 12 (based on 12-bit resoluton) and k is the number of sampling clocks (TSMP). CEX represents the capacitance of PCB and pad and is combined with REX into a low-pass filter. Once the REX and CEX values are too large, it is possible to filter the real signal and reduce the ADC accuracy. 8.5.5.2 Low Speed Channel Symbol Parameter Min. [*1] Typ. Max. [*1] Unit AVDD Operating voltage 1.7 - 3.6 V VREF Reference voltage - AVDD - V -40 - 105 ℃ TA Temperature Oct.09 2019 Page 223 of 246 NUMICRO M2351 SERIES DATASHEET EG Test Conditions AVDD = VDD Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller Symbol Parameter Min. [*1] 223 Typ. Max. - [*1] 237 IADC1 uA Operating current (AVDD current) (Enable ADC and disable all other analog modules) Test Conditions AVDD = VDD = VREF = 3.3V ADC Clock Rate = 34 MHz low speed channel 140 - 147 AVDD = VDD = VREF = 1.7V ADC Clock Rate = 34 MHz low speed channel 112 - 119 AVDD = VDD = VREF = 3.3V ADC Clock Rate = 14 MHz low speed channel IADC2 VIN Unit uA AVDD = VDD = VREF = 1.7V ADC Clock Rate = 14 MHz low speed channel 72 - 75 Resolution - - 12 Bit ADC channel input voltage 0 - VREF V 0.14 - 64 FADC ADC Clock frequency MHz Low speed channel TSMP Sampling Time 3 - 258 1/FADC TCONV Conversion time 17 - 272 1/FADC TCONV = TSMP + 14 FSPS Sampling Rate (FADC/TCONV) - - 2 TPU Power-up time 20 - - μs INL Integral Non-Linearity Error -3.4 - 4.1 LSB VREF = AVDD DNL Differential Non-Linearity Error -1 - 2.1 LSB VREF = AVDD MSPS Low speed channel ® NUMICRO M2351 SERIES DATASHEET EG Gain error -3.1 - 3.6 LSB VREF = AVDD EOFFSET Offset error -1.3 - 2.8 LSB VREF = AVDD 2.8 - 7.3 LSB VREF = AVDD - 5 - pF EA CIN - Absolute Error Internal Capacitance [*1] Monotonic Guaranteed - Note: Guaranteed by characterization, not tested in production. Oct.09 2019 Page 224 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller EF (Full scale error) = EO + EG Gain Error EG Offset Error EO 4095 4094 4093 4092 Ideal transfer curve 7 6 ADC output code 5 Actual transfer curve 4 3 2 DNL 1 1 LSB 4095 Analog input voltage (LSB) Offset Error EO ® NUMICRO M2351 SERIES DATASHEET Note: The INL is the peak difference between the transition point of the steps of the calibrated transfer curve and the ideal transfer curve. A calibrated transfer curve means it has calibrated the offset and gain error from the actual transfer curve. Note: GND < EADC_CHx < VREF VDD EADC_CHx RIN 12-bit Converter CIN Figure 8.5-3 Typical Connection Using the ADC Oct.09 2019 Page 225 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.5.6 Temperature Sensor Symbol Parameter VDD Operating Voltage TA Temperature Range ITEMP Current Consumption [*3] [*3] Tc Temperature Coefficient Vos Offset Voltage when TA = 0°C [*3] [*2] tS Stable time ADC sampling time when reading the temperature (5pF cap load) TS_temp [*1] Min Typ Max Unit 1.7 - 3.6 V 40 - 105 °C - 16 - A -1.77 -1.82 -1.86 mV/°C 710 720 730 mV - 1 - µs - 3 - µs Note: 1. VTEMP (mV) = Temperature Coefficient (mV/°C) x Temperature (°C) + Offset (mV) 2. Guaranteed by design, not tested in production 3. Guaranteed by characteristic, not tested in production 8.5.7 Digital to Analog Converter (DAC) Symbol AVDD NR Parameter Analog supply voltage Min Typ 1.8 - Resolution Reference supply voltage DNL Differential non-linearity error[*4] 3.6 12 V bit AVDD 1.5 Comments V VREF ≤ AVDD - - ±2 LSB 12-bit mode - - ±0.5 LSB 10-bit mode - - ±4 LSB 12-bit mode - - ±1 LSB 10-bit mode - - ±6 LSB ® NUMICRO M2351 SERIES DATASHEET VREF Max Unit INL Integral non-linearity error[*4] 12-bit mode DACOUT buffer ON OE Offset Error[*4] 12-bit mode - - ±4 LSB DACOUT buffer OFF - - ±2 LSB 10-bit mode -12 - 4 LSB 12-bit mode DACOUT buffer ON GE Gain Error[*4] 12-bit mode - - ±4 LSB DACOUT buffer OFF - - ±2 LSB 10-bit mode - - ±10 LSB 12-bit mode AE Absolute Error[*4] DACOUT buffer ON Oct.09 2019 Page 226 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 12-bit mode - - ±4 LSB DACOUT buffer OFF TA Temperature - - ±2 -40 - 105 Monotonic VO Output Voltage RLOAD Resistive load[*2] LSB 10-bit mode ℃ 10-bit guaranteed 0.2 - AVDD 0.2 7.5 - - kΩ DACOUT buffer ON [*4] V DACOUT buffer ON Ro Output impedance - 10 12 kΩ DACOUT buffer OFF CLOAD Capacitive load[*3] - - 50 pF - 175 IAVDD 195 A Current consumption on AVDD supply[*4] 390 IREF - Current consumption on AVDD supply[*4] - - 170 AVDD = 3.6V, no load, middle code (0x800) 426 240 AVDD = 3.6V, no load, lowest code (0x000) A VREF =3.6V, no load, middle code (0x800) μs Full scale: for a 12-bit input code transition between the lowest and the highest input codes when DAC_OUT reaches final value +/-1 LSB, CLOAD=50p, RLOAD =7.5k TS Settling Time - 5 6 Fs Update Rate - 1 - TWAKEUP Wake-up Time - 9 15 μs PSRR Power Supply Rejection Ratio[*1] - -60 -40 dB No RLOAD, CLOAD = 50pF Max frequency for a correct DAC_OUT MSPS change from core i to i+1LSB, CLOAD = 50pF and RLOAD >= 5Kohm ® Note: 1. Guaranteed by design, not tested in production 2. Resistive load between DACOUT and AVSS. 3. Capacitive load at DACOUT pin. 4. Guaranteed based on test during characterization. Oct.09 2019 Page 227 of 246 NUMICRO M2351 SERIES DATASHEET Wakeup time from OFF state. Input code between lowest and highest possible codes. Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.5.8  Analog Comparator Controller (ACMP) The maximum values are obtained for VDD = 3.6V and maximum ambient temperature (TA), and the typical values for TA= 25 °C and VDD = 3.3 V unless otherwise specified. Symbol AVDD TA IDD Parameter Min Typ Max Unit Comments Analog supply voltage 1.8 - 3.6 V Temperature -40 - 105 ℃ - 1.5 - - 2.9 - - 11.4 - MODESEL[1:0] = 10 - 39.3 - MODESEL[1:0] = 11 MODESEL[1:0] = 00 MODESEL[1:0] = 01 A Operating current VCM Input common mode voltage range [*2] 0.1 - AVDD 0.1 VDI Differential input voltage sensitivity [*2] 10 20 - mV Hysteresis disable - - 12 mV Hysteresis disable, - 0 - - 15 - Voffset Vhys Av Hysteresis window TSetup HYSSEL[1:0] = 00 HYSSEL[1:0] = 01 mV [*1] DC voltage Gain - 28 - HYSSEL[1:0] = 10 - 39 - HYSSEL[1:0] = 11 - 70 - - - 0.14 - - 0.2 Propagation delay[*2] dB Hysteresis disable MODESEL[1:0] = 00 Hysteresis disable MODESEL[1:0] = 01 us ® NUMICRO M2351 SERIES DATASHEET Td Input offset voltage - - 0.7 Hysteresis disable MODESEL[1:0] = 10 - - 1.5 Hysteresis disable MODESEL[1:0] = 11 - - 82 Hysteresis disable MODESEL[1:0] = 00 - - 124 Setup time[*2] Hysteresis disable MODESEL[1:0] = 01 ns - - 274 Hysteresis disable MODESEL[1:0] = 10 - - 419 Hysteresis disable MODESEL[1:0] = 11 Note: 1. Guaranteed by design, not tested in production. 2. Guaranteed by characteristic, not tested in production. Oct.09 2019 Page 228 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.6 Flash DC Electrical Characteristics Symbol Parameter Min VFLA[1] Supply Voltage 1.08 NENDUR Endurance 10000 TRET Data Retention TERASE Typ Max Unit 1.32 V - - cycles[2] 10 - - year Page Erase Time 92 - 160 mS TMER Mass Erase Time 201 - 320 TPROG Program Time 42 - 50 uS IDD1 Read Current - - 4.12 mA IDD2 Program Current - - 5 mA IDD3 Erase Current - - 5 uA Test Condition TA = 25℃ Note: 1. VFLA is source from chip LDO output voltage. 2. Number of program/erase cycles. 3. This table is guaranteed by design, not test in production. ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 229 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller I2C Dynamic Characteristics 8.7 [1][2] Standard Mode Symbol Fast Mode [1][2] Parameter Unit Min Max Min Max tLOW SCL low period 4.7 - 1.2 - uS tHIGH SCL high period 4 - 0.6 - uS 4.7 - 1.2 - uS tSU; STA Repeated START condition setup time tHD; STA START condition hold time 4 - 0.6 - uS tSU; STO STOP condition setup time 4 - 0.6 - uS Bus free time 4.7 [3] - 1.2 [3] - uS tSU;DAT Data setup time 250 - 100 - nS tHD;DAT Data hold time 0 [4] 3.45 [5] 20+0.1Cb [4] 0.8[5] uS tBUF tr SCL/SDA rise time - 1000 - 300 nS tf SCL/SDA fall time - 300 - 300 nS Capacitive load for each bus line - 400 - 400 pF Cb Note: 1. Guaranteed by characteristic, not tested in production 2. HCLK must be higher than 2 MHz to achieve the maximum standard mode I2C frequency. It must be higher than 8 MHz 5. ® NUMICRO M2351 SERIES DATASHEET 3. 4. to achieve the maximum fast mode I2C frequency. I2C controller must be retriggered immediately at slave mode after receiving STOP condition. The device must internally provide a hold time of at least 300 ns for the SDA signal in order to bridge the undefined region of the falling edge of SCL. The maximum hold time of the Start condition has only to be met if the interface does not stretch the low period of SCL signal. STOP Repeated START START STOP SDA tBUF tLOW tr SCL tHD;STA tf tHIGH tHD;DAT tSU;DAT tSU;STA tSU;STO 2 Figure 8.7-1 I C Timing Diagram Oct.09 2019 Page 230 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.8 SPI Dynamic Characteristics Symbol Parameter Min Typ Max Unit SPI Master Mode (VDD = 3.0~3.6 V, 30 PF loading Capacitor) tCLKL Clock output High time [*1] - - TSPICLK / 2 ns tCLKH Clock output Low time [*1] - - TSPICLK / 2 ns tDS Data setup time 0 - - ns tDH Data hold time 2 - - ns tV Data output valid time - 0 1 ns tCLKH tCLKL CLKP=0 SPICLK CLKP=1 tV MOSI Data Valid Data Valid tDS MISO Data Valid CLKP=0, TX_NEG=1, RX_NEG=0 or CLKP=1, TX_NEG=0, RX_NEG=1 tDH Data Valid tV tDS MISO Data Valid CLKP=0, TX_NEG=0, RX_NEG=1 or CLKP=1, TX_NEG=1, RX_NEG=0 tDH Data Valid Data Valid ® NUMICRO M2351 SERIES DATASHEET Data Valid MOSI Figure 8.8-1 SPI Master Mode Timing Diagram Symbol Parameter Min Typ Max Unit SPI Slave Mode (VDD = 3.0~3.6V, 30 PF Loading Capacitor) tCLKL Clock output High time [*1] - tCLKH Clock output Low time [*1] - - TSPICLK / 2 Peripheral clock TSPICLK / 2 Peripheral clock tSS Slave select setup time 1 TSPICLK + 2ns - - Peripheral clock tSH Slave select hold time 1 TSPICLK - - Peripheral clock tDS Data input setup time 0 - - ns tDH Data input hold time 2 - - ns tV Data output valid time - - 8 ns Oct.09 2019 Page 231 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller tCLKH Clock output High time [*1] - - TSPICLK / 2 ns Note: The minimum clock period for SPICLK is 41.67 ns (24 MHz). SSACTPOL=1 SPI SS tSS tSH SSACTPOL=0 tCLKH CLKPOL=0 TXNEG=1 RXNEG=0 tCLKL SPI Clock CLKPOL=1 TXNEG=0 RXNEG=1 tV SPI data output (SPI_MISO) Data Valid Data Valid tDS SPI data input (SPI_MOSI) Data Valid SSACTPOL=1 SPI SS tDH Data Valid tSS tSH SSACTPOL=0 tCLKH tCLKL SPI Clock CLKPOL=1 TXNEG=1 RXNEG=0 ® NUMICRO M2351 SERIES DATASHEET CLKPOL=0 TXNEG=0 RXNEG=1 tV SPI data output (SPI_MISO) Data Valid tDS SPI data input (SPI_MOSI) Data Valid tDH Data Valid Data Valid Figure 8.8-2 SPI Slave Mode Timing Diagram Oct.09 2019 Page 232 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller I2S Dynamic Characteristics 8.9 Symbol Parameter I2S clock high time tw(CKH) 2 Min Max 39 - Unit Test Conditions Master fPCLK = MHz, data: 24 bits, audio frequency = 256 kHz tw(CKL) I S clock low time 39 - tv(WS) WS valid time 2 12 th(WS) WS hold time 1 - Master mode tsu(WS) WS setup time 24 - Slave mode th(WS) WS hold time 0 - Slave mode 35 65 22 - Master receiver 10 - Slave receiver 7 - Master receiver 8 - Master mode ns 2 DuCy(SCK) tsu(SD_MR) I S slave input clock duty cycle Slave mode Data input setup time tsu(SD_SR) th(SD_MR) % Data input hold time th(SD_SR) Slave receiver ns Data output valid time - 21 Slave transmitter (after enable edge) th(SD_ST) Data output hold time 4 - Slave transmitter (after enable edge) tv(SD_MT) Data output valid time - 7 Master transmitter (after enable edge) th(SD_MT) Data output hold time 0 - Master transmitter (after enable edge) CPOL = 0 tw(CKH) ® NUMICRO M2351 SERIES DATASHEET CK output tv(SD_ST) CPOL = 1 tw(CKL) tv(WS) th(WS) WS output tv(SD_ST) SDtransmit LSB transmit(2) MSB transmit tsu(SD_MR) SDreceive LSB receive(2) Bitn transmit th(SD_ST) LSB transmit th(SD_MR) MSB receive Bitn receive LSB receive 2 Figure 8.9-1 I S Master Mode Timing Diagram Oct.09 2019 Page 233 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller CK Input CPOL = 0 CPOL = 1 tw(CKH) tw(CKL) th(WS) WS input tv(SD_ST) tsu(WS) SDtransmit LSB transmit(2) MSB transmit tsu(SD_SR) SDreceive LSB receive(2) Bitn transmit th(SD_ST) LSB transmit th(SD_SR) MSB receive Bitn receive LSB receive 2 Figure 8.9-2 I S Slave Mode Timing Diagram ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 234 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller USCI - I2C Dynamic Characteristics 8.10 [1][2] Standard Mode Symbol Fast Mode [1][2] Parameter Unit Min Max Min Max tLOW SCL low period 4.7 - 1.2 - uS tHIGH SCL high period 4 - 0.6 - uS 4.7 - 1.2 - uS tSU; STA Repeated START condition setup time tHD; STA START condition hold time 4 - 0.6 - uS tSU; STO STOP condition setup time 4 - 0.6 - uS Bus free time 4.7 [3] - 1.2 [3] - uS tSU;DAT Data setup time 250 - 100 - nS tHD;DAT Data hold time 0 [4] 3.45 [5] 20+0.1Cb [4] 0.8[5] uS tBUF tr SCL/SDA rise time - 1000 - 300 nS tf SCL/SDA fall time - 300 - 300 nS Capacitive load for each bus line - 400 - 400 pF Cb Note: 1. Guaranteed by characteristic, not tested in production 2. HCLK must be higher than 2 MHz to achieve the maximum standard mode I2C frequency. It must be higher than 8 MHz 5. Repeated START START STOP SDA tBUF tLOW tr SCL tHD;STA tf tHIGH tHD;DAT tSU;DAT tSU;STA tSU;STO 2 Figure 8.10-1 I C Timing Diagram Oct.09 2019 Page 235 of 246 Rev 1.02 ® STOP NUMICRO M2351 SERIES DATASHEET 3. 4. to achieve the maximum fast mode I2C frequency. I2C controller must be retriggered immediately at slave mode after receiving STOP condition. The device must internally provide a hold time of at least 300 ns for the SDA signal in order to bridge the undefined region of the falling edge of SCL. The maximum hold time of the Start condition has only to be met if the interface does not stretch the low period of SCL signal. NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.11 USCI - SPI Dynamic Characteristics Symbol Parameter Min Typ Max Unit tCLKH Clock output High time [*1] - - TSPICLK / 2 ns tCLKL Clock output Low time [*1] - - TSPICLK / 2 ns tDS Data setup time 0 - - ns tDH Data hold time 2 - - ns tV Data output valid time - 0 1 ns Note: The minimum clock period for SPICLK is 41.67 ns (24 MHz). tCLKH tCLKL CLKP=0 SPICLK CLKP=1 tV MOSI Data Valid Data Valid tDS MISO Data Valid CLKP=0, TX_NEG=1, RX_NEG=0 or CLKP=1, TX_NEG=0, RX_NEG=1 tDH Data Valid tV ® NUMICRO M2351 SERIES DATASHEET Data Valid MOSI tDS MISO Data Valid CLKP=0, TX_NEG=0, RX_NEG=1 or CLKP=1, TX_NEG=1, RX_NEG=0 tDH Data Valid Data Valid Figure 8.11-1 SPI Master Mode Timing Diagram Symbol Parameter Min Typ Max Unit - TSPICLK / 2 ns TSPICLK / 2 ns tCLKH Clock output High time [*1] - tCLKL Clock output Low time [*1] - tSS Slave select setup time 1 TSPICLK + 2ns - - ns tSH Slave select hold time 1 TSPICLK - - ns tDS Data input setup time 0 - - ns tDH Data input hold time 2 - - ns tV Data output valid time - 8 ns Oct.09 2019 Page 236 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller tCLKH Clock output High time [*1] - - ns TSPICLK / 2 Note: The minimum clock period for SPICLK is 41.67 ns (24 MHz). SSACTPOL=1 SPI SS tSS tSH SSACTPOL=0 tCLKH CLKPOL=0 TXNEG=1 RXNEG=0 tCLKL SPI Clock CLKPOL=1 TXNEG=0 RXNEG=1 tV SPI data output (SPI_MISO) Data Valid Data Valid tDS SPI data input (SPI_MOSI) Data Valid SSACTPOL=1 SPI SS tDH Data Valid tSS tSH SSACTPOL=0 tCLKH NUMICRO M2351 SERIES DATASHEET CLKPOL=0 TXNEG=0 RXNEG=1 tCLKL SPI Clock ® CLKPOL=1 TXNEG=1 RXNEG=0 tV SPI data output (SPI_MISO) Data Valid tDS SPI data input (SPI_MOSI) Data Valid tDH Data Valid Data Valid Figure 8.11-2 SPI Slave Mode Timing Diagram Oct.09 2019 Page 237 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.12 USB Characteristics 8.12.1 USB Full-Speed PHY Characteristics Symbol Parameter Min Typ Max Unit Test Conditions 3 3.3 3.6 V - 2.0 - - V - - 0.8 V - 0.2 - - V |PADP-PADM| 0.8 - 2.5 V Includes VDI range 0.8 - 2.0 V - Receiver Hysteresis - 200 - mV - VOL Output Low (driven) 0 - 0.3 V - VOH Output High (driven) 2.8 - 3.6 V - VCRS Output Signal Cross Voltage 1.3 - 2.0 V - RPU Pull-up Resistor 1.425 - 1.575 kΩ - RPD Pull-down Resistor 14.25 - 15.75 kΩ VTRM Termination Voltage for Uptream port pull up (RPU) 3.0 - 3.6 V ZDRV Driver Output Resistance - 10 - Ω Steady state drive* CIN Transceiver Capacitance - - 20 pF Pin to GND TFR Rise Time 4 - 20 ns CL=50p TFF Fall Time 4 - 20 ns CL=50p Rise and Fall Time Matching 90 - 111.11 % TFRFF=TFR/TFF VDD Power VIH Input High (driven) VIL Input Low VDI Differential Input Sensitivity VCM VSE Differential Common-mode Range Single-ended Receiver Threshold ® NUMICRO M2351 SERIES DATASHEET TFRFF Note: 1. Guaranteed by design, not tested in production. 2. To ensure stability, an external 1 μF output capacitor, 1uF external capacitor must be connected between the USB_VDD33_CAP pin and the closest GND pin of the device. 3. USB_D+ and USB_D- must be connected with series resistors to fit USB Full-speed spec request (28 ~ 44Ω). Oct.09 2019 Page 238 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.13 SDIO Characteristics 8.13.1 Default Mode Timing Symbol Parameter SD_CLK Period TP_SD_CLK (Data Transfer Mode) SD_CLK Period TP_SD_CLK_ID (Identification Mode) Min Typ Max Unit Test Condition 40 - - ns - 2,500 - - ns TH_SD_CLK SD_CLK High Time - 20 - ns - TL_SD_CLK SD_CLK Low Time - 20 - ns - 5 - - ns - 5 - - ns - - - 14 ns - SD_DATA Setup Time to TSU_SD_IN THD_SD_IN SD_CLK Rising SD_DATA Hold Time from SD_CLK Rising SD_CLK Falling to TDLY_SD_OUT Valid SD_DATA Delay TP_SD_CLK TL_SD_CLK TH_SD_CLK SDx_CLK NUMICRO M2351 SERIES DATASHEET SDx_CMD SDx_DATA[3:0] (Input Mode) ® TSU_SD_IN THD_SD_IN SDx_CMD SDx_DATA[3:0] (Output Mode) TDLY_SD_OUT Figure 8.13-1 SDIO Default Mode Oct.09 2019 Page 239 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 8.13.2 SDIO Dynamic Characteristics Symbol Parameter Min Typ Max Unit Test Condition TP_SD_CLK SD_CLK Period 20 - - ns - TH_SD_CLK SD_CLK High Time 7 - - ns - TL_SD_CLK SD_CLK Low Time 7 - - ns - 6 - - ns - 2 - - ns - - - 14 ns - 2.5 - - ns - SD_DATA Setup Time to TSU_SD_IN THD_SD_IN SD_CLK Rising SD_DATA Hold Time from SD_CLK Rising SD_CLK Falling to TDLY_SD_OUT THD_SD_OUT Valid SD_DATA Delay SD_DATA Hold Time from SD_CLK Rising TP_SD_CLK TL_SD_CLK TH_SD_CLK SDx_CLK SDx_CMD SDx_DATA[3:0] (Input Mode) TSU_SD_IN ® NUMICRO M2351 SERIES DATASHEET THD_SD_IN SDx_CMD SDx_DATA[3:0] (Output Mode) TDLY_SD_OUT THD_SD_OUT Figure 8.13-2 SDIO High-speed Mode Oct.09 2019 Page 240 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 9 PACKAGE DIMENSIONS 9.1 QFN 33 (5x5x0.8 mm Pitch 0.5 mm) ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 241 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 9.2 LQFP 64 (7x7x1.4 mm Footprint 2.0 mm) ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 242 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 9.3 LQFP 128 (14x14x1.4 mm Footprint 2.0 mm) ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 243 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 10 ABBREVIATIONS ® NUMICRO M2351 SERIES DATASHEET Acronym Description ACMP Analog Comparator Controller ADC Analog-to-Digital Converter AES Advanced Encryption Standard APB Advanced Peripheral Bus AHB Advanced High-Performance Bus BOD Brown-out Detection CAN Controller Area Network DAP Debug Access Port DES Data Encryption Standard EADC Enhanced Analog-to-Digital Converter EBI External Bus Interface EMAC Ethernet MAC Controller EPWM Enhanced Pulse Width Modulation FIFO First In, First Out FMC Flash Memory Controller FPU Floating-point Unit GPIO General-Purpose Input/Output HCLK The Clock of Advanced High-Performance Bus HIRC 12 MHz Internal High Speed RC Oscillator HXT 4~24 MHz External High Speed Crystal Oscillator IAP In Application Programming ICP In Circuit Programming ISP In System Programming LDO Low Dropout Regulator LIN Local Interconnect Network LIRC 10 kHz internal low speed RC oscillator (LIRC) MPU Memory Protection Unit NVIC Nested Vectored Interrupt Controller PCLK The Clock of Advanced Peripheral Bus PDMA Peripheral Direct Memory Access PLL Phase-Locked Loop PWM Pulse Width Modulation QEI Quadrature Encoder Interface Oct.09 2019 Page 244 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller SD Secure Digital SPI Serial Peripheral Interface SPS Samples per Second TDES Triple Data Encryption Standard TK Touch Key TMR Timer Controller UART Universal Asynchronous Receiver/Transmitter UCID Unique Customer ID USB Universal Serial Bus WDT Watchdog Timer WWDT Window Watchdog Timer ® NUMICRO M2351 SERIES DATASHEET Oct.09 2019 Page 245 of 246 Rev 1.02 NuMicro® M2351 32-bit ARM® Cortex® -M23 Microcontroller 11 REVISION HISTORY Date Revision Description 2018.08.24 1.00 Initial version. 2019.02.15 1.01 Added electrical characteristics information. 2019.10.09 1.02 Added M2351SF related data ® NUMICRO M2351 SERIES 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. Oct.09 2019 Page 246 of 246 Rev 1.02
M2351ZIAAE 价格&库存

很抱歉,暂时无法提供与“M2351ZIAAE”相匹配的价格&库存,您可以联系我们找货

免费人工找货