X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/dc68de15b69c2064b1b14d00659aa91054cccbe1..7a9b3d3641e1bc97d2826b4865b3cedb11099e62:/Projects/AVRISP/AVRISP.txt diff --git a/Projects/AVRISP/AVRISP.txt b/Projects/AVRISP/AVRISP.txt index 249976350..c15c27fa6 100644 --- a/Projects/AVRISP/AVRISP.txt +++ b/Projects/AVRISP/AVRISP.txt @@ -54,14 +54,18 @@ * drivers. When promted, direct your OS to install Atmel's AVRISP-MKII drivers provided with AVRStudio. * * Note that this design currently has several limitations: - * - Minimum target clock speed of 500KHz due to hardware SPI used + * - Minimum ISP target clock speed of 500KHz due to hardware SPI used * - No reversed/shorted target connector detection and notification * - * On AVR models with an ADC converter, ACC should be tied to 5V (e.g. VBUS) and the VTARGET_ADC_CHANNEL token should be + * On AVR models with an ADC converter, AVCC 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. * - * Connections to the device are simple: + * When compiled for the XPLAIN board target, this will automatically configure itself for the correct connections to the + * XPLAIN's XMEGA AVR, and will enable only PDI programming support. + * + * + * Connections to the device for SPI programming (when enabled): * * * @@ -104,6 +108,47 @@ * 1Optional, see \ref SSec_Options section - for USB AVRs with ADC modules only \n * 2See \ref SSec_Options section * + * + * Connections to the device for PDI programming (when enabled): + * + *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Programmer Pin:Target Device Pin:PDI 6 Pin Layout:
MISODATA1
ADCx 1VTARGET2
N/AN/A3
N/AN/A4
PORTx.y 2CLOCK5
GNDGND6
+ * * \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. @@ -117,24 +162,35 @@ * * RESET_LINE_PORT * Makefile CDEFS - * PORT register for the programmer's target RESET line. + * PORT register for the programmer's target RESET line. Ignored when compiled for the XPLAIN board. * * * RESET_LINE_DDR * Makefile CDEFS - * DDR register for the programmer's target RESET line. + * DDR register for the programmer's target RESET line. Ignored when compiled for the XPLAIN board. * * * RESET_LINE_MASK * Makefile CDEFS * Mask 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. + * pin is configured as an input. When in PDI programming mode, this is the target clock pin. + * Ignored when compiled for the XPLAIN board. * * * VTARGET_ADC_CHANNEL * Makefile CDEFS * ADC channel number (on supported AVRs) to use for VTARGET level detection. * + * + * ENABLE_ISP_PROTOCOL + * Makefile CDEFS + * Define to enable SPI programming protocol support. Ignored when compiled for the XPLAIN board. + * + * + * ENABLE_PDI_PROTOCOL + * Makefile CDEFS + * Define to enable XMEGA PDI programming protocol support. Ignored when compiled for the XPLAIN board. + * * */