Datasheet

Table Of Contents
2 Single Program Memory break points + 1 Program Memory break point with mask (“range break
point”)
2 Single Program Memory break points + 1 Data Memory break point with mask (“range break
point”)
A debugger, like the Atmel Studio
®
, may however use one or more of these resources for its internal
purpose, leaving less flexibility to the end-user.
A list of the On-chip Debug specific JTAG instructions is given in On-chip Debug Specific JTAG
Instructions.
The JTAGEN fuse must be programmed to enable the JTAG Test Access Port. In addition, the OCDEN
fuse must be programmed and no Lock bits must be set for the On-chip Debug system to work. As a
security feature, the On-chip Debug system is disabled when any Lock bits are set. Otherwise, the On-
chip Debug system would have provided a back-door into a secured device.
The Atmel Studio enables the user to fully control execution of programs on an AVR device with On-chip
Debug capability, AVR In-Circuit Emulator, or the built-in AVR Instruction Set Simulator. Atmel Studio
supports source level execution of Assembly programs assembled with Atmel Corporation’s AVR
Assembler and C programs compiled with third party vendors’ compilers.
For a full description of the Atmel Studio, please refer to the Atmel Studio User Guide found in the
Online Help in Atmel Studio. Only highlights are presented in this document.
All necessary execution commands are available in Atmel Studio, both on source level and on
disassembly level. The user can execute the program, single step through the code either by tracing into
or stepping over functions, step out of functions, place the cursor on a statement and execute until the
statement is reached, stop the execution, and reset the execution target. In addition, the user can have
an unlimited number of code break points (using the BREAK instruction) and up to two data memory
break points, alternatively combined as a mask (range) break point.
27.7. On-chip Debug Specific JTAG Instructions
The On-chip debug support is considered being private JTAG instructions, and distributed within ATMEL
and to selected third-party vendors only. Instruction opcodes are listed for reference.
PRIVATE0; 0x8
Private JTAG instruction for accessing On-chip Debug system.
PRIVATE1; 0x9
Private JTAG instruction for accessing On-chip Debug system.
PRIVATE2; 0xA
Private JTAG instruction for accessing On-chip Debug system.
PRIVATE3; 0xB
Private JTAG instruction for accessing On-chip Debug system.
27.8. Using the JTAG Programming Capabilities
Programming of AVR parts via JTAG is performed via the four-pin JTAG port, TCK, TMS, TDI, and TDO.
These are the only pins that need to be controlled/observed to perform JTAG programming (in addition to
power pins). It is not required to apply 12V externally. The JTAGEN fuse must be programmed and the
JTD bit in the MCUCSR Register must be cleared to enable the JTAG Test Access Port.
Atmel ATmega32A [DATASHEET]
Atmel-8155I-ATmega32A_Datasheet_Complete-08/2016
286