Hi folks. I am trying to flash a 16LF648A using a Wisp628. First I use this: C:\MCHIP\Blink>xwisp.py go uuu And I get this: XWisp 1.08, command line mode C:\Archivos de Programa\XWisp\serialwin32.py:88: DeprecationWarning: integer arg ument expected, got float win32file.SetCommTimeouts(self.hComPort, timeouts) hardware: Wisp628 1.09 (fast) target: 16f648a, revision 01 (ID=1101) OK Then, if I try to read the program from the chip, I get this: C:\MCHIP\Blink>xwisp.py read 123 XWisp 1.08, command line mode C:\Archivos de Programa\XWisp\serialwin32.py:88: DeprecationWarning: integer arg ument expected, got float win32file.SetCommTimeouts(self.hComPort, timeouts) hardware: Wisp628 1.09 (fast) target: 16f648a, revision 01 (ID=1101) read Code 00B0Traceback (most recent call last): File "C:\Archivos de Programa\XWisp\xwisp.py", line 3563, in ? XWisp_Main() File "C:\Archivos de Programa\XWisp\xwisp.py", line 3560, in XWisp_Main Wisp_Line().Interpret() File "C:\Archivos de Programa\XWisp\xwisp.py", line 3180, in Interpret self.Execute( Command ) File "C:\Archivos de Programa\XWisp\xwisp.py", line 3162, in Execute exec( 'self.CMD_' + Command.upper() + '()' ) File "", line 1, in ? File "C:\Archivos de Programa\XWisp\xwisp.py", line 2686, in CMD_READ self.CMD_GET() File "C:\Archivos de Programa\XWisp\xwisp.py", line 2586, in CMD_GET Ignore = self.Purge ) File "C:\Archivos de Programa\XWisp\xwisp.py", line 2204, in Read Data = self.Get_Cluster( Base ) File "C:\Archivos de Programa\XWisp\xwisp.py", line 2069, in Get_Cluster D = int( Response[ 0 : 2 * self.Type.Stride ], 16) ValueError: invalid literal for int(): And that happens with any program I try. This is the code: list p=PIC16f648A #include "p16f648A.inc" __config _CP_OFF & _DATA_CP_OFF & _WDT_OFF & _BOREN_OFF & _PWRTE_OFF & _INTRC_OSC_NOCLKOUT & _MCLRE_OFF & _LVP_OFF ERRORLEVEL -224 ERRORLEVEL -302 #define RED_LED PORTB,5 ;O count1 equ 0x20 count2 equ 0x21 count3 equ 0x22 dwell equ 0x23 tmp equ 0x26 tmp_addr equ 0x36 tmp_data equ 0x37 init clrf STATUS bcf STATUS,RP0 clrf PORTA movlw 0x07 ;off compare, enable pi movwf CMCON bsf STATUS,RP0 movlw b'11100100' ;0,1,4,3 output 2,6,5,7 INPUT movwf TRISA bcf OPTION_REG, NOT_RBPU ;enable pullups bcf STATUS,RP0 clrf PORTB bsf STATUS,RP0 movlw b'01001111' ; input 4,5,7 output 0,1,2,3,6 INput movwf TRISB bcf STATUS,RP0 ;mem writing test bsf RED_LED movlw 0x30 movwf dwell test movlw 0x00 movwf tmp_addr movf dwell,W call writee bcf RED_LED clrf dwell movlw 0x00 call readee movwf dwell loop call delay_on1 bsf RED_LED call delay_on1 bcf RED_LED goto loop writee movwf tmp bsf STATUS,RP0 movwf EEDATA bcf STATUS,RP0 movf tmp_addr,W bsf STATUS,RP0 movwf EEADR bcf STATUS, RP0 ee_write bsf STATUS, RP0 bsf EECON1,WREN bcf INTCON,GIE btfsc INTCON, GIE goto $-2 movlw 0x55 movwf EECON2 movlw 0xAA movwf EECON2 bsf EECON1,WR bsf INTCON,GIE ee_writewr bsf STATUS, RP0 ;added clrwdt btfsc EECON1,WR goto ee_writewr bcf EECON1,WREN bcf STATUS, RP0 ;added movf tmp_addr,W call readee subwf tmp,W skpnz return bsf STATUS,RP0 goto ee_write readee bsf STATUS,RP0 movwf EEADR bsf EECON1,RD movf EEDATA,W bcf STATUS,RP0 return delay_on1 movf dwell,0 movwf count2 loop_on1 call one_ms_delay decfsz count2,1 goto loop_on1 return one_ms_delay decfsz count1,1 goto one_ms_delay return end It is just something I found on the net and I was using it just to test the Wisp628. Any ideas what could be happening? Regards, *Carlos Marcano* -Guri, Venezuela- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist