You are on page 1of 7

AVR-JTAG User Manual www.digisoft.com.

pk
ET-AVR JTAG (RS232) V1.0
AVR-JTAG (RS232) V1.0

User’s Guide

DigiSoft’s AVR-JTAG is an Embedded Board designed to download HEX File and debug
program for AVR family of MCUs from Atmel through JTAG Interface. It can only be used with
AVR MCU that has JTAG Interface and the board is fully compatible to AVR Studio.

Specifications
1. AVR Studio® Compatible
2. Supports all AVR Devices that has a JTAG Interface
3. Emulates all Digital and Analog On-chip Functions
4. Break on Change of Program Flow
5. Data and Program Memory Breakpoints
6. Supports Assembler and HLL Source Level Debugging
7. RS-232 Interface to PC for Programming and Control
8. Support Real Time debugging.
9. Be able to upgrade Firmware through Program AVR Studio 4 for using with new MCU
10. Be able to use with Power Supply between 4.5V- 5.5V.
11. Takes power from Target Board.
12. LED for operation status of Power, Active.

Supported Microcontrollers

− ATmega16 , ATmega16L
− ATmega162 , ATmega162L
− ATmega169 , ATmega169L , ATmega169V
− ATmega32 , ATmega32L
− ATmega323 , ATmega323L
− ATmega64 , ATmega64L
− ATmega128 , ATmega128L
− AT90CAN128

Connection between AVR-JTAG and Target AVR Microcontroller


AVR-JTAG User Manual www.digisoft.com.pk

Connection Diagram to the Target Controller

It uses only TCK, TDO, TMS, TDI, VCC and GND for connection. It is not necessary to
connect VTref (Internally it is connected to VCC)

Layout of DS-AVR-JTAG depicting the connectors

Connecting AVR-JTAG Board with DigiSoft’s AVR Project Board


AVR-JTAG User Manual www.digisoft.com.pk

Down Loading Hex File, Modifying Fuse bits and User EPROM through AVR-JTAG

1. Open AVR Studio and it will display Window of Welcome to AVR Studio, click Cancel to
close this window.

2. Select Menu Tools Æ Program Æ AVR Connect… as in the picture.

3. After that it will display window of Select AVR Programmer as in the picture below, select
Platform as JTAG ICE and Port that is connected with DS-AVR-JTAG and then click
Connect…
AVR-JTAG User Manual www.digisoft.com.pk

4. If AVR Studio can connect with DS-JTAG AVR, it will display window of JTAG ICE as in
the picture. Select ATmega16 from Dropdown Box of Device.

5. Type the file name with complete path in Input HEX File or browse through browse button.
and specify name and address of HEX File completely. In blank of Programming Mode, select
as Erase Device Before Programming, it uses to erase data before programming and select as
Verify Device After Programming, it uses to verify data correctly or not after programming
completely.

6. In case of not to adjust any default values of Fuses and LockBits, can press Program button to
program Hex File into MCU instantly. Because default values of Fuses and LockBits is
programmed before, so it are not erased with program. If user want to adjust default values of
Fuses and LockBits, can adjust
AVR-JTAG User Manual www.digisoft.com.pk

7. If there’s not any mistake in programming Hex File into MCU, it will display the message as in
the picture.

8. To adjust default value of Fuses and LockBits, select Fuses and LockBits to setup and program
after as in the picture.
AVR-JTAG User Manual www.digisoft.com.pk

Using DigiSoft-AVR JTAG in Debugging Mode


This mode uses On-Chip Debug circuitry of the processor. Before using this mode make sure that
the OCD and JTAG Fuse of the target controller are enabled.

To debug code running in ATMEGA 16, the user has the option to insert a break point anywhere
in the code, Run the program till the cursor, break, or single step the code. Whenever the
execution halts due to any break condition, AVR studio reads all the required information from
the MCU like Register contents, Data Memory, status of the different peripherals and values of
the program variables. The user has the option to change any of the desired value and continue
the execution of the code. Using the information provided by AVR Studio about the user
program, user can locate the bug if anything going on wrong.

To start debugging, compile the current project (you may have to load it or create it first), and
then select start debugging from debug menu.

For further information and in-depth working og the AVR-JTAG, consult AVR JTAG user guide
from ATMEL.

DS AVR JTAG Layout


AVR-JTAG User Manual www.digisoft.com.pk

AVR JTAG Schematic

Connections of DS-JTAG with different Controllers of AVR Family


Pin
Pin Number on Pin Number on
Number on Signal Pin Number on
Signal Direction ATMEGA 16 / ATMEGA 169 / 64
JTAG name ATMEGA 162
32 / 323 / 128 / 90CAN128
Connector
1 TCK JTAG Æ MCU 24 57 25
2, 10 GND - 11, 31 22, 53, 63 20
3 TDO JTAG Æ MCU 26 55 27
4 VTref -
5 TMS JTAG Æ MCU 25 56 26
7 VCC JTAG Å MCU 10 21, 52 40
9 TDI JTAG Å MCU 27 54 28
6, 8 NC -

You might also like