User Manual Product Name: "AVR JTAG ICE Emulator" Product Model: PRG-00025 Product Link: https://techshopbd.com/product-categories/avr-98764/3189/avr-jtag-ice-emulatortechshop-bangladesh Note: This AVR JTAG ICE Emulator is a clone copy and compatible only with AVR Studio version 4.12/4.13/4.17/4.18. Getting Started With AVR JTAGICE Clone Step_1: Before go ahead at first please install the driver software for your "AVR JTAG ICE Emulator". This driver software can be downloaded from the link given bellow. Driver for AVR JTAG ICE Emulator: http://www.wch.cn/downloads/file/5.html a) Extract the CH341SER.zip folder. b) Go to the folder named CH341SER. c) Run the executeable program file named SETUP.EXE and wait until finished. d) Done.
Step_2: Connect "AVR JTAG ICE Emulator" with your computer USB-Port. Go to Start >> Computer (Right Click on Mouse) >> Manage. wait until a new window will be appear on the screen. Insure that the COM-Port generated for your "AVR JTAG ICE Emulator" that is "USB-SERIAL CH340" is between 1 to 4 (like COM1, COM2, COM3 or COM4). If not (like COM5, COM5 or more) then go to Device Manager >> Ports (COM & LPT) >> USB-SERIAL CH340 (Right Click on Mouse) >> Properties >> Port Setting >> Advanced >> COM Port Number.
If your machine show any warning, please simply press YES and OK to Exit. Now unplug your "AVR JTAG ICE Emulator" from your computer usb-port and re-plug it. If you want you can verify it from the Device manager that now it will appear on the COM4 port.
Now it is done. Step_3: Download and install AVR Studio version 4.12/4.13/4.17/4.18 one of them. I am using AVR Studio 4.18. AVR Studio 4.17 = http://ww1.microchip.com/downloads/archive/avrstudio417setup.exe AVR Studio 4.18 = http://ww1.microchip.com/downloads/archive/avrstudio4.18setup.exe Open AVR Studio. (Start >> All Programs >> Atmel AVR Tools >> AVR Studio 4) Unplug your "AVR JTAG ICE Emulator" and re-plug it and observer carefully that, when you insert this device to you computer USB-Port - then the indication LED of the "AVR JTAG ICE Emulator" flashing frequently and after a few seconds it will stable and glow. Now plug-in your "AVR JTAG ICE Emulator" to the USB-Port of your computer and during LED- Flashing time go to AVR Studio >> Tools >> AVR Prog.... If it is too late, you will receive a warning message like No supported board found!. Then you have to re-plug the device and try it again. If you can do it perfectly, then you will receive a window like...
Click the Browse button and from the directory "C:\Program Files (x86)\atmel\avr Tools\JTAGICE" select the Upgrade.ebn file. Click Program button from the Flash and wait until the program is completed. This is the firmware upgradation of the "AVR JTAG ICE Emulator". This is not programmed with the supported MCU. (make sure that the supported Micro-Controller is properly connected with the "AVR JTAG ICE Emulator".) Now you are completely ready. Exit the AVRprog window. Go to AVR Studio >> Tools >> Program AVR >> Connect...
From Platform select "JTAG ICE". From Port select "COM4". (that in your case) Click on Connect... (Then the following window will be appeared.)
Go to Fuses tab and check mark on OCDEN and BOOTRST and select Program. (Please done this carefully, this setting affect your connected MCU. Wrong fuses may damaged your MCU.)
Step_4: To create a new project, open AVR Studio and go to Project >> New Project. Select "AVR GCC" from "Project type". Type your "Project name". Check mark on "Create folder". (optional) Select "Location" for browsing directory, in where you want to save your program. Select "Next". After selecting "Next" button, a new window will be appeared. From "Debug platform" select "JTAG ICE". From "Device" select "ATmega32". (name of the MCU you are using) Select "COM4" from Port. (in which your "AVR JTAG ICE Emulator" is connected) Select "Open platform options next time debug mode is entered" Select Finish.
Write your program here...
From AVR Studio go to Project >> Configuration Options. From "Output File Name" change blink.elf to blink.ihex. (extention.elf to.ihex) From "Frequency" select you MCU-Frequency in hertz (F_CPU). (For 1MHz, type 1000000) Select "OK". From AVR Studio go to Build >> Clean. From AVR Studio go to Build >> Build. If all are ok, then you can see a "Build succeeded with 0 Warnings...". Go to your program folder and open default folder. (C:\Users\FAHIM\Desktop\blink\default) Now you can see a new file named blink.hex. (Desktop\blink\default\blink.hex)
Again go to AVR Studio >> Tools >> Program AVR >> Connect... From Platform select "JTAG ICE". From Port select "COM4". (that in your case) Click on Connect... (Then the following window will be appeared.)
Go to Program tab and select the blink.hex file from your program directory. (not blink.ihex)
If all are ok, then you receive a message like "Programming FLASH.. OK". Step_5: Go to Debug >> Start Debugging.
A new window will be appeared. From the new window named "JTAG ICE", uncheck the option "Wam & break if not found or not in section corresponding to boot reset fuses.". Select OK. The following arrow-mark is indicating that the hardware-debugging is started.
Select "AutoStep (Alt+F5)". Now you can follow the following output...