tijoseymathew
Member level 4
hi
I am trying to code a simple program like this
W equ 00h
STATUS equ 03h ;Address of the STATUS register
TRISB equ 86h ;Address of the tristate register for port A
PORTB equ 06h ;Address of Port A
;****Set up the port****
bsf STATUS,5
movlw 00h ;Set the Port A pins
movwf TRISB ;to output.
bcf STATUS,5
Start
movlw b'11111111'
movwf PORTB
goto Start
end
I am programming using a jdm programmer and the pic gets verified correctly.
but when i put it in breadboard i am not getting an o/p from port b. I hvae checked everything and tried changing parts also in the circuit.
i have previously used this programmer succesfully on many programs
I cant understand wht is wrong this time
I am trying to code a simple program like this
W equ 00h
STATUS equ 03h ;Address of the STATUS register
TRISB equ 86h ;Address of the tristate register for port A
PORTB equ 06h ;Address of Port A
;****Set up the port****
bsf STATUS,5
movlw 00h ;Set the Port A pins
movwf TRISB ;to output.
bcf STATUS,5
Start
movlw b'11111111'
movwf PORTB
goto Start
end
I am programming using a jdm programmer and the pic gets verified correctly.
but when i put it in breadboard i am not getting an o/p from port b. I hvae checked everything and tried changing parts also in the circuit.
i have previously used this programmer succesfully on many programs
I cant understand wht is wrong this time