AVRISP.txt 4.86 KB
 Dean Camera committed Aug 17, 2009 1 2 3 4 5 6 7 8 9 10 /** \file * * This file contains special DoxyGen information for the generation of the main page and other special * documentation pages. It is not a project source file. */ /** \mainpage AVRISP MKII Programmer Project * * \section SSec_Compat Demo Compatibility: *  Dean Camera committed Oct 12, 2009 11  * The following list indicates what microcontrollers are compatible with this demo.  Dean Camera committed Aug 17, 2009 12  *  Dean Camera committed Oct 12, 2009 13 14 15 16  * - Series 7 USB AVRs * - Series 6 USB AVRs * - Series 4 USB AVRs * - Series 2 USB AVRs  Dean Camera committed Aug 17, 2009 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47  * * \section SSec_Info USB Information: * * The following table gives a rundown of the USB utilization of this demo. * * *
USB Mode:Device
USB Class:Vendor Specific Class
USB Subclass:N/A
Relevant Standards:Atmel AVRISP MKII Protocol Specification
Usable Speeds:Full Speed Mode
* * * * * * * * * * * * * * * * * * * * * * \section SSec_Description Project Description: * * Firmware for an AVRStudio compatible AVRISP-MKII clone programmer. This project will enable the USB AVR series of  Dean Camera committed Aug 24, 2009 48 49 50 51  * microcontrollers to act as a clone of the official Atmel AVRISP-MKII programmer, usable within AVRStudio. In its * most basic form, it allows for the programming of 5V AVRs from within AVRStudio with no special hardware other than * the USB AVR and the parts needed for the USB interface. If the user desires, more advanced circuits incorporating * level conversion can be made to allow for the programming of 3.3V AVR designs.  Dean Camera committed Aug 17, 2009 52 53 54 55  * * This device spoofs Atmel's official AVRISP-MKII device PID so that it remains compatible with Atmel's AVRISP-MKII * drivers. When promted, direct your OS to install Atmel's AVRISP-MKII drivers provided with AVRStudio. *  Dean Camera committed Aug 24, 2009 56 57 58 59  * Note that this design currently has several limitations: * - Minimum target clock speed of 500KHz due to hardware SPI used * - No reversed/shorted target connector detection and notification *  Dean Camera committed Aug 25, 2009 60 61 62 63  * On AVR models with an ADC converter, ACC should be tied to 5V (e.g. VBUS) and the VTARGET_ADC_CHANNEL token should be * set to an appropriate ADC channel number in the project makefile for VTARGET detection to operate correctly. On models * without an ADC converter, VTARGET will report at a fixed 5V level. *  64  * Connections to the device are simple for SPI programming:  65 66 67 68 69  * * *
Programmer Pin:Target Device Pin:ISP 6 Pin Layout:
MISOPDO1
SCLKSCLK3
MOSIPDI4
PORTx.y 2/RESET5
GNDGND6
* *  Dean Camera committed Oct 01, 2009 70  *  71 72 73 74  * * * *  Dean Camera committed Oct 01, 2009 75  *  76 77  * *  Dean Camera committed Oct 01, 2009 78 79 80  * * *  81 82  * *  Dean Camera committed Oct 01, 2009 83 84 85  * * *  86 87  * *  Dean Camera committed Oct 01, 2009 88 89 90  * * *  91 92 93 94  * * * *  Dean Camera committed Oct 01, 2009 95 96 97 98 99 100  * * * * * *  101 102 103 104 105 106  * * * * 1 Optional, see \ref SSec_Options section - for USB AVRs with ADC modules only \n * 2 See \ref SSec_Options section *  107 108 109 110 111 112  * * Connections to the device are simple for SPI programming: * * *
PDI Programming is not yet fully implemented.
*  Dean Camera committed Aug 17, 2009 113 114 115 116 117 118  * \section SSec_Options Project Options * * The following defines can be found in this demo, which can control the demo behaviour when defined, or changed in value. * * *
Define Name:Location:Description:
RESET_LINE_PORTMakefile CDEFSPORT register for the programmer's target RESET line.
RESET_LINE_DDRMakefile CDEFSDDR register for the programmer's target RESET line.
RESET_LINE_MASKMakefile CDEFSMask for the programmer's target RESET line on the chosen port. Must not be the AVR's /SS pin, as the * target pins are tri-stated when not in use, and low signals on the /SS pin will force SPI slave mode when the * pin is configured as an input.
VTARGET_ADC_CHANNELMakefile CDEFSADC channel number (on supported AVRs) to use for VTARGET level detection.
ENABLE_XPROG_PROTOCOLMakefile CDEFSDefine to enable XMEGA PDI programming protocol support.
 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135  * * * * * * * * * * * * * * * * *  Dean Camera committed Oct 01, 2009 136 137 138  *  Dean Camera committed Aug 17, 2009 139  *  Dean Camera committed Aug 25, 2009 140 141 142 143 144  * * * * *  145 146 147 148 149  * * * * *  Dean Camera committed Aug 17, 2009 150 151  * */