thanks everyone for the fast replies (apologies for not being as reliable) been very busy with work. the pickit is not a clone as i bought it from rapid and it looks identicle to the image shown. I gave up with it (as i had a tight deadline, will return to it after this project is completed) and bought what i thought would be an easier solution from ebay (but i am having more issues with this)... i load the hex file to the software 'MicroBrn' and it successfully writes to the PIC (I know it is successful because i am able to read the code from the pic afterwards), however when i put the pic into the circuits nothing happens at all. The code i am using is very basic (though at the moment i feel stupid enough to get flashing an led wrong).
LIST P=16F628
#include "P16F628.INC"
__config _INTRC_OSC_NOCLKOUT & _LVP_OFF & _WDT_OFF & _PWRTE_ON & _BODEN_ON
;----------------------------
CBLOCK 0X20
Loop1,Loop2,Loop3,Loop4 ;Loop4 = potential to extend delay timing
ENDC
;----------------------------
;Initialise
;----------------------------
ORG 0X00
GOTO START
CLRF PORTA ; Initialize port A
CLRF PORTB ; Initialize port B
BSF STATUS,RP0 ; RAM bank 1
CLRF TRISA ; All pins port A output
CLRF TRISB ; All pins port B output
BCF STATUS,RP0 ; RAM bank 0
;-----------------------------
MOVLW 7
MOVWF CMCON ; Comparators off, all pins digital I/O
;-----------------------------
;Main Loop
;-----------------------------
START
BSF PORTA,1
BSF PORTA,2
BSF PORTA,3
CALL delay
BCF PORTA,1
BCF PORTA,2
BCF PORTA,3
GOTO START
;------------------------------
;DELAY
;------------------------------
delay
MOVLW 250
MOVWF Loop1
Outer MOVLW 200
MOVWF Loop2
Inner NOP
NOP
DECFSZ Loop2,F
GOTO Inner ; Inner loop = 5 usec.
DECFSZ Loop1,F
GOTO Outer
RETURN
END
here is an example of the code i am using and:View attachment 65659 is the programmer (DIY K149-BC) but i have a feeling it may be a copy.
LIST P=16F628
#include "P16F628.INC"
__config _INTRC_OSC_NOCLKOUT & _LVP_OFF & _WDT_OFF & _PWRTE_ON & _BODEN_ON
;----------------------------
CBLOCK 0X20
Loop1,Loop2,Loop3,Loop4 ;Loop4 = potential to extend delay timing
ENDC
;----------------------------
;Initialise
;----------------------------
ORG 0X00
GOTO START
CLRF PORTA ; Initialize port A
CLRF PORTB ; Initialize port B
BSF STATUS,RP0 ; RAM bank 1
CLRF TRISA ; All pins port A output
CLRF TRISB ; All pins port B output
BCF STATUS,RP0 ; RAM bank 0
;-----------------------------
MOVLW 7
MOVWF CMCON ; Comparators off, all pins digital I/O
;-----------------------------
;Main Loop
;-----------------------------
START
BSF PORTA,1
BSF PORTA,2
BSF PORTA,3
CALL delay
BCF PORTA,1
BCF PORTA,2
BCF PORTA,3
GOTO START
;------------------------------
;DELAY
;------------------------------
delay
MOVLW 250
MOVWF Loop1
Outer MOVLW 200
MOVWF Loop2
Inner NOP
NOP
DECFSZ Loop2,F
GOTO Inner ; Inner loop = 5 usec.
DECFSZ Loop1,F
GOTO Outer
RETURN
END
here is an example of the code i am using and:View attachment 65659 is the programmer (DIY K149-BC) but i have a feeling it may be a copy.