所需积分/C币:16 2018-07-03 14:49:34 3.13MB PDF
收藏 收藏

AVR-ISP-MK2 串列線使用方式 及 連接線說書 及軟體操作
OLIMEXO 2016 AVR-ISP-MK2 user's manual The product is based on Dean Camera's LUFA USB stack. More info at: http:/www.fourwalledcubicle.com The luFa library is currently released under the mit license, included below opyright(C) Dean Camera, 2016 dean [at] fourwalledcubicle [dot] com www.lufa-lib.org Permission to use, copy, modify, and distribute this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that the copyright notice and this permission notice and warranty disclaimer appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission The author disclaims all warranties with regard to this software including all implied warranties of merchantability and fitness. In no event shall the author be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits whether in an action of contract, negligence or other tortuous action, arising out of or in connection with the use or performance of this software Page 3 of 29 OLIMEXO 2016 AVR-ISP-MK2 user's manual Table of contents DISCLAIMER.m....... CHAPTER10VERⅤIEW。0 ●·●●·●···香··········即●●●●·········息●●●···L 1Introduction to the chapter. 1.1 Features. .2 Target market and purpose of the board.ea...eeeseooes ●···············自·自······················· 1.3Documentorganization.,:::11 6 CHAPTER 2 PROGRAMMER DESCRIPTIONm... 2. Introduction to the chapter.o. 击a西 2. 1 Layout(top view)as ·····●●●●····●·4···●····●·●··●●●················●●●··●··········。。···●●········。。··●●·· CHAPTER 2 SETTING UP THE AVR-ISP-MK2 BOARD 8 2. Introduction to the chapter.... 8 2.1 Electrostatic warning 2.2 Requirements. 2.3 Quick setup 889 CHAPTER 4 RECOMMENDED SOFTWARE TOOLS B自e专。看看·自白自非曲。 4. Introduction to the chapter 43 4.1 AVR Studio and atmel studio in windows 13 4.1.1 Driver installlation for avr studio in windows 14 4.2 Arduino, AVRDUDE, 4. 2. 1 Changing firmware for Windows users.aaa 4.2.2 Changing firmware for Linux(AVRDUDEusers 4.2.3 Using Arduino IDE with AVR-ISP-MK2 20 4.2.4 10-pin ICSP to 6-pin ICSP cable. 21 CHAPTER 5 INTERFACES AND HARDWARE 22 5. Introduction to the chapter.e.as.... 22 5.1 Programming interfaces.casassa.. 曲自。看香非e自鲁DBe。e。自。看自告鲁春鲁曲鲁。ad 22 5.1.110-pDin ICSPane 5.1.2 6-pin PDI.ag 5.136- pin TPI.111111111 5.2 Upgrade firmware button. 5.3 Bootloader restore 23 5. 4 Jumpers description.. 24 541 TARGETjumper……4 5.4.2 POWERjumper 24 5.5 LEDs explained. 5.6 USB connector ···································.··s···· ················ 25 CHAPTER G REVISION HISTORY AND SUPPORT 26 6. Introduction to the chapter 6.1 Document revision table 26 6. 2 Useful web links and purchase codes... 6.3 FAQ. 27 6.4 Product support. 29 Page 4 of 29 OLIMEXO 2016 AVR-ISP-MK2 user's manual CHAPTER I OVERVIEW Introduction to the chapter user's guide for the Olimex AVR-ISP-MK2 programmer. As an overview, this chapter gives the Thank you for choosing the avr-ISP-MK2 programmer from Olimex! This document provides scope of this document and lists the programmers features. The document's organization is then detailed 1.1 Features Some of the unit's features are listed below Tested and working with: AVR Studio 4; AVR Studio 5; Atmel Studio 6; Atmel Studio 7 o Tested and working with AVRDUDE and arduino IDe Connects to PC via USB type B connector at 2.0 Full speed o Does not need external power supply as it takes the power supply from USB o Uses Atmel's 2x5 pin ICSP and 2x3 pin PDI and tpI connector layout Works with 5V and 3. 3V targets(selectable) and can supply target with power Programs both flash and EeProm o Supports fuses and lock bit programming o Upgradeable for future device support Supports target voltages from 1.8V to 5.5V 9 2 ribbon Iemale-female cables- 10pin and 6pin each 20 cm(8)long o Adjustable isP programming speed(50Hz to 8MHz SCK frequency) Dimensions of the box:45×30mm~(1.7×1.2) AVR-ISP-MK2 can program tiny AVR and megaavr devices using the isP Interface, tinyAVR devices using the TPI interface, and avr XMega devices using the PDi interface 1.2 Target market and purpose of the board AVR-ISP-MK2 is a ready-to-use programmer that behaves like Atmel AVRISP mkll The board is suitable for programming microcontrollers that, according to their respective datasheets, have isp PDI, or TPI interfaces available for programming The firmware of Atmel AVRISP OLIMEX AVR-ISP-MK2 is based on the LUFA Lightweight USB Framework for AVRs) software project started and maintained by Dean Camera. More info about the initial software and hardware idea can be found here http://www.fourwalledcubicle.com/avrisp.php Page 5 of 29 OLIMEXO 2016 AVR-ISP-MK2 user's manual 1.3 Document organization Each section in this document covers a separate topic, organized as follow Chapter l is an overview of the board usage and features Chapter 2 contains the general board layout Chapter 3 provides a guide for quickly setting up the board Chapter 4 mentions the main software tools used with AVR-ISP-MK2 Chapter 5 is an explanation of the interfaces, the leds and the jumpers position Chapter 6 contains the revision history, useful links and support information Page 6 of 29 OLIMEXO 2016 AVR-ISP-MK2 user' s manual CHAPTER 2 PROGRAMMER DESCRIPTION 2. Introduction to the chapter Here you would get acquainted with the main parts of the board. Note the names used on the board differ from the names used to describe them for the actual names check the avr-isp-mK2 itself 2.1 Layout(top view) FIRMWARE UPGRADE BUTTON TPI USB-B POWERING ICSP 10-pin PD OF TARGET JUMPERS The programmer comes with two cables(10-pin one and 6-pin one) with female-female plastic connectors. The 10-pin cable fits only the ICSP10 connector. The 6-pin cable fits both the pDi and the tpi connectors it can be used for either of these interfaces Note that there is no 6-pin ISP connector provided; there is only 10-pin ISP connector available Page 7 of 29 OLIMEXO 2016 AVR-ISP-MK2 user' s manual CHAPTER 2 SETTING UP THE AVR-ISP-MK2 BOARD 2. Introduction to the chapter This section helps you set up the avR-IsP-MK2 development board for the first time. Please consider first the electrostatic warning to avoid damaging the board, then discover the hardware and software required to operate the board The procedure to power up the board is given, and a description of the default board behavior is detailed 2.1 Electrostatic warning The avr-iSP-MK2 comes in a plastic cover but make sure boards and devices interfacing with the programmer are properly grounded 2.2 Requirements In order to set up the AvR-ISP-MK2 optimally, you might need to update your set of hardware and/or software tools the major components needed are listed below Required hardware tools USB type a to USB type B cable Atmel board or chip that can be programmed via ISP, TPl, or PDi interface. The list of supported devices is similar to the official avrisp mkii list that can be found in the official atmel web-site http://www.atmel.com/tools/avrispmkii.aspx?tab=devices Personal computer with uSB port Recommended operating systems Windows z or windows 8 or windows 10 any frequently updated Linux distribution any Mac oS/OSX Recommended software tools Atmel studio 6 or atmel studio 7 AVRdUdE 6.0.1 or newer Arduino ide Depending on the connectors available on your target board you might need an adapter called avr ICSP since AvR-ISP-MK2 doesn' t provide 6-pin ISP connector. This adapter is purchased separately. Alternatively, you can use jumper wires to establish the proper connections (you may find more details on the hardware connections at the end of chapter 4) Page 8 of 29 OLIMEXO 2016 AVR-ISP-MK2 user' s manual 2.3 Quick setup The purpose of this sub-chapter is to provide instructions on how to quickly set up AVR-ISP-MK2 under windows The quick setup had been tested under Windows 10 x64 and under windows 7 X64. The quick setup had been tested with Atmel Studio 7, AvRDUDE v62 compiled for Windows, and arduino IDe 1.6.7(which seems to have AvRdUdE v60.1) This quick setup is not suitable for AVR Studio 4. 19(since the drivers for AvR Studio and the drivers for atmel studio are incompatible). The installation instructions for AVR-ISP-MK2 and avr Studio 4.19 can be found further down in this document The steps below describe the typical way to use avR-ISP-MK2 under Windows Step 1: Download and extract the drivers for AvR-ISP-MK2. These can be downloaded from the following location https://www.olimex.com/products/aVr/programmers/avr-isp-mk2/rEsourCes/Driver-mk2- AS-6-7-W10zip Step 2: Plug AVR-ISP-MK2 to your computer via a suitable USB cable Step 3: Open"Windows Device Manager"and find the entry for AVR-ISP-MK2. Right-click over it and select"Update Driver Software?". a dialog would pop-up+ select the bottom option"Browse my computer for driver software. In the next window click"Browse "and point to the folder where you extracted the drivers( Step 1) Step 4: Open"Windows Device Manager"again. The programmer should be listed as"AVRISP mkII"under the"Atmel USB Devices"group. Confirm that the entry for AVR-ISP-MK2 looks like the e picture below Device manager File Action View Hell AyRSP mk‖ Properties 中中面|圓|g General Unver Details Events Y Atmel USB Devices AyRISP mall AVRISP mk‖ Audio inputs and outpy >L Computer Driver provider: libusb-Nin 32 Disk drives river Date 1/272015 e Display adapters Driver version: 126.0 rr Human Interface Device Digital signer Atmel nory >T IDE ATA/ATAPI controlle Further down in this sub-chapter you can find some optional steps that would help you use the newly installed AVR-ISP-MK2 with several software tools for Windows- Atmel Studio 7; AVRDUDE 6.2: Arduino ide 1.6.7 Page 9 of 29 OLIMEXO 2016 AVR-ISP-MK2 user' s manual (Optional)Step 5: Visit Atmel's web-site and download the latest Atmel Studio. You would need to make a free registration in case you don t have one already. by the time of writing the web page to download atmel studio is this one http://www.atmel.com/microsite/aTmel-studio/ Install Atmel Studio. Inside the studio olimex AVR-ISP-MK2 is recognized as"AVRiSP mkIl Connect your target to the programmer, make sure that sufficient power supply is provided, and test the connection from“ Tools”→“ Device programming”. Select the proper target from the drop down menu and finally click"Apply". A successful connection is shown below AVRISP mkll (000200212345)-Device Programming Too Device Interface Device signature Target voltage AVRISP mkI Ameca 6A·sPˇ[Apl x1E9403 Read 3.3V Read Intertace settings FUsE N value VOCDEN Tool intormation TAGEN Device information SPIES Oscillator calibration Fuse Register Value HIGH Memories L U- FuseS √ auto read Copy to clipboard Lock bits v Verify after pragrammingProgram Verify ead Starting operation read registers Reading register HIGH. OK Reading register LOW○K Read registers. OK Read registersuoK Close At this point you have AvR-ISP-MK2 and atmel Studio 7 successfully working together. If you also wish to use AVrdude continue with the optional steps below (Optional) Step 6. Either compile from sources or download a prebuilt release of AVRDUDE. You can find archives with stable releases at the link below http:/download.savannahgnuorg/releases/avrdude/ For the windows test listed below we used avrdude-62-mingw32 zip that was uploaded on 20 of November 2015. We also used our board Mod-I0 that has an ATmega16a Page 10 of 29

试读 29P AVR-ISP-MK2
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    关注 私信 TA的资源
    AVR-ISP-MK2 16积分/C币 立即下载


    16积分/C币 立即下载 >