Nuvoton NuMicro Series User Manual
Hide thumbs Also See for NuMicro Series:
Table of Contents

Advertisement

Quick Links

NuMaker-NUC240V
NuMicro
®
Family
Arm
®
Cortex
®
-M0-based Microcontroller
NuMaker-NUC240V
User Manual
Evaluation Board for NuMicro
®
NUC240V 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 and
microprocessor 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
Dec. 22, 2022
Page 1 of 41
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuMicro Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Nuvoton NuMicro Series

  • 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 and microprocessor based system design. Nuvoton assumes no responsibility for errors or omissions.
  • Page 2: Table Of Contents

    CAN Bus Interface ....................24 4 QUICK START ....................26 4.1 Toolchains Supporting ....................26 4.2 Nuvoton Nu-Link Driver Installation ................26 4.3 BSP Firmware Download ................... 28 4.4 Hardware Setup ......................28 4.5 Find the Example Project ................... 30 4.6 Execute the Project under Toolchains ..............
  • Page 3 NuMaker-NUC240V 5.1 Nu-Link2-Me ......................... 36 5.2 NuMaker-NUC240V Schematics ................37 5.3 Extension Connectors ....................38 5.4 PCB Placement ......................39 6 REVISION HISTORY ..................40 Dec. 22, 2022 Page 3 of 41 Rev 1.00...
  • Page 4 NuMaker-NUC240V List of Figures Figure 1-1 NuMaker-NUC240V Evaluation Board ................6 Figure 3-1 Front View of NuMaker-NUC240V ................. 8 Figure 3-2 Rear View of NuMaker-NUC240V .................. 9 Figure 3-3 NUC240V Extension Connectors ................. 10 Figure 3-4 Arduino UNO Compatible Extension Connectors ............14 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-NUC240V List of Tables Table 3-1 Extension Connectors ....................10 Table 3-2 NUC240V Full-pin Extension Connectors and GPIO Function List ....... 13 Table 3-3 Arduino UNO Extension Connectors and NUC240V Mapping GPIO List ..... 15 Table 3-4 Vin Power Source ......................16 Table 3-5 5 V Power Sources ......................
  • Page 6: Overview

    NuMaker-NUC240V OVERVIEW The NuMaker-NUC240V is an evaluation board for Nuvoton NuMicro NUC230/NUC240 series microcontrollers. The NuMaker-NUC240V consists of two parts: an NUC240V target board and an on- board Nu-Link2-Me debugger and programmer. The NuMaker-NUC240V is designed for project evaluation, prototype development and validation with power consumption monitoring function. The NuMaker-NUC240V is suitable for automotive and industrial control applications developing which need reliable and robust CAN communication.
  • Page 7: Features

    NuMaker-NUC240V FEATURES  NuMicro NUC240VE3AE used as main microcontroller with function compatible with: NUC230LC2AE – NUC230LD2AE – NUC230LE3AE – NUC230SC2AE – NUC230SD2AE – NUC230SE3AE – NUC230VE3AE – NUC240LC2AE – NUC240LD2AE – NUC240LE3AE – NUC240SC2AE – NUC240SD2AE – NUC240SE3AE – NUC240VE3AE –...
  • Page 8: Hardware Configuration

    NuMaker-NUC240V HARDWARE CONFIGURATION Front View Figure 3-1 Front View of NuMaker-NUC240V Figure 3-1 shows the main components and connectors from the front side of NuMaker-NUC240V. The following lists components and connectors from the front view:  Target chip: NUC240VE3AE (U1) ...
  • Page 9: Rear View

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

    NuMaker-NUC240V Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-NUC240V. NU1, NU2, NU3 and Arduino UNO compatible pins on the NuMaker-NUC240V. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-NUC240V provides the NUC240V onboard and extension connectors (JP3, JP4, JP5 and JP6).
  • Page 11 NuMaker-NUC240V NUC240VE3AE Header Pin No. Function JP3.1 PE.15 JP3.2 PE.14 JP3.3 PE.13 JP3.4 PB.14 / AD0 / INT0 / SPI3_SS1 JP3.5 PB.13 / AD1 / ACMP1_O JP3.6 VBAT JP3.7 X32_OUT JP3.8 X32_IN JP3.9 PA.11 / I2C1_SCL / CAN1_RXD / nRD JP3.10 PA.10 / I2C1_SDA / CAN1_TXD / nWR JP3.11...
  • Page 12 NuMaker-NUC240V NUC240VE3AE Header Pin No. Function JP5.10 PB.3 / UART0_nCTS / nWRH / TM3_EXT / TM3 / SC2_CD JP5.11 PD.6 / CAN0_RXD JP5.12 PD.7 / CAN0_TXD JP5.13 PD.14 / UART2_RXD / CAN1_RXD JP5.14 PD.15 / UART2_TXD / CAN1_TXD JP5.15 PC.5 / SPI0_MOSI1 JP5.16 PC.4 / SPI0_MISO1 JP5.17...
  • Page 13: Table 3-2 Nuc240V Full-Pin Extension Connectors And Gpio Function List

    NuMaker-NUC240V NUC240VE3AE Header Pin No. Function JP4.19 JP4.20 AVSS JP4.21 PA.0 / ADC0 / SC0_PWR JP4.22 PA.1 / ADC1 / SC0_RST / AD12 JP4.23 PA.2 / ADC2 / SC0_CLK / UART3_TXD / AD11 JP4.24 PA.3 / ADC3 / SC0_DAT / UART3_RXD / AD10 JP4.25 PA.4 / ADC4 / AD9 / SC1_PWR JP4.26...
  • Page 14: Arduino Uno Compatible Extension Connectors

    NuMaker-NUC240V 3.3.2 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. Figure 3-4 Arduino UNO Compatible Extension Connectors Dec. 22, 2022 Page 14 of 41 Rev 1.00...
  • Page 15: Table 3-3 Arduino Uno Extension Connectors And Nuc240V Mapping Gpio List

    NuMaker-NUC240V NuMaker-NUC240V NuMaker-NUC240V Header Header Compatible to GPIO Pin of Compatible to GPIO Pin of Arduino UNO NUC240V Arduino UNO NUC240V NU3.1 NU2.6 PA11 NU3.2 NU2.5 PA10 NU3.3 PA12 NU2.4 NU3.4 PA13 NU2.3 NU3.5 PA14 NU2.2 NU3.6 PA15 NU2.1 NU3.7 PB11 NU1.8 NU3.8...
  • Page 16: Power Supply Configuration

    NuMaker-NUC240V Power Supply Configuration The NuMaker-NUC240V 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), and PC through USB connector. By using switches and voltage regulator, multiple power domains can be created on the NuMaker- NUC240V.
  • Page 17: Power Sources

    NuMaker-NUC240V 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 NUC240V target board or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to NUC240V target board.
  • Page 18: Usb Connectors

    NuMaker-NUC240V 3.4.6 USB Connectors Table 3-9 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-NUC240V for power supply. Table 3-9 USB Connectors 3.4.7 Power Switches Table 3-10 presents the power switches.
  • Page 19: Figure 3-6 External Power Supply Sources On Nuc240V Target Board

    NuMaker-NUC240V Switch the SW2 to OFF. Connect the external power supply to ICEJ3. Table 3-11 presents all power models when supplying external power through Nu-Link2-Me. The Nu- Link2-Me external power sources are highlighted in yellow. Target ICEJPR1 ICEJPR2 Model Chip ICEJ3 (MCUVCC) (ICEVCC)
  • Page 20: Figure 3-7 Detach The Nu-Link2-Me From Numaker-Nuc240V

    NuMaker-NUC240V 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 or J2 as external power supply source with Nu-Link2-Me detached from NuMaker- NUC240V, please follow the steps below: Switch the SW2 depending on the target chip operating voltage.
  • Page 21: Table 3-12 Supply External Power For Nuc240V Target Board

    NuMaker-NUC240V Table 3-12 presents all power models when supplies external power through NUC240V target board. The NUC240V target board external power sources are highlighted in yellow. ICEJPR1 ICEJPR2 Target Chip ICE Chip Model ICEJ3 (MCUVCC) (ICEVCC) Voltage Selection Voltage Selection Selection 7 V ~ 12 V Remove...
  • Page 22: External Reference Voltage Connector

    NuMaker-NUC240V External Reference Voltage Connector Table 3-13 External Reference Voltage Connector presents the external reference voltage connector. Connector Description Connector for user to connect to the external reference voltage pin of the VREF1 target chip. User needs to remove the L5 ferrite bead. Table 3-13 External Reference Voltage Connector Ammeter Connector User can refer to the sample code in NUC230_240 series BSP - SYS_PowerDown_MinCurrent and...
  • Page 23: Push Buttons

    NuMaker-NUC240V Push Buttons Table 3-15 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. Table 3-15 Push Buttons LEDs Table 3-16 presents the LEDs. Component Description Power LED...
  • Page 24: Status Leds

    NuMaker-NUC240V 3.9.2 Status LEDs Table 3-18 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 25: Table 3-20 U10 Pin Connection

    NuMaker-NUC240V Function Description Connects to target chip PD.7 (CAN0_TXD). Ground Connects to NU1_5VCC for transceiver power supply. Connects to target chip PD.6 (CAN0_RXD). Connects to target chip supply voltage VDD for transceiver I/O voltage level adjustment. CANL Connects to CAN0 pin1 and JP11 pin1. CANH Connects to CAN0 pin2 and JP11 pin2 Connects to target chip PB.3 for operating mode control.
  • Page 26: Quick Start

    Install the preferred toolchain. Please make sure at least one of the toolchains has been installed.  KEIL MDK Nuvoton edition M0/M23  IAR EWARM 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. ...
  • Page 27: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-NUC240V Figure 4-2 Nu-Link USB Driver Installation Dec. 22, 2022 Page 27 of 41 Rev 1.00...
  • Page 28: Bsp Firmware Download

    NuMaker-NUC240V 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 ON. 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 Dec.
  • Page 29: Figure 4-5 Device Manger

    NuMaker-NUC240V 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 30: Find The Example Project

    NuMaker-NUC240V 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.  NUC230_240_Series_BSP_CMSIS  SampleCode  Template   Keil  Figure 4-7 Template Project Folder Path Execute the Project under Toolchains Open and execute the project under the toolchain.
  • Page 31: Figure 4-9 Project File Migrate To Version 5 Format

    NuMaker-NUC240V 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.
  • Page 32: Figure 4-11 Programming Setting In Options Window

    NuMaker-NUC240V 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 Dec.
  • Page 33: Figure 4-13 Keil Mdk Debug Mode

    NuMaker-NUC240V 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 34: Iar Ewarm

    NuMaker-NUC240V 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 35: Figure 4-17 Iar Ewarm Debug Mode

    NuMaker-NUC240V 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 36: Numaker-Nuc240V Schematics

    NuMaker-NUC240V NUMAKER-NUC240V 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 37: Numaker-Nuc240V Schematics

    NuMaker-NUC240V NuMaker-NUC240V Schematics Figure 5-2 shows the NUC240V target board circuit. P1 - P25 P51 - P75 PE15_NU5_GPIO PE14 PE13 PB14_LED_R PB14 PE1_NU4_D9 PB13 PE0_NU4_D8 VBAT VBAT PC13 X32_OUT X32_OUT PC12 X32_IN X32_IN PC11_NU5_MOSI PA11_NU2_SCL PC10_NU5_MISO PA10_NU2_SDA PC9_NU5_SCK PA9_NU4_SCL PC8_NU5_SS PA8_NU4_SDA PA15_NU3_D5 PA14_NU3_D4...
  • Page 38: Extension Connectors

    NuMaker-NUC240V Extension Connectors Figure 5-3 shows extension connectors of NuMaker-NUC240V. P1 - P25 P51 - P75 PA9_NU4_SCL I2C_SCL PE15_NU5_GPIO PE14 PA8_NU4_SDA I2C_SDA PE13 PB14 PE1_NU4_D9 VREF VREF PB13 VBAT PE0_NU4_D8 PC13 X32_OUT X32_IN PC12 PC11_NU5_MOSI TICERST PC1_NU4_SCK MCU_RESET PA11_NU2_SCL PA10_NU2_SDA PC10_NU5_MISO PC9_NU5_SCK NU1_3VCC...
  • Page 39: Pcb Placement

    NuMaker-NUC240V PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-NUC240V. Figure 5-4 Front Placement Figure 5-5 Rear Placement Dec. 22, 2022 Page 39 of 41 Rev 1.00...
  • Page 40: Revision History

    NuMaker-NUC240V REVISION HISTORY Date Revision Description 2022.12.22 1.00 Initial version. Dec. 22, 2022 Page 40 of 41 Rev 1.00...
  • Page 41 NuMaker-NUC240V 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”.

This manual is also suitable for:

Numaker-nuc240v

Table of Contents