Nuvoton NuMicro Series User Manual

Nuvoton NuMicro Series User Manual

Arm cortex-m 32-bit microcontroller
Hide thumbs Also See for NuMicro Series:

Advertisement

Quick Links

NUC029SGE
®
®
ARM
Cortex
-M
32-bit Microcontroller
®
NuMicro
Family
NuTiny-SDK-NUC029SGE
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 21, 2019
Page 1 of 37
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

Subscribe to Our Youtube Channel

Summary of Contents for Nuvoton NuMicro Series

  • Page 1 NuTiny-SDK-NUC029SGE 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

    NuTiny-SDK-NUC029SGE PCB Placement ............20 How to Start NuTiny-SDK-NUC029SGE on the Keil mdk ENVIRONMENT .... 21 Downloading and Installing Keil MDK Software..........21 Downloading and Installing Nuvoton Nu-Link Driver ..........21 Hardware Setup ..................21 Example Program ..................21 How to Start NuTiny-SDK-NUC029SGE on the IAR Embedded Workbench ..23 Downloading and Installing IAR Embedded Workbench Software ......
  • Page 3 NUC029SGE GPIO for 64 pin Schematic ................33 SDK Circuit Schematic ................34 Target Chip .................... 35 REVISION HISTORY ................36 Jan 21, 2019 Page 3 of 37 Rev 1.00...
  • Page 4: Overview

    NUC029SGE OVERVIEW ® NuTiny-SDK-NUC029SGE is a specific development tool for NuMicro NUC029SGE. With the NuTiny-SDK-NUC029SGE, user can develop and verify the application program easily. The NuTiny-SDK-NUC029SGE includes two portions. One is NuTiny-EVB-NUC029SGE and the other is Nu-Link-Me. NuTiny-EVB-NUC029SGE is the evaluation board and Nu-Link-Me is its Debug Adaptor.
  • Page 5: Nutiny-Sdk-Nuc029Sge Introduction

    To use the Nu-Link-Me Debug adaptor with ® ® IAR or 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.
  • Page 6: Nutiny-Sdk-Nuc029Sge Jumper Description

    VCOM function. SW2 connects pin 49(PA.3/RXD) and pin 50(PA.2/TXD) in NuTiny-EVB-NUC029SGE with pin 22(PB.1/TXD) and pin 21(PB.0/RXD) in Nuvoton ICE adaptor (Nu-Link-Me V3.0). SW2 connects pin 29(VCOM) in Nuvoton ICE adaptor (Nu-Link-Me V3.0) to GND to enable VCOM function.
  • Page 7 NUC029SGE Switch Pin Function UART0 Mode VCOM Mode Number Name ICE_TX ICE_RX VCOM_EN X: Unused. Jan 21, 2019 Page 7 of 37 Rev 1.00...
  • Page 8: Pin Assignment For Extended Connector

    NUC029SGE Pin Assignment for Extended Connector The NuTiny-EVB-NUC029SGE provides NUC029SGE on board and the extended connector (JP5, JP6, JP7 and JP8) for LQFP-64 pin. 64 Pin Pin Name Type Description PB.15 General purpose digital I/O pin. ADC0_CH12 ADC0 channel 12 analog input. ACMP0_P3 Analog comparator 0 positive input 3 pin.
  • Page 9 NUC029SGE 64 Pin Pin Name Type Description nRESET External reset input: active LOW, with an internal pull-up. Set this pin low reset to initial state. PD.0 General purpose digital I/O pin. SPI0_I2SMCLK SPI0 I2S master clock output pin SPI1_I2SMCLK SPI1 I2S master clock output pin UART0_RXD UART0 data receiver input pin.
  • Page 10 NUC029SGE 64 Pin Pin Name Type Description Timer0 event counter input/toggle output pin. EBI_nRD EBI read enable output pin. PD.2 General purpose digital I/O pin. ADC0_ST ADC0 external trigger input pin. TM0_EXT Timer0 external capture input/toggle output pin. USCI2_DAT0 USCI2 data 0 pin. ACMP1_P1 Analog comparator 1 positive input 1 pin.
  • Page 11 NUC029SGE 64 Pin Pin Name Type Description PWM1_BRAKE1 PWM1 Brake 1 input pin. PD.12 General purpose digital I/O pin. USCI1_CTL0 USCI1 control 0 pin. SPI1_SS SPI1 slave select pin. UART0_TXD UART0 data transmitter output pin. PWM1_CH0 PWM1 channel 0 output/capture input. EBI_ADR16 EBI address bus bit 16.
  • Page 12 NUC029SGE 64 Pin Pin Name Type Description ACMP0_O Analog comparator 0 output pin. PWM0_CH5 PWM0 channel 5 output/capture input. EBI_nRD EBI read enable output pin. PF.3 General purpose digital I/O pin. XT1_OUT External 4~20 MHz (high speed) crystal output pin. I2C1_SCL C1 clock pin.
  • Page 13 NUC029SGE 64 Pin Pin Name Type Description PC.2 General purpose digital I/O pin. SC0_RST Smart Card 0 reset pin. SPI0_SS SPI0 slave select pin. UART2_TXD UART2 data transmitter output pin. USCI0_CTL1 USCI0 control 1 pin. ACMP1_O Analog comparator 1 output pin. PWM0_CH2 PWM0 channel 2 output/capture input.
  • Page 14 NUC029SGE 64 Pin Pin Name Type Description ACMP1_O Analog comparator 1 output pin. PWM1_CH0 PWM1 channel 0 output/capture input. EBI_AD14 EBI address/data bus bit 14. PC.7 General purpose digital I/O pin. USCI0_CTL1 USCI0 control 1 pin. PWM1_CH1 PWM1 channel 1 output/capture input. EBI_AD15 EBI address/data bus bit 15.
  • Page 15 NUC029SGE 64 Pin Pin Name Type Description SPI1_CLK SPI1 serial clock pin. EBI_AD7 EBI address/data bus bit 7. TM0_EXT Timer0 external capture input/toggle output pin. PE.11 General purpose digital I/O pin. SPI1_MOSI SPI1 MOSI (Master Out, Slave In) pin. SPI0_MOSI SPI0 MOSI (Master Out, Slave In) pin.
  • Page 16 NUC029SGE 64 Pin Pin Name Type Description USB_D- USB differential signal D-. USB_D+ USB differential signal D+. PF.7 General purpose digital I/O pin. USB_VDD33_CAP Internal power regulator output 3.3V decoupling pin. PA.3 General purpose digital I/O pin. UART0_RXD UART0 data receiver input pin. UART0_nRTS UART0 request to Send output pin.
  • Page 17 NUC029SGE 64 Pin Pin Name Type Description UART1_TXD UART1 data transmitter output pin. USCI1_CTL0 USCI1 control 0 pin. SC0_CLK Smart Card 0 clock pin. PWM1_CH5 PWM1 channel 5 output/capture input. EBI_AD0 EBI address/data bus bit 0. INT0 External interrupt 0 input pin. Ground pin for digital circuit.
  • Page 18 NUC029SGE 64 Pin Pin Name Type Description PB.2 General purpose digital I/O pin. ADC0_CH2 ADC0 channel 2 analog input. SPI0_CLK SPI0 serial clock pin. SPI1_CLK SPI1 serial clock pin. UART1_RXD UART1 data receiver input pin. SC0_nCD Smart Card 0 card detect pin. TM_BRAKE0 TM_BRAKE0 I Timer Brake * input pin.
  • Page 19 NUC029SGE 64 Pin Pin Name Type Description PB.8 General purpose digital I/O pin. ADC0_CH5 ADC0 channel 5 analog input. UART1_nRTS UART1 request to Send output pin. TM_BRAKE2 TM_BRAKE2 I Timer Brake * input pin. PWM0_CH2 PWM0 channel 2 output/capture input. USCI0_CTL0 USCI0 control 0 pin.
  • Page 20: Nutiny-Sdk-Nuc029Sge Pcb Placement

    NUC029SGE NuTiny-SDK-NUC029SGE PCB Placement Figure 2-2 shows the NuTiny-SDK-NUC029SGE PCB placement. Figure 2-2 NuTiny-SDK-NUC029SGE PCB Placement Jan 21, 2019 Page 20 of 37 Rev 1.00...
  • Page 21: How To Start Nutiny-Sdk-Nuc029Sge On The Keil Mdk Environment

    Figure 3-1 NuTiny-SDK-NUC029SGE Hardware Setup Example Program This example demonstrates downloading and debugging an application on a NuTiny-SDK- ® NUC029SGE board. It can be found on the list directory and downloaded from Nuvoton NuMicro website. Jan 21, 2019 Page 21 of 37...
  • Page 22 NUC029SGE Directory ..\NUC029xGE_BSPv3.00.001\SampleCode\Template\Keil This sample code will show some functions about system manager controller and clock controller. ®   Start debug mode Start uVision When using debugger commands, you may:   Project – Open Review variables in the watch window Open the SYS.uvproj project file ...
  • Page 23: How To Start Nutiny-Sdk-Nuc029Sge On The Iar Embedded Workbench

    Figure 4-1 NuTiny-SDK-NUC029SGE Hardware Setup Example Program This example demonstrates downloading and debugging an application on a NuTiny-SDK- ® NUC029SGE board. It can be found on the list directory and downloaded from Nuvoton NuMicro website. Jan 21, 2019 Page 23 of 37...
  • Page 24 NUC029SGE Directory ..\NUC029xGE_BSPv3.00.001\SampleCode\Template\IAR 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  File-Open-Workspace  Open the SYS.eww workspace file Single step through code ...
  • Page 25: Starting To Use Nu-Link-Me 3.0 Vcom Function

    ICP Programming Tool and Nu-Link USB Driver, which included VCOM driver. Figure 5-1 Optional Step after ICP Programming Tool Installation Figure 5-2 Install Nuvoton COM&LPT Driver Jan 21, 2019 Page 25 of 37 Rev 1.00...
  • Page 26 NUC029SGE Figure 5-3 Install Nuvoton Universal Serial Bus Controllers Jan 21, 2019 Page 26 of 37 Rev 1.00...
  • Page 27: Vcom Mode Setting On Nutiny-Sdk-Nuc029Sge

    NUC029SGE VCOM Mode Setting on NuTiny-SDK-NUC029SGE Before the NuTiny-SDK-NUC029SGE is connected to the PC, please enable VCOM function by switching on SW2. The NuTiny-EVB-NUC029SGE transmits through UART0 to VCOM to send out data. Switch SW2 off when using UART0 function without VCOM function. Development Tool Setup ®...
  • Page 28: Check The Target Device And Debug Setting

    NUC029SGE 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 29 NUC029SGE Step 3 Jan 21, 2019 Page 29 of 37 Rev 1.00...
  • Page 30: Build And Download Code To Nutiny-Sdk-Nuc029Sge

    NUC029SGE 5.3.3 Build and Download Code to NuTiny-SDK-NUC029SGE Please build the project and download code to the NuTiny-SDK-NUC029SGE. 5.3.4 Open the Serial Port Terminal User can use serial port terminal, PuTTY for example, to print out debug message. Figure 5-5 Set Baud Rate Jan 21, 2019 Page 30 of 37 Rev 1.00...
  • Page 31: Reset Chip

    NUC029SGE 5.3.5 Reset Chip After pushing the reset button, the chip will reprogram application and print out debug message. Figure 5-6 Serial Port Terminal Windows Note: Please switch SW2 on before the NuTiny-SDK-NUC029SGE is connected to the PC. When the NuTiny-SDK-NUC029SGE is connected to the PC with SW2 switch on, PC will detect VCOM as a USB device and the detection will only be processed once.
  • Page 32: Nutiny-Sdk-Nuc029Sge Schematics

    NUC029SGE NUTINY-SDK-NUC029SGE SCHEMATICS Nu-Link-Me V3.0 Schematic USBVBUS Off-page Connector VBUS ICE1 ICELED USB_D- ICP1 Shield ICPLED USB_D+ Shield IDLE1 Y ELLOW Shield IDLE1 VCC_connect Shield VCC_connect ICE_TX 8P4R-330 Shield Tiny _TX ICE_RX BUSY 1 Tiny _RX Shield BUSY 1 ICERST TICERST GREEN micro USB 5pin...
  • Page 33: Gpio For 64 Pin Schematic

    NUC029SGE GPIO for 64 pin Schematic Off-page Connector P[1:64] P[1:64] Title GPIO for 64 pin Size Document Number <Doc> Date: Friday , August 03, 2018 Sheet Jan 21, 2019 Page 33 of 37 Rev 1.00...
  • Page 34: Sdk Circuit Schematic

    NUC029SGE SDK Circuit Schematic Off-page Connector D12MO DX32O FERRITE BEAD AVDD P[1:64] P[1:64] SW PUSHBUTTON TICERST D12MO D12MO RESET 10uF/10V 0.1u 10uF/10V 0.1u D12MI D12MI DX32O DX32O DX32I XOUT DX32I 10uF/10V AVDD 12MHz 32.768KHz Reset Power FERRITE BEAD AVDD ADAVSS ADAVSS TICERST RESET...
  • Page 35: Target Chip

    NUC029SGE Target Chip R17 0 Off-page Connector P[1:64] P[1:64] TICERST RESET RESET D12MO D12MO D12MI D12MI DX32O DX32O DX32I DX32I AVDD AVDD ADAVSS Tiny _TX ADAVSS Tiny _TX P32 LED Tiny _RX Tiny _RX PC.5/SPI0_I2SMCLK/I2C1_SDA/USCI0_DAT0/PWM0_CH5/EBI_AD13 TICERST TICERST PC.4/SC0_nCD/SPI0_MISO/I2C1_SCL/USCI0_CLK/PWM0_CH4/EBI_AD12 TICECLK PC.3/SC0_PWR/SPI0_MOSI/UART2_RXD/USCI0_CTL0/PWM0_CH3/EBI_AD11 TICECLK TICEDAT PC.2/SC0_RST/SPI0_SS/UART2_TXD/USCI0_CTL1/ACMP1_O/PWM0_CH2/EBI_AD10...
  • Page 36: Revision History

    NUC029SGE REVISION HISTORY Date Revision Description 2019.01.21 1.00 Initially issued. Jan 21, 2019 Page 36 of 37 Rev 1.00...
  • Page 37 NUC029SGE 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:

Nutiny-sdk-nuc029sge

Table of Contents