English
Language : 

XMEGAD Datasheet, PDF (258/309 Pages) ATMEL Corporation – Interrupts and Programmable Multi-level Interrupt Controller
XMEGA D
22. Program and Debug Interface
22.1 Features
• Program and Debug Interface (PDI)
– 2-pin interface for external programming and on-chip debugging
– Uses Reset pin and dedicated Test pin
• No I/O pins required during programming or debugging
• Programming Features
– Flexible communication protocol
– 8 Flexible instructions.
– Minimal protocol overhead.
– Fast
• 10 MHz programming clock at 1.8V VCC
– Reliable
• Built in error detection and handling
• Debugging Features
– Non-Intrusive Operation
• Uses no hardware or software resource
– Complete Program Flow Control
• Symbolic Debugging Support in Hardware
• Go, Stop, Reset, Step into, Step over, Step out, Run-to-Cursor
– 1 dedicated program address breakpoint or symbolic breakpoint for AVR studio/emulator
– 4 Hardware Breakpoints
– Unlimited Number of User Program Breakpoints
– Uses CPU for Accessing I/O, Data, and Program
– High Speed Operation
• No limitation on system clock frequency
22.2 Overview
The Program and Debug Interface (PDI) is an Atmel proprietary interface for external program-
ming and on-chip debugging of the device.
The PDI supports high-speed programming of all Non-Volatile Memory (NVM) spaces; Flash,
EEPOM, Fuses, Lockbits and the User Signature Row. This is done by accessing the NVM Con-
troller, and executing NVM Controller commands as described in Memory Programming.
The On-Chip Debug (OCD) system supports fully intrusive operation. During debugging no soft-
ware or hardware resources in the device is used. The OCD system has full program flow
control, supports unlimited number of program and data breakpoints and has full access
(read/write) to all memories.
Both programming and debugging can be done through two physical interfaces. The primary
interface is the PDI Physical. This is a 2-pin interface using the Reset pin for the clock input
(PDI_CLK), and the dedicated Test pin for data input and output (PDI_DATA). Unless otherwise
stated, all references to the PDI assumes access through the PDI physical. Any external pro-
grammer or on-chip debugger/emulator can be directly connected to these interfaces, and no
external components are required.
8210B–AVR–04/10
258