Evaluation board for numicro 1t 8051 series (41 pages)
Summary of Contents for Nuvoton NuMaker-M0A23OC
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 4
Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............19 Figure 3-6 External Power Supply Sources on M0A21 platform ........... 20 Figure 3-7 Detach the Nu-Link2-Me from NuMaker-M0A23OC ............. 21 Figure 3-8 Wiring between Ammeter Connector and Ammeter ............. 23 Figure 3-9 Function Switches on NuMaker-M0A23OC ..............
Page 5
NuMaker-M0A23OC Figure 4-27 Startup Tab Configuration ..................41 Figure 4-28 NuEclipse Debug Mode ....................42 Figure 4-29 Debug Message on Serial Port Terminal Windows ............ 42 Figure 5-1 Nu-Link2-Me Circuit ...................... 43 Figure 5-2 M0A21 platform Circuit ....................44 Figure 5-3 Extension Connectors Circuit ..................45 Figure 5-4 Front Placement ......................
Page 6
NuMaker-M0A23OC List of Tables Table 3-1 Extension Connectors ....................12 Table 3-2 M0A23OC1AC Full-pin Extension Connectors and GPIO Function List ....... 14 Table 3-3 Arduino UNO Extension Connectors and M0A23OC1AC Mapping GPIO List....16 Table 3-4 Vin Power Source ......................17 Table 3-5 5 V Power Sources ......................
The NuMaker-M0A23OC is a development board for Nuvoton NuMicro M0A21 microcontrollers. The NuMaker-M0A23OC consists of two parts: a M0A21 platform and an on-board Nu-Link2-Me debugger and programmer. The NuMaker-M0A23OC is designed for industrial and automotive control application evaluation, prototype development and validation with power consumption monitoring function.
M0A23OC1AC Arduino UNO Compatible Extension Connectors Figure 3-1 Front View of NuMaker-M0A23OC Figure 3-1 shows the main components and connectors from the front side of NuMaker-M0A23OC. The following lists components and connectors from the front view: Target chip: M0A23OC1AC (U2) ...
Page 10
NuMaker-M0A23OC 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 ...
NuMaker-M0A23OC Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-M0A23OC. The following lists components and connectors from the rear view: Nu-Link2-Me MCUVCC Power Switch (ICEJPR1) ICEVCC Power Switch (ICEJPR2) ICEVCC Power Switch...
Arduino UNO compatible pins on the NuMaker-M0A23OC. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-M0A23OC provides the M0A23OC1AC onboard and extension connectors (JP3, JP4, JP5 and JP6). Figure 3-3 shows the M0A23OC1AC extension connectors. Pin11 ~ Pin15...
NuMaker-M0A23OC Power Supply Configuration The NuMaker-M0A23OC is able to adopt multiple power supply. External power source include NU1 Vin (7 V to 12 V), V (depending on 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-M0A23OC.
Note: SW2.2 (NU1 3VCC) should be switched to ON. Table 3-6 3.3 V Power Sources 3.4.4 Power Connectors Table 3-7 presents the power connectors. Connector Description connector on the NuMaker-M0A23OC. connector on the NuMaker-M0A23OC. Table 3-7 Power Connectors Oct. 23, 2020 Page 18 of 48 Rev 1.01...
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-M0A23OC for power supply. Table 3-8 USB Connectors 3.4.6 Power Switches Table 3-9 presents the power switches. Switch Description Configures the target chip operating voltage at 1.8 V / 3.3 V / 5 V.
NuMaker-M0A23OC To use ICEJ3 as external power supply source with Nu-Link2-Me, please follow the below steps: 1. Solder the resistor on ICEJPR1 (MCUVCC) depends on the target chip operating voltage. 2. Solder the resistor on ICEJPR2 (ICEVCC) depends on the ICE chip operating voltage.
2. Detach the Nu-Link2-Me from NuMaker-M0A23OC. 3. Connect the external power supply to Vin, J2 or JP8. To use JP1 as external power supply source with Nu-Link2-Me detached from NuMaker-M0A23OC, please follow the below steps: 1. Switch the SW2 to OFF.
NuMaker-M0A23OC Table 3-11 presents all power models when supplies external power through M0A21 platform. The M0A21 platform external power sources are highlighted in yellow. Target ICEJPR1 ICEJPR2 ICE Chip Model Chip ICEJ3 (MCUVCC) (ICEVCC) Selection Voltage Voltage Selection Selection 7 V ~ 12 Remove 3.3 V...
NuMaker-M0A23OC Remove the R16 Resistor Figure 3-8 Wiring between Ammeter Connector and Ammeter Function Switches Table 3-13 presents the function switches. Component Description Switch both SW4.1 and SW4.2 to ON to enable PA.4 and PA.5 to external 12 MHz crystal.
HXT Function Switch (SW4) LXT Function Switch (SW5) CAN Function Switch (SW6) Figure 3-9 Function Switches on NuMaker-M0A23OC CAN Mode Selection Table 3-14 presents all selection to control operating mode of CAN transceiver. The control sources are highlighted in yellow.
LEDs Table 3-17 presents the LEDs. Component Description Power LED The power LED indicates that the NuMaker-M0A23OC is powered. The LED is connected to the M0A23OC1AC PA.2 if SW7.1 switches to PB14 LED ICES0, ICES1, ICES2 Nu-Link2-Me status LED. and ICES3 Table 3-17 LEDs 3.11...
NuMaker-M0A23OC 3.11.2 Status LEDs Table 3-19 presents the status LEDs patterns for different operation on Nu-Link2-Me. Status LED Operation Status ICES0 ICES1 ICES2 ICES3 Power on Flash x 3 Flash x 3 Flash x 3 Flash x 3 Connected to IDE/NuTool...
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.
NuMaker-M0A23OC BSP Firmware Download Download and unzip the Board Support Package (BSP). Hardware Setup 1. Open the virtual COM (VCOM) function by changing Nu-Link2-Me VCOM Switch No. 1 and 2 to Figure 4-3 Open VCOM Function 2. Connect the ICE USB connector shown in Figure 4-4 to the PC USB port through USB cable.
NuMaker-M0A23OC 3. Find the “Nuvoton Virtual COM Port” on the Device Manger as Figure 4-5. Figure 4-5 Device Manger 4. 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.
NuMaker-M0A23OC 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.
Figure 4-9 Project File Migrate to Version 5 Format 2. Make sure the debugger is “Nuvoton Nu-Link Debugger” as shown in Figure 4-10 and Figure 4-11. Note: If the dropdown menu in Figure 4-10 does not contain “Nuvoton Nu-Link Debugger” item, please rework section 4.2.
NuMaker-M0A23OC 4. 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.
NuMaker-M0A23OC 4.6.2 IAR EWARM This section provides steps to beginners on how to run a project by using IAR EWARM. 1. Double click the “Template.eww” to open the project. 2. Make sure the toolbar contain “Nu-Link” item as shown in Figure 4-15.
NuMaker-M0A23OC 4. 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.
NuMaker-M0A23OC 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. 1. Double-click NuEclipse.exe to open the toolchain.
NuMaker-M0A23OC 3. 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 Oct. 23, 2020 Page 38 of 48 Rev 1.01...
NuMaker-M0A23OC 4. Click the “Template” project and build the project. Figure 4-23 Build Project 5. 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.
NuMaker-M0A23OC Note 1: Double click the “GDB Nuvoton Nu-Link Debugging” to create the subitem. 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 Oct.
NuMaker-M0A23OC Note: User must follow those settings highlighted in green, and can configure other settings depend on the needs. Figure 4-27 Startup Tab Configuration Oct. 23, 2020 Page 41 of 48 Rev 1.01...
NuMaker-M0A23OC 6. 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.
NuMaker-M0A23OC PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-M0A23OC. Figure 5-4 Front Placement Figure 5-5 Rear Placement Oct. 23, 2020 Page 46 of 48 Rev 1.01...
NuMaker-M0A23OC REVISION HISTORY Date Revision Description 2020.07.23 1.01 Initial version Oct. 23, 2020 Page 47 of 48 Rev 1.01...
Page 48
NuMaker-M0A23OC 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”.
Need help?
Do you have a question about the NuMaker-M0A23OC and is the answer not in the manual?
Questions and answers