Nuvoton NuMicro 8051 Series User Manual

Nuvoton NuMicro 8051 Series User Manual

1t 8051 8-bit microcontroller
Hide thumbs Also See for NuMicro 8051 Series:
Table of Contents

Advertisement

Quick Links

NuMaker-ML51SD
1T 8051
8-bit Microcontroller
NuMaker-ML51SD
User Manual
®
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 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
Mar.
08, 2021
Page 1 of 38
Rev 1.01

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

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

    Status LEDs ....................22 3.9.2 Quick Start ..................23 Toolchains Supporting ................23 Nuvoton Nu-Link Driver Installation ..............23 BSP Firmware Download ................25 Hardware Setup ..................25 Find the Example Project ................27 Execute the Project under Toolchains ............. 27 Keil C51 ......................
  • Page 3 NuMaker-ML51SD NuMaker-ML51SD Schematics ..............33 Nu-Link2-Me ................... 33 ML51 platform ..................34 Extension Connector ................. 35 PCB Placement ..................36 REVISION HISTORY ................37 Mar. 08, 2021 Page 3 of 38 Rev 1.01...
  • Page 4 NuMaker-ML51SD List of Figures Figure 1-1 NuMaker-ML51SD Development Board ................. 6 Figure 3-1 Front View of NuMaker-ML51SD ..................8 Figure 3-2 Rear View of NuMaker-ML51SD ..................9 Figure 3-3 ML51SD1AE Extension Connectors ................10 Figure 3-4 Arduino UNO Compatible Extension Connectors ............13 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-ML51SD List of Tables Table 3-1 Extension Connectors ....................10 Table 3-2 ML51SD1AE Full-pin Extension Connectors and GPIO Function List ......12 Table 3-3 Arduino UNO Extension Connectors and ML51SD1AE Mapping GPIO List ....14 Table 3-4 Vin Power Source ......................15 Table 3-5 5 V Power Sources ......................
  • Page 6: Overview

    ML51SD1AE. For the development flexibility, the ML51 platform provides the extension connectors of ML51SD1AE, the Arduino UNO compatible headers and able to adopt multiple power supply. Furthermore, the Nuvoton-designed ammeter connector can measure the power consumption instantly, which is essential for the prototype evaluation.
  • Page 7: Features

    NuMaker-ML51SD FEATURES  NuMicro ® ML51SD1AE microcontroller with function compatible with:  ML51TD1AE  ML51LD1AE  ML51SD1AE extension connectors  Arduino UNO compatible extension connectors  Ammeter connector for measuring the microcontroller’s power consumption  Flexible board power supply:  External V power connector ...
  • Page 8: Hardware Configuration

    NuMaker-ML51SD HARDWARE CONFIGURATION Front View Arduino UNO Compatible Extension Connectors Switch Reset Button External V Connector Ammeter VCOM Switch External V Connector ICE USB Connector USB PWR Connector ICE Chip: M48SSIDAE Power LED ICE Status LED P3.2 LED Off-line Program Button External V Connector ML51 Platform...
  • Page 9: Rear View

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

    NuMaker-ML51SD Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5 and JP6 Full pins extension connectors on the NuMaker-ML51SD. NU1, NU2, NU3 and NU4 Arduino UNO compatible pins on the NuMaker-ML51SD. Table 3-1 Extension Connectors 3.3.1 Pin Assignment for Extension Connectors The NuMaker-ML51SD provides the ML51SD1AE onboard and extension connectors (JP3, JP4, JP5 and JP6).
  • Page 11 NuMaker-ML51SD ML51SD1AE Header Function Pin No. P2.6 / UART1_RXD / PWM3_CH1 / ACMP1_O JP3.1 JP3.2 P2.5 / ADC_CH0 / ACMP0_P0 / ACMP1_P0 / I2C0_SCL / PWM0_CH0 / UART2_TXD / T0 / JP3.3 JP3.4 INT0 P2.4 / ADC_CH1 / ACMP0_N0 / I2C0_SDA / PWM0_CH1 / UART2_RXD / T1 / INT1 JP3.5 JP3.6 P2.3 / ADC_CH2 / ACMP0_P1 / ACMP1_P1 / I2C1_SCL / UART1_TXD / PWM0_CH2 /...
  • Page 12: Table 3-2 Ml51Sd1Ae Full-Pin Extension Connectors And Gpio Function List

    NuMaker-ML51SD nRESET JP5.31 JP5.32 P5.0 / UART1_TXD / I2C1_SCL / UART0_TXD / ICE_DAT JP4.1 JP4.2 P5.1 / UART1_RXD / I2C1_SDA / UART0_RXD / ICE_CLK JP4.3 JP4.4 P4.5 / UART2_TXD / I2C1_SCL / PWM1_CH0 JP4.5 JP4.6 P4.4 / UART2_RXD / I2C1_SDA / PWM1_CH1 JP4.7 JP4.8 P4.3 / PWM2_CH0...
  • Page 13: 3.3.2 Arduino Uno Compatible Extension Connectors

    NuMaker-ML51SD 3.3.2 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. UART1_RXD PWM0_CH3 P2.2 P2.1 ADC_CH4 I2C1_SCL UART2_TXD UART1_TXD PWM0_CH2 P2.3 P2.0 ADC_CH5 I2C1_SDA UART2_RXD I2C1_SDA PWM1_CH1 P4.4 P2.4 ADC_CH1 I2C1_SCL PWM1_CH0 P4.5 P2.5 ADC_CH0 PWM2_CH0 P4.3 P2.6...
  • Page 14: Table 3-3 Arduino Uno Extension Connectors And Ml51Sd1Ae Mapping Gpio List

    NuMaker-ML51SD NuMaker-ML51SD NuMaker-ML51SD Header Header Compatible to Compatible to GPIO Pin of ML51 GPIO Pin of ML51 Arduino UNO Arduino UNO NU3.1 P2.2 NU2.6 P2.1 NU3.2 P2.3 NU2.5 P2.0 NU3.3 P4.4 NU2.4 P2.4 NU3.4 P4.5 NU2.3 P2.5 NU3.5 P4.3 NU2.2 P2.6 NU3.6 P4.2...
  • Page 15: Power Supply Configuration

    NuMaker-ML51SD Power Supply Configuration The NuMaker-ML51SD is able to adopt multiple power supply. External power source include NU1 Vin (7 V to 12 V), VDD (depends on target chip operating voltage), and PC through USB connector. By using switches and voltage regulator, multiple power domains can be created on the NuMaker- ML51SD.
  • Page 16: Power Sources

    NuMaker-ML51SD 3.4.3 3.3 V Power Sources Table 3-6 presents the 3.3 V power sources. Voltage Regulator 5 V Source Description ICEUP1 converts USB_HS_VBUS to 3.3 V and supplies ICEUP1 USB_HS_VBUS 3.3 V to ML51 platform or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to ML51 platform.
  • Page 17: Usb Connectors

    NuMaker-ML51SD 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-ML51SD for power supply. Table 3-9 USB Connectors 3.4.7 Power Switches Table 3-10 presents the power switches.
  • Page 18: Figure 3-6 External Power Supply Sources On Ml51 Platform

    NuMaker-ML51SD 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. 3.
  • Page 19: Figure 3-7 Detach The Nu-Link2-Me From Numaker-Ml51Sd

    NuMaker-ML51SD To use JP1 as external power supply source, please follow the below steps: 1. Switch the SW2 to OFF. 2. Remove the resistor on ICEJPR1 (MCUVCC). 3. Solder the resistor on ICEJPR2 (ICEVCC) depends on the ICE chip operating voltage. 4.
  • Page 20: External Reference Voltage Connector

    NuMaker-ML51SD Table 3-12 presents all power models when supplies external power through ML51 platform. The ML51 platform 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 3.3 V 3.3 V output...
  • Page 21: Push Buttons

    NuMaker-ML51SD Remove the R16 Resistor Figure 3-8 Wiring between Ammeter Connector and Ammeter 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.
  • Page 22: Vcom Switches

    NuMaker-ML51SD 3.9.1 VCOM Switches Table 3-17 presents how to set the VCOM function by ICESW2. ICESW2 Function Description On: Connect target chip P3.1 (UART0_TXD) to Nu-Link2-Me. Off: Disconnect target chip P3.1 (UART0_TXD) to Nu-Link2-Me. On: Connect target chip P3.0 (UART0_RXD) to Nu-Link2-Me. Off: Disconnect target chip P3.0 (UART0_RXD) to Nu-Link2-Me.
  • Page 23: Quick Start

    Install the preferred toolchain. Please make sure at least one of the toolchains has been installed.  KEIL C51  IAR EW8051 Nuvoton Nu-Link Driver Installation Download and install the latest Nuvoton Nu-Link Driver.  Download and install Nu-Link_Keil_Driver when using Keil C51. ...
  • Page 24: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-ML51SD Figure 4-2 Nu-Link USB Driver Installation Mar. 08, 2021 Page 24 of 38 Rev 1.01...
  • Page 25: Bsp Firmware Download

    NuMaker-ML51SD 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. Figure 4-4 ICE USB Connector Mar.
  • Page 26: Figure 4-5 Device Manger

    NuMaker-ML51SD 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 27: Find The Example Project

    NuMaker-ML51SD 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.  ML51_ML54_ML56_BSP_Keil_C51_V2.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 28: Figure 4-9 Project File Migrate To Version 5 Format

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

    NuMaker-ML51SD Figure 4-11 Programming Setting in Options Window 3. Rebuild all target files. After successfully compile the project, download code to the flash memory. Click “Start/Stop Debug Section” button can enter debug mode. 1. Rebuild 2. Successfully compile 3. Download 4.
  • Page 30: Figure 4-13 Keil Pk51 Debug Mode

    NuMaker-ML51SD 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. 3 1 2 1. Run 2. Stop 3. Reset Figure 4-13 Keil C51 Debug Mode Figure 4-14 Debug Message on Serial Port Terminal Windows Mar.
  • Page 31: Iar Ew8051

    NuMaker-ML51SD 4.6.2 IAR EW8051 This section provides steps to beginners on how to run a project by using IAR EW8051. 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. Note: If the toolbar does not contain “Nu-Link”...
  • Page 32: Figure 4-16 Compile And Download The Project

    NuMaker-ML51SD Figure 4-16 Compile and Download the Project 4. Figure 4-17 shows the debug mode under IAR EW8051. Click “Go” and the debug message will be printed out as shown in Figure 5-1. User can debug the project under debug mode by checking source code, assembly language, peripherals’...
  • Page 33: Numaker-Ml51Sd Schematics

    NuMaker-ML51SD FIGURE DEBUG MESSAGE SERIAL PORT TERMINAL WINDOWSNUMAKER-ML51SD SCHEMATICS Nu-Link2-Me Figure 5-2 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...
  • Page 34: Ml51 Platform

    NuMaker-ML51SD ML51 platform Figure 5-3 shows the ML51 platform circuit. P1 - P16 P33 - P48 Pin1 Pin33 PF0_ICE_DAT_MCU P26_NU2_A1 TICEDAT_MCU Pin2 Pin34 PF1_ICE_CLK_MCU P25_NU2_A2 TICECLK_MCU Pin3 Pin35 P24_NU2_A3 P45_NU3_D3 Pin4 Pin36 P23_NU3_D1/TX P44_NU3_D2 Pin5 Pin37 P22_NU3_D0/RX P43_NU3_D4 Pin6 Pin38 P21_NU2_A5/SCL/TX P42_NU3_D5 Pin7...
  • Page 35: Extension Connector

    NuMaker-ML51SD Extension Connector Figure 5-4 shows extension connectors of NuMaker-ML51SD. P1 - P16 P33 - P48 Pin1 Pin1 Pin33 Pin33 P26_NU2_A1 TICEDAT_MCU Pin2 Pin2 Pin34 Pin34 P25_NU2_A2 TICECLK_MCU P41_NU4_SCL I2C_SCL Pin3 Pin3 Pin35 Pin35 P24_NU2_A3 P45_NU3_D3 P40_NU4_SDA I2C_SDA Pin4 Pin4 Pin36 Pin36 P23_NU3_D1/TX...
  • Page 36: Pcb Placement

    NuMaker-ML51SD PCB Placement Figure 5-5 and Figure 5-6 show the front and rear placement of NuMaker-ML51SD. Figure 5-5 Front Placement Figure 5-6 Rear Placement Mar. 08, 2021 Page 36 of 38 Rev 1.01...
  • Page 37: Revision History

    NuMaker-ML51SD REVISION HISTORY Date Revision Description 2020.08.21 1.00 Initial version 2021.03.08 1.01 Modified the Figure 4-11, Figure 4-12 and 4-13. Mar. 08, 2021 Page 37 of 38 Rev 1.01...
  • Page 38 NuMaker-ML51SD 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-ml51sd

Table of Contents