![](http://datasheet.mmic.net.cn/30000/MQ80C32-12SBR_datasheet_2377008/MQ80C32-12SBR_249.png)
249
AT90PWM216/316 [DATASHEET]
7710H–AVR–07/2013
22. debugWIRE On-chip Debug System
22.1
Features
Complete Program Flow Control
Emulates All On-chip Functions, Both Digital and Analog, except RESET Pin
Real-time Operation
Symbolic Debugging Support (Both at C and Assembler Source Level, or for Other HLLs)
Unlimited Number of Program Break Points (Using Software Break Points)
Non-intrusive Operation
Electrical Characteristics Identical to Real Device
Automatic Configuration System
High-Speed Operation
Programming of Non-volatile Memories
22.2
Overview
The debugWIRE On-chip debug system uses a One-wire, bi-directional interface to control the program flow, exe-
cute AVR instructions in the CPU and to program the different non-volatile memories.
22.3
Physical Interface
When the debugWIRE Enable (DWEN) Fuse is programmed and Lock bits are unprogrammed, the debugWIRE
system within the target device is activated. The RESET port pin is configured as a wire-AND (open-drain) bi-direc-
tional I/O pin with pull-up enabled and becomes the communication gateway between target and emulator.
Figure 22-1. The debugWIRE Setup
Figure 22-1 shows the schematic of a target MCU, with debugWIRE enabled, and the emulator connector. The
system clock is not affected by debugWIRE and will always be the clock source selected by the CKSEL Fuses.
When designing a system where debugWIRE will be used, the following observations must be made for correct
operation:
Pull-up resistors on the dW/(RESET) line must not be smaller than 10k
. The pull-up resistor is not required for
debugWIRE functionality.
Connecting the RESET pin directly to V
CC will not work.
dW
GND
dW(RESET)
VCC
1.8 - 5.5V