ATtiny2313 Target Microcontroller
The AVR Dragon and Dragon Rider support ISP and Parallel High Voltage programming and debugWIRE on-chip debugging on the ATtiny2313 target microcontroller.  Insert the target microcontroller into the 20-pin socket U3 with pin 1 at the upper left.  This device shares pins for XTAL1, XTAL2 and RESET with general-purpose IO pins.  Headers on the Dragon Rider allow you to use these pins for GPIO when you are not programming or debugging, but you may have to re-route these pins temporarily as instructed below. 
Configuring for ISP
To use the ISP interface for programming, place shunts on the following jumpers:
- J7 (U3 pin 1), pin 1 to pin 2 ... U3 pin 1 to RESET
- J16 (RESET), pin 2 to pin 3 ... RESET from Dragon ISP
- J22 (MOSI), center pin to pin 1 (top) ... MOSI to PB5
- J23 (SCK), center pin to pin 1 (top) ... SCK to PB7
- J24 (MISO), center pin to pin 1 (top) ... MISO to PB6
Jumpers J5 and J6 can carry shunts to connect pins 5 and 4 of the target to either GPIO pins PA0 and PA1 or the crystal X1.  Remove all other shunts.  Either direct (5V nominal) or sub-regulated (e.g. 3.3V) power can be used during ISP programming.
Configuring for debugWIRE
To use the debugWIRE interface for on-chip debugging, place shunts on the following jumpers:
- J7 (U3 pin 1), pin 1 to pin 2 ... U3 pin 1 to RESET
- J16 (RESET), pin 2 to pin 3 ... RESET from Dragon ISP
You can also have jumpers on J22, J23 and J24, which would be useful if you need to switch between ISP and debugWIRE.  Jumpers J4 and J5 can carry shunts to connect pins 5 and 4 of the target to either GPIO pins PA0 and PA1 or the crystal X1.  Remove all other shunts.  Either direct (5V nominal) or sub-regulated (e.g. 3.3V) power can be used during debugWIRE debugging.
Configuring for High Voltage
To use High Voltage Parallel programming, use 10-way ribbon cables with headers to connect:
- J21 (PROG DATA) to J2 (PORTB)
- J17 (PROG CTRL) to J4 (PORTD)
Turn on SW2 (5V power direct to VTG from Dragon) and place shunts on the following jumpers:
- J5 (U3 pin 5), pin 1 to pin 2 ... U3 pin 5 to XT1
- J7 (U3 pin 1), pin 1 to pin 2 ... U3 pin 1 to RESET
- J15 (XTAL1), pin 1 to pin 2 ... Clock from Dragon
- J16 (RESET), pin 1 to pin 2 ... RST from Dragon HV
Remove all other shunts.  Note that direct (5V nominal) power must be used during high voltage programming.  If you have a crystal socket in the X1 location, remove any crystal.  However, it may be possible to proceed with high voltage programming with a crystal and load capacitors in place.
Note on Testing/Verification
The above information has not been verified on all combinations of AVR Dragon firmware revisions, AVR Studio software revisions and Atmel Microcontroller product variants and date codes.  Testing has been performed with a ATtiny2313-20PU microcontroller using AVR Dragon firmware revision 0x01010103 and AVR Studio version 4.12 Service Pack 4.