d@nny
Full Member level 5
the bsc portb , 0 should only hi RB0 but the whole port i mean the 8 pins of portb going to hi with this command.
processor 16f84
include <p16f84.inc>
__config _RC_OSC & _WDT_OFF & _PWRTE_ON
; Please insert your code here.
J equ 21h
org 00h
main:
banksel TRISB
movlw B'00000000'
movwf TRISB
banksel PORTB
bsf PORTB , 0
fin:
goto fin
end
the whole portb becomes hi with this command bsf
processor 16f84
include <p16f84.inc>
__config _RC_OSC & _WDT_OFF & _PWRTE_ON
; Please insert your code here.
J equ 21h
org 00h
main:
banksel TRISB
movlw B'00000000'
movwf TRISB
banksel PORTB
bsf PORTB , 0
fin:
goto fin
end
the whole portb becomes hi with this command bsf