PIC to PIC "wired" serial one-way communication - SERIN2/SEROUT2


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Roger,

    Do you have a Pull-Up resistor on the serial line?

    SEROUT2 mode 49548 is Open Collector output. It never drives the line high, so it requires a pull-up.
    From your description, it sounds like you just have a 1.2k in series.

    Alternatively, you can use mode 16780 which will drive it high.
    <br>
    DT

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Sounds right... not sure how and why SERIN2 deal with it... how on earth an input could be an open-collector type NO i haven't open the LIB(s)
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    As far as SERIN2 is concerned, it doesn't matter.
    49548 and 16780 are the same thing.

    But it will make a difference with the SEROUT2.
    49548 - open collector output.
    16780 - Driven output.
    <br.
    DT

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    ...Do you have a Pull-Up resistor on the serial line?
    <br>
    Yes, a 10k. The 1k2 resistor is connected between both PICs.

    I'll have a try with a driven output.
    Roger

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default another transmission protocol

    Looking around the Internet for some additional information about IR transmission, I found out that i.e. SONY uses a Pulse Width Modulation protocol that looks simple to implement with PICs (http://www.sbprojects.com/knowledge/ir/sirc.htm).

    So instead of trying to establish a "serial" communication, I'll have a go with PULSOUT/PULSIN.

    Might be easier since the IR (hardware) layer is already working well.
    Roger

Similar Threads

  1. 2 PIC, serial communication
    By lightgreen in forum Serial
    Replies: 6
    Last Post: - 21st November 2009, 15:20
  2. Replies: 11
    Last Post: - 12th July 2008, 02:36
  3. Replies: 5
    Last Post: - 20th March 2006, 01:34
  4. Pic To Pic Serial Communication?
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 5th February 2005, 00:59
  5. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 15:45

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