3 * This file contains special DoxyGen information for the generation of the main page and other special
4 * documentation pages. It is not a project source file.
7 /** \mainpage AVRISP MKII Programmer Project
9 * \section SSec_Compat Demo Compatibility:
11 * The following list indicates what microcontrollers are compatible with this demo.
18 * \section SSec_Info USB Information:
20 * The following table gives a rundown of the USB utilization of this demo.
24 * <td><b>USB Mode:</b></td>
28 * <td><b>USB Class:</b></td>
29 * <td>Vendor Specific Class</td>
32 * <td><b>USB Subclass:</b></td>
36 * <td><b>Relevant Standards:</b></td>
37 * <td>Atmel AVRISP MKII Protocol Specification</td>
40 * <td><b>Usable Speeds:</b></td>
41 * <td>Full Speed Mode</td>
45 * \section SSec_Description Project Description:
47 * Firmware for an AVRStudio compatible AVRISP-MKII clone programmer. This project will enable the USB AVR series of
48 * microcontrollers to act as a clone of the official Atmel AVRISP-MKII programmer, usable within AVRStudio. In its
49 * most basic form, it allows for the programming of 5V AVRs from within AVRStudio with no special hardware other than
50 * the USB AVR and the parts needed for the USB interface. If the user desires, more advanced circuits incorporating
51 * level conversion can be made to allow for the programming of 3.3V AVR designs.
53 * This device spoofs Atmel's official AVRISP-MKII device PID so that it remains compatible with Atmel's AVRISP-MKII
54 * drivers. When promted, direct your OS to install Atmel's AVRISP-MKII drivers provided with AVRStudio.
56 * Note that this design currently has several limitations:
57 * - Minimum ISP target clock speed of 500KHz due to hardware SPI used
58 * - No reversed/shorted target connector detection and notification
60 * On AVR models with an ADC converter, AVCC should be tied to 5V (e.g. VBUS) and the VTARGET_ADC_CHANNEL token should be
61 * set to an appropriate ADC channel number in the project makefile for VTARGET detection to operate correctly. On models
62 * without an ADC converter, VTARGET will report at a fixed 5V level.
64 * When compiled for the XPLAIN board target, this will automatically configure itself for the correct connections to the
65 * XPLAIN's XMEGA AVR, and will enable only PDI programming support.
68 * Connections to the device for SPI programming (when enabled):
72 * <td><b>Programmer Pin:</b></td>
73 * <td><b>Target Device Pin:</b></td>
74 * <td><b>ISP 6 Pin Layout:</b></td>
82 * <td>ADCx <b><sup>1</sup></b></td>
97 * <td>PORTx.y <b><sup>2</sup></b></td>
108 * <b><sup>1</sup></b> <i>Optional, see \ref SSec_Options section - for USB AVRs with ADC modules only</i> \n
109 * <b><sup>2</sup></b> <i>See \ref SSec_Options section</i>
112 * Connections to the device for PDI programming<b><sup>1</sup></b> (when enabled):
116 * <td><b>Programmer Pin:</b></td>
117 * <td><b>Target Device Pin:</b></td>
118 * <td><b>PDI 6 Pin Layout:</b></td>
126 * <td>ADCx <b><sup>1</sup></b></td>
141 * <td>PORTx.y <b><sup>2</sup></b></td>
152 * <b><sup>1</sup></b> When PDI_VIA_HARDWARE_USART is set, the AVR's Tx and Rx become the DATA line when connected together
153 * via a pair of 300 ohm resistors, and the AVR's XCK pin becomes CLOCK.
155 * \section SSec_Options Project Options
157 * The following defines can be found in this demo, which can control the demo behaviour when defined, or changed in value.
161 * <td><b>Define Name:</b></td>
162 * <td><b>Location:</b></td>
163 * <td><b>Description:</b></td>
166 * <td>RESET_LINE_PORT</td>
167 * <td>Makefile CDEFS</td>
168 * <td>PORT register for the programmer's target RESET line. <i>Ignored when compiled for the XPLAIN board.</i></td>
171 * <td>RESET_LINE_PIN</td>
172 * <td>Makefile CDEFS</td>
173 * <td>PIN register for the programmer's target RESET line. <i>Ignored when compiled for the XPLAIN board.</i></td>
176 * <td>RESET_LINE_DDR</td>
177 * <td>Makefile CDEFS</td>
178 * <td>DDR register for the programmer's target RESET line. <i>Ignored when compiled for the XPLAIN board.</i></td>
181 * <td>RESET_LINE_MASK</td>
182 * <td>Makefile CDEFS</td>
183 * <td>Mask for the programmer's target RESET line on the chosen port. <b>Must not be the AVR's /SS pin</b>, as the
184 * target pins are tri-stated when not in use, and low signals on the /SS pin will force SPI slave mode when the
185 * pin is configured as an input. When in PDI programming mode, this is the target clock pin.
186 * <i>Ignored when compiled for the XPLAIN board.</i></td>
189 * <td>VTARGET_ADC_CHANNEL</td>
190 * <td>Makefile CDEFS</td>
191 * <td>ADC channel number (on supported AVRs) to use for VTARGET level detection.</td>
194 * <td>ENABLE_ISP_PROTOCOL</td>
195 * <td>Makefile CDEFS</td>
196 * <td>Define to enable SPI programming protocol support. <i>Ignored when compiled for the XPLAIN board.</i></td>
199 * <td>ENABLE_PDI_PROTOCOL</td>
200 * <td>Makefile CDEFS</td>
201 * <td>Define to enable XMEGA PDI programming protocol support. <i>Ignored when compiled for the XPLAIN board.</i></td>
204 * <td>PDI_VIA_HARDWARE_USART</td>
205 * <td>Makefile CDEFS</td>
206 * <td>Define to force the PDI protocol (when enabled) to use the hardware USART instead of bit-banging to match the official
207 * AVRISP pinout. <i>Automatically set when compiled for the XPLAIN board.</i></td>