PIC to PIC Serial Communications?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    19

    Default PIC to PIC Serial Communications?

    I am working on a joint project with another programmer in another area to communicate some data between our PIC processors.

    We have chosen serial comm to do this. Can we simply connect the TTL levels together between PICs or must I use level converting chips?

    He is writing to hardware with C code I believe and I am using PICBASIC PRO Serout/SerIn. Does any of this have any bearing as far as inverted signals etc. are concerned?

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


    Did you find this post helpful? Yes | No

    Default Re: PIC to PIC Serial Communications?

    If you are going to generate the serial in software I would use SERIN2/SEROUT2.

    If your friend is using the hardware port then the signal will be true and the same if you use the hardware port (HSERIN/HSEROUT).

    With the software method you can choose inverted or true. So there is a combination to connect both PICs together directly..

    But... how far apart will they be???
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2010
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Re: PIC to PIC Serial Communications?

    I'm not sure about the distance but am guessing about a foot apart.

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


    Did you find this post helpful? Yes | No

    Default Re: PIC to PIC Serial Communications?

    That will not be a problem. 30 feet or so then you would probably need a MAX232 or equivalent to bring the signal up to RS232 levels.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Oct 2005
    Location
    Pinckney, Michigan
    Posts
    91


    Did you find this post helpful? Yes | No

    Default Re: PIC to PIC Serial Communications?

    Quote Originally Posted by tjkelly View Post
    I am working on a joint project with another programmer in another area to communicate some data between our PIC processors.

    We have chosen serial comm to do this. Can we simply connect the TTL levels together between PICs or must I use level converting chips?

    He is writing to hardware with C code I believe and I am using PICBASIC PRO Serout/SerIn. Does any of this have any bearing as far as inverted signals etc. are concerned?
    Yes, this is commonly called SCI, and I've been doing it for years, on 15foot long cables through automotive environments.

    See link below:

    http://www.interfacebus.com/Design_C...r_SCI_Bus.html

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