jkashiwada
New Member
Hello,
This is my first post, Hopefully someone will be able to help me. I just got my first programmer, a clone of the MPLAB ICD2 (serial) from tekdevice on ebay. I wanted to test it on a PIC16F88 that i had. I plug it in and start up MPLAB and connect to the ICD2. It recognized it, loaded a new OS, and occasionally detects the pic in the ZIF socket.
When I try to program the PIC, i get the following:
MPLAB ICD 2 ready for next operation
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC16F88 found, revision = Rev 0x8
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 ready for next operation
Erasing Target Device...
...Erase Succeeded
MPLAB ICD 2 ready for next operation
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x20 - 0x27)
Verifying...
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x20, Expected Val = 0x1683, Val Read = 0x86)
ICD0275: Programming failed.
MPLAB ICD 2 ready for next operation
Can anyone help me figure out why i get "verify failed"?
my code is short, just wanted to test if i could program the pic. Could there be errors here too? Any help would be greatly appreciated.
;code
LIST p=16F88 ; list directive to define processor
#INCLUDE <P16F88.INC> ; processor specific variable definitions
;------------------------------------------------------------------------------
__CONFIG _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_OFF & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_ON & _PWRTE_ON & _WDT_OFF & _INTRC_IO
__CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF
;------------------------------------------------------------------------------
org 0x0020
Begin
BANKSEL TRISB
MOVLW b'00000000'
MOVWF TRISB
BANKSEL PORTB
MOVLW b'00000001'
MOVWF PORTB
END
This is my first post, Hopefully someone will be able to help me. I just got my first programmer, a clone of the MPLAB ICD2 (serial) from tekdevice on ebay. I wanted to test it on a PIC16F88 that i had. I plug it in and start up MPLAB and connect to the ICD2. It recognized it, loaded a new OS, and occasionally detects the pic in the ZIF socket.
When I try to program the PIC, i get the following:
MPLAB ICD 2 ready for next operation
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
Target Device PIC16F88 found, revision = Rev 0x8
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 ready for next operation
Erasing Target Device...
...Erase Succeeded
MPLAB ICD 2 ready for next operation
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x20 - 0x27)
Verifying...
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x20, Expected Val = 0x1683, Val Read = 0x86)
ICD0275: Programming failed.
MPLAB ICD 2 ready for next operation
Can anyone help me figure out why i get "verify failed"?
my code is short, just wanted to test if i could program the pic. Could there be errors here too? Any help would be greatly appreciated.
;code
LIST p=16F88 ; list directive to define processor
#INCLUDE <P16F88.INC> ; processor specific variable definitions
;------------------------------------------------------------------------------
__CONFIG _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_OFF & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_ON & _PWRTE_ON & _WDT_OFF & _INTRC_IO
__CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF
;------------------------------------------------------------------------------
org 0x0020
Begin
BANKSEL TRISB
MOVLW b'00000000'
MOVWF TRISB
BANKSEL PORTB
MOVLW b'00000001'
MOVWF PORTB
END