mikroProg ™ for AVR® mikroProg™ for AVR® is a fast USB programmer. With it’s outstanding performance, simplicity and unique design it is a great tool for programming Atmel® AVR microcontroller family.
TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and for having confidence in MikroElektronika. The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs. Nebojsa Matic General Manager The AVR® and Windows® logos and product names are trademarks of Atmel® Holdings and Microsoft® in the U.S.A. and other countries.
Table of Contents Introduction to mikroProg™ 4 2. Connecting to a PC 9 Key features 5 3. AVRFlash software 10 1. D river installation 6 4. Connecting with a target device 12 step 1 – Start installation 7 5. Connector Pinout 13 step 2 – Accept EULA 7 6.
Introduction to mikroProg™ mikroProg™ for AVR® is a fast USB programmer. It is a great tool for programming Atmel® AVR microcontroller family. Outstanding performance, easy operation, elegant design and low price are it’s top features.
Key features What you see 01 02 01 Flat cable 03 02 USB MINIB connector 04 03 DATA transfer indication LED 05 04 ACTIVE indication LED 06 05 LINK indication LED 06 POWER indication LED Page 5
1. Driver installation L NA IO • • • • • • • • • RE WA FT SO • • • • • • • • • M IKRO ILERS C, M IKR COMP O BA S IC, MI K RO PA SC AL • • • • • • • • • • • • • • • • • • S VER DRI EXAM PLE S CO S PRODUCT DVD R LE PI M AD DI T mikroProg™ requires drivers in order to work. Drivers are located on the Product DVD that you received with the mikroProg™ package: www.mikroe.com www.libstock.
step 1 – Start installation step 2 – Accept EULA 02 01 01 03 In welcome screen click the Next> button 02 Select I accept this EULA option 03 Click the Next> button Page 7
step 3 – Installing the drivers step 4 – Finish installation 04 04 Click the Finish button to end installation process Page 8
2. Connecting to a PC After driver installation is complete, you can connect the programmer with your PC using USB cable provided with the package. Green POWER LED should turn ON, indicating the presence of power supply. Amber-colored LINK LED will turn ON when link between mikroProg™ for AVR® and PC is established. Link can be established only when correct drivers are installed on your PC.
3. AVRFlash software L NA IO RE WA FT SO • • • • • • • • • • • • • • • • • • M IKRO ILERS C, M IKR COMP O BA S IC, MI K RO PA SC AL • • • • • • S VER DRI • • • • www.mikroe.com www.libstock.com PROGRAMME RS A ND BOARDS • • • • • • • • • SSORY ACCE • • • • • • • • • • • • • • • • • • DEB UG GE RS • DVD://download/eng/software/ development-tools/avr/avrprog2/ avrprog2_programmer_v214.
Software installation wizard 01 Start Installation 02 Accept EULA and continue 03 Click Next > button 04 Choose destination folder 05 Installation in progress 06 Finish installation Page 11
4. Connecting with a target device Figure 4-1: IDC10 JTAG connector For connection with a target device mikroProg™ uses IDC10 connector, as shown on Figure 4-1. In order to make proper connection with the target board it is necessary to pay attention to IDC10 connector pinout. Every pin has a different purpose and for easy orientation IDC10 connector is marked with a little knob and incision between pins number 9 and 7, Figure 5-1.
5.
6. Connection schematic example Following example demonstrate connections with one of the most popular supported microcontroller. MCU use MISO, MOSI, SCK and RST lines for programming. In order for microcontroller to work properly, decoupling capacitors must be connected as close as possible to microcontroller’s VCC pins. Whichever microcontroller you decide to use, make sure to connect each pin properly.
RST SCK MISO X1 C1 22pF 8MHz 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 C2 17 22pF 18 19 20 VCC VCC C3 100nF U1 PB0 PB1 PB2 PB3 PB4 PB5 (MOSI) PB6 (MISO) PB7 (SCK) RST VCC GND XTAL2 XTAL1 PD0 PD1 PD2 PD3 PD4 PD5 PD6 ATmega16 MOSI VCC PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 AREF GND AVCC PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 PD7 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 C5 100nF 40 pin C4 100nF Figure 6-1: Connection schematic for 40-pin ATmega16 MCU via 2x5 male header Page 15 40-pin ATmega
Notes: Page 16
Notes: Page 17
Notes: Page 18
DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika.
AVR If you want to learn more about our products, please visit our website at www.mikroe.com If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/esupport If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com mikroProg for AVR Manual ver. 1.