Serial Sharing


+ Reply to Thread
Results 1 to 6 of 6

Thread: Serial Sharing

  1. #1
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    64

    Default Serial Sharing

    I have a system with 2 PIC processors and 1 RF module with a serial interface. Question is: can I connect both PICs to the input of the RF module to broadcast from both (not at the same time obviously) using a software command like Serout2?
    When dedicating a pin to be serial output, can you initialise the pin to be an input and let the Serout2 command to automatically switch the pin to an output when called? I ask that because the manual says "DataPin is automatically made an output"? Does that mean the pin is automatically reverted back to whatever I/O state it was set to after the packet it sent?

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    1,731

    Default Re: Serial Sharing

    I ask that because the manual says "DataPin is automatically made an output

    a bit further down in the mode description is says
    Bit 15 selects whether the data pin is always driven (bit 15 = 0), or is open in one of the states (bit 15 = 1). The open mode can be used to chain several devices together on the same serial bus.
    This is more entertaining than Free to Air TV

  3. #3
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    64

    Default Re: Serial Sharing

    Legend! Thanks again Richard!

  4. #4
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    64

    Default Re: Serial Sharing

    1 more quicky: so, if you chain 2 or more utilising the "open" state - I'm assuming that the open state is keeping them in high impedance mode when not transmitting - do you need a weak pullup or whatever on the line?

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,975

    Default Re: Serial Sharing

    Depends on the driver. But does no harm to have a high-ish value, say of 10K just to fix a space condition on the serial bus.

    Ioannis

  6. #6
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    64

    Default Re: Serial Sharing

    Thanks Ioannis.

Similar Threads

  1. Sharing my enthusiasm too!
    By ardhuru in forum WiFi
    Replies: 15
    Last Post: - 26th May 2016, 23:27
  2. Sharing Crystal with 2 IC's
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 10th January 2013, 13:33
  3. Variable sharing. Not sure how to describe this.
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th April 2011, 15:29
  4. Sharing Serial connection
    By DynamoBen in forum Serial
    Replies: 6
    Last Post: - 9th March 2006, 18:07
  5. Sharing a USART
    By Ron Marcus in forum Serial
    Replies: 1
    Last Post: - 7th September 2005, 14:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts