PIC to PIC, How Many IO Connections Required?


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default PIC to PIC, How Many IO Connections Required?

    I'm going to be connecting two PIC together and require bi-direction operation. How many IO lines should I plan on having to use?

  2. #2

    Default

    The project actually consists of 3 PICs with PIC_1 talking to PIC_2 and PIC_2 talking to PIC_3 but PIC_1 and PIC_3 don't know about each other.

  3. #3
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511

    Default

    Hello CocaCola,

    One line is all that is necessary...

    Using Serin and "Flags" to signify the different "chips"

    Like the wait flag in Serin2...Thus, the Receive will not be implimented until a certain flag is triggered.



    Dwayne
    Last edited by Dwayne; - 1st September 2005 at 16:49.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  4. #4

    Default

    I was actually thinking 3 lines. One transmission, one to tell the other to get ready to receive and one for replying to the request to start sending.

  5. #5
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511

    Default

    Hello CocaCola,

    Yes, 3 wires will work too...

    So will 4... It is really all up to you, and how you want to handle it.

    with the "Wait" command, you can signify the "Wait" characters to be specific to each chip.

    SERIN 1,N2400,[“A”],B0

    Instead of using "A", you can use a non-printable value like $FA or whatever you want..

    $FA = chip1
    $FB = chip2
    $FC = chip3

    Assign them letters that are not used ...zza zzb zzc.

    Thus, only THAT chip that is looking for zza will recognize the transmitting data.

    Or, like you say... 3 wires will work just fine...One per chip...

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 1

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