Nuvoton NuMicro Series User Manual

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

Advertisement

Quick Links

NuMaker Uni
®
®
ARM
Cortex
-M
32-bit Microcontroller
®
NuMicro
Family
NuMaker Uni
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
Nov 16, 2016
Page 1 of 33
Rev 1.01

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

    Board Extension Interfaces ................7 HOW TO START NUMAKER UNI ON IDE ..........10 Supported IDE Software ................10 Nuvoton Nu-Link Driver Download and Installation ..........10 Hardware Setup ..................12 Starting to Use NuMaker Uni ............... 12 Software Download ................... 14 Folder Structure ..................
  • Page 3: Overview

    NuMaker Uni OVERVIEW ® NuMaker Uni is an IoT or wearable application development board based on NuMicro NANO100NE3BN. The start kit enables quick development, prototype evaluation, and creation of innovative designs for users. The kit also includes complete source-code examples, which helps users to build target C code applications quickly.
  • Page 4: Introduction To Numaker Uni

    NuMaker Uni INTRODUCTION TO NUMAKER UNI The NuMaker Uni uses the NANO100NE3BN as the target microcontroller. Figure 2-1 shows the NuMaker Uni board. Figure 2-1 NuMaker Uni Board The NuMaker Uni supports the Nu-Link ICE Adaptor, and uses In-Circuit Programming (ICP) mode based on the SWD interface.
  • Page 5: Introduction To Nu-Link Mini

    The Nu-Link Mini is a Debug Adaptor which connects the USB port of your PC to your target system (via Serial Wired Debug Port) and allows you to program and debug embedded programs on the target hardware. To use the Nu-Link Mini Debug adaptor with Keil or IAR, please refer to “Nuvoton ®...
  • Page 6: Hardware Introduction

    NuMaker Uni HARDWARE INTRODUCTION  ®  Cortex -M0 NANO100NE3BN - 32-bit MCU  Max speed of 42 MHz  128 KB Flash and 16 KB SRAM  Power-down current <1uA  Support SPI, I C, UART, ADC, PWM, GPIO ...
  • Page 7: Board Extension Interfaces

    NuMaker Uni Board Extension Interfaces Figure 4-1 NuMaker Uni Pin Diagram  JP1 – ICE interface for Nu-Link Mini Interface Signal Name MCU Pin Assignment Pin 1 VCC3 Pin 2 ICE_DAT ICE_DAT Pin 3 ICE_CLK ICE_CK Pin 4 RESET nRESET Pin 5 ...
  • Page 8 NuMaker Uni  JP5 – UART interface Interface Signal Name MCU Pin Assignment Pin 1 UART0_TX UART0_TX / PB1 Pin 2 UART0_RX UART0_RX / PB0 Pin 3 VCC3 VCC3 Pin 4 Pin 5 UART1_RX UART1_RX / PB4 Pin 6 UART1_TX UART1_TX / PB5 ...
  • Page 9 NuMaker Uni Pin 3 SPI_CE Pin 4 SPI_CS PC0 / SPI0_SS0 Pin 5 SPI_CLK PC1 / SPI0_CLK Pin 6 SPI_MOSI PC3 / SPI0_MOSI0 Pin 7 SPI_MISO PC2 / SPI0_MISO0 Pin 8 SPI_IRQ Nov 16, 2016 Page 9 of 33 Rev 1.01...
  • Page 10: How To Start Numaker Uni On Ide

    NuMaker Uni HOW TO START NUMAKER UNI ON IDE Supported IDE Software  IAR Embedded Workbench ® Keil μVision  Nuvoton Nu-Link Driver Download and Installation ® Please visit the Nuvoton company NuMicro website (http://www.nuvoton.com/NuMicro) to ® ® ® download “NuMicro IDE driver”...
  • Page 11 NuMaker Uni Step3 Click here to download the file. Step4 ® μVision ® ® Step5 Download the NuMicro IDE driver or NuMicro IAR Embedded Workbench driver. Nov 16, 2016 Page 11 of 33 Rev 1.01...
  • Page 12: Hardware Setup

    NuMaker Uni Hardware Setup The hardware setup is shown as Figure 5-1. Figure 5-1 NuMaker Uni Hardware Setup Starting to Use NuMaker Uni 1. Connect Nu-Link Mini to NuMaker Uni on its ICE port (J2) as of Figure 5-2. Figure 5-2 NuMaker Uni and Nu-Link Mini Connection Nov 16, 2016 Page 12 of 33 Rev 1.01...
  • Page 13 NuMaker Uni 2. Connect Nu-Link Mini to PC through the USB cable as Figure 5-3. Figure 5-3 Blue LED Turns On After the Nu-Link Mini is connected to PC, PC will start searching USB device, and it will be recognized as USB ICE shown in the peripheral device window of control panel. Also, the Nu- Link Mini LED will turn on to indicate the power is supplied from PC.
  • Page 14: Software Download

    NuMaker Uni Software Download ® Please visit the Nuvoton NuMicro website (http://www.nuvoton.com/NuMicro) to download NuMaker Uni sample code. The following steps demonstrate how to download sample code of NuMaker Uni. ® Step1 Visit The Nuvoton NuMicro Website: HTTP://WWW.NUVOTON.COM/NUMICRO. Move to “Support”...
  • Page 15 NuMaker Uni Step4 Click here to download “NuMaker Uni Software” Step5 Download the SW_MuMaker_Uni_V1.0 Software. Nov 16, 2016 Page 15 of 33 Rev 1.01...
  • Page 16: Folder Structure

    Folder Structure The example demonstrates compiling, downloading and executing sample code on a NuMaker Uni board. Figure 5-4 lists the NuMaker Uni software (SW_NuMaker_Uni_v1.0.zip) downloaded ® from Nuvoton NuMicro website. Figure 5-4 Sample Code Directory Nov 16, 2016 Page 16 of 33...
  • Page 17: Using Keil Μvision Ide To Program

    NuMaker Uni Using Keil μVision ® 5.6.1 IDE to Program The example demonstrates how to download and debug an application on NuMaker Uni board. The example file can be found in the directory list shown in the following figure. (Default:\SW_NuMaker_Uni_V1.2\NuMaker_Uni_BSP\SampleCode\NuMaker_Uni\proj_IMU_LCD _pingpong\KEIL) “Build”...
  • Page 18 NuMaker Uni “Download” to download binary code to NuMaker Uni. Click After download, MCU should be up and running. If not, please reconnect USB cable to power it up again. In this sample code, it is using IMU to detect motion for controlling the bar to bounce the ball back, as shown in Figure 5-5.
  • Page 19: Using Iar Embedded Workbench To Program

    NuMaker Uni 5.6.2 Using IAR Embedded Workbench to Program The example demonstrates how to download and debug an application on NuMaker Uni board. The example file can be found in the directory list shown in the following figure. (Default:\SW_NuMaker_Uni_V1.2\NuMaker_Uni_BSP\SampleCode\NuMaker_Uni\proj_IMU_LCD _pingpong\IAR\) “Make”...
  • Page 20 NuMaker Uni “Download and Debug” to download binary code to NuMaker Uni. Click After download, MCU should be up and running. If not, please reconnect the USB cable to power it up again. In this sample code, it is using IMU to detect motion for controlling the bar to bounce the ball back, as shown in Figure 5-5.
  • Page 21: Sample Code Description

    NuMaker Uni SAMPLE CODE DESCRIPTION File path: \SW_NuMaker_Uni_V1.2\NuMaker_Uni_BSP\SampleCode\NuMaker_Uni Category Sample Code Name Description Project proj_IMU_LCD_pingpong Using IMU to move the bar and bounce the ball back Project proj_BT_Humidity Using Bluetooth to report humidity to Smartphone Project proj_BT_Remote Using Smartphone to control MCU to output IR code Using Analog-to-Digital Converter to read sensor ADC2_MQ2 Using Analog-to-Digital Converter to read Gas sensor...
  • Page 22 NuMaker Uni SPI_RFID_RC522 RFID Reader RC522 reading RFID Tag TMR1 Timer1 counting TMR1_LED Timer1 controlled (no water) to target board TMR3_Capture_SR04 Timer3 capture Ultrasonic sensor ranger UART0 UART0_BT_RX_LCD Bluetooth Receive & display on LCD UART0 UART0_BT_TEST_LCD Returning Universal donative contract UART1 UART1_WiFi_TCPclient ESP8266 run as TCP client...
  • Page 23: Application Project Examples

    NuMaker Uni Application Project Examples 6.1.1 NuMaker Uni Components and Socket Pins Test File Name Default Directory NuMaker_Uni_PCB_Test_All.uvproj \SW_NuMaker_Uni_V1.2\NuMaker_Uni_BSP\SampleCode\NuMaker_Uni\PCB_ TEST_All\KEIL NuMaker_Uni_PCB_Test_All.uvproj allows users to check all components and socket pins on NuMaker Uni. This project is already downloaded into NuMaker Uni. The NuMaker Uni has passed this test before product delivery.
  • Page 24: Using Numaker Uni To Detect Temperature And Humidity

    NuMaker Uni “Start Debug Session”, and click 2. Download the demo firmware to NuMaker Uni, click “Run”. 3. The Blue LED turns on means the R/G/B LED, the Bluetooth Module, the Wi-Fi Module, and the I C module is ready to use. 4.
  • Page 25 NuMaker Uni Install NuMaker_Uni_BT_Humidity.apk on an android phone or tablet. Set up your phone with Bluetooth on. Search for Bluetooth device “ITON DM” and pair with your phone. Open NuMaker Uni BT Humidity APP. Tap “Connect” and select the Bluetooth device “ITOM DM”. Nov 16, 2016 Page 25 of 33 Rev 1.01...
  • Page 26 NuMaker Uni After connected, a new page will appear on NuMaker Uni BT Humidity APP. Select Temperature/Humidity Meter. Nov 16, 2016 Page 26 of 33 Rev 1.01...
  • Page 27: 6.1.3 Using Numaker Uni To Receive Information From Numaker Uni App

    NuMaker Uni Temperature and humidity visual indicators show. 6.1.3 Using NuMaker Uni to Receive Information from NuMaker Uni APP File Name Default Directory NuMaker_Uni_BT_Remote.uvproj \SW_NuMaker_Uni_V1.2\NuMaker_Uni_BSP\SampleCode\NuMaker_Uni\proj_BT _Remote\ KEIL NuMaker_Uni_BT_Remote.apk \SW_NuMaker_Uni_V1.2\NuMaker_Uni_APP\Android The NuMaker Uni BT Remote APP allows users to use the android phone or tablet as remote control.
  • Page 28 NuMaker Uni Click “Serial Windows” and select “UART #1”. The UART #1 windows will appear. Install NuMaker_Uni_BT_Remote.apk on an android phone or tablet. Set up your phone with Bluetooth on. Search for Bluetooth device “ITON DM” and pair with your phone. Open NuMaker Uni BT Remote APP and tap the left Bluetooth icon.
  • Page 29 NuMaker Uni Select the Bluetooth device “ITOM DM”. Nov 16, 2016 Page 29 of 33 Rev 1.01...
  • Page 30 NuMaker Uni After connected, buttons Btn1 ~ Btn16 will be shown on NuMaker Uni BT Remote APP. Nov 16, 2016 Page 30 of 33 Rev 1.01...
  • Page 31 NuMaker Uni Randonly click the button. The result will be sent to the NuMaker Uni through Bluetooth, and shown immediately in the UART #1 windows. Nov 16, 2016 Page 31 of 33 Rev 1.01...
  • Page 32: Revision History

    NuMaker Uni REVISION HISTORY Date Revision Description 2016.05.08 1.00 Initially issued. Updated the folder path of sample code in section 5.6 and 2016.11.16 1.01 section 6.1. Nov 16, 2016 Page 32 of 33 Rev 1.01...
  • Page 33 NuMaker Uni 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:

Numicro numaker uni

Table of Contents