Serial Sharing


Closed Thread
Results 1 to 6 of 6

Thread: Serial Sharing

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

    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
    2,379

    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.
    Warning I'm not a teacher

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

    Default Re: Serial Sharing

    Legend! Thanks again Richard!

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

    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
    3,793

    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
    127

    Default Re: Serial Sharing

    Thanks Ioannis.

Similar Threads

  1. Sharing my enthusiasm too!
    By ardhuru in forum WiFi
    Replies: 15
    Last Post: - 27th May 2016, 00:27
  2. Sharing Crystal with 2 IC's
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 10th January 2013, 14: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, 16:29
  4. Sharing Serial connection
    By DynamoBen in forum Serial
    Replies: 6
    Last Post: - 9th March 2006, 19:07
  5. Sharing a USART
    By Ron Marcus in forum Serial
    Replies: 1
    Last Post: - 7th September 2005, 15:48

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