Nuvoton NuMicro Series User Manual

Nuvoton NuMicro Series User Manual

Evaluation board for numicro® 8051 series
Hide thumbs Also See for NuMicro Series:
Table of Contents

Advertisement

Quick Links

NuMaker-MUG51TB
NuMicro
®
Family
1T 8051-based Microcontroller
NuMaker-MUG51TB
User Manual
®
Evaluation Board for NuMicro
8051 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
Feb. 10, 2023
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

    3.9.2 Status LEDs ........................24 4 QUICK START ....................25 4.1 Toolchains Supporting ....................25 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-MUG51TB 5.2 NuMaker-MUG51TB Schematics ................37 5.3 Extension Connectors ....................38 5.4 PCB Placement ......................39 6 REVISION HISTORY ..................40 Feb. 10, 2023 Page 3 of 41 Rev 1.00...
  • Page 4 NuMaker-MUG51TB List of Figures Figure 1-1 NuMaker-MUG51TB Evaluation Board ................6 Figure 3-1 Front View of NuMaker-MUG51TB ................. 8 Figure 3-2 Rear View of NuMaker-MUG51TB ................. 9 Figure 3-3 MUG51TB Extension Connectors ................10 Figure 3-4 Arduino UNO Compatible Extension Connectors ............12 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-MUG51TB List of Tables Table 3-1 Extension Connectors ....................10 Table 3-2 MUG51TB Full-pin Extension Connectors and GPIO Function List ......11 Table 3-3 Arduino UNO Extension Connectors and MUG51TB9AE Mapping GPIO List....13 Table 3-4 Vin Power Source ......................14 Table 3-5 5 V Power Sources ......................
  • Page 6: Overview

    The MUG51TB9AE target board is based on NuMicro MUG51TB9AE. For the development flexibility, the MUG51TB target board provides the extension connectors, 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 7: Features

    NuMaker-MUG51TB FEATURES  NuMicro MUG51TB9AE used as main microcontroller  MUG51TB9AE full pins extension connectors  Arduino UNO compatible extension connectors  Ammeter connector for measuring the microcontroller’s power consumption  Flexible board power supply: External V power connector – Arduino UNO compatible extension connector Vin –...
  • Page 8: Hardware Configuration

    NuMaker-MUG51TB HARDWARE CONFIGURATION Front View Arduino UNO Compatible Extension Connectors Switch Reset Button External V Connector Ammeter VCOM Switch ICE USB Connector Power LED ICE Chip: M48SSIDAE USB Power Connector ICE Status LED P3.2 LED Off-line Program Button External V Connector Nu-Link2-Me MUG51TB Target Board...
  • Page 9: Rear View

    NuMaker-MUG51TB Rear View Figure 3-2 shows the main components and connectors from the rear side of NuMaker-MUG51TB. 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-MUG51TB...
  • Page 10: Extension Connectors

    NuMaker-MUG51TB Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-MUG51TB. NU1, NU2, NU3 and Arduino UNO compatible pins on the NuMaker-MUG51TB. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-MUG51TB provides the MUG51TB9AE onboard and extension connectors (JP3, JP4, JP5 and JP6).
  • Page 11: Table 3-2 Mug51Tb Full-Pin Extension Connectors And Gpio Function List

    NuMaker-MUG51TB MUG51TB9AE Header Pin No. Function JP3.1 P2.5 / ACMP0_P0 / ACMP1_P0 / PINV / I2C0_SCL / PBUF / PWM0_CH0 / UART2_TXD / T0 / INT0 JP3.2 P2.4 / ACMP0_N0 / PINV / I2C0_SDA / PBUF / PWM0_CH1 / UART2_RXD / T1 / INT1 P2.3 / ACMP0_P1 / ACMP1_P1 / PINV / I2C1_SCL / UART1_TXD / PBUF / PWM0_CH2 / JP3.3 PWM0_BRAKE / T0...
  • Page 12: Arduino Uno Compatible Extension Connectors

    NuMaker-MUG51TB 3.3.2 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. UART0_RXD P3.0 UART0_TXD P3.1 PWM0_CH5 P2.0 PWM0_CH4 P2.1 PWM0_CH3 P2.2 PWM0_CH2 P2.3 PWM0_CH1 P5.4 PWM0_CH0 P5.5 SPI0_SS P0.3 SPI0_MOSI P0.0 SPI0_MISO P0.1 SPI0_CLK P0.2 AVDD VREF I2C0_SCL...
  • Page 13: Table 3-3 Arduino Uno Extension Connectors And Mug51Tb9Ae Mapping Gpio List

    NuMaker-MUG51TB NuMaker-MUG51TB NuMaker-MUG51TB Header Header Compatible to GPIO Pin of Compatible to GPIO Pin of Arduino UNO MUG51TB Arduino UNO NUC240V NU3.1 P3.0 NU2.6 NU3.2 P3.1 NU2.5 NU3.3 P2.0 NU2.4 NU3.4 P2.1 NU2.3 NU3.5 P2.2 NU2.2 NU3.6 P2.3 NU2.1 NU3.7 P5.4 NU1.8 NU3.8...
  • Page 14: Power Supply Configuration

    NuMaker-MUG51TB Power Supply Configuration The NuMaker-MUG51TB 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- MUG51TB.
  • Page 15: Power Sources

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

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

    NuMaker-MUG51TB 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) Chip Selection Voltage Selection Selection Voltage Connect 1.8 V 1.8 V 1.8 V 1.8 V...
  • Page 18: Figure 3-7 Detach The Nu-Link2-Me From Numaker-Mug51Tb

    NuMaker-MUG51TB To use Vin or J2 as external power supply source with Nu-Link2-Me detached from NuMaker- MUG51TB, please follow the steps below: Switch the SW2 depending on the target chip operating voltage. 2. Detach the Nu-Link2-Me from NuMaker-MUG51TB. 3. Connect the external power supply to Vin or J2. To use JP1 as external power supply source with Nu-Link2-Me detached from NuMaker- MUG51TB, please follow the steps below: Switch the SW2 to OFF.
  • Page 19: Table 3-12 Supply External Power For Mug51Tb Target Board

    NuMaker-MUG51TB Table 3-12 presents all power models when supplies external power through MUG51TB target board. The MUG51TB 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 20: External Reference Voltage Connector

    NuMaker-MUG51TB 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 Feb.
  • Page 21: Ammeter Connector

    NuMaker-MUG51TB Ammeter Connector User can refer to the sample code in NUC230_240 series BSP - SYS_PowerDown_MinCurrent and Figure 3-8 to measure the minimum current in Power-down mode. Figure 3-9 shows the path of the sample code, which has relative settings of entering Power-down mode. Table 3-14 presents the ammeter connector.
  • Page 22: Push Buttons

    NuMaker-MUG51TB 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 Feb. 10, 2023 Page 22 of 41 Rev 1.00...
  • Page 23: Leds

    NuMaker-MUG51TB LEDs Table 3-16 presents the LEDs. Component Description Power LED The power LED indicates that the NuMaker-MUG51TB is powered. P3.2 LED The LED is connected to the target chip P3.2. ICES0, ICES1, ICES2 Nu-Link2-Me status LED. and ICES3 Table 3-16 LEDs Feb.
  • Page 24: Nu-Link2-Me

    NuMaker-MUG51TB Nu-Link2-Me The Nu-Link2-Me is an attached on-board debugger and programmer. The Nu-Link2-Me supports on- chip debugging, online and offline ICP programming through SWD interface. The Nu-Link2-Me also supports virtual COM port (VCOM) for printing debug messages on PC. Besides, the programming status could be shown on the built-in LEDs.
  • Page 25: Quick Start

    NuMaker-MUG51TB QUICK START Toolchains Supporting Install the preferred toolchain. Please make sure at least one of the toolchains has been installed.  KEIL PK51 Professional Developer's Kit  IAR EMBEDDED WORKBENCH FOR 8051 Feb. 10, 2023 Page 25 of 41 Rev 1.00...
  • Page 26: Nuvoton Nu-Link Driver Installation

    NuMaker-MUG51TB 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. Please install the Nu-Link USB Driver as well at the end of the installation. The installation is presented in Figure 4-1 and Figure 4-2.
  • Page 27: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-MUG51TB Figure 4-2 Nu-Link USB Driver Installation Feb. 10, 2023 Page 27 of 41 Rev 1.00...
  • Page 28: Bsp Firmware Download

    NuMaker-MUG51TB 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 ON. Figure 4-3 Open VCOM Function 2. Connect the ICE USB connector shown in Figure 4-4 to the PC USB port through a USB cable.
  • Page 29: Figure 4-5 Device Manger

    NuMaker-MUG51TB 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.
  • Page 30: Find The Example Project

    NuMaker-MUG51TB 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.  MUG51_BSP_Keil_C51_V1.00.000  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-MUG51TB 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. 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 Feb.
  • Page 32: Figure 4-11 Programming Setting In Options Window

    NuMaker-MUG51TB Figure 4-11 Programming Setting in Options Window 3. 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.
  • Page 33: Figure 4-13 Keil Mdk Debug Mode

    NuMaker-MUG51TB 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.
  • Page 34: Iar Ewarm

    NuMaker-MUG51TB 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 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-MUG51TB 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.
  • Page 36: Numaker-Mug51Tb Schematics

    NuMaker-MUG51TB NUMAKER-MUG51TB 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-Mug51Tb Schematics

    NuMaker-MUG51TB NuMaker-MUG51TB Schematics Figure 5-2 shows the MUG51TB target board circuit. Pin1 - Pin8 Pin17 - Pin24 ICE_DAT P2.5 P5.0 ICE_CLK P2.4 P5.1 P2.3 P4.1 nRESET P2.2 P4.0 P2.1 P21_NC P0.0/SPI0_MOSI/UART2_TXD/UART0_RXD/PWM0_CH5 P0.1/PINV/SPI0_MISO/UART2_RXD/UART0_TXD/PWM0_CH4/PBUF P2.0 P22_NC P5.5 P1.6 P0.2/PINV/SPI0_CLK/UART1_RXD/I2C1_SDA/PWM0_CH3/PBUF P5.4 P1.7 P0.3/PINV/PBUF/SPI0_SS/UART1_TXD/I2C1_SCL/STADC/PWM0_CH2/CLKO P5.2/PINV/UART0_RXD/I2C0_SDA/PBUF P5.3/PINV/UART0_TXD/I2C0_SCL/PBUF Pin9 - Pin16...
  • Page 38: Extension Connectors

    NuMaker-MUG51TB Extension Connectors Figure 5-3 shows extension connectors of NuMaker-MUG51TB. Pin1 - Pin8 Pin17 - Pin24 P2.5_NU4_SCL I2C_SCL P2.4_NU4_SDA I2C_SDA VREF TICERST P0.2_NU4_D13/SCK MCU_RESET NU1_3VCC P0.1_NU4_D12/MISO 3VCC NU1_5VCC P0.0_NU4_D11/MOSI 5VCC P2.5_NU4_SCL TICEDAT P0.3_NU4_D10/SS P2.4_NU4_SDA TICECLK P2.3_NU3_D4/PWM2 P4.1 NU1_VIN P2.2_NU3_D5/PWM3 P4.0 HEADER 2.54 8X1 f emale HEADER 2.54 10X1 f emale P2.1_NU3_D6/PWM4...
  • Page 39: Pcb Placement

    NuMaker-MUG51TB PCB Placement Figure 5-4 and Figure 5-5 show the front and rear placement of NuMaker-MUG51TB. Figure 5-4 Front Placement Figure 5-5 Rear Placement Feb. 10, 2023 Page 39 of 41 Rev 1.00...
  • Page 40: Revision History

    NuMaker-MUG51TB REVISION HISTORY Date Revision Description 2023.2.10 1.00 Initial version. Feb. 10, 2023 Page 40 of 41 Rev 1.00...
  • Page 41 NuMaker-MUG51TB 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-mug51tb

Table of Contents