i am trying to use pic16f84 but can'nt do so . please some one help me i have created uJDM programmer which is successfully writing hex file in pic. but when i put pic in circuit (e.g led flasher ) it do'nt work. please help me.
yokivo (yokivo(at)yahoo(dot)com)
Haha, that's crap software
Luckily the software I use doesn't. I won't show verify or programming success if there is no PIC But it shows erase completed even there is no PIC.
I seldom use the erase button because I've set it to auto erase before programming.
Ok here is asm and schematic i used please tell me if i have some problem with it. thanks in advance.
;File DEMO.ASM
;Assembly code for PIC16F84 micro controller
;Blinks LED's on the outputs in a rotating pattern.
;With 75khz osc, each LED stays on half a second.
;CPU configuration
; (its a 16F84,RC Oscillator, watchdog timer off, power-up timer on)
processor 16f84
include <p16f84.inc>
_config _RC_OSC &_WDT_OFF &_PWRITE_ON
;Declare variables at 2 memory locations.
J equ H'1F' ;J=Address hex 1F
K equ H'1E' ;K=Address hex 1E
;Program
org 0 ;start at address 0
;Set port B as output and initialize it
movlw B'00000000' ;w : =00000000 binary
tris PORTB ;port B ctrl register := w
movlw B'00000001' ;w := 00000001 binary
movwf PORTB ;port B itself := w
;Rotate the bits of port B leftward
mloop: rlf PORTB,f
;Waste some time by executing nested loops.
movlw D'50' ;w := 50 decimal
movwf J ;J :=w
jloop: movwf K ;K :=w
kloop: decfsz J,f ;J = J -1, skip next if zero
goto kloop
decsz J,f ;J = J - 1, skip next if zero
goto jloop
;Do it all again
goto mloop
end