MINI58 NUVOTON | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 28

Technical content

July 08, 2015 Page 1 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL ARM® Cortex® -M 32-bit Microcontroller NuMicro® Family NuTiny-SDK-Mini58 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

July 08, 2015 Page 2 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Table of Contents

July 08, 2015 Page 3 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL

1 OVERVIEW

NuTiny-SDK-Mini58 is the specific development tool for NuMicro ® Mini58 series. User can use NuTiny-SDK-Mini58 to develop and verify the application program easily. NuTiny-SDK-Mini58 includes two portions. One is NuTiny -EVB-Mini58 and the other is Nu -Link- Me. NuTiny-EVB-Mini58 is the evaluation board and Nu -Link-Me is its Debug Adaptor. Thus, user does not need other additional ICE or debug equipment. The NuMicro® Mini58 series is pin-to-pin and function compatible with the NuMicro® Mini51 series, the 32-bit microcontroller (MCU) embedded with the ARM® Cortex® -M0 core. The Mini58 series can bridge the gap and replace the cost equivalent to traditional 8- and 16-bit microcontroller by 32-bit performance and rich functions. The Mini58 series supports a wide range of applications from low-end, price sensitive designs to computing-intensive ones and provides advanced high- end features in economical products. The Mini58 series can run up to 50 MHz which is faster than 24 MHz in Mini51 series, and operate at a wide voltage range of 2.5V ~ 5.5V and temperature range of -40℃ ~ +105℃. For the Mini58 series, the embedded program flash size upgrades from 16 Kbytes to 32 Kbytes and SRAM upgrades from 2 Kbytes to 4 Kbytes. The Mini58 series also offers size configurable Data Flash (shared with program flash), and 2 Kbytes flash for the ISP. The Mini58 series has many high-performance peripheral functions, such as 22.1184 MHz internal RC oscillator (±1% accuracy), I/O port with up to 30 pins, four 32 -bit timers, two UARTs with the RS485 function and IrDA function interface, one SPI interface, two I2C interfaces, up to three 16-bit PWM generators providing six channels, an 8-channel 10-bit ADC, Watchdog Timer, Window Watchdog Timer, two Analog Comparators and a Brown-out Detector. All these peripherals have been incorporated into the Mini58 series to reduce component count, board space and system cost. Compared to the Mini51 series, the Mini58 series supports additional one UART and one I2C interface for better and more flexible connectivity applications. Additionally, the Mini58 series is equipped with ISP (In-System Programming) and ICP (In-Circuit Programming) functions, which allow the user to update the program memory without removing the chip from the actual end product. The Mini58 series also supports In-Application-Programming (IAP) function, user switches the code executing without the chip reset after the embedded flash updated.

July 08, 2015 Page 4 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL

2 NUTINY-SDK-MINI58 INTRODUCTION

NuTiny-SDK-Mini58 uses the Mini58LDE as the target microcontroller. Figure 2-1 is NuTiny-SDK- Mini58 for the Mini58 series, the left portion is called NuTiny-EVB-Mini58 and the right portion is Debug Adaptor called Nu-Link-Me. NuTiny-EVB-Mini58 is similar to other development boards. User can use it to develop and verify applications to em ulate the real behavior. The on -board chip covers Mini58 series features. The NuTiny-EVB-Mini58 can be a real system controller to design user’s target systems. Nu-Link-Me is a Debug Adaptor. The Nu -Link-Me Debug Adaptor connects your PC's USB port to the use r’s target system (via Serial Wired Debug Port) and al lows user 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 two documents will be stored in the local hard disk when user installs each driver. Nu-Link-Me also supports virtual COM por t function. User can use Nu-Link- Me as a USB to UART virtual COM port, which connects to on-board Mini58LDE UART0. Target Chip ICE Controller VCC:3.3V or 5V (JP8) ICE Controller USB Connector (ICEJ2) GND (J4) VCC (J2) Reset Key (SW1) Extended Connector (JP5、JP8) Extended Connector (JP6、JP7) I/O LED Power LED LDO (TP2) CLKO (TP1) Virtual COM Port Function Switch (SW3) Figure 2-1 NuTiny-SDK-Mini58 (PCB Board) Virtual COM Port Switch Description 2.1 The switch in Nu -Link-Me, SW3, determines that the virtual COM port function is enabled or disabled. When user turns on all of the positions of s witch, the virtual COM port function will been enabled. By using virtual COM port function, user can access the USB device in the same way as it would access a standard COM port to Mini58LDE UART0 . To use this function, user needs to install “VCOM Driver” at first. User can get “VCOM Driver” from NuMicroDVD in folder “Software Utilities”. NuTiny-SDK-Mini58 Power Setting and Connector 2.2

2.2.1 Power Setting

 J1: USB port in Nu-Link-Me  J2: VCC33 Voltage connecter in NuTiny-EVB-Mini58 Model JPR1 J1USB port J2 VCC33 MCU Voltage Model 1 Select VCC33 (default) Connect to PC DC 3.3V output DC 3.3V

July 08, 2015 Page 5 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Model 2 X X DC 2.5 V ~ 5.5 V Input Voltage by J2 input

2.2.2 Debug Connector

 JP4: Connector in target board (NuTiny-EVB-Mini58) for connecting with Nuvoton ICE adaptor (Nu-Link-Me)  JP2: Connector in ICE adaptor (Nu-Link-Me) for connecting with a target board (for example NuTiny-EVB-Mini58)

2.2.3 ICE USB Connector

 J2: Mini USB Connector in Nu-Link-Me connected to a PC USB port

2.2.4 Extended Connector

 JP5, JP6, JP7 and JP8: Show all chip pins in NuTiny-EVB-Mini58  TP1: Show CLKO pin in Mini58LDE  TP2: Show LDO pin in Mini58LDE

2.2.5 Reset Button

 SW1: Reset button in NuTiny-EVB-Mini58

2.2.6 Power Connector

 J2: 3.3 VCC connector in NuTiny-EVB-Mini58  J4: GND connector in NuTiny-EVB-Mini58

2.2.7 Virtual COM Port Function Switch

 SW3: Switch ON/OFF to enable or disable Nu-Link-Me virtual COM port function. Function Switch Descriptions 1 2 3 4 Enable ON ON ON ON Enable Nu-Link-Me virtual COM port function Disable OFF OFF OFF OFF Disable Nu-Link-Me virtual COM port function

July 08, 2015 Page 6 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Pin Assignment for Extended Connector 2.3 NuTiny-EVB-Mini58 provides Mini58LDE on board and the extended connector for LQFP-48 pin. Table 2-1 is the pin assignment for Mini58LDE. Pin No Pin Function Pin No Pin Function 01 NC 25 P2.5,PWM0_CH3,UART1_TXD 02 P1.5,ADC_CH5,ACMP0_P0,UART1 _TXD 26 P2.6,PWM0_CH4,ACMP1_O 03 nRESET 27 NC 04 P3.0,ADC_CH6,ACMP1_N 28 NC 05 AVSS 29 P4.6,ICE_CLK,UART1_RXD 06 P5.4 30 P4.7,ICE_DAT,UART1_TXD 07 P3.1,ADC_CH7,ACMP1_P0 31 NC 08 P3.2,INT0,STADC,TM0_EXT,ACMP 1_P1 32 P0.7,SPI0_CLK,PWM0_CH0 09 P3.4,TM0_CNT_OUT,I2C0_SDA,AC MP1_P2 33 P0.6,SPI0_MISO,PWM0_CH1 10 P3.5,TM1_CNT_OUT,I2C0_SCL,AC MP1_P3 34 P0.5,SPI0_MOSI,PWM0_CH4 11 NC 35 P0.4,SPI0_SS,PWM0_CH5

12 NC 36 NC

13 NC 37 P0.1,UART0_nRTS,UART0_RXD,SPI0_SS 14 P3.6,CLKO,TM1_EXT,ACMP0_O 38 P0.0,UART0_nCTS,UART0_TXD 15 P5.1,XT1_OUT,I2C1_SCL,UART0_ RXD 39 NC 16 P5.0,XT1_IN,I2C1_SDA,UART0_TX D 40 NC 17 VSS 41 P5.3,ADC_CH0

18 LDO_CAP 42 VDD

19 P5.5 43 AVDD 20 P5.2,INT1 44 P1.0,ADC_CH1,ACMP0_P1 21 NC 45 P1.2,ADC_CH2,UART0_RXD,

July 08, 2015 Page 7 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL ACMP0_P2,PWM0_CH0 22 P2.2,PWM0_CH0,I2C1_SCL 46 P1.3,ADC_CH3,UART0_TXD,ACMP0_P3, PWM0_CH1 23 P2.3,PWM0_CH1,I2C1_SDA 47 P1.4,ADC_CH4,ACMP0_N,UART1_RXD, PWM0_CH4 24 P2.4,PWM0_CH2,UART1_RXD 48 NC Table 2-1 Pin Assignment for Mini58LDE

July 08, 2015 Page 8 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL NuTiny-SDK-Mini58 PCB Placement 2.4 User can refer to Figure 2-2 for the NuTiny-SDK-Mini58 PCB placements. Figure 2-2 NuTiny-SDK-Mini58 PCB Placement

July 08, 2015 Page 9 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL

3 HOW TO START NUTINY -SDK-MINI58 ON THE KEIL ΜVISION® IDE

Downloading and Installing Keil μVision® IDE Software 3.1 Please connect to the Keil company website ( http://www.keil.com) to download the Keil μVision ® IDE and install the RVMDK. Downloading and Installing Nuvoton Nu-Link Driver 3.2 Please connect to Nuvoton NuMicro ® website (http://www.nuvoton.com/NuMicro) to download the “NuMicro® Keil μVision® IDE driver ” file. Please refer to section 6.1 for the detailed download flow. After the Nu -Link driver is downloaded, please unzip the file and execute the “ Nu- Link_Keil_Driver.exe” to install the driver. Hardware Setup 3.3 The hardware setup is shown as Figure 3-1 Figure 3-1 NuTiny-SDK-Mini58 Hardware Setup Example Program 3.4 This example demonstrates the ease of downloading and debugging an application on a NuTiny- SDK-Mini58 board. It ca n 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.

July 08, 2015 Page 10 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Directory Figure 3-2 Example Directory To use this example: 1. Open a project from the BSP installation folder (default as C: \\Nuvoton) using the follwing path: \\Mini58SeriesBSP_CMSIS_v3.00.000\\SampleCode\\StdDriver\\GPIO_LED\\KEIL 2. Execute “GPIO_LED.uvproj”

July 08, 2015 Page 11 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Enter compile mode interface 3. Compiler 4. Download the program code to Flash 5. Enter / Exit Debug mode

July 08, 2015 Page 12 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Enter Debug mode interface 6. Execute the program 7. The I/O LED on the NuTiny-EVB-Mini58 board will be toggled on.

July 08, 2015 Page 13 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL

4 HOW TO START NUTINY -SDK-MINI58 ON THE IAR EMBEDDED

Downloading and Installing IAR Embedded Workbench Software 4.1 Please connect to IAR company website ( http://www.iar.com) to download the IAR Embedded Workbench and install the EWARM. Downloading and Installing Nuvoton Nu-Link Driver 4.2 Please connect to Nuvoton NuMicro ® website (http://www.nuvoton.com/NuMicro) to download the “NuMicro® IAR EWARM Driver ” file. Please refer to section 6.2 for the detailed download f low. After the Nu -Link driver is downloaded, please unzip the file and execute the “ Nu- Link_IAR_Driver.exe” to install the driver. Hardware Setup 4.3 The hardware setup is shown as Figure 4-1. Figure 4-1 NuTiny-SDK-Mini58 Hardware Setup Example Program 4.4 This example demonstrates the ease of downloading and debugging an application on a NuTiny- SDK-Mini58 board. It can be found on Figure 4-2 list directory and do wnloaded from Nuvoton NuMicro® website. The example file can be found in the directory list shown in Figure 4-2.

July 08, 2015 Page 14 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Directory Figure 4-2 Example Directory To use this example: 1. Open a project from the BSP installation folder (default as C: \\Nuvoton) using the follwing path: \\Mini58SeriesBSP_CMSIS_v3.00.000\\SampleCode\\StdDriver\\GPIO_LED\\IAR 2. Execute “GPIO_LED.eww”

July 08, 2015 Page 15 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Enter compile mode interface 3. Compile and make 4. Download the program code to Flash and Enter Debug mode

July 08, 2015 Page 16 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Enter Debug mode interface 5. Execute the program 6. The I/O LED on the NuTiny-EVB-Mini58 board will be toggled on.

July 08, 2015 Page 17 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL

5 NUTINY-EVB-MINI58 SCHEMATIC

Nu-Link-Me Schematic 5.1 TICEDAT N12 L3FERRITE BEAD 12M Oscillators ISPLED RED ICELED VCC GREEN 12MHz Title Size Document Number Rev Date: Sheet of 1 3.0 Nu-Link-Me 1 10Monday , February 09, 2015 TICECLK ICE_AVDD ADAVSS RTDA1 100K VCC JP2 NC 1 2 3 4 5 6 7 8 9 10 1uF/16V ICEDAT ICE_RST 10uF/10V VCC 3.3V VCC IDLE1 RED ICECLK RTCK1 100K VCC_connect mini USB 5pin GND 5 NC 4 DP 3 DM

2 VCC

NUC_RST# ICE_USB 1 2 D1 SS24A RRSET1 100K RXD ICERST TICERST GND RESET power switch 20p 10K ICE_CLK ICE_RST ICE_DAT ICE_TX ICE_TX ICE CONNECT IF VCC ICP1 YELLOW DEBUG TXD CP1 10uF/10V 20p ICERST ICE_RX 12M_I 0.1u 12M_O ICE_RX VCC_connectVCC_connect DM NUC12SRE3DE PA0/ADC0 44PA1/ADC1 45PA2/ADC2 46PA3/ADC3 47PA4/ADC4 48INT0/PB14 CPO1/PB13 CPO0/PB12 VBUS VDD33 PB0/RX0 PB1/TX0 PB2/RTS0 PB3/CTS0 PC2/SDI00 PC1/SPCLK0 PC0/SS00 PC11/SDO10 33PC10/SDI10 34PC9/SPCLK1 35PC8/SS10 36PA15/PWM3 37PA14/PWM2 38PA13/PWM1 X32I X32O I2C1SCL/PA11 I2C0SDA/PA8 I2C1SDA/PA10 I2C0SCL/PA9 RX1/PB4 TX1/PB5 RTS1/PB6 CTS1/PB7 PC3/SDO00 AVSS ICE_CLK ICE_DAT PA12/PWM0 LDO VSS

16 VDD

57XT1_Out 58XT1_In 59/RESET 60VSS1 61VDD1 62PVSS 63STADC/TM0/PB8 PE5 PB11/TM3 PB10/SS01/TM2 PB9/SS11/TM1 ICECLK DP VCOM_pin Tiny _TX Tiny _RXICE_RX ICE_TX ICECLK JP3 NC DM DP USBVBUS RTDA20 FERRITE BEAD 12M_I PVSS ICE_AVDD VCC NUC_RST# 12M_O RP1 8P4R-330 1 2 3 4 5 6 7 8 1 2 PD1 SS24A ISPLED RED GREEN VCC ICELED USBVBUS VBUS USB_D+ USB_D- ICERST ADAVSS VCC ICE_CLK ICE_DAT USBVBUS N13 VCC ICEDAT ICEDAT JPR1 1&2 (0 ohm) 3UP1 AMS1117_3.3v IN GND OUT OUT 3.3V BUSY1 GREEN VCOM_pin ICE_Status CB1 0.1u L2FERRITE BEAD VCOM switch ICE1 RED R3 33 USB_D- USB_D+

July 08, 2015 Page 18 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL SDK Circuit Schematic 5.2 J2 NC J4 NC Off-page Connector 10uF/10V C10 10uF/10V C11 0.1u 0.1u GND FERRITE BEAD FERRITE BEAD VDD VDD Crystal Title Size Document Number Rev Date: Sheet of 2 1.0 SDK Circuit 2 10Monday , February 09, 2015 AVDD TICERST AVDD ADAVSS ADAVSS D12MI TICERST D12MO D12MI D12MO 10K C14 10uF/10V SW1 PUSH BOTTOM (B) GPIO1 RED LED N2 R9 1K VDD N112 POWER1GREEN R10 VDD ADAVSS AVDDR11 0 Power VDD VDD LEDLED LED R12 0 20p C13 20p 12MHz D12MO D12MI Reset P[1:48]P[1:48] TICERST

July 08, 2015 Page 19 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL NuTiny-SDK-MINI58 Schematic 5.3 TICEDAT C15 1uF/10V Tiny _TX Tiny _RX P36 P35 P29 TICECLK P27 P26 P28 P25 P32 P31 P33 P34 P30 TICEDAT Title Size Document Number Rev Date: Sheet of <Doc> 1.0 NuTiny-SDK-MINI58 3 10Monday , February 09, 2015 TICEDAT MINI58LDE 13NC 14P3.6/CMP0_O/CLKO/TM1_EXT 15P5.1/XT1_OUT/I2C1_SCL/UART0_RXD 16P5.0/XT1_IN/I2C1_SDA/UART0_TXD 17VSS 18LDO_CAP 19P5.5 20P5.2/INT1 21NC 22P2.2/PWM0/I2C1_SCL 23P2.3/PWM1/I2C1_SDA 24P2.4/UART1_RXD/PWM2 25P2.5/UART1_TXD/PWM3 26P2.6/PWM4/CMP1_O 27NC 28NC 29P4.6/ICE_CLK/UART1_RXD 30P4.7/ICE_DAT/UART1_TXD 31NC 32P0.7/SPI_CLK/PWM0 33P0.6/SPI_MISO/PWM1 34P0.5/SPI_MOSI/PWM4 35P0.4/SPI_SS/PWM5 36NC GND TICECLK Tiny _TX VDD VDD Tiny _RX VDD TICERST TICEDAT JP4 1 2 3 4 5 6 7 8 9 10 TICECLK Debug Interface & Off Page P2LED P5ADAVSS P12 P10 P3TICERST P11 Tiny _TX Test Pin Tiny _RX P20 P17 P16 D12MI P21 P19 P18 LDO P23 P22 P14 CLKO P13 P15 D12MO P24 VCC_connect LDO TP2 NC TP1 NC CLKO LDO Power Capacitance P39 P40 P38 P37 P42VDD P41 P47 P48 P46Tiny _TX P45Tiny _RX P43AVDD P44 Off-page Connector AVDD D12MI TICERST D12MI AVDD ADAVSS ADAVSS D12MO LED TICERST D12MO P[1:48]P[1:48] LED TICECLK

July 08, 2015 Page 20 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL GPIO for 48 pin Schematic 5.4 Title Size Document Number Rev Date: Sheet of <Doc> 1.0 GPIO for 48 pin 4 10Monday , February 09, 2015 P28 P32 P30 P26 P11 P35 P33 P12 P10 P4 P15 P13 P34 P36 Off-page Connector P[1:48] P[1:48] P39 P43 P41 P45 P37 P47 P16 P14 P46 P42 P38 P44 P48 P40 JP5 NC 1 2 3 4 5 6 7 8 9 10 11 12 P19 P21 P17 P23 JP6 NC 1 2 3 4 5 6 7 8 9 10 11 12 JP8 NC 1 2 3 4 5 6 7 8 9 10 11 12 P22 P18 P24 P20 JP7 NC 1 2 3 4 5 6 7 8 9 10 11 12 P25 P29 P27 P31

July 08, 2015 Page 21 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL

6 DOWNLOADING NUMICRO® RELATED FILES FROM NUVOTON WEBSITE

Downloading NuMicro® Keil μVision® IDE Driver 6.1 Step1 Visit the Nuvoton NuMicro® website: http://www.nuvoton.com/NuMicro. Step2 2-1. Move to “Support” 2-2. Click here to enter Tool & Software

July 08, 2015 Page 22 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Step3 Step4 Step5 Download the NuMicro® Keil μVision® IDE driver. Click here to download the file. Click here to enter Software download page

July 08, 2015 Page 23 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Downloading NuMicro® IAR EWARM Driver 6.2 Step1 Visit the Nuvoton NuMicro® website: http://www.nuvoton.com/NuMicro. Step2 2-1. Move to “Support” 2-2. Click here to enter Tool & Software

July 08, 2015 Page 24 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Step3 Step4 Step5 Download the NuMicro® IAR EWARM driver. Click here to download the file. Click here to enter Software download page

July 08, 2015 Page 25 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Downloading NuMicro® Mini58 Series BSP Software Library 6.3 Step Visit the Nuvoton NuMicro® website: http://www.nuvoton.com/NuMicro. Step 2-1. Move to “Support” 2-2. Click here to enter Tool & Software

July 08, 2015 Page 26 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL Step Step Download the NuMicro® Mini58 Series CMSIS BSP. Click here to enter Software download page

July 08, 2015 Page 27 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL

7 REVISION HISTORY

July 08, 2015 Page 28 of 28 Rev 1.00 NUTINY-SDK-MINI58 USER MANUAL 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”. Insecure usage include s, but is not limited to: equipment for surgical implementation, atomic energy control instruments, airplane or spaceship instruments, the control or operation of dynamic, brake or safety systems designed for vehicular use, traffic signal instruments, all types of safety devices, and other applications intended to support or sustain life. All Insecure Usage shall be made at customer’s risk, and in the event that third parties lay claims to Nuvoton as a result of customer’s Insecure Usage, customer shall i ndemnify the damages and liabilities thus incurred by Nuvoton.