I have some troubles with programing the 16f628A with mplab icd2
i configured all bits configured, i don't have any pull up resistor in RB and RB7, the voltage suply is ok for Vdd and Vpp. the dispositive pass al the self test and the voltage have a rigth value. also i configured d bits configured in the program like this:
__CONFIG _HS_OSC & _WDT_OFF & _PWRTE_ON & _BODEN_OFF & _MCLRE_OFF _CP_OFF & _LVP_OFF & _DATA_CP_OFF
I tried with two tipes of communication with usb an with serial mode bu it continue wrong.
This is the error show in my output window.
Programming Target... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sur that the target device is connected and properly powered. Select "OK" t continue, or "CANCEL" to abort the operation ..Validating configuration fields ..Erasing Part ..Programming EEPROM Memory ..Programming Program Memory (0x0 - 0x2F) ..Programming User IDs Verifying... ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sur that the target device is connected and properly powered. Select "OK" t continue, or "CANCEL" to abort the operation ..Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val0x2820, Val Read = 0x0) ICD0275: Programming failed. MPLAB ICD 2 Ready
in this text there are two warnings, the one is ICDWarn0052 and i chec all my connections ande the suply voltage of the pic and all are fine.
And the second warning is ICD0161 is something for the verification par of the icsp protocol, but i don't know what it read a cer value?
I don't what is the problem in my circuit or in the mplab icd configuration if anybody know something about this problem please i nee some help