n° of serial receiver


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    20

    Default n° of serial receiver

    Hi!

    How many receivers can I connect on the same serial line?
    I have a 16f628a as transmitter and I have to receive serial data on 25rx (pic 16f648a)

    Is this possible without a signal amplifier?

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Due to the high sink/source current of the PICs Outputs (25mA)
    and the high impedance of it's inputs this shouldn't be a problem.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3
    Join Date
    Aug 2005
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Now I can try to build the entire system!

    Very thanks!

  4. #4
    Join Date
    Aug 2005
    Posts
    20


    Did you find this post helpful? Yes | No

    Question

    Ok, now I have a little problem!
    I have tested the system with three tx and ten rx, and it works! but now I have five tx(16f648a) and ten rx(16f648a) on the same serial line. Each transmitter have a 1k resistor on the tx pin. I use serout2 and serin2 command. Now I think I have a signal problem because any rx doesn't receive the signal! I check it with a scope and I can see that for every tx that I add to the system the signal go down of little.
    How can I do for make all work? Help me please!

    thanks in advance!

  5. #5
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by microuser
    Ok, now I have a little problem!
    I have tested the system with three tx and ten rx, and it works! but now I have five tx(16f648a) and ten rx(16f648a) on the same serial line. Each transmitter have a 1k resistor on the tx pin. I use serout2 and serin2 command. Now I think I have a signal problem because any rx doesn't receive the signal! I check it with a scope and I can see that for every tx that I add to the system the signal go down of little.
    How can I do for make all work? Help me please!

    thanks in advance!
    If your transmitters are at different logic levels then the combination of resistors will attenuate the level on your data line and you will get indeterminate logic levels.

    If the pins normally idle high then tie your data line high with a pullup resistor and use a diode from each transmitter pin to pull the line down when active.

    If the line is normally idle low then use a pull down resistor, flip the diodes the other way and then the active transmitter can drive the data line.

    The diodes will "OR" the signals together thereby avoiding shorting out any PICs and provided only one transmitter is sending at any one time it should work fine.

    DISCLAIMER: I havent actually tried this but it is how I am planning to do a similar application!!!

    Someone please stop me in advance if there is a better way of doing this

    Regards
    Keith

    www.diyha.co.uk
    www.kat5.tv

  6. #6
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hello,

    I have built to separate alarm monitoring systems this summer . One system has 20-16F74's talking to an 18F452. The other system operates the same and has 20 16F872's talking to a 16F877A. The serial lines on the 20 boards of each system have a 1K resistor on each board. NO PULLUPS on the senders! THIS IS IMPORTANT! The boards are all programmed as inputs normally and use the SEROUT2 command to send data. As soon as they are done sending the data, the command TRISA.#=1 is given to return the pin to an input state. The receivers (18F452 and 16F877A) have a 1K resistor inline with the input pin and a 100K resistor for a pullup. I did much hair pulling before writing to Stephen Collins (author of SIXPICS.BAS on MELABS site) for help. He sent me in the right direction. It took several days to get things straight but my systems have been working great since then. I have had to set up my "senders" to send the message 3 times with a 10ms pause between each one to eliminate missing and signals. I also have a "busy" line between all boards. The senders put the line to low to let the receiver know data is forth coming and go back to high when done. The receiver puts the line low and holds it there until an operator acknowledges receiving the alarm signal. Each sender sits in a loop waiting for the busy line to go high should any additional alarms get triggered while they are processing the previous alarm.

    Hope this helps you out. Let me know if I can be of further assistance.

    BobK
    Last edited by BobK; - 8th November 2005 at 02:48.

Similar Threads

  1. Replies: 33
    Last Post: - 19th March 2010, 03:02
  2. Serial Comms through TX/RX pair jumbled
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th July 2009, 21:04
  3. Dynamic USB Serial Number (PIC18F4550)
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2009, 17:03
  4. PIC to PIC "wired" serial one-way communication - SERIN2/SEROUT2
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th April 2008, 20:02
  5. interfacing to the pc serial port
    By kelangfei in forum General
    Replies: 4
    Last Post: - 7th October 2007, 22:35

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