Nuvoton NuMicro NuTiny-SDK-M031TC User Manual

Arm cortex- m 32-bit microcontroller

Advertisement

Quick Links

M031/M032
®
®
ARM
Cortex
- M
32-bit Microcontroller
®
NuMicro
Family
NuTiny-SDK-M031TC
User Manual
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
Jan 28, 2019
Page 1 of 26
Rev 1.00

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NuMicro NuTiny-SDK-M031TC and is the answer not in the manual?

Questions and answers

Summary of Contents for Nuvoton NuMicro NuTiny-SDK-M031TC

  • Page 1 NuTiny-SDK-M031TC User Manual 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.
  • Page 2: Table Of Contents

    How to Start NuTiny-SDK-M031TC on the Keil μVision IDE Software Download and Install ..........12 ® Keil uVision Nuvoton Nu-Link Driver Download and Install ........... 12 Hardware Setup ..................12 Example Program ..................13 How to Start NuTiny -SDK-M031 on the IAR Embedded Workbench ....14 IAR Embedded Workbench Software Download and Install ........
  • Page 3 M031/M032 NuTiny-SDK-M031TC Schematic ..............22 GPIO for 33 pin Schematic ................23 Nu-Link2-Me V3.0 Schematic ......Error! Bookmark not defined. REVISION HISTORY ................25 Jan 28, 2019 Page 3 of 26 Rev 1.00...
  • Page 4: Overview

    Thus, user does not need other additional ICE or debug equipment. ® ® ® ® The Nuvoton Cortex -M0 NuMicro M031/M032 series MCU features 1.8 ~ 3.6V operating voltage, running up to 48 MHz, and provides a good solution for the applications that need low- voltage interface connection operation.
  • Page 5: Nutiny-Sdk-M031Tc Introduction

    ® ® Keil, please refer to “Nuvoton NuMicro IAR ICE driver user manual “or Nuvoton NuMicro Keil ICE driver user manual” in detail. These two documents will be stored in the local hard disk when the user installs each driver. To use Nu-Link2-Me VCOM function, please refer to Chapter 5.
  • Page 6: Nutiny-Sdk-M031Tc Jumper Description

    M031 series is 1.8V~3.3V. 2.1.2 Debug Connector  J1: Connector in target board (NuTiny-SD K-M031TC) for connecting with Nuvoton ICE adaptor (Nu-Link2-Me)  ICEJ4: Connector in ICE adaptor (Nu-Link2-Me) for connecting with a target board (for example NuTiny-SDK-M031TC) 2.1.3...
  • Page 7: Vcom Enable

     ICESW2: VCOM function enable for NuTiny-SDK-M031TC. Switch ICESW2 on before power on to enable VCOM function. ICESW2 connects pin 31(PB.12/RXD) and pin 30(PB.13/TXD) in NuTiny-SDK-M031TC with pin 22(PB.1/TXD) and pin 21(PB.0/RXD) in Nuvoton ICE adaptor (Nu-Link2-Me). Jan 28, 2019 Page 7 of 26...
  • Page 8 M031/M032 Switch Pin Function Name UART0 Mode VCOM Mode ICESW2 Number ICE_TX/MCU_RX ICE_RX/MCU_TX X: Unused. Jan 28, 2019 Page 8 of 26 Rev 1.00...
  • Page 9: Pin Assignment For Extended Connector

    M031/M032 Pin Assignment for Extended Connector NuTiny-SDK-M031TC provides M031TC1AE on board and the extended connector (JP3, JP4, JP5 and JP6) for QFN-33 pin. Table 2-1 is the pin assignment for M031TC1AE. Pin No Pin Function PB.5/ADC0_CH5/I2C0_SCL/PWM0_CH0/UART2_TXD/TM0/INT0 PB.4/ADC0_CH4/I2C0_SDA/PWM0_CH1/UART2_RXD/TM1/INT1 PB.3/ADC0_CH3/I2C1_SCL/UART1_TXD/PWM0_CH2/PWM0_BRAKE0/TM2/INT2 PB.2/ADC0_CH2/I2C1_SDA/UART1_RXD/PWM0_CH3/TM3/INT3 PB.1/ADC0_CH1/UART2_TXD/I2C1_SCL/PWM0_CH4/PWM0_BRAKE0 PB.0/ADC0_CH0/UART2_RXD/SPI0_I2SMCLK/I2C1_SDA/PWM0_CH5/PWM0_BRAKE1 PF.5/UART2_RXD/UART2_nCTS/PWM0_CH0/X32_IN/ADC0_ST PF.4/UART2_TXD/UART2_nRTS/PWM0_CH1/X32_OUT...
  • Page 10 M031/M032 PB.13/ADC0_CH13/SPI0_MISO/UART0_TXD/TM2_EXT PB.12/ADC0_CH12/SPI0_MOSI/UART0_RXD/TM3_EXT AVDD Table 2-1 Pin Assignment for M031TC1AE Jan 28, 2019 Page 10 of 26 Rev 1.00...
  • Page 11: Nutiny-Sdk-M031Tc Pcb Placement

    M031/M032 NuTiny-SDK-M031TC PCB Placement Users can refer to Figure 2-2 for the NuTiny-SDK-M031TC PCB placements. Figure 2-2 NuTiny-SDK-M031TC PCB Placement Jan 28, 2019 Page 11 of 26 Rev 1.00...
  • Page 12: How To Start Nutiny-Sdk-M031Tc On The Keil Μvision Ide

    IDE Software Download and Install ® μ Please visit the Keil company website (http://www.keil.com) to download the Keil Vision and install the RVMDK Nuvoton Nu-Link Driver Download and Install ® Please visit the Nuvoton company NuMicro website (http://www.nuvoton.com/NuMicro) to ® ®...
  • Page 13: Example Program

    M031/M032 Example Program This example demonstrates the ease of downloading and debugging an application on a NuTiny- SDK-M031TC board. It can be found on Figure 3-2 list directory and downloaded from Nuvoton ® NuMicro website. The example file can be found in the directory list shown in Figure 3-2.
  • Page 14: How To Start Nutiny -Sdk-M031 On The Iar Embedded Workbench

    The hardware setup is shown as Figure 4-1. Figure 4-1 NuTiny-SDK-M031TC Hardware Setup Example Program This example demonstrates the ease of downloading and debugging an application on a NuTiny- SDK-M031TC board. It can be found on Figure 4-2 list directory and downloaded from Nuvoton ® NuMicro website.
  • Page 15 M031/M032 C:\Nuvoton\BSP Directory Library\M031_Series_BSP_CMSIS_V3.00.000\SampleCode\Template\IAR Project File Figure 4-2 Example Directory This sample code will show some functions about system manager controller and clock controller.   Project – Download and Debug Start IAR Embedded Workbench Program the application code into on-chip Flash ROM ...
  • Page 16: Starting To Use Nu-Link2-Me Vcom Function

    M031/M032 STARTING TO USE NU-LINK2-ME VCOM FUNCTION Downloading and Installing VCOM Driver ® Please connect to Nuvoton NuMicro website (http://www.nuvoton.com/NuMicro) to download the ® “NuMicro ICP Programming Tool” file. After the ICP Programming Tool driver is downloaded, please unzip the file and execute the “ICP Programming Tool.exe”. Simply follow the installation and optional steps to install ICP Programming Tool and Nu-Link USB Driver, which included VCOM driver.
  • Page 17: Vcom Mode Setting On Nutiny-Sdk-M031Tc

    M031/M032 Figure 5-3 Install Nuvoton COM&LPT Driver Figure 5-4 Install Nuvoton Nu-Link2DeviceClass VCOM Mode Setting on NuTiny-SDK-M031TC Before the NuTiny-SDK-M031TC is connected to the PC, please enable ICESW2 VCOM function by switching on ICESW2. The NuTiny-SDK-M031TC transmits through UART0 to VCOM to send out data.
  • Page 18: Check The Target Device And Debug Setting

    M031/M032 ® Figure 5-5 The Using UART on Keil μVision 5.3.2 Check the Target Device and Debug Setting The target device has to be the same as the setting in Debug. Please click “Target Option” to open the Option windows, and find the setting in “Device”, “Debug”, and “Utilities” page. Please follow the steps below to check the setting.
  • Page 19 M031/M032 Step 2 Step 3 Jan 28, 2019 Page 19 of 26 Rev 1.00...
  • Page 20: Build And Download Code To Nutiny-Sdk-M031Tc

    M031/M032 5.3.3 Build and Download Code to NuTiny-SDK-M031TC Please build the project and download code to NuTiny-SDK-M031TC. 5.3.4 Open the Serial Port Terminal User can use serial port terminal, PuTTY for example, to print out debug message. Figure 5-6 Set Baud Rate 5.3.5 Reset Chip After pushing the reset button and enable ICESW2 VCOM function, the chip will reprogram...
  • Page 21 M031/M032 Figure 5-7 Serial Port Terminal Windows Notice: Please switch ICESW2 on before the NuTiny-SDK-M031TC connects to the PC. When the NuTiny-SDK-M031TC connects to the PC with ICESW2 switch on, PC will detect VCOM as a USB device and the detection will only be processed once. Jan 28, 2019 Page 21 of 26 Rev 1.00...
  • Page 22: Nutiny-Sdk-M031Tc Schematic

    M031/M032 NUTINY-SDK-M031TC SCHEMATIC Nu-Link2-Me 3.3V ICER1 Off-page Connector 200 1% USB_HS_CAP R0603 ICE5V ICEC1 ICEC2 ICE5V 0.1u MCUVCC_DIODE C0603 C0603 SWDH_DAT TICEDAT SWDH_CLK TICECLK SWDH_RST# TICERST ICE_RX_S MCU_TX ICE_TX_S MCU_RX ICE_RST nRESET ICEVDD VDDIO ETMCK_MOSI PA.0 ETMD0_MISO LDO_CAP PA.1 ICEVDD ETMD2_CK PA.2 ETMCK_MOSI...
  • Page 23 M031/M032 M031TC1AE P1 - P8 P17 - P24 PF0_ICE_DAT PB5_NU2_A0 TICEDAT PF1_ICE_CLK PB4_NU2_A1 TICECLK PB3_NU2_A2 PC1_NU4_SCL PB2_NU2_A3 PC0_NU4_SDA PB1_NU2_A5/SCL PA12 PB0_NU2_A4/SDA PA13 PF5_X32_IN PF5_X32_IN PA14 PF4_X32_OUT PF4_X32_OUT PA15 nRESET PF.15/PWM0_BRAKE0/PWM0_CH1/TM2/CLKO/INT4 P25 - P32 PA.0/SPI0_MOSI/UART0_RXD/UART1_nRTS/PWM0_CH5 P9 - P16 PA.1/SPI0_MISO/UART0_TXD/UART1_nCTS/PWM0_CH4 PA.2/SPI0_CLK/UART1_RXD/I2C1_SDA/PWM0_CH3 PA.3/SPI0_SS/UART1_TXD/I2C1_SCL/PWM0_CH2/CLKO PF.2/UART0_RXD/I2C0_SDA/XT1_OUT PF.3/UART0_TXD/I2C0_SCL/XT1_IN PF3_XT1_IN...
  • Page 24 M031/M032 External Connector P1 - P8 P17 - P24 PB5_NU2_A0 TICEDAT PB4_NU2_A1 TICECLK PB3_NU2_A2 PC1_NU4_SCL PB2_NU2_A3 PC0_NU4_SDA PB1_NU2_A5/SCL PA12 PB0_NU2_A4/SDA PA13 PF5_X32_IN PA14 PF4_X32_OUT PA15 HEADER 2.54 8X2 (NC) HEADER 2.54 8X2 (NC) P9 - P16 P24 - P32 PF3_XT1_IN PF2_XT1_OUT LDO_CAP PA3_NU3_D10/SS...
  • Page 25: Revision History

    M031/M032 REVISION HISTORY Date Revision Description 2019.01.28 1.00 Initially issued. Jan 28, 2019 Page 25 of 26 Rev 1.00...
  • Page 26 M031/M032 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”.

Table of Contents