Nuvoton NuMicro 8051 Series Manuals

4 pdf manual(s) Nuvoton NuMicro 8051 Series for free download (Document Types: Operation & user’s manual)

Document Preview & Text Transcription

8051 ISP Programmer Nuvoton 8051 ISP Programmer User Manual Revision 5.02, 2010/11/15 ©2010 Nuvoton Technology Corporation. All Rights Reserved < Revision 5.02 > 1 8051 ISP Programmer Contents Revision History .......................................................................................................3 1 Introduction .........................................................................................................4 2 Hardware.............................................................................................................5 2.1 Type-1 Connection (No I/O Pins Used for Booting from LDROM) .................................................6 2.2 Type-2 Connection (P2.6 & P2.7 Used for Booting from LDROM) ................................................7 2.3 Type-3 Connection (P4.3 Used for Booting from LDROM) ............................................................8 2.4 Type-4 Connection (P3.6 & P3.7 Used for Booting from LDROM) ................................................9 2.5 Type-5 Connection (P4.0 Used for Booting from LDROM) ..........................................................10 2.6 Type-6 Connection (P4.7 Used for Booting from LDROM) ..........................................................11 2.7 Requirement on the XTAL Frequency..........................................................................................12 3 Software............................................................................................................13 3.1 Install the Driver ...........................................................................................................................13 3.2 Install the Application Program ....................................................................................................13 3.2.1 Main GUI for the Application Program ................................................................................................13 3.2.2 GUI for ‘CONFIG Setting’....................................................................................................................14 3.2.3 GUI for ‘Programmer Information’.......................................................................................................15 3.3 Auto Synchronization of APROM/DataFlash Buffer .....................................................................16 4 Operation Modes...............................................................................................17 4.1 On-line Mode................................................................................................................................17 4.2 Download Programmer Mode ......................................................................................................17 4.3 Off-line Mode................................................................................................................................18 5 Reset Control ....................................................................................................19 5.1 With Reset Control .......................................................................................................................20 5.2 Without Reset Control ..................................................................................................................20 6 Notes for the ISP Function ................................................................................21 6.1 Requirement on P3.1 ...................................................................................................................21 6.2 About the ISP Code .....................................................................................................................21 6.3 Compared with the ‘ICP’ ..............................................................................................................22 ©2010 Nuvoton Technology Corporation. All Rights Reserved < Revision 5.02 > 2 8051 ISP Programmer Revision History Revision Description Date v1.00 The first formal released version. 2009/07/08 v2.00 (1) Re-organize the function buttons on the GUI. The function of “Auto” is combined with “Update 8051”. (2) The data in Code Buffer are refreshed when the button “Update 8051” or “Verify 8051” is clicked. 2009/09/03 v2.01 (1) Update the picture of the ISP Programmer. (Section 1) (2) Change the display of part numbers W78E051D, W78E052D and W78E054D to W78E(I)051D, W78E(I)052D and W78E(I)054D, respectively. (3) Fix a minor bug in Nuvoton standard ISP code. (The version is changed to v0201.) 2009/09/22 v3.00 Add new parts: W925EP01, N78E366A, N78E055A, N78E059A and N78E517A 2010/02/10 v4.00 Update the PC-site AP version to v4.00. 2010/04/01 v4.01 (1) Fix a minor bug in Nuvoton standard ISP code for W925EP01, N78E366A, N78E055A, N78E059A and N78E517A. (The version is updated to v3.12.) (2) Update the PC-site AP version to v4.01. 2010/06/15 v5.00 (1) Improve data security of the Nuvoton standard ISP code for N78E366A, N78E055A, N78E059A and N78E517A. (The version is updated to v3.13.) (2) Update the connection diagrams of Type-1~6. (Section 2.1~2.6) (3) Add new sections. (Section 2.7, Section 6.2 and Section 6.3) (4) Update the PC-site AP to v5.00. (The GUI display for "CONFIG Setting" becomes more user-friendly.) 2010/08/13 v5.02 (1) Fix the HEX-to-BIN conversion error when the hex input file has a binary code size more than 64K. (The application program is updated to v5.02.) (2) Modify all the ISP codes to prevent from hanging in LDROM during powered on in an RS-485 application. (The version is updated to v3.20.) 2010/11/15 ©2010 Nuvoton Technology Corporation. All Rights Reserved < Revision 5.02 > 3 8051 ISP Programmer 1 Introduction ISP is the acronym of In-System Programming, which makes it possible that the user can update the MCU’s program memory under the software control without removing the mounted MCU chip from the actual end product. The USB-stick-like tool “8051 ISP Programmer”, as shown in the following picture, is used to perform the ISP function when the MCU’s LDROM is pre-programmed with the Nuvoton Standard ISP Code and CONFIG bits are properly configured. In addition, since this tool can save the programming data downloaded from the host, it is able to perform the off-line operation. This feature is especially useful in the field without a host PC. Note: The ISP function can work only when the ISP code has resided in MCU’s LDROM. To let users easily use the ISP function, some of the 8051 MCU products have the “Nuvoton Standard ISP Code” pre-programmed in LDROM and CONFIG bits properly configured before shipping. Please contact Nuvoton for detailed product information. (The “Nuvoton Standard ISP Code” is also included in the folder [(3) Nuvoton Standard ISP Code]. The user may program it by himself using a universal programmer.) Picture of the “8051 ISP Programmer” The ISP Interface PL: Pull-low control. Some 8051 MCU parts need its special I/O pins to be tied to ground to boot from LDROM for ISP operation. Using pull-low control can release these I/O pins for their normal function. In other words, these pins needn’t be tied to ground in the target system but pulled low by the ISP Programmer for ISP operation. RST: Reset control to the 8051 MCU. The ISP Programmer will send reset signal to control the 8051 MCU for ISP operation. VCC: Power supply from the target system. In off-line operation, the Programmer is powered by the target system. DTA: Serial data to/from the 8051 MCU. (Single-wire Communication Interface) GND: Ground. ©2010 Nuvoton Technology Corporation. All Rights Reserved < Revision 5.02 > 4

Document Preview & Text Transcription

NuTiny-ML51EB Jan 29, 2019 Page 1 of 17 Rev 1.00 NUTINY-ML51EB USER MANUAL 1T 8051 8-bit Microcontroller NuTiny-ML51EB User Manual NuMicro® 8051 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. www.nuvoton.com NuTiny-ML51EB Jan 29, 2019 Page 2 of 17 Rev 1.00 NUTINY-ML51EB USER MANUAL Table of Contents 1 OVERVIEW ......................................................................................... 3 2 NUTINY-ML51EB INTRODUCTION ............................................................ 4 Virtual COM Port Switch Description ............................................................... 4 2.1 NuTiny-ML51EB Power Setting and Connector .................................................. 4 2.2 2.2.1 Power Setting.................................................................................................... 4 2.2.2 Debug Connector ............................................................................................... 5 2.2.3 ICE USB Connector ............................................................................................ 5 2.2.4 Extended Connector ........................................................................................... 5 2.2.5 Reset Button ..................................................................................................... 5 2.2.6 Power Connector ............................................................................................... 5 2.2.7 Virtual COM Port Function Switch ........................................................................... 5 Pin Assignment for Extended Connector .......................................................... 6 2.3 3 HOW TO START NUTINY-ML51EB ON THE KEIL .......................................... 8 Downloading and Installing Keil C-51 μVision® IDE Software .................................. 8 3.1 Downloading and Installing Nuvoton Nu-Link Driver ............................................. 8 3.2 Hardware Setup ........................................................................................ 8 3.3 Example Program ...................................................................................... 8 3.4 4 NUTINY-ML51EB SCHEMATIC ............................................................... 11 Nu-Link-Me Schematic ............................................................................... 11 4.1 NuTiny-ML51EB Schematic ......................................................................... 12 4.2 NuTiny-ML51EB Connector ......................................................................... 13 4.3 5 DOWNLOAD RELATED FILES FROM NUVOTON WEBSITE ........................... 14 Downloading Nuvoton Keil C-51 μVision® IDE Driver ........................................... 14 5.1 Downloading Nuvoton 8bit 8051 MCUs ML51 Series Sample Code ......................... 15 5.2 6 REVISION HISTORY ............................................................................ 16 NuTiny-ML51EB Jan 29, 2019 Page 3 of 17 Rev 1.00 NUTINY-ML51EB USER MANUAL 1 OVERVIEW NuTiny-ML51EB is the specific development tool for 8-bit high performance 1T 8051-based microcontroller ML51 16K Flash size series. User can use NuTiny-ML51EB to develop and verify the application program easily. The ML51 runs up to 24 MHz at a wide voltage range from 1.8V to 5.5V, and contains up to 64/32/16/8 Kbytes Flash called APROM for programming code. The ML51 Flash supports In- Application-Programming (IAP) function, which enables on-chip firmware updates. Partial Flash can be optionally configured as Data Flash programmed by IAP and read by IAP or MOVC instruction. The ML51 includes an additional configurable up to 4/3/2/1 Kbytes Flash area called LDROM, in which the Boot Code normally resides for carrying out the In-System-Programming (ISP). To facilitate mass production programming and verification, the Flash is allowed to be programmed and read electronically by parallel Writer/Programmer or In-Circuit-Programming (ICP) with Nu-Link. Once programmed and verified, the programmed code can be protected by the Flash lock mechanism for not being read out by any external programming tool. The ML51 provides rich peripherals including 256 bytes of SRAM, 4/2/1 Kbytes of auxiliary RAM (XRAM), up to 43 general purpose I/O, two 16-bit Timers/Counters 0/1, one 16-bit Timer2 with three-channel input capture module, one Watchdog Timer (WDT), one Self Wake-up Timer (WKT), one 16-bit auto-reload Timer3 for general purpose or baud rate generator, two UARTs with frame error detection and automatic address recognition, two ISO7816 Smartcard interface, two SPI, two I2C, 12 enhanced PWM output channels with dead zone control, two analog comparators, eight-channel shared pin interrupt for all I/O ports, and one 12-bit ADC at 500 ksps. There are a total of 30 sources with 4-level-priority interrupts capability. The ML51 is equipped with four clock sources and supports on-the-fly clock switching via software control. The four clock sources include two sets of external crystal inputs (HXT, LXT), 38.4 kHz internal oscillator, and one 24 MHz internal high-precision ±2% oscillator. The ML51 provides additional power monitoring detection such as power-on reset and 7-level brown-out detection, which stabilizes the power-on/off sequence for a high reliability system design. Through the high performance of 1T 8051 core, low power performance of ML51 and rich well- designed peripherals, the ML51 benefits for low-power, battery powered devices, general purpose, home appliances, or motor control system.

Document Preview & Text Transcription

NuMaker-ML56SD Mar. 08, 2021 Page 1 of 46 Rev 1.01 NUMAKER-ML56SD USER MANUAL Maker Nu mbed NUC472 User Manual 1T 8051 8-bit Microcontroller NuMaker-ML56SD User Manual NuMicro® 8051 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. www.nuvoton.com NuMaker-ML56SD Mar. 08, 2021 Page 2 of 46 Rev 1.01 NUMAKER-ML56SD USER MANUAL Maker Nu-mbed NUC472 User Manual Table of Contents 1 Overview .................................................................................... 6 2 Features .................................................................................... 7 3 Hardware Configuration .................................................................. 8 Front View ...................................................................................... 8 Rear View ...................................................................................... 9 Extension Connectors .......................................................................10 3.3.1 Pin Assignment for Extension Connectors...................................................... 10 3.3.2 NuMaker-TNLCDSub_ML56SD Compatible Extension Connectors ....................... 14 3.3.3 Arduino UNO Compatible Extension Connectors ............................................. 16 Power Supply Configuration ...............................................................18 3.4.1 VIN Power Source .................................................................................. 18 3.4.2 5 V Power Sources ................................................................................. 18 3.4.3 3.3 V Power Sources ............................................................................... 19 3.4.4 1.8 V Power Sources ............................................................................... 19 3.4.5 Power Connectors .................................................................................. 19 3.4.6 USB Connectors .................................................................................... 20 3.4.7 Power Switches ..................................................................................... 20 3.4.8 Power Supply Models .............................................................................. 20 External Reference Voltage Connector ..................................................23 Ammeter Connector .........................................................................23 Push Buttons .................................................................................24 LEDs ...........................................................................................24 Touch Key .....................................................................................24 LCD ............................................................................................25 Nu-Link2-Me ..................................................................................28 3.11.1 VCOM Switches ..................................................................................... 28 3.11.2 Status LEDs ......................................................................................... 28 4 Quick Start ............................................................................... 29 Toolchains Supporting ......................................................................29 Nuvoton Nu-Link Driver Installation .......................................................29 BSP Firmware Download ...................................................................31 Hardware Setup ..............................................................................31 Find the Example Project ...................................................................33 NuMaker-ML56SD Mar. 08, 2021 Page 3 of 46 Rev 1.01 NUMAKER-ML56SD USER MANUAL Maker Nu mbed NUC472 User Manual Execute the Project under Toolchains ....................................................33 4.6.1 Keil C51 .............................................................................................. 33 4.6.2 IAR EW8051 ......................................................................................... 37 5 NuMaker-ML56SD Schematics ....................................................... 39 Nu-Link2-Me ..................................................................................39 ML56 platform ................................................................................40 Extension Connector ........................................................................41 TK and LCD Cap .............................................................................42 PCB Placement ..............................................................................43 6 NuMaker-TNLCDSub_ML56SD Schematics ....................................... 44 LCD Connector ...............................................................................44 7 REVISION HISTORY ................................................................... 45

Document Preview & Text Transcription

NuMaker-ML51SD Mar. 08, 2021 Page 1 of 38 Rev 1.01 NUMAKER-ML51SD1AE USER MANUAL Maker Nu mbed NUC472 User Manual 1T 8051 8-bit Microcontroller NuMaker-ML51SD User Manual NuMicro® 8051 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. www.nuvoton.com NuMaker-ML51SD Mar. 08, 2021 Page 2 of 38 Rev 1.01 NUMAKER-ML51SD1AE USER MANUAL Maker Nu-mbed NUC472 User Manual Table of Contents 1 Overview ............................................................................................. 6 2 Features ............................................................................................. 7 3 Hardware Configuration ........................................................................... 8 Front View ............................................................................................... 8 Rear View ............................................................................................... 9 Extension Connectors ................................................................................ 10 3.3.1 Pin Assignment for Extension Connectors................................................................ 10 3.3.2 Arduino UNO Compatible Extension Connectors ....................................................... 13 Power Supply Configuration ........................................................................ 15 3.4.1 VIN Power Source ............................................................................................ 15 3.4.2 5 V Power Sources ........................................................................................... 15 3.4.3 3.3 V Power Sources ......................................................................................... 16 3.4.4 1.8 V Power Sources ......................................................................................... 16 3.4.5 Power Connectors ............................................................................................ 16 3.4.6 USB Connectors .............................................................................................. 17 3.4.7 Power Switches ............................................................................................... 17 3.4.8 Power Supply Models ........................................................................................ 17 External Reference Voltage Connector ........................................................... 20 Ammeter Connector .................................................................................. 20 Push Buttons .......................................................................................... 21 LEDs .................................................................................................... 21 Nu-Link2-Me ........................................................................................... 21 3.9.1 VCOM Switches ............................................................................................... 22 3.9.2 Status LEDs ................................................................................................... 22 4 Quick Start ........................................................................................ 23 Toolchains Supporting ............................................................................... 23 Nuvoton Nu-Link Driver Installation ................................................................ 23 BSP Firmware Download ............................................................................ 25 Hardware Setup ....................................................................................... 25 Find the Example Project ............................................................................ 27 Execute the Project under Toolchains ............................................................. 27 4.6.1 Keil C51 ........................................................................................................ 27 4.6.2 IAR EW8051 ................................................................................................... 31 NuMaker-ML51SD Mar. 08, 2021 Page 3 of 38 Rev 1.01 NUMAKER-ML51SD1AE USER MANUAL Maker Nu mbed NUC472 User Manual 5 NuMaker-ML51SD Schematics ................................................................ 33 Nu-Link2-Me ........................................................................................... 33 ML51 platform ......................................................................................... 34 Extension Connector ................................................................................. 35 PCB Placement ....................................................................................... 36 6 REVISION HISTORY ............................................................................ 37