If Port A is all input, and port B is all output, Does this move port A to Port B?
PBP
ASM:Code:PortB=PortA
So are these the same?Code:movf porta,0
movwf portb
Printable View
If Port A is all input, and port B is all output, Does this move port A to Port B?
PBP
ASM:Code:PortB=PortA
So are these the same?Code:movf porta,0
movwf portb
Yup, do not forget to set the TRIS.
TRIS???
haha joking, i won't forget.