当前位置:首页 >> 信息与通信 >>

NuTiny-SDK-120使用手册


NuTiny-SDK-120 User Manual

ARM Cortex?-M0 32-BIT MICROCONTROLLER

NuTiny-SDK-120 User Manual
For NuMicro? NUC120 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.

- 1 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

1 2
2.1 2.2 2.3

Overview ..................................................................................................... 3 NuTiny-SDK-120 Introduction ......................................................................... 3
NuTiny -SDK-120 Jumper Description....................................................................... 4 Pin Assignment for Extended Connector.................................................................... 5 NuTiny-SDK-120 PCB Placement ............................................................................. 5

3
3.1 3.2 3.3 3.4

How to Start NuTiny -SDK-120 on the Keil μVision? IDE ..................................... 6
Keil uVision? IDE Software Download and Install ....................................................... 6 Nuvoton Nu-Link Driver Download and Install............................................................ 6 Hardware Setup.................................................................................................... 6 Smpl_NuTiny-NUC120 Example Program .................................................................. 7

4
4.1 4.2 4.3 4.4

How to Start NuTiny-SDK-120 on the IAR Embedded Workbench ......................... 8
IAR Embedded Workbench Software Download and Install .......................................... 8 Nuvoton Nu-Link Driver Download & Install............................................................... 8 Hardware Setup.................................................................................................... 8 Smpl_NuTiny-NUC120 Example Program .................................................................. 9

5 6
6.1 6.2 6.3

NuTiny-EVB-120 Schematic .......................................................................... 10 To Download NuMicro? Family Related Files from Nuvoton Company .................. 11
To Download NuMicro? Keil μVision? IDE driver ....................................................... 11 To Download NuMicro? IAR EWARM driver .............................................................. 12 To Download NuMicro? NUC120 series BSP Software Library ..................................... 13

7

Revision History.......................................................................................... 14

- 2 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

1

Overview

NuTiny-SDK-120 is the specific development tool for NuMicro NUC120 series. Users can use NuTiny-SDK-120 to develop and verify the application program easily. NuTiny-SDK-120 includes 2 portions. One is NuTiny-EVB-120 and the other is Nu-Link-Me. NuTiny-EVB-120 is evaluation board and Nu-Link-Me is its Debug Adaptor. Thus, users do not need other additional ICE or debug equipment.

2

NuTiny-SDK-120 Introduction

NuTiny-SDK-120 uses the NUC120LE3AN as the target microcontroller. Figure 2-1 is NuTiny-SDK-120 for NUC120 series and the left portion is called NuTiny-EVB-120 and the right portion is Debug Adaptor called Nu-Link-Me. NuTiny-EVB-120 is similar to other development board. Users can use it to develop and verify applications to emulate the real behavior. The on board chip covers NUC120 series features. The NuTiny-EVB-120 can be a real system controller to design user target system. 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 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 2 documents will be stored in local hard disk when user installs each driver.

Figure 2-1 NuTiny-SDK-120 (Purple Color PCB Board)

- 3 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

2.1
2.1.1

NuTiny -SDK-120 Jumper Description
Power Setting J1: USB port in NuTiny-EVB-120 JP2: VCC5 Voltage connecter in NuTiny-EVB-120 J2: USB port in Nu-Link-Me POWER model Model 1 Model 2 Model 3 X: Not use. X X J1 USB port Connect to PC X Connect to PC X J2 USB port JP2 VCC5 DC 5V output DC 5V output DC 2.8-5.5V input MCU Voltage DC 5V DC 5V Voltage by VCC input

2.1.2

Debug Connector JP4: Connector in target board(NuTiny-EVB-120) for connecting with Nuvoton ICE adaptor (Nu-Link-Me) JP8: Connector in ICE adaptor (Nu-Link-Me) for connecting with a target board (for exampl NuTiny-EVB-120)

2.1.3

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

2.1.4

Extended Connector JP1, JP5, JP6 and JP7: Show all of chip pins in NuTiny-EVB-120

2.1.5

Reset Button SW1: Reset button in NuTiny-EVB-120

2.1.6

Power Connector JP2: VCC connector in NuTiny-EVB-120 JP3: GND connector in NuTiny-EVB-120

- 4 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

2.2 Pin Assignment for Extended Connector NuTiny-EVB-120 provides NUC120LE3AN on board and the extended connector for LQFP-48 pin. Table 2-1 is the pin assignment for NUC120LE3AN.
Pin No 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Pin Name PB.12, CPO0, CLKO X32O X32I PA.11, I2C1SCL PA.10, I2C1SDA PA.9, I2C0SCL PA.8, I2C0SDA PB.4, RX1 PB.5, TX1 LDO VDD VSS VBUS VDD33 DD+ PB.0, RX0 PB.1, TX0 PB.2, RTS0 PB.3, CTS0 PC.3, MOSI00, I2SDO PC.2, MISO00, I2SDI PC.1, SPICLK0, I2SBCLK PC.0, /SPISS00, I2SLRCLK Pin No 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 Pin Name PA.15, PWM3, I2SMCLK PA.14, PWM2, PA.13, PWM1 PA.12, PWM0 ICE_DAT ICE_CLK AVSS PA.0, ADC0 PA.1, ADC1 PA.2, ADC2 PA.3, ADC3 PA.4, ADC4 PA.5, ADC5 PA.6, ADC6 PA.7, ADC7 AVDD PC.7, CPN0 PC.6, CPP0 PB.15, /INT1 XT1_OUT XT1_IN /RESET PVSS PB.8, STADC, TM0

Table 2-1 Pin Assignment for NUC 120 Series
2.3 NuTiny-SDK-120 PCB Placement Users can refer Figure 2-2 for the NuTiny –SDK-120 PCB placements.

Figure 2-2 NuTiny-SDK-120 PCB Placement

- 5 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

3

How to Start NuTiny -SDK-120 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 the Chapter 6.1 for the detail download flow. When the Nu-Link driver have been download ok, 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 as Figure 3-1

Figure 3-1 NuTiny-SDK-120 Hardware Setup

- 6 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

3.4 Smpl_NuTiny-NUC120 Example Program This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-120 board. It can be found on the Figure 3-2 list directory and downloaded from Nuvoton NuMicro? Website following Chapter 6.3.

Directory

Project File

Figure 3-2 Smpl_NuTiny_120 Example Directory
To use this example: The PB.0 LED will toggle on the NuTiny-EVB-120 board. Start μVision? Project-Open Open the Smpl_NuTiny_100.uvproj project file Project - Build Compile and link the Smpl_NuTiny-NUC100 application Flash – Download Program the application code into on-chip Flash ROM Start debug mode Using the debugger commands, you may: Review variables in the watch window Single step through code Reset the device Run the application

- 7 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

4

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

4.1 IAR Embedded Workbench Software Download and Install Please connect to IAR company website (http://www.iar.com) to download the IAR Embedded Workbench and install the EWARM. 4.2 Nuvoton Nu-Link Driver Download & Install Please connect to the Nuvoton Company NuMicro? website (http://www.nuvoton.com/NuMicro) to download “NuMicro? IAR ICE driver user manual” file. Please refer the 6.2 for the detail download flow. When the Nu-Link driver have been download ok, 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 as Figure 4-1

Figure 4-1 NuTiny- SDK-20 Hardware Setup

- 8 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

4.4 Smpl_NuTiny-NUC120 Example Program This example demonstrates the ease of downloading and debugging an application on a NuTiny-SDK-120 board. It can be found on the Figure 4-2 list directory and downloaded from Nuvoton NuMicro? Website following Chapter 6.3. Directory Project File

Figure 4-2 Smpl_NuTiny-NUC120 Example Directory
To use this example: The PB.0 LED will toggle on the NuTiny-EVB-120 board. Start IAR Embedded Workbench File-Open-Workspace Open the Smpl_NuTiny_100.eww workspace file Project - Make Compile and link the Smpl_NuTiny-100 application Project – Download and Debug Program the application code into on-chip Flash ROM. Single step through code Reset the device Run the application

- 9 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

5

NuTiny-EVB-120 Schematic
DVCC5 TICEDAT TICECLK TICERST TICEDAT TICECLK TICERST ICEDAT ICECLK ICERST DAVDD JP7 PIN13 PIN15 PIN17 PIN19 PIN21 PIN23 1 3 5 7 9 11 2 4 6 8 10 12 PIN14 PIN16 PIN18 PIN20 PIN22 PIN24 PIN48 PIN46 PIN44 PIN42 PIN40 PIN38 JP1 12 10 8 6 4 2 11 9 7 5 3 1 PIN47 PIN45 PIN43 PIN41 PIN39 PIN37 R1 10K R0603 ICERST

SW1 PUSH BOTTOM SW

VCC5 RESET

DVCC5

JP2 1 2 HEADER 2 JP3 1 2

C1 10uF/10V TANT-A

Reset
DVCC5 ICEDAT ICECLK ICERST

JP4 1 3 5 7 9 2 4 6 8 10

HEADER 2 DVCC5 DAVDD L1 L0603 L2 U5

HEADER 5X2

ICE INTERFACE

L0603 ADAVSS

STADC/TM0/PB8 PVSS /RESET XT1_IN XT1_OUT INT1/PB15 CPP0/PC6 CAN0/PC7 AVDD ADC7/SS21/PA7 ADC6/PA6 ADC5/PA5

48 47 46 45 44 43 42 41 40 39 38 37

PIN48 PVSS PIN47 RESETPIN46 D12MI PIN45 PIN44 D12MO PIN43 PIN42 PIN41 DAVDD PIN40 PIN39 PIN38 PIN37

HEADER 6X2

HEADER 6X2

C2 20p DX32O C0603 C4 20p X1 32.768K XTAL-3.4MM-2P R3 10M R0603 DX32I C0603

C3 20p

R2 33 R0603 R4 1M R0603

D12MO

C0603 C5 20p

VBUS VDD33 DD+ RX0/PB0 TX0/PB1 RTS0/PB2 CTS0/PB3 SDO00/PC3 SDI00/PC2 SPCLK0/PC1 SS00/PC0

X2 12MHz XTAL3-1

PIN1 PIN2 DX32I PIN3 DX32O PIN4 PIN5 PIN6 PIN7 PIN8 PIN9 PIN10 VDD PIN11 PIN12 VSS

1 2 3 4 5 6 7 8 9 10 11 12

CPO0/PB12 X32I X32O I2C1SCL/PA11 I2C1SDA/PA10 I2C0SCL/PA9 I2C0SDA/PA8 RX1/PB4 TX1/PB5 LDO VDD VSS

ADC4/PA4 ADC3/PA3 ADC2/PA2 ADC1/PA1 ADC0/PA0 AVSS NUC120 LQFP 48 ICE_CK ICE_DAT PWM0/PA12 PWM1/PA13 PWM2/PA14 PWM3/PA15

36 35 34 33 32 31 30 29 28 27 26 25

PIN36 PIN35 PIN34 PIN33 PIN32 DAVSS PIN31 ICECLK PIN30 ICEDAT PIN29 PIN28 PIN27 PIN26 PIN25 ADAVSS

D12MI C0603 DVCC5

Crystal
DVCC5

CB1 PIN13 PIN14 PIN15 PIN16 PIN17 PIN18 PIN19 PIN20 PIN21 PIN22 PIN23 PIN24 0.1u C0603 R5 0 R0603 DVBUS

13 14 15 16 17 18 19 20 21 22 23 24

D1 SS24A 1 2

DVCC5

DVCC5 IO KPT-2012 1 KP-2012 R11 500 R0603 PR POWER KPT-2012 1 KP-2012 500 R0603

DVBUS

DVBUS

PIN17

2

R10 0 R0603 CB2 JP6 0.1u C0603 11 9 7 5 3 1 PIN35 PIN33 PIN31 PIN29 PIN27 PIN25 Title

USBDUSBD+

R7 100 R0603 R9 100 R0603

RB060L J1 mini USB 5pin 1 2 3 4 5 VCC DM DP NC GND SHIELD SHIELD SHIELD SHIELD 6 7 8 9

2

USB_MINI_B

L3 L0805

PIN1 PIN3 PIN5 PIN7 PIN9 PIN11

JP5 1 3 5 7 9 11 2 4 6 8 10 12

PIN2 PIN4 PIN6 PIN8 PIN10 PIN12

PIN36 PIN34 PIN32 PIN30 PIN28 PIN26

12 10 8 6 4 2

HEADER 6X2 HEADER 6X2

Nuvoton NuTiny-EVB-120
Size Document Number Custom Date: Thursday , September 02, 2010 Sheet of Rev

1.0

- 10 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

6
6.1

To Download NuMicro? Family Related Files from Nuvoton Company
To Download NuMicro? Keil μVision? IDE driver To visit the Nuvoton NuMicro? Website: http://www.nuvoton.com/NuMicro
Click here to enter Devlopment Tools page

Step1

Step2

Step 3

Step 4

To download the NuMicro Keil μVision? IDE driver
Publication Release Date: Aug. 20, 2010 Revision V1.0

- 11 -

NuTiny-SDK-120 User Manual

6.2

To Download NuMicro? IAR EWARM driver To visit the Nuvoton NuMicro? Website: http://www.nuvoton.com/NuMicro
Click here to enter Devlopment Tools page

Step1

Step2

Step 3

Step 4

To download the NuMicro? IAR Embedded Workbench? driver

- 12 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

6.3

To Download NuMicro? NUC120 series BSP Software Library To visit the Nuvoton NuMicro? Website: http://www.nuvoton.com/NuMicro

Step1

Step2

Step 3

To download the NuMicro? NUC100 series software library

- 13 -

Publication Release Date: Aug. 20, 2010 Revision V1.0

NuTiny-SDK-120 User Manual

7

Revision History
Version 1.0 Date Aug. 20, 2010 Page -Description Initial 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 for other applications intended to support or sustain life. Further more, 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.

- 14 -

Publication Release Date: Aug. 20, 2010 Revision V1.0


相关文章:
更多相关标签: