1. andy24691

    Thread Starter Member

    Nov 25, 2010
    As the initial part of a project where I have to make a three node lan network, I am making a circuit consisting of 2 PIC's which can do the following.

    - Each PIC has two data switch inputs.
    - Each PIC should be able to output this data to the other.
    - Each PIC should be able to receive this data from the other PIC and output this to LED's which displays the data.

    I made a very crude diagram illustrating these requirements.


    I'm not particularly good at coding PIC's so I would like to know if its alright to stick all these I/Ps and O/Ps on port B. Seems like a good idea to put everything in one place. How can a PIC be coded to pass data from an input of the PIC to an output? i.e. transferring the input data from the switches to an output of the PIC. It seems like it should be straight forward but I can't figure it out.

    Any help would be greatly appreciated.

  2. CVMichael

    Senior Member

    Aug 3, 2007
    What programming language do you use ? (ASM, C, Basic ?) and what compiler?