jtagice_elementz

Upload: dhanish-vijayan

Post on 03-Jun-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 JTAGICE_ELEMENTZ

    1/17

    ELEMENTZ ENGINEERS GUILD PVT LTD

    Embedded Module Manufacturers and Distributors

  • 8/12/2019 JTAGICE_ELEMENTZ

    2/17

    JTAGICE

    USER GUIDE

  • 8/12/2019 JTAGICE_ELEMENTZ

    3/17

    Contents

    Overview 1

    Features 2

    Module SnapShot 3

    Connection Details 4Hardware Description . . . . . . . . . . . . . . . . . . . . . . . . 4

    How to connect? . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

    How to debug using AVR-Studio 9Selecting debug device . . . . . . . . . . . . . . . . . . . . . . . . 9Connecting Target to JTAGICE . . . . . . . . . . . . . . . . . . 10

    How to Debug using AVR-Studio 12Selecting debug device . . . . . . . . . . . . . . . . . . . . . . . . 12Connecting Target to JTAGICE . . . . . . . . . . . . . . . . . . 13

    3

  • 8/12/2019 JTAGICE_ELEMENTZ

    4/17

    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 efficiently test circuit board connectiv-ity (Boundary Scan). Atmel AVR devices have extended this functionalityto include full Programming and On-chip Debugging support.

    The JTAG ICE uses the standard JTAG interface to enable the user to doreal-time emulation of the microcontroller while it is running in the targetsystem.

    1

  • 8/12/2019 JTAGICE_ELEMENTZ

    5/17

    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

  • 8/12/2019 JTAGICE_ELEMENTZ

    6/17

    USER MANUAL JTAGICE

    Module SnapShot

    Following figure contains the Snapshot of the JTAGICE

    Figure 1: Front View

    Figure 2: Back View

    www.elementzonline.com 3

  • 8/12/2019 JTAGICE_ELEMENTZ

    7/17

    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 BuzyLEDs.

    RS232

    The information transferred between data processing equipment andperipherals is in the form of digital data which is transmitted in either aserial or parallel mode. Parallel communication is used mainly for connect-ing test instruments or printers with the computer, while serial is often usedbetween computers and other peripherals. Serial transmission involves the

    sending of data one bit at a time over a single communication line. Serialtransmission is beneficial for long distance communication, whereas paral-lel is designed for short distances or when very high transmission rates arerequired.

    Pin Signal

    2 Received Data3 Transmitted Data

    5 Signal Ground

    Table 1: Table caption

    4

  • 8/12/2019 JTAGICE_ELEMENTZ

    8/17

    USER MANUAL JTAGICE

    Figure 3: DB9 Connector

    RS-232 is defined as the Interface between data terminal equipmentand data communication equipment using serial binary data exchange.

    This definition defines 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 off)

    RECEIVED SIGNAL VOLTAGE LEVELS:Binary 0: +3 to +13 VdcBinary 1: -3 to -13 Vdc

    MAX232

    The MAX232 IC is used to convert the TTL/CMOS logic levels toRS232 logic levels during serial communication with the PC. It is a dual

    driver/receiver that includes a capacitive voltage generator to supply RS232voltage levels from a single 5V supply. Each receiver converts RS232 in-puts to 5V TTL/CMOS levels. These receivers (R1 & R2) can accept30V inputs. The drivers (T1 & T2), also called transmitters, convertthe TTL/CMOS input level into RS232 level.MAX232 needs four externalcapacitors 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

  • 8/12/2019 JTAGICE_ELEMENTZ

    9/17

    USER MANUAL JTAGICE

    Figure 4: MAX232 IC

    JTAGICE is processing any control request from the user.

    www.elementzonline.com 6

  • 8/12/2019 JTAGICE_ELEMENTZ

    10/17

  • 8/12/2019 JTAGICE_ELEMENTZ

    11/17

    USER MANUAL JTAGICE

    Figure 6: Connection Diagram

    www.elementzonline.com 8

  • 8/12/2019 JTAGICE_ELEMENTZ

    12/17

    How to debug using

    ATMELs AVR-Studio4

    Selecting debug device

    This section describes how to select the Debug device in AVR-Studio4for making it possible to debug the target ICs.

    Click Debug menu select Select Platform and Device optionfrom the drop-down menu change the Debug Platform to JTAGICE

    Select Device.

    Figure 7: Device Selection

    Remarks JTAGICE is not compatible withATMEL STUDIO 5 or 6.

    9

  • 8/12/2019 JTAGICE_ELEMENTZ

    13/17

    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 connectingto the target. After connecting JTAG to the target, use the followingmethod 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 inthe device manager click Connect.

    www.elementzonline.com 10

  • 8/12/2019 JTAGICE_ELEMENTZ

    14/17

    USER MANUAL JTAGICE

    If the connection is a success you will be presented with the followingfigure. Fuse bit settings may be changed to fit the oscillator frequency.

    Figure 9: Additional Settings

    Remarks Please refer the datasheet before playing with the fusebits.Wrong configuration 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

  • 8/12/2019 JTAGICE_ELEMENTZ

    15/17

    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 yourproject name and select Options from the Workspace Dialog Box. Op-tionally you can click Project menu select Options.

    Under category list select Debugger.UnderSetupchange the driver to JTAGICE as shown below.

    12

  • 8/12/2019 JTAGICE_ELEMENTZ

    16/17

    USER MANUAL JTAGICE

    Figure 10: Project Options

    Connecting Target to JTAGICEUnder category list select JTAGICE.UnderJTAGICE 1 tab select the correct communication port as shownearlier in the device manager.

    Click Project menu select Download and Debug option fromthe drop-down menu to burn your code and start the debug section.

    www.elementzonline.com 13

  • 8/12/2019 JTAGICE_ELEMENTZ

    17/17

    USER MANUAL JTAGICE

    Figure 11: Device Selection

    Figure 12: COM port select