Home
USBTinyMkII User manual
Contents
1. 8bit avr devices the PDI header for the newer XMEGA AVRs and the TPI header for the 6 pin TINY AVRs Using USBTiny MkII with Studio The USBTiny MkII is programmed to emulate a standard avrisp mkii To connect to the programmer plug it into your pc USB port and start up Studio 4 File Project Build view Tools Debug Help OBda 424579 BRIN AOR EET Oo Ol i Trace Disabled cc Ty ae Ee te cits y RUTH Loaded plugin STESOO E Build message EH Find in Files Dg breakpoints and Trac Click on the connect icon to open up the programmer selection dialog and select AVRISP MkII from the menu and press the connect button Select AYR Programmer Baud rate bae rate changes are a active immediately Tip To aubo connmect to the programmer used last time piese the Programmer button on the toolbar Mote that a tool cannot be used for progiamming as long as itis connected ir a a debugging session In that case select Stop E ebugging first iscoonecied Heda Once connected the device selection menu will pop up Connect the programmer cable to the appropriate header to flash the target device depending on target device selected Be sure your target device is 5v tolerant if you select the USB powered mode CAUTION IN PDI MODE ONLY USE TARGET POWER AYRISP mkII in ISP mode with ATmegalze Using USBTiny MkII with Avrdude The USBTiny MkII uses libusb
2. to communicate with avrdude To download a program to your target device use the following line adjusting it for your target chip avrdude c avrisp2 P usb p t26 U flash w main hex where p is the part number t26 is tiny26 t10 is tiny10 m644 is mega644 etc To write the fuses avrdude c avrisp2 P usb p t26 U Ifuse w 0xDD m U hfuse w 0xDF m U efuse w 0x00 m To write to the internal eeprom avrdude c avrisp2 P usb p t26 U eeprom w eeprom eep i To read the contents of the eeprom avrdude c avrisp2 P usb p t26 U eeprom r file txt i Preparing the Firmware The firmware for the USBTiny MkII is entirely open source and can be downloaded from the LUFA project You are encouraged to always use the latest release for updates From the LUFA 100512 update forward the USBTinyMkii has been added to the project as a board define This simplifies the compile procedure requiring only minor changes to the project makefile First copy the LUFA project to your hdd Next make the following changes to the avrisp mkii makefile MCU at90usb162 BOARD USBTINYMkKII F CPU 16000000 The firmware may be compiled with an additional option CDEFS DLIBUSB_DRIVER_COMPAT which enables compatibility with the avrdude software but breaks compatibility with AVRStudio This is due to an incompatibility with the avrdude and AVRStudio drivers and the firmware When compiled without this option the programmer will work with AVRStudio on
3. R Stuff LUFA LUFA100209 Projects A RISP MKII A YRISP hex O el es File Buffer Device Settings Help HE y D em Et 3 FLASH Buffer Information ATSOUSEIGZ Signature Bytes 58 fie Ba lezo Device Boot Ids Do a0 Bootloader Ver LOS Operations Flow Size 12 KB M Erase Range 0x0 0x24F5 Checksum 0123409 T Blank Check Reset Before Loading 462 util bytes O Verify Select EEPROM Program HEY File 4VRISP hex j7 Reset DONE Your programmer should be up to date now Disclaimer Statement No warranty is offered for the USBTiny MkII or it s use or misuse can not be held liable for any damages caused to your USBTiny MkII programmer target device or computer system Having said that will attempt to ensure the highest level of quality and resolve any issue promptly
4. USBTinyMklIl User manual USBTinyMkll Rev 1 1 Copyright Tom_L 2010 All rights reserved Contents 1 Overview 2 Switch Positions 3 Connector Pinouts 4 Using USBTiny MkII with Studio 5 Using USBTiny MkII with Avrdude 6 Preparing the Firmware 7 Firmware Update 8 Disclaimer Statement Overview The USBTInyMkIl is an avr programmer that uses the LUFA firmware to emulate an Atmel AVRISP MkII It supports the programming of the entire 8 bit AVR range via ISP as well as the PDI for the newer XMEGA AVRs and TPI for the 6 pin TINY AVRs Features include upgradeable firmware and switch selectable USB or target supplied power Switch positions NOTE IN PDI MODE ONLY USE TARGET POWER The target chip can be powered from the USB VBUS 5v or from the target board itself When the power select switch is in the position toward the USB plug it will be USB powered and when switched toward the target plugs it is powered by the target board as indicated below The IC2 uses the power from the target device to determine the programming voltage Target power has been tested from 1 8 to 5v In USB mode the target must be 5v tolerant In PDI mode xmega chips are not 5v tolerant Connector Pinouts lt USB Power lt P1 oe Q1 o E USB Tiny 1 vki F al LO Powered m S Bowered O Ca H C5 1 2 12 MISO VTG DATA Voc SCK MOSI N C N C RST GND CLOCK GND ISP6PIN EL The ISP header is used for standard
5. ly Once configured run Make Clean and Make All from the AVRISP MkIl directory and follow the Firmware Update directions below By default after compiling the update file will be in the LUFA Projects AVRISP MkII directory Firmware Update To update the firmware you will need a copy of FLIP from Atmel Flexible In System Programmer or DFU Programmer Device Firmware Update programmer Following is a step by step to get the new firmware uploaded to your target programmer using FLIP To put the USBTinyMkii into DFU programming mode push and hold the HWB button While the HWB button is depressed press the RESET button then release both The green led should go out indicating it is in program mode CT x File Buffer Device Settings Help g y Wa 2 T ae j F A am r a er i 5 ae bat p 47 SOUS61 62 Hon Flow 4 FLASH Buffer Information Signature Bytes 5 Size LARB O fe Erase Pange Gels pos Device Boot ids tnecksum Git fF Glankcheck w l Bootloader ter Reset Before Loading D RA Program HES Files D p verity 4 Reset Burn Communication OFF Click on the chip icon or Device gt Select menu option and select the device from the dropdown menu at90usb162 Load the new hex file from the LOAD hex file icon or from the File gt LOAD HEX file menu Click on the RUN button in the lower left corner FoPC A
Download Pdf Manuals
Related Search
Related Contents
Kenwood DNX 4150 DAB - GPS Navigation User's Manual AS - WC Epson EB-G5650W Actron CP7669 Product Brochure LG Voyager Z525i User's Manual Ksix B8543FU20 mobile phone case bq30z50-R1EVM User Guide Bosch 2609256241 LOHU 2527L - Lohuis Networks :: Home TP-Link TL-WN851ND Declaration of Conformity Copyright © All rights reserved.
Failed to retrieve file