Datasheet

Table Of Contents
The JTAG programming capability supports:
Flash programming and verifying
EEPROM programming and verifying
Fuse programming and verifying
Lock bit programming and verifying
The Lock bit security is exactly as in Parallel Programming mode. If the Lock bits LB1 or LB2 are
programmed, the OCDEN Fuse cannot be programmed unless first doing a chip erase. This is a security
feature that ensures no back-door exists for reading out the content of a secured device.
The details on programming through the JTAG interface and programming specific JTAG instructions are
given in the section Programming Via the JTAG Interface.
Related Links
Programming Via the JTAG Interface on page 345
27.9. Bibliography
For more information about general Boundary-scan, the following literature can be consulted:
IEEE: IEEE Std 1149.1-1990. IEEE Standard Test Access Port and Boundary-scan Architecture,
IEEE, 1993
Colin Maunder: The Board Designers Guide to Testable Logic Circuits, Addison-Wesley, 1992
27.10. IEEE 1149.1 (JTAG) Boundary-scan
27.10.1. Features
JTAG (IEEE std. 1149.1 Compliant) Interface
Boundary-scan Capabilities According to the JTAG Standard
Full Scan of all Port Functions as well as Analog Circuitry having Off-chip Connections
Supports the Optional IDCODE Instruction
Additional Public AVR_RESET Instruction to Reset the AVR
27.10.2. System Overview
The Boundary-scan Chain has the capability of driving and observing the logic levels on the digital I/O
pins, as well as the boundary between digital and analog logic for analog circuitry having off-chip
connections. At system level, all ICs having JTAG capabilities are connected serially by the TDI/TDO
signals to form a long Shift Register. An external controller sets up the devices to drive values at their
output pins, and observe the input values received from other devices. The controller compares the
received data with the expected result. In this way, Boundary-scan provides a mechanism for testing
interconnections and integrity of components on Printed Circuits Boards by using the four TAP signals
only.
The four IEEE 1149.1 defined mandatory JTAG instructions IDCODE, BYPASS, SAMPLE/PRELOAD, and
EXTEST, as well as the AVR specific public JTAG instruction AVR_RESET can be used for testing the
Printed Circuit Board. Initial scanning of the data register path will show the ID-code of the device, since
IDCODE is the default JTAG instruction. It may be desirable to have the AVR device in reset during test
mode. If not reset, inputs to the device may be determined by the scan operations, and the internal
software may be in an undetermined state when exiting the test mode. Entering Reset, the outputs of any
Port Pin will instantly enter the high impedance state, making the HIGHZ instruction redundant. If needed,
Atmel ATmega32A [DATASHEET]
Atmel-8155I-ATmega32A_Datasheet_Complete-08/2016
287