Need help multiplexing EUSART output


Closed Thread
Results 1 to 35 of 35

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    They are OR gates.

    AND gates would be idle low so they wont work.
    NAND gates would be idle high, but the 1s and 0s of the serial transmission would be inverted, so that wont help.

    That is why I went with OR gates - idle high, non-inverted signal, logic 0 to enable, logic 1 to disable.

    It seemed like a perfect plan, so i don't know whats going wrong.
    Last edited by Kamikaze47; - 6th April 2008 at 14:31.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Kiss ...

    The obvious number is ...

    4081 AND Gates ...
    or
    4052 Triple 2 Input multiplexer

    or two series resistors, one to each addressed device ... and grounding ( or VCCing ) the signal ( past the resistor ! ) with another PIC pin , if NO transmission, and use the PIC pin as an input for transmission.

    may be too simple ?

    Alain
    Last edited by Acetronics2; - 6th April 2008 at 14:50.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    or two series resistors, one to each addressed device ... and grounding ( or VCCing ) the signal ( past the resistor ! ) with another PIC pin , if NO transmission, and use the PIC pin as an input for transmission.

    may be too simple ?
    I just did a few tests. This idea seems to be working. The signal would not get through the series resistor until i reduced the value to about 200 ohms. That means a 25mA draw whenever the signal is low. I guess that's not too bad.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  4. #4
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    The only thing that worries me is the possibility of reduced reliability due to the series resistors.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    74ls 425/426 ???
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Cant seem to find any info on the 74LS425/426 chips.

    But I think i'll pick up a 74LS139. The data sheet says its designed for high speed data, so it should be perfect.

    I still have no idea why my circuit in my OP does not work tho. As far as I can tell, it should.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  7. #7
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    How outlandish is this idea?

    I notice you only want to transmit, not receive.

    So, how about sending the same data to *both* your recipients, with an extra starting character that acts as a qualifier that decides which of the recipients would accept the data as valid? Assuming, of course, that you are in a position to modify the code at the target units as well.

    Regards,

    Anand

Similar Threads

  1. Help changing CCP3 output pin
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th July 2008, 03:30
  2. Bit Banging input to output on PIC16F876A
    By Bronurstomp in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 26th June 2008, 20:50
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 04:46
  4. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 23:19
  5. HSEROUT Newbie question/problem
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 11th July 2006, 15:44

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