Shiftin / pic to pic communication.


Closed Thread
Results 1 to 5 of 5

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Can you switch over to hardware serial ?

    Then you could use an interrupt to receive the data.

    Less pins used too.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Hi,
    You can't use Shiftin and Shiftout like that. Both commands expects to be "in control" - both acts as the "master" - so they can't really be used the way you want.

    Using RS232 as mackrackit suggests is probably your best bet. You can use either the hardware USART or the bitbanged SERIN(2)/SEROUT(2) commands with flow control to make sure PIC 1 doesn't begin sending before PIC 2 is ready.

    /Henrik.

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