Add note about another tested PIC target: PIC24FJ64GA002
[goodfet] / firmware / apps / pic / dspic33f.c
index b2534b0..12af364 100644 (file)
@@ -5,7 +5,7 @@
   \brief dsPIC33F programmer application for the GoodFET. Structure
          and style is somewhat modeled after avr.c
 
-  \date March, April 2010
+  \date March-May 2010
 */
 
 
@@ -65,6 +65,12 @@ void pichandle( unsigned char app,
                txdata(app,verb,2);
                break;
 
+       case PIC_RESET33F:
+               CLR_MCLR;
+               delay_ms(20);
+               SET_MCLR;
+               break;
+
        case PIC_START33F:
                pic33f_connect();
                txdata(app,verb,0);
@@ -228,7 +234,6 @@ unsigned int pic33f_getid()
 
        // Read application ID.
        pic33f_six( 0x04, 0x0200 ); // goto 0x200 (i.e. reset)
-       pic33f_six( 0x04, 0x0200 ); // goto 0x200 (i.e. reset)
        pic33f_six( 0x00, 0x0000 ); // nop
        pic33f_six( 0x20, 0x0800 ); // mov #0x80, W0
        pic33f_six( 0x88, 0x0190 ); // mov W0, TBLPAG