Nuvoton Nutiny-sdk-nuc122 Arm Cortex-m0 32-bit Microcontroller User Manual

Nuvoton Nutiny-sdk-nuc122 Arm Cortex-m0 32-bit Microcontroller User Manual

nuvoTon logo

NuTiny-SDK-NUC122 User Manual

ARM Cortex™-M0
32-BIT MICROCONTROLLER

NuTiny-SDK-NUC122 User Manual
For NuMicro™ NUC122 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.

Publication Release
Date: Mar. 25, 2011
Revision V1.0

Downloaded from Arrow.com.

 Overview

NuTiny-SDK-NUC122 is the specific development tool for the NuMicro™ NUC122 series. Users can use NuTiny-SDK- NUC122P to develop and verify the application program easily.

NuTiny-SDK-NUC122 includes two portions. One is NuTiny-EVB-122 and the other is Nu-Link-Me. NuTiny-EVB-122 is the evaluation board and Nu-Link-Me is its Debug Adaptor. Thus, users do not need other additional ICE or debug the equipment.

NuTiny-SDK-NUC122 Introduction

NuTiny-SDK-NUC122 uses the NUC122RD2AN as the target microcontroller. Figure 2-1 is NuTiny-SDK-NUC122 for the NUC122 series, the left portion is called NuTiny-EVB-122 and the right portion is Debug Adaptor called Nu-Link-Me. NuTiny-EVB-122 is similar to other development boards. Users can use it to develop and verify applications to emulate the real behavior. The onboard chip covers NUC122 series features. The NuTiny-EVB-122 can be a real system controller to design users’ target systems.
Nu-Link-Me is a Debug Adaptor. The Nu-Link-Me Debug Adaptor connects your PC’s USB port 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 NuLink-Me Debug adaptor with IAR or Keil, please refer to the “Nuvoton NuMicro ™ IAR ICE driver user manual“ or “Nuvoton ™ NuMicro Keil ICE driver user manual” for detail. These two documents will be stored in the local hard disk when the user installs each driver.

nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - FIGure 2-1

2.1 NuTiny-SDK-NUC122 Jumper Description

2.1.1 Power Setting

  • J1: USB port in NuTiny-EVB-122
  • JP1: VCC5 Voltage connecter in NuTiny-EVB-122
  • J2: USB port in Nu-Link-Me
POWER ModelJ2 USB PortJ1 USB PortJP1 VCC5Target MCU Voltage
Model 1Connect to PCXDC 3.3 V or 5 V
output [1]
DC 3.3 V or 5 V [1]
Model 2XConnect to PCDC 4.8 V or 5 V
output [2]
DC 4.8 V or 5 V [2]
Model 3XXDC 2.5 V ~ 5.5 V inputDC 2.5 V ~ 5.5 V that
decided by JP1 VCC5
input

X: Unused.
Note 1: It is depended on the setting (VCC via connecting to 3.3 V or 5 V via) at the JPR jumper in Nu-Link-Me.
Note 2: It must put a diode device (4.8 V) or make both pins short (5 V) at the D1 in NuTiny-EVB-122.

2.1.2 Debug Connector

  • JP3: Connector in target board (NuTiny-EVB-122) for connecting with Nuvoton ICE adaptor (Nu-Link or NuLink-Me)
  • JP9: Connector in ICE adaptor (Nu-Link-Me) for connecting with a target board (for example NuTiny-EVB-122)

2.1.3 USB Connector

  • J1: Mini USB Connector in NuTiny-EVB-122 for application using
  • J2: Mini USB Connector in Nu-Link-Me connected to a PC USB port

2.1.4 Extended Connector

  • JP5, JP6, JP7, and JP8: Connect to all chip pins in NuTiny-EVB-122

2.1.5 Reset Button

  • SW1: Reset the button to reset the target chip in NuTiny-EVB-122

2.1.6 Power Connector

  • JP1: VCC5 connector in NuTiny-EVB-122
  • JP2: GND connector in NuTiny-EVB-122

2.2 Pin Assignment for Extended Connector

NuTiny-EVB-122 provides NUC122RD2AN on board and the extended connector for the LQFP-64 pin. Table 2-1 is the pin assignment for NUC122RD2AN.

Pin NoPin NamePin NoPin Name
01PB.14, /INTO33VSS
02X32034PC.13
03X32135PC.12
04PA.11,12C1SCL36PC.11, MOSI10
05PA.10, I2C1SDA37PC.10, MIS010
06PD.838VDD
07PD.939PC.9, SPICLK1
08PD.1040PC.8, SPISS10
09PD 1141PA.15, PWM3
10PB.4, RX142VSS
11PB.5, TX143PA.14, PWM2
12PB.6, RTS144PA.13, PWM1
13PB.7. CTS145PA.12, PWM
14LDO46ICE DAT
15VDD47ICE CK
16VSS48ADD
17VBUS49PD.0
18VDD3350PD.1
19D-51PD.2
20D+52PD.3
21PB.0, RXO53PD.4
22PB.1, TXO54PD.5
23PB.2, RTSO55PB.15, /INT1
24PB.3, CTS056XT1 OUT
25PC.557XT1_IN
26PC.458/RESET
27PC.3, MOS10059VSS
28PC.2, MIS00060VDD
29PC.1, SPICLKO61PS2DAT
30PC.0, SPISSOO62PS2CLK
31PB.10, TM2, SPISSO163PVSS
32PB.9, TM1, SPISS1164PB.8, TMO

Table 2-1 Pin Assignment for NUC122 LQFP-64

2.3 NuTiny-SDK-NUC122 PCB Placement

Users can refer to Figure 2-2 for the NuTiny–SDK-NUC122 PCB placements.

nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - FIGure 2-2

How to Start NuTiny-SDK-NUC122 on the Keil μVision® IDE®

3.1 Keil uVision
IDE Software Download and Install

Please visit the Keil company website (http://www.keil.com) to download the Keil μVision® IDE and install the RVMDK.

3.2 Nuvoton Nu-Link Driver Download and Install

Please visit the Nuvoton company NuMicro™ website (http://www.nuvoton.com/NuMicro ) to download “NuMicro™ Keil® μVision
IDE driver” file. Please refer to Chapter 6.1 for the detailed download flow. When the Nu-Link driver has been well downloaded, please unzip the file and execute the “Nu-Link_Keil_Driver.exe” to install the driver.

3.3 Hardware Setup
The hardware setup is shown in Figure 3-1

nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - FIGure 2-3

3.4 Smpl_NuTiny-NUC122 Example Program

This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-NUC122 board. It can be found on the Figure 3-2 list directory and downloaded from the Nuvoton NuMicro™ website following Chapter 6.3.

nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - Figure 3-2

 

To use this example:
The PB.4 LED will toggle on the NuTiny-EVB-122 board.

  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 1Start μVision®
  • Project-Open
    Open the Smpl_NuTiny_122.uvproj project file
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 2 Project – Build
    Compile and link the Smpl_NuTiny-NUC122 application
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 3 Flash – Download
    Program the application code into on-chip Flash ROM
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 4 Start to debug mode
    Using the debugger commands, you may: 
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 5 Review variables in the watch window
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 6 Single-step through code
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 7 Reset the device
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 8 Run the application

 How to Start NuTiny-SDK-NUC122 on the IAR Embedded Workbench

4.1 IAR Embedded Workbench Software Download and Install

Please connect to the IAR company website (http://www.iar.com) to download the IAR Embedded Workbench and install the EWARM.

4.2 Nuvoton Nu-Link Driver Download and Install
Please connect to the Nuvoton Company NuMicro™ website (http://www.nuvoton.com/NuMicro) to download the “NuMicro™ IAR ICE driver user manual” file. Please refer to Chapter 6.2 for the detailed download flow. When the Nu-Link driver has been well downloaded, please unzip the file and execute the “Nu-Link_IAR_Driver.exe” to install the driver.

4.3 Hardware Setup
The hardware setup is shown in Figure 4-1
nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - Figure 4-1

4.4 Smpl_NuTiny-NUC122 Example Program

This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-NUC122 board. It can be found on Figure 4-2 list directory and downloaded from Nuvoton NuMicro ™ website following on Chapter 6.3.

nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - Figure 4-2

To use this example:
The PB.4 LED will toggle on the NuTiny-EVB-122 board.

  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 9 Start IAR Embedded Workbench
  • File-Open-Workspace
    Open the Smpl_NuTiny_122.eww workspace file
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 10 Project – Make
    Compile and link the Smpl_NuTiny-122 application
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 11 Project – Download and Debug
    Program the application code into on-chip Flash ROM.
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 12 Single-step through code
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 13 Reset the device
  • nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - ICON 14 Run the application

NuTiny-EVB-122 Schematic

nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - NuTiny-EVB-122 Schematic

Download NuMicro™ Family Related Files from Nuvoton Website

6.1 Download NuMicro™ Keil μVision®  IDE Driver

Step 1Visit the Nuvoton NuMicro™ website: http://www.nuvoton.com/NuMicro
Step 2nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - 6.3
Step 3nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - Step 3
Step 4Download the NuMicro ™ Keil μVision® IDE driver

6.2 Download NuMicro™ IAR EWARM Driver

Step 1Visit the Nuvoton NuMicro™ website: http://www.nuvoton.com/NuMicro
Step 2nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - Step 4
Step 3nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - Step 5
Step 4Download the NuMicro™ IAR Embedded Workbench® driver

6.3 Download NuMicro™ NUC100 Series BSP Software Library

Step 1Visit the Nuvoton NuMicro™ website: http://www.nuvoton.com/NuMicro
Step 2nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - Step2
Step 3nuvoTon NuTiny SDK NUC122 ARM Cortex M0 32 Bit Microcontroller - 6.3 Step2
Step 4Download the NuMicro™ NUC100 series software library

Revision History

Version D DatePageDescription
1Mar. 25, 2011Initial Release

Important Notice
Nuvoton products are not designed, intended, authorized, or warranted for use as components in systems or equipment intended for surgical implantation, atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, or other applications intended to support or sustain life. Furthermore, Nuvoton products are not intended for applications wherein failure of Nuvoton products could result or lead to a situation wherein personal injury, death, or severe property or environmental damage could occur.

Nuvoton customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Nuvoton for any damages resulting from such improper use or sales.

Please note that all data and specifications are subject to change without notice. All the trademarks of products and companies mentioned in this datasheet belong to their respective owners.

Publication Release Date: Mar. 25, 2011
Revision V1.0

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals