Don't enable the pullup on the target /RESET line in the AVRISP project for PDI mode...
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 16 Mar 2010 12:09:22 +0000 (12:09 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 16 Mar 2010 12:09:22 +0000 (12:09 +0000)
LUFA/ManPages/ChangeLog.txt
Projects/AVRISP-MKII/Lib/XPROG/XPROGTarget.c

index e7f1f43..d2c8525 100644 (file)
@@ -27,7 +27,7 @@
   *  - Fixed ADC routines failing to read the extended channels (Channels 8 to 13, Internal Temperature Sensor) on the\r
   *    U4 series USB AVR parts\r
   *  - Fixed PDI programming mode in the AVRISP programmer project not exiting programming mode correctly (clear target\r
-  *    Reset key twice, set /RESET pin to pullup)\r
+  *    Reset key twice, possible silicon bug?)\r
   *\r
   *  \section Sec_ChangeLog100219 Version 100219\r
   *\r
index 4ecf033..3a74e15 100644 (file)
@@ -237,19 +237,18 @@ void XPROGTarget_DisableTargetPDI(void)
        UCSR1B  = 0;\r
        UCSR1C  = 0;\r
 \r
-       /* Make Reset input with pullup to take target out of /RESET, tristate all other pins */\r
+       /* Tristate all pins */\r
        DDRD  &= ~((1 << 5) | (1 << 3));\r
        PORTD &= ~((1 << 3) | (1 << 2));\r
-       PORTD |=   (1 << 5);\r
 #else\r
        /* Turn off software USART management timer */\r
        TCCR1B = 0;\r
 \r
-       /* Make Reset input with pullup to take target out of /RESET, tristate all other pins */\r
+       /* Tristate all pins */\r
        BITBANG_PDIDATA_DDR   &= ~BITBANG_PDIDATA_MASK;\r
        BITBANG_PDICLOCK_DDR  &= ~BITBANG_PDICLOCK_MASK;\r
        BITBANG_PDICLOCK_PORT &= ~BITBANG_PDICLOCK_MASK;        \r
-       BITBANG_PDIDATA_PORT  |=  BITBANG_PDIDATA_MASK;\r
+       BITBANG_PDIDATA_PORT  &= ~BITBANG_PDIDATA_MASK;\r
 #endif\r
 }\r
 \r