Вы находитесь на странице: 1из 17

ELEMENTZ ENGINEERS GUILD PVT LTD

Embedded Module Manufacturers and Distributors


JTAGICE
USER GUIDE
Contents
Overview 1
Features 2
Module SnapShot 3
Connection Details 4
Hardware Description . . . . . . . . . . . . . . . . . . . . . . . . 4
How to connect? . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
How to debug using AVR-Studio 9
Selecting debug device . . . . . . . . . . . . . . . . . . . . . . . . 9
Connecting Target to JTAGICE . . . . . . . . . . . . . . . . . . 10
How to Debug using AVR-Studio 12
Selecting debug device . . . . . . . . . . . . . . . . . . . . . . . . 12
Connecting Target to JTAGICE . . . . . . . . . . . . . . . . . . 13
3
Overview
The JTAG interface is a 4-wire Test Access Port (TAP) controller that
is compliant with the IEEE 1149.1 standard. The IEEE standard was de-
veloped to enable a standard way to eciently test circuit board connectiv-
ity (Boundary Scan). Atmel AVR devices have extended this functionality
to include full Programming and On-chip Debugging support.
The JTAG ICE uses the standard JTAG interface to enable the user to do
real-time emulation of the microcontroller while it is running in the target
system.
1
Features
AVR Studio ver-4 and IAR Embedded WorkBench Compatible
Supports all AVR Devices with JTAG Interface
Break on Change of Program Flow
Data and Program Memory Breakpoints
Suports Assembler and HLL Source Level Debugging
RS-232 Interface to PC for Programming and Control
2
USER MANUAL JTAGICE
Module SnapShot
Following gure contains the Snapshot of the JTAGICE
Figure 1: Front View
Figure 2: Back View
www.elementzonline.com 3
Connection Details
To connect the JTAGICE with the pc, we have to know about the
hardware details of the Module.
Hardware Description
The hardware section consists of a RS232, MAX232, Power and Buzy
LEDs.
RS232
The information transferred between data processing equipment and
peripherals is in the form of digital data which is transmitted in either a
serial or parallel mode. Parallel communication is used mainly for connect-
ing test instruments or printers with the computer, while serial is often used
between computers and other peripherals. Serial transmission involves the
sending of data one bit at a time over a single communication line. Serial
transmission is benecial for long distance communication, whereas paral-
lel is designed for short distances or when very high transmission rates are
required.
Pin Signal
2 Received Data
3 Transmitted Data
5 Signal Ground
Table 1: Table caption
4
USER MANUAL JTAGICE
Figure 3: DB9 Connector
RS-232 is dened as the Interface between data terminal equipment
and data communication equipment using serial binary data exchange.
This denition denes data terminal equipment (DTE) as the computer,
while data communication equipment (DCE) as the JTAGICE.
TRANSMITTED SIGNAL VOLTAGE LEVELS:
Binary 0: +5 to +15 Vdc (called a space or on)
Binary 1: -5 to -15 Vdc (called a mark or o)
RECEIVED SIGNAL VOLTAGE LEVELS:
Binary 0: +3 to +13 Vdc
Binary 1: -3 to -13 Vdc
MAX232
The MAX232 IC is used to convert the TTL/CMOS logic levels to
RS232 logic levels during serial communication with the PC. It is a dual
driver/receiver that includes a capacitive voltage generator to supply RS232
voltage levels from a single 5V supply. Each receiver converts RS232 in-
puts to 5V TTL/CMOS levels. These receivers (R1 & R2) can accept
30V inputs. The drivers (T1 & T2), also called transmitters, convert
the TTL/CMOS input level into RS232 level.MAX232 needs four external
capacitors whose value ranges from 1F to 22F.
Power and Buzy LED
These are SMD LEDs, were Power LED is used to indicate the ON-
OFF status of the JTAGICE and Buzy LED is used to know whether the
www.elementzonline.com 5
USER MANUAL JTAGICE
Figure 4: MAX232 IC
JTAGICE is processing any control request from the user.
www.elementzonline.com 6
USER MANUAL JTAGICE
How to connect?
Connect the JTAGICE to the pc using RS232 cable or using a USB-
2-Serial Converter. When the 3.3V-5V power supply is connected to the
JTAGICE board, the red LED will glow indicating the presence of power.
User may either connect power to the provided on-board pins, or through
the Standard JTAG Box header. At the same time, a blue LED will blink
with a delay of 100ms for approximately 5 seconds and then turned o.
That means the JTAGICE is ready to be used.
The steps required for knowing the correct Serial Port number.
Right click My Computer select the Device manager
Expand Ports(COM & LPT) as shown below
Figure 5: Computer Management
Remarks
Note that the marked COM(COM33) port is of a USB-2-Serial
Converter. If connected to a physical COM port the port num-
ber may likely to be COM1.
www.elementzonline.com 7
USER MANUAL JTAGICE
Figure 6: Connection Diagram
www.elementzonline.com 8
How to debug using
ATMELs AVR-Studio4
Selecting debug device
This section describes how to select the Debug device in AVR-Studio4
for making it possible to debug the target ICs.
Click Debug menu select Select Platform and Device option
from the drop-down menu change the Debug Platform to JTAGICE
Select Device.
Figure 7: Device Selection
Remarks
JTAGICE is not compatible with ATMEL STUDIO 5 or 6.
9
USER MANUAL JTAGICE
Connecting Target to JTAGICE
After selecting the JTAGICE Debug device as described in the previous
section, user need to select the correct communication port for connecting
to the target. After connecting JTAG to the target, use the following
method for establishing the target connectivity.
Figure 8: Device Connection
Click Tools menu select Program AVR option from the drop-
down menu select Connect Under Platform select JTAGICE
Under Port change the com port number to the number shown earlier in
the device manager click Connect.
www.elementzonline.com 10
USER MANUAL JTAGICE
If the connection is a success you will be presented with the following
gure. Fuse bit settings may be changed to t the oscillator frequency.
Figure 9: Additional Settings
Remarks
Please refer the datasheet before playing with the fusebits.
Wrong conguration can make your device bricked for ever.
Click Tools menu select Start Debugging option from the drop-
down menu to burn your code and start the debug section.
www.elementzonline.com 11
How to debug using IAR
Embedded WorkBench
This section describes how to select the Debug device in IAR Embed-
ded WorkBench for making it possible to debug the target ICs.
Selecting debug device
After creating your project and compiling the code, right click your
project name and select Options from the Workspace Dialog Box. Op-
tionally you can click Project menu select Options.
Under category list select Debugger.
Under Setup change the driver to JTAGICE as shown below.
12
USER MANUAL JTAGICE
Figure 10: Project Options
Connecting Target to JTAGICE
Under category list select JTAGICE.
Under JTAGICE 1 tab select the correct communication port as shown
earlier in the device manager.
Click Project menu select Download and Debug option from
the drop-down menu to burn your code and start the debug section.
www.elementzonline.com 13
USER MANUAL JTAGICE
Figure 11: Device Selection
Figure 12: COM port select
www.elementzonline.com 14

Вам также может понравиться