Is this how to copy one port to another?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Is this how to copy one port to another?

    If Port A is all input, and port B is all output, Does this move port A to Port B?
    PBP
    Code:
    PortB=PortA
    ASM:
    Code:
    movf porta,0
    movwf portb
    So are these the same?
    Last edited by cncmachineguy; - 18th November 2010 at 03:20. Reason: added
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Yup, do not forget to set the TRIS.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default thanks Dave

    TRIS???


    haha joking, i won't forget.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts