Shop OBEX P1 Docs P2 Docs Learn Events
how to progam a 8 to 1 multiplexer — Parallax Forums

how to progam a 8 to 1 multiplexer

ArchiverArchiver Posts: 46,084
edited 2003-04-06 15:21 in General Discussion
hey

this is kristof from Belgium and I'm in my senior year electronics
and I have to make a work about The BS1. I want to make a robot with
sensors, remote control and 2 DC-motors the first 2 take 6 pins and
becaus of that I use a 8 to 1 multiplexer.
the only problem is program it.
so if you can help me any help is welcome

thanks

kristof van laecke

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-04-06 10:15
    Zeurlapsje.

    --- In basicstamps@yahoogroups.com, "kristofvanlaecke"
    <luc.vanlaecke@s...> wrote:
    > hey
    >
    > this is kristof from Belgium and I'm in my senior year electronics
    > and I have to make a work about The BS1. I want to make a robot
    with
    > sensors, remote control and 2 DC-motors the first 2 take 6 pins
    and
    > becaus of that I use a 8 to 1 multiplexer.
    > the only problem is program it.
    > so if you can help me any help is welcome
    >
    > thanks
    >
    > kristof van laecke
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-06 15:10
    To control an 8 to 1 multiplexor you will need a minimum of three output pins
    from the stamp.

    The general idea is as follows:

    Three binary lines can give you 8 different combinations, and that is what
    will allow you to select one of 8 lines.

    If you use for example a MC14512, and tie pins Inhibit and Disable low, then
    using three control lines you can select one of 8 inputs to show up at the
    output, Z.

    Inputs A B C....Output Z (X0 through X7)
    000...X0
    001...X1
    010...X2
    011...X3
    etc
    111...X7

    Ken


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-06 15:21
    In a message dated 4/6/2003 7:11:40 AM Pacific Daylight Time,
    smartdim@a... writes:

    > If you use for example a MC14512, and tie pins Inhibit and Disable low, then
    >
    > using three control lines you can select one of 8 inputs to show up at the
    > output, Z.
    >
    > Inputs A B C....Output Z (X0 through X7)
    > 000...X0
    > 001...X1
    > 010...X2
    > 011...X3
    > etc
    > 111...X7
    >
    > Ken
    >

    Please let me clarify....as the above does not read correctly......
    A, B & C are control lines. X0 through X8 are the inputs, Z is the output.

    Depending on the binary combination on the control lines ABC, it will give
    you one of the inputs X0 ~ X7 on the output, Z.

    (I should proof read my posts before hitting send!!!!!!)

    Ken


    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.