RobertD
New Member
I've been getting this error code whenever I run the program to flash the LED. I can't find the error code for what it means. I'm running the code that worked earlier, does anyone have any ideas...?
Running Target
PK2Error0029: Failed PICkit 2 operation: Halt
PICkit 2 Ready
Running Target
PK2Error0029: Failed PICkit 2 operation: Halt
PICkit 2 Ready
Code:
LIST p=16F88
include "P16F88.inc"
__config _CONFIG1, _WDT_OFF & _INTRC_IO & _MCLR_ON & _LVP_OFF
cblock 0x20
;variables go here
d1
d2
d3
endc
org 0x0000 ;start of program
init
bsf STATUS,RP0 ;bank 1
movlw 0x72 ;8MHz internal osc
movwf OSCCON
movlw 0x07 ;turn comparators off
movwf CMCON
clrf ANSEL ;all pins digital
movlw 0x00 ;all pins outputs
movwf TRISA ;& 0x7f
movwf TRISB
bcf STATUS,RP0 ;select bank 0
main bsf PORTA,1
call delay
bcf PORTA,1
call delay
goto main
delay movlw 0x15
movwf d1
movlw 0x74
movwf d2
movlw 0x02
movwf d3
delay_0 decfsz d1,f
goto dd2
decfsz d2,f
dd2 goto dd3
decfsz d3,f
dd3 goto delay_0
return
end
Last edited: