Table of Contents

Advertisement

Quick Links

NuMaker-M0A23EC
NuMicro
®
Family
Based on Arm
®
Cortex
®
-M0
NuMaker-M0A23EC
User Manual
Evaluation Board for NuMicro
®
M0A21/M0A23 Series
The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
Nuvoton is providing this document only for reference purposes of NuMicro microcontroller based system
design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation.
www.nuvoton.com
Feb. 17, 2021
Page 1 of 49
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuMicro NuMaker-M0A23EC and is the answer not in the manual?

Questions and answers

Summary of Contents for Nuvoton NuMicro NuMaker-M0A23EC

  • Page 1 The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton. Nuvoton is providing this document only for reference purposes of NuMicro microcontroller based system design. Nuvoton assumes no responsibility for errors or omissions.
  • Page 2: Table Of Contents

    3.11.2 Status LEDs ........................27 4 QUICK START ....................28 4.1 Toolchains Supporting ....................28 4.2 Nuvoton Nu-Link Driver Installation ................28 4.3 BSP Firmware Download ................... 30 4.4 Hardware Setup ......................30 4.5 Find the Example Project ................... 32 4.6 Execute the Project under Toolchains ..............
  • Page 3 NuMaker-M0A23EC 5 NUMAKER-M0A23EC SCHEMATICS ............44 5.1 Nu-Link2-Me ......................... 44 5.2 M0A21/M0A23 Target Board ..................45 5.3 Extension Connectors ....................46 5.4 PCB Placement ......................47 6 REVISION HISTORY ..................48 Feb. 17, 2021 Page 3 of 49 Rev 1.00...
  • Page 4 NuMaker-M0A23EC List of Figures Figure 1-1 NuMaker-M0A23EC Evaluation Board ................7 Figure 3-1 Front View of NuMaker-M0A23EC ................. 9 Figure 3-2 Rear View of NuMaker-M0A23EC ................11 Figure 3-3 M0A23EC1AC Extension Connectors ................12 Figure 3-4 Arduino UNO Compatible Extension Connectors ............15 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-M0A23EC Figure 4-27 Startup Tab Configuration ..................42 Figure 4-28 NuEclipse Debug Mode ....................43 Figure 4-29 Debug Message on Serial Port Terminal Windows ............ 43 Figure 5-1 Nu-Link2-Me Circuit ...................... 44 Figure 5-2 M0A21/M0A23 Target Board Circuit ................45 Figure 5-3 Extension Connectors Circuit ..................
  • Page 6 NuMaker-M0A23EC List of Tables Table 3-1 Extension Connectors ....................12 Table 3-2 M0A23EC1AC Full-pin Extension Connectors and GPIO Function List ......14 Table 3-3 Arduino UNO Extension Connectors and M0A23EC1AC Mapping GPIO List ....16 Table 3-4 Vin Power Source ......................17 Table 3-5 5 V Power Sources ......................
  • Page 7: Overview

    M0A21/M0A23 target board provides the extension connectors of M0A23EC1AC, the Arduino UNO compatible headers and the capability of adopting multiple power supplies. Furthermore, the Nuvoton- designed ammeter connector can measure the power consumption instantly, which is essential for the prototype evaluation.
  • Page 8: Features

    NuMaker-M0A23EC FEATURES  NuMicro M0A23EC1AC microcontroller with function compatible with: M0A23EC1AC – M0A23OC1AC – M0A21EC1AC – M0A21EB1AC – M0A21OC1AC – M0A21OB1AC –  M0A23EC1AC extension connectors  Arduino UNO compatible extension connectors  Ammeter connector for measuring the microcontroller’s power consumption ...
  • Page 9: Hardware Configuration

    NuMaker-M0A23EC HARDWARE CONFIGURATION Front View Arduino D7~9 Function Switch SWD Function Switch LIN Function Switch Button & LED Function Switch Reset Button CAN Function Switch LIN Bus Connector Switch LIN Transceiver LIN Mode Selection External V Connector Ammeter VCOM Switch ICE USB Connector USB PWR Connector Button...
  • Page 10 NuMaker-M0A23EC  Button & LED Function Switch (SW7) Enable PC.2 to Button – Enable PA.2 to LEDR1 –  HXT Function Switch (SW4) Enable PA.4 and PA.5 to External 12 MHz Crystal –  LXT Function Switch (SW5) Enable PC.4 and PC.5 to External 32.768 kHz Crystal –...
  • Page 11: Rear View

    NuMaker-M0A23EC Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M0A23EC. The following lists components and connectors from the rear view:  Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) – ICEVCC Power Switch (ICEJPR2) – ICEVCC Power Switch MCUVCC Power Switch Figure 3-2 Rear View of NuMaker-M0A23EC Feb.
  • Page 12: Extension Connectors

    NuMaker-M0A23EC Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-M0A23EC. NU1, NU2, NU3 and Arduino UNO compatible pins on the NuMaker-M0A23EC. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M0A23EC provides the M0A23EC1AC onboard and extension connectors (JP3, JP4, JP5 and JP6).
  • Page 13 NuMaker-M0A23EC M0A23EC1AC Header Pin No. Function JP3.1 JP3.2 PA.5 / ADC0_CH16 / UART0_nRTS / XT1_IN / CLKO / PWM0_CH0 / PWM0_CH2 / PWM0_CH4 / UART0_TXD / UART0_RXD / USCI0_CLK / USCI0_DAT0 / USCI0_DAT1 / USCI0_CTL0 / JP3.3 USCI0_CTL1 / USCI1_CLK / USCI1_DAT0 / USCI1_DAT1 / USCI1_CTL0 / CAN0_TXD / CAN0_RXD JP3.4 / ACMP0_O / ACMP1_O / ADC0_ST / TM0 / TM2 / TM0_EXT / TM2_EXT / UART1_TXD / UART1_RXD / ACMP0_WLAT...
  • Page 14: Table 3-2 M0A23Ec1Ac Full-Pin Extension Connectors And Gpio Function List

    NuMaker-M0A23EC M0A23EC1AC Header Pin No. Function JP5.5 PD.4 / PWM0_CH0 / UART0_TXD / USCI0_CLK / TM0 JP5.6 JP5.7 PD.5 / PWM0_CH1 / UART0_RXD / USCI0_DAT0 / TM1 JP5.8 JP5.9 PD.6 / PWM0_CH2 / USCI0_DAT1 / TM2 / UART1_nCTS JP5.10 JP5.11 PD.7 / PWM0_CH3 / USCI0_CTL0 / TM3 / UART1_nRTS JP5.12 PB.4 / ADC0_CH6 / UART0_nRTS / UART0_nCTS / CLKO / PWM0_CH1 / PWM0_CH3 / PWM0_CH5...
  • Page 15: 3.3.2 Arduino Uno Compatible Extension Connectors

    NuMaker-M0A23EC 3.3.2 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. UART0_RXD PWM0_CH5 PWM0_CH3 PWM0_CH1 PB.6 UART0_TXD PWM0_CH5 PWM0_CH3 PWM0_CH1 PB.4 PA.2 ADC0_CH2 PWM0_CH5 PWM0_CH3 PWM0_CH1 PC.3 PC.0 ADC0_CH3 PC.1 ADC0_CH4 PWM0_CH4 PWM0_CH2 PWM0_CH0 PA.5 PC.2 ADC0_CH5 PWM0_CH5 PWM0_CH3 PWM0_CH1...
  • Page 16: Table 3-3 Arduino Uno Extension Connectors And M0A23Ec1Ac Mapping Gpio List

    NuMaker-M0A23EC NuMaker-M0A23EC NuMaker-M0A23EC Header Header Compatible to GPIO Pin of Compatible to GPIO Pin of Arduino UNO M0A23EC1AC Arduino UNO M0A23EC1AC NU3.1 PB.6 NU2.6 NU3.2 PB.4 NU2.5 NU3.3 NU2.4 PA.2 NU3.4 PC.3 NU2.3 PC.0 NU3.5 NU2.2 PC.1 NU3.6 PA.5 NU2.1 PC.2 NU3.7 PA.4...
  • Page 17: Power Supply Configuration

    NuMaker-M0A23EC Power Supply Configuration The NuMaker-M0A23EC is able to adopt multiple power supplies. External power sources include NU1 Vin (7 V to 12 V), V (depending on the target chip operating voltage), LIN bus through connector JP8 and PC through USB connector. By using switches and voltage regulator, multiple power domains can be created on the NuMaker-M0A23EC.
  • Page 18: Power Sources

    NuMaker-M0A23EC 3.4.3 3.3 V Power Sources Table 3-6 presents the 3.3 V power sources. Voltage 5 V Source Description Regulator ICEUP1 converts USB_HS_VBUS to 3.3 V and ICEUP1 USB_HS_VBUS supplies 3.3 V to M0A21/M0A23 target board or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to M0A21/M0A23 target board.
  • Page 19: Usb Connectors

    NuMaker-M0A23EC 3.4.5 USB Connectors Table 3-8 presents the USB connectors. Connector Description ICE USB connector on Nu-Link2-Me for power supply, debugging and ICEJ3 programming from PC. USB FS connector on NuMaker-M0A23EC for power supply. Table 3-8 USB Connectors 3.4.6 Power Switches Table 3-9 presents the power switches.
  • Page 20: Figure 3-6 External Power Supply Sources On M0A21/M0A23 Target Board

    NuMaker-M0A23EC To use ICEJ3 as external power supply source with Nu-Link2-Me, please follow the steps below: Solder the resistor on ICEJPR1 (MCUVCC) depending on the target chip operating voltage. Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. Switch the SW2 to OFF.
  • Page 21: Figure 3-7 Detach The Nu-Link2-Me From Numaker-M0A23Ec

    NuMaker-M0A23EC Switch the SW2 to OFF. Remove the resistor on ICEJPR1 (MCUVCC). Solder the resistor on ICEJPR2 (ICEVCC) depending on the ICE chip operating voltage. Connect ICEJ3 to PC. Connect the external power supply to JP1. To use Vin, J2 or JP8 as external power supply source with Nu-Link2-Me detached from NuMaker- M0A23EC, please follow the steps below: Switch the SW2 depending on the target chip operating voltage.
  • Page 22: Table 3-11 Supply External Power For M0A21/M0A23 Target Board

    NuMaker-M0A23EC Table 3-11 presents all power models when supplies external power through M0A21/M0A23 target board. The M0A21/M0A23 target board external power sources are highlighted in yellow. Target ICEJPR1 ICEJPR2 ICE Chip Model Chip ICEJ3 Selectio (MCUVCC) (ICEVCC) Voltage Voltage Selection Selection 7 V ~ 12 Remove...
  • Page 23: Ammeter Connector

    NuMaker-M0A23EC Ammeter Connector Table 3-12 presents the ammeter connector. Connector Description Connector for user to measure the target chip power consumption easily. AMMETER User needs to remove the R16 resistor. Table 3-12 Ammeter Connector Remove the R16 Resistor Figure 3-8 Wiring between Ammeter Connector and Ammeter Function Switches Table 3-13 presents the function switches.
  • Page 24: Can Mode Selection

    NuMaker-M0A23EC Switch both SW10.1 and SW10.2 to ON to enable PC.6 and PC.7 to LIN transceiver. SW10 Switch SW10.3 to ON to enable PC.0 to control LIN mode. Table 3-13 Function Switches LIN Function Switch (SW10) Arduino D7~9 Function Switch (SW9) SWD Function Switch (SW8) HXT Function Switch (SW4) Button &...
  • Page 25: Push Buttons

    NuMaker-M0A23EC Slave Normal High Slave Sleep Note: -: Unused. Table 3-15 Operating Mode of LIN Transceiver Push Buttons Table 3-16 presents the push buttons. Component Description ICESW1 Offline program button to start offline ICP programming the target chip. Reset button to reset the target chip. Customize button is connected to the M0A23OC1AC PC.2 if SW7.2 switches to ON.
  • Page 26: 3.10 Leds

    NuMaker-M0A23EC 3.10 LEDs Table 3-17 presents the LEDs. Component Description Power LED The power LED indicates that the NuMaker-M0A23EC is powered. PB14 LED The LED is connected to the target chip PA.2 if SW7.1 switches to ON. ICES0, ICES1, ICES2 Nu-Link2-Me status LED.
  • Page 27: Status Leds

    NuMaker-M0A23EC 3.11.2 Status LEDs Table 3-17 presents the status LEDs patterns for different operation on Nu-Link2-Me. Status LED Operation Status ICES0 ICES1 ICES2 ICES3 Boot Flash x 3 Flash x 3 Flash x 3 Flash x 3 Idle One Nu-Link2-Me is selected to connect Flash x 3 Flash x 3 Flash x 3...
  • Page 28: Quick Start

    KEIL MDK Nuvoton edition M0/M23  IAR EWARM  NuEclipse GCC (for Windows)  NuEclipse GCC (for Linux) Nuvoton Nu-Link Driver Installation Download and install the latest Nuvoton Nu-Link Driver.  Download and install Nu-Link_Keil_Driver when using Keil MDK.  Download and install Nu-Link_IAR_Driver when using IAR EWARM.
  • Page 29: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-M0A23EC Figure 4-2 Nu-Link USB Driver Installation Feb. 17, 2021 Page 29 of 49 Rev 1.00...
  • Page 30: Bsp Firmware Download

    NuMaker-M0A23EC BSP Firmware Download Download and unzip the Board Support Package (BSP). Hardware Setup Open the virtual COM (VCOM) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to Figure 4-3 Open VCOM Function Connect the ICE USB connector shown in Figure 4-4 to the PC USB port through a USB cable. Figure 4-4 ICE USB Connector Feb.
  • Page 31: Figure 4-5 Device Manger

    NuMaker-M0A23EC Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 4-5. Figure 4-5 Device Manger Open a serial port terminal, PuTTY for example, to print out debug message. Set the speed to 115200. Figure 4-6 presents the PuTTY session setting.
  • Page 32: Find The Example Project

    NuMaker-M0A23EC Find the Example Project Use the “Template” project as an example. The project can be found under the BSP folder as shown in Figure 4-7.  M0A21_Series_BSP_CMSIS_V3.XX.XXX  SampleCode  Template   Keil  Figure 4-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
  • Page 33: Figure 4-9 Project File Migrate To Version 5 Format

    Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 4-10 and Figure 4-11. Figure 4-10 Debugger Setting in Options Window Note: If the dropdown menu in Figure 4-10 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 4.2. Feb. 17, 2021 Page 33 of 49 Rev 1.00...
  • Page 34: Figure 4-11 Programming Setting In Options Window

    NuMaker-M0A23EC Figure 4-11 Programming Setting in Options Window Rebuild all target files. After successfully compiling the project, download code to the Flash memory. Click “Start/Stop Debug Section” button to enter debug mode. 1. Rebuild 2. Successfully compile 3. Download 4. Start/Stop Debug Figure 4-12 Compile and Download the Project Feb.
  • Page 35: Figure 4-13 Keil Mdk Debug Mode

    NuMaker-M0A23EC Figure 4-13 shows the debug mode under Keil MDK. Click “Run” and the debug message will be printed out as shown in Figure 4-14. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
  • Page 36: Iar Ewarm

    NuMaker-M0A23EC 4.6.2 IAR EWARM This section provides steps to beginners on how to run a project by using IAR EWARM. Double click the “Template.eww” to open the project. Make sure the toolbar contains “Nu-Link” item as shown in Figure 4-15. Note: If the toolbar does not contain “Nu-Link”...
  • Page 37: Figure 4-17 Iar Ewarm Debug Mode

    NuMaker-M0A23EC Figure 4-17 shows the debug mode under IAR EWARN. Click “Go” and the debug message will be printed out as shown in Figure 4-18. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
  • Page 38: Nueclipse

    NuMaker-M0A23EC 4.6.3 NuEclipse This section provides steps to beginners on how to run a project by using NuEclipse. Please make sure the filenames and project folder path contain neither invalid character nor space. Double-click “NuEclipse.exe" to open the toolchain. Import the “Template” project by following the steps presented in Figure 4-19 and Figure 4-20. Figure 4-19 Import the Project in NuEclipse M0A21_Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Template M031_Series_BSP_CMSIS_V3.XX.XXX\SampleCode\Template\GCC)
  • Page 39: Figure 4-21 Open Project Properties Window

    NuMaker-M0A23EC Click the “Template” project and find the project properties as shown in Figure 4-21. Make sure the settings are the same as settings in Figure 4-22. Figure 4-21 Open Project Properties Window Figure 4-22 Project Properties Settings Feb. 17, 2021 Page 39 of 49 Rev 1.00...
  • Page 40: Figure 4-23 Build Project

    NuMaker-M0A23EC Click the “Template” project and build the project. Figure 4-23 Build Project After the project is built, click the “Template” project and set the “Debug Configuration” as shown in Figure 4-24. Follow the settings presented in Figure 4-25, Figure 4-26 and Figure 4-27 to enter debug mode.
  • Page 41: Figure 4-25 Main Tab Configuration

    NuMaker-M0A23EC Note 1: Double-click the “GDB Nuvoton Nu-Link Debugging” to create the sub item. Note 2: After the project is built, the “*.elf” file will be shown in “C/C++ Application” frame. Figure 4-25 Main Tab Configuration Figure 4-26 Debugger Tab Configuration Feb.
  • Page 42: Figure 4-27 Startup Tab Configuration

    NuMaker-M0A23EC Note: User must follow those settings highlighted in green, and configure other settings depending on the needs. Figure 4-27 Startup Tab Configuration Feb. 17, 2021 Page 42 of 49 Rev 1.00...
  • Page 43: Figure 4-28 Nueclipse Debug Mode

    NuMaker-M0A23EC Figure 4-28 shows the debug mode under NuEclipse. Click “Resume” and the debug message will be printed out as shown in Figure 4-29. User can debug the project under debug mode by checking source code, assembly language, peripherals’ registers, and setting breakpoint, step run, value monitor, etc.
  • Page 44: Numaker-M0A23Ec Schematics

    NuMaker-M0A23EC NUMAKER-M0A23EC SCHEMATICS Nu-Link2-Me Figure 5-1 shows the Nu-Link2-Me circuit. 3.3V ICER1 O f f - page C onnect or 200 1% USB_HS_CAP R0603 ICE5V ICEC1 ICEC2 ICE5V 0.1u MCUVCC_DIODE C0603 C0603 MCUVCC_DIODE SWDH_DAT TICEDAT SWDH_CLK TICECLK SWDH_RST# TICERST ICE_RX_S MCU_TX ICE_TX_S MCU_RX...
  • Page 45: M0A21/M0A23 Target Board

    NuMaker-M0A23EC M0A21/M0A23 Target Board Figure 5-2 shows the M0A21/M0A23 target board circuit. P1 - P7 P15 - P21 VDD_2 PB6_RXD0 VDD_MCU PB6_NU3_D0/RX PA5_XT1_IN PB5_CAN0_RXD PA5_NU3_D5 PB5_NU4_SDA PA4_XT1_OUT PA4_NU3_D6 P17_PD4 PA3_nRESET P4_PA3 P18_PD5 PC5_X32_IN PC5_NU4_D11/MOSI P19_PD6 PC4_X32_OUT PC4_NU4_D12/MISO P20_PD7 PC3_CAN_MODE PB4_TXD0 PC3_NU3_D3 PB4_NU3_D1/TX <M0A23EC1AC>...
  • Page 46: Extension Connectors

    NuMaker-M0A23EC Extension Connectors Figure 5-3 shows extension connectors of NuMaker-M0A23EC. P1 - P7 P15 - P21 VDD_MCU PB6_NU3_D0/RX PA5_NU3_D5 PB5_NU4_SDA PB7_NU4_SCL I2C_SCL PA4_NU3_D6 P17_PD4 PB5_NU4_SDA I2C_SDA P4_PA3 P18_PD5 NU4_VREF_NC VREF PC5_NU4_D11/MOSI P19_PD6 PC4_NU4_D12/MISO P20_PD7 TICERST PC6_NU4_D13/CLK MCU_RESET PC3_NU3_D3 PB4_NU3_D1/TX NU1_3VCC PC4_NU4_D12/MISO 3VCC NU1_5VCC...
  • Page 47: Pcb Placement

    NuMaker-M0A23EC PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M0A23EC. Figure 5-4 Front Placement Figure 5-5 Rear Placement Feb. 17, 2021 Page 47 of 49 Rev 1.00...
  • Page 48: Revision History

    NuMaker-M0A23EC REVISION HISTORY Date Revision Description  2021.02.17 1.00 Initial version Feb. 17, 2021 Page 48 of 49 Rev 1.00...
  • Page 49 NuMaker-M0A23EC 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”.

Table of Contents