Code:
org 000h
goto main
org 200h
main
nop
banksel trisb
movlw h'ff'
movwf trisb
banksel portb
clrf portb
goto $
end
I just wanted to clear Portb before getting ready for receiving input.
I checked and double checked with the code and couldn't find anything I might have missed, but no matter what, I couldn't find out why the portb register is not setting all of its bits. I checked the data sheet to see if in case port b has any special requirements or something. Couldn't find anything there. Am I wrong somewhere?
Thank you