PDA

View Full Version : Is this how to copy one port to another?



cncmachineguy
- 18th November 2010, 02:32
If Port A is all input, and port B is all output, Does this move port A to Port B?
PBP


PortB=PortA

ASM:


movf porta,0
movwf portb


So are these the same?

mackrackit
- 18th November 2010, 03:29
Yup, do not forget to set the TRIS.

cncmachineguy
- 18th November 2010, 05:15
TRIS???


haha joking, i won't forget.