Nuvoton NuMicro 8051 Series User Manual

Nuvoton NuMicro 8051 Series User Manual

Hide thumbs Also See for NuMicro 8051 Series:
Table of Contents

Advertisement

Quick Links

NuMaker-ML56SD
1T 8051
8-bit Microcontroller
NuMaker-ML56SD
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 46
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

    VCOM Switches ..................28 3.11.1 Status LEDs ..................28 3.11.2 Quick Start ................29 Toolchains Supporting ..............29 Nuvoton Nu-Link Driver Installation ............29 BSP Firmware Download ..............31 Hardware Setup ................31 Find the Example Project ..............33 Mar. 08, 2021 Page 2 of 46...
  • Page 3 NuMaker-ML56SD Execute the Project under Toolchains ............33 Keil C51 ....................33 4.6.1 IAR EW8051 ..................37 4.6.2 NuMaker-ML56SD Schematics ............39 Nu-Link2-Me ..................39 ML56 platform ................40 Extension Connector ................41 TK and LCD Cap ................42 PCB Placement ................43 NuMaker-TNLCDSub_ML56SD Schematics ........44 LCD Connector ................44 REVISION HISTORY ..............
  • Page 4 NuMaker-ML56SD List of Figures Figure 1-1 NuMaker-ML56SD Development Board ................. 6 Figure 3-1 Front View of NuMaker-ML56SD ..................8 Figure 3-2 Rear View of NuMaker-ML56SD ..................9 Figure 3-3 ML56SD1AE Extension Connectors ................10 Figure 3-4 Arduino UNO Compatible Extension Connectors ............16 Figure 3-5 External Power Supply Sources on Nu-Link2-Me ............
  • Page 5 NuMaker-ML56SD List of Tables Table 3-1 Extension Connectors ....................10 Table 3-2 ML56SD1AE Full-pin Extension Connectors and GPIO Function List ......13 Table 3-3 NuMaker-TNLCDSub_ML56SD Compatible Extension Connectors ......16 Table 3-4 Arduino UNO Extension Connectors and ML56SD1AE Mapping GPIO List ....17 Table 3-5 Vin Power Source ......................
  • Page 6: Overview

    ML56 platform provides the extension connectors of ML56SD1AE, 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-ML56SD FEATURES  NuMicro ® ML56SD1AE microcontroller with function compatible with:  ML56LD1AE  ML56MD1AE  ML56LC1AE  ML56TC1AE  ML56SD1AE full pin extension connectors  HTN-LCD panel module board can be plugged into extension connectors  Arduino UNO compatible extension connectors ...
  • Page 8: Hardware Configuration

    NuMaker-ML56SD HARDWARE CONFIGURATION Front View Arduino UNO Compatible Extension Connectors Switch Reset Button External V Connector USB PWR Connector VCOM Switch Ammeter ICE USB Connector TK0 Touch key ICE Chip: M48SSIDAE TK6 Shileding ICE Status LED P0.0 LED Off-line Program Button External V Connector ML56 Platform...
  • Page 9: Rear View

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

    NuMaker-ML56SD Extension Connectors Table 3-1 presents the extension connectors. Connector Description JP3, JP4, JP5 , JP6 , JP7 , JP8 , JP9 and Full pins extension connectors on the NuMaker-ML56SD. JP10 NuMaker-TNLCDSub_ML56SD extension connectors on the NuMaker- JP3, JP4, JP5 and JP6 ML56SD.
  • Page 11 NuMaker-ML56SD ML56SD1AE Header Function P2.6 / LCD_SEG6 / UART1_RXD / PWM3_CH1 / ACMP1_O JP3.1 JP9.1 P2.5 / ADC_CH0 / ACMP0_P0 / ACMP1_P0 / I2C0_SCL / PWM0_CH0 / UART2_TXD / T0 / JP3.2 JP9.2 INT0 P2.4 / ADC_CH1 / ACMP0_N0 / LCD_COM1 / I2C0_SDA / PWM0_CH1 / UART2_RXD / T1 / JP3.3 JP9.3 INT1...
  • Page 12 NuMaker-ML56SD P5.6 / PWM0_BRAKE / PWM0_CH1 / CLKO JP5.15 JP10.15 nRESET JP5.16 JP10.16 P5.0 / UART1_TXD / I2C1_SCL / UART0_TXD / ICE_DAT JP4.1 JP7.1 P5.1 / UART1_RXD / I2C1_SDA / UART0_RXD / ICE_CLK JP4.2 JP7.2 P4.5 / LCD_SEG31 / LCD_COM4 / UART2_TXD / I2C1_SCL / PWM1_CH0 JP4.3 JP7.3 P4.4 / LCD_SEG30 / LCD_COM5 / UART2_RXD / I2C1_SDA / TK12 / PWM1_CH1...
  • Page 13: Table 3-2 Ml56Sd1Ae Full-Pin Extension Connectors And Gpio Function List

    NuMaker-ML56SD P2.7 / ADC_CH15 / LCD_SEG7 / UART1_TXD / PWM3_CH0 / ACMP0_O JP6.16 JP8.16 Table 3-2 ML56SD1AE Full-pin Extension Connectors and GPIO Function List Mar. 08, 2021 Page 13 of 46 Rev 1.01...
  • Page 14: 3.3.2 Numaker-Tnlcdsub_Ml56Sd Compatible Extension Connectors

    NuMaker-ML56SD 3.3.2 NuMaker-TNLCDSub_ML56SD Compatible Extension Connectors Table 3-3 shows the NuMaker-TNLCDSub_ML56SD compatible extension connectors. NuMaker- ML56SD1AE TNLCDSub_ML56SD Header Header Pin No. Function Function JP3.1 LCD_SEG6 J3.11 SEG11 JP3.2 LCD_COM0 J3.20 COM4 JP3.3 LCD_COM1 J3.19 COM3 JP3.4 LCD_COM2 J3.18 COM2 JP3.5 LCD_COM3 J3.17 COM1...
  • Page 15 NuMaker-ML56SD JP5.12 JP5.13 JP5.14 JP5.15 JP5.16 JP4.1 JP4.2 JP4.3 LCD_COM4 J3.24 COM8 JP4.4 LCD_COM5 J3.23 COM7 JP4.5 LCD_COM6 J3.22 COM6 JP4.6 LCD_COM7 J3.21 COM5 JP4.7 JP4.8 LCD_SEG26 J4.24 SEG48 JP4.9 LCD_SEG25 J4.23 SEG47 JP4.10 LCD_SEG24 J4.22 SEG46 JP4.11 LCD_SEG23 J4.21 SEG45 JP4.12 LCD_SEG22...
  • Page 16: 3.3.3 Arduino Uno Compatible Extension Connectors

    NuMaker-ML56SD JP6.12 LCD_SEG11 J4.11 SEG35 JP6.13 LCD_SEG10 J4.10 SEG34 JP6.14 LCD_SEG9 J4.9 SEG33 JP6.15 LCD_SEG8 J4.8 SEG32 JP6.16 LCD_SEG7 J4.7 SEG31 Table 3-3 NuMaker-TNLCDSub_ML56SD Compatible Extension Connectors 3.3.3 Arduino UNO Compatible Extension Connectors Figure 3-4 shows the Arduino UNO compatible extension connectors. UART1_RXD PWM0_CH3 P2.2...
  • Page 17: Table 3-4 Arduino Uno Extension Connectors And Ml56Sd1Ae Mapping Gpio List

    NuMaker-ML56SD NuMaker-ML56SD NuMaker-ML56SD Header Header Compatible to Compatible to GPIO Pin of ML56 GPIO Pin of ML56 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 18: Power Supply Configuration

    NuMaker-ML56SD Power Supply Configuration The NuMaker-ML56SD is able to adopt multiple power supply. External power sources include NU1 Vin (7 V to 12 V), V (depending 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-ML56SD. 3.4.1 VIN Power Source Table 3-5 presents the Vin power source.
  • Page 19: Power Sources

    NuMaker-ML56SD 3.4.3 3.3 V Power Sources Table 3-7 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 ML56 platform or ICE chip. UP1 converts USB_VBUS to 3.3 V and supplies 3.3 V to ML56 platform.
  • Page 20: Usb Connectors

    NuMaker-ML56SD 3.4.6 USB Connectors Table 3-10 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-ML56SD for power supply. Table 3-10 USB Connectors 3.4.7 Power Switches Table 3-11 presents the power switches.
  • Page 21: Figure 3-6 External Power Supply Sources On Ml56 Platform

    NuMaker-ML56SD 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. Switch the SW2 to OFF. 4. Connect the external power supply to ICEJ3. Table 3-12 presents all power models when supplies external power through Nu-Link2-Me.
  • Page 22: Figure 3-7 Detach The Nu-Link2-Me From Numaker-Ml56Sd

    NuMaker-ML56SD 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. Connect ICEJ3 to PC. 5. Connect the external power supply to JP1. To use Vin or J2 as external power supply source with Nu-Link2-Me detached from NuMaker-ML56SD, please follow the steps below: 1.
  • Page 23: External Reference Voltage Connector

    NuMaker-ML56SD Table 3-13 presents all power models when supplies external power through ML56 platform. The ML56 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 24: Push Buttons

    NuMaker-ML56SD Remove the R16 Resistor Figure 3-8 Wiring between Ammeter Connector and Ammeter 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. Table 3-16 Push-Buttons LEDs Table 3-17 presents the LEDs.
  • Page 25: Lcd

    NuMaker-ML56SD The LCD on the NuMaker-ML56SD with 8 x 40 COM/SEG. The LCD provides some information such as time, battery status, temperature, humidity and so on. The LCD is from TRICOMTEK part number RHE6616TP01. Figure 3-9 shows the LCD digit segment mapping table. Table 3-20 shows pin map for the LCD.
  • Page 26 NuMaker-ML56SD COM1 COM2 COM3 COM4 COM5 COM6 COM7 COM8 COM1 COM1 COM2 COM2 COM3 COM3 COM4 COM4 COM5 COM5 COM6 COM6 COM7 COM7 COM8 COM8 COM1 COM2 COM3 COM4 COM5 COM6 COM7 COM8 COM1 COM2 COM3 COM4 COM5 COM6 Mar. 08, 2021 Page 26 of 46 Rev 1.01...
  • Page 27: Table 3-20 Lcd Pin Mapping Table

    NuMaker-ML56SD COM7 COM8 Table 3-20 LCD Pin Mapping Table Mar. 08, 2021 Page 27 of 46 Rev 1.01...
  • Page 28: Nu-Link2-Me

    NuMaker-ML56SD 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 can be shown on the built-in LEDs.
  • Page 29: 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 30: Figure 4-2 Nu-Link Usb Driver Installation

    NuMaker-ML56SD Figure 4-2 Nu-Link USB Driver Installation Mar. 08, 2021 Page 30 of 46 Rev 1.01...
  • Page 31: Bsp Firmware Download

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

    NuMaker-ML56SD 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 33: Find The Example Project

    NuMaker-ML56SD 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 34: 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 35: Figure 4-11 Programming Setting In Options Window

    NuMaker-ML56SD 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 36: Figure 4-13 Keil C51 Debug Mode

    NuMaker-ML56SD 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 37: Iar Ew8051

    NuMaker-ML56SD 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 38: Figure 4-17 Iar Ew8051 Debug Mode

    NuMaker-ML56SD 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 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 39: Numaker-Ml56Sd Schematics

    NuMaker-ML56SD NUMAKER-ML56SD 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 40: Ml56 Platform

    NuMaker-ML56SD ML56 platform Figure 5-2 shows the ML56 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 41: Extension Connector

    NuMaker-ML56SD Extension Connector Figure 5-3 shows extension connectors of NuMaker-ML56SD. P1 - P16 P33 - P48 Pin1 Pin1 Pin33 Pin33 P26_NU2_A1 TICEDAT_MCU Pin2 Pin2 Pin34 Pin34 P25_NU2_A2 TICECLK_MCU Pin3 Pin3 Pin35 Pin35 P24_NU2_A3 P45_NU3_D3 Pin4 Pin4 Pin36 Pin36 P23_NU3_D1/TX P44_NU3_D2 Pin5 Pin5 Pin37...
  • Page 42: Tk And Lcd Cap

    NuMaker-ML56SD TK and LCD Cap Figure 5-4 shows touch key and LCD cap of NuMaker-ML56SD. P12_DH2 VLCD Pin24 TK7_R R18 0(NC) P36_Pin Pin25 TK6_R R19 0(NC) P05_Pin P05_NU3_D8 Pin31 TK0_R R20 0(NC) P56_Pin TKLED Pin30 0.1u C0603 P00_NU3_D11/MOSI P11_DH1 Touch Keys offpage VLCD Charge Pump Capacitor VDD_MCU 330R...
  • Page 43: Pcb Placement

    NuMaker-ML56SD PCB Placement Figure 5-5 and Figure 5-6 show the front and rear placement of NuMaker-ML56SD. Figure 5-5 Front Placement Figure 5-6 Rear Placement Mar. 08, 2021 Page 43 of 46 Rev 1.01...
  • Page 44: Numaker-Tnlcdsub_Ml56Sd Schematics

    NuMaker-ML56SD NUMAKER-TNLCDSUB_ML56SD SCHEMATICS LCD Connector Figure 6-1 shows LCD connectors of TN CD daughter board. 1 SEG6 LCD_Pin11 2 COM0 18 SEG3 50 SEG17 LCD_Pin20 LCD_Pin28 LCD_Pin39 3 COM1 19 SEG2 35 COM4 LCD_Pin19 LCD_Pin27 LCD_Pin24 4 COM2 20 SEG1 52 SEG16 LCD_Pin18 LCD_Pin26...
  • Page 45: Revision History

    NuMaker-ML56SD 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 45 of 46 Rev 1.01...
  • Page 46 NuMaker-ML56SD 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-ml56sd

Table of Contents