Part of my 8-bit breadboard computer series. The humble 4to1 multiplexer (or data selector) can be configured as 16 different weird and wonderful logic gates.

By Julian

Youtuber, shed dweller, solar charge controller aficionado

18 thoughts on “74ls253 4-input multiplexer as a multifunction logic gate”
  1. Avataaar/Circle Created with python_avatars Ken Peter says:

    Use other 4Way as magnitude comparator. Let 00 and 11 pass EQual. Let 01 pass LT control, and 10 pass GT. EQ also serves Borrow, or Carry (but first let ADD XORvert B). Inverse B distorts the truth table, no problem but truth NXOR to get XOR for addition. Transmission gate upgrade will let comparison propagate without ripple. 74CBT3253 dual 4Way fits well with 74LVC2G86 dual XOR on a generic SSOP to DIP28 converter. XOR your current logic result with previous CarryBorrowEQual for a complete ALU. A+B, A-B, B-A, all 16 logics, 6 comparisons, everything but rotate. Jam the chain uniformly high or low LT=EQo=GT for plain logic without arithmetic.

  2. Avataaar/Circle Created with python_avatars movax20h says:

    2 = A AND (NOT B), aka AB==10

    4 = B AND (NOT A), aka AB=11

    11 = A OR (NOT B), aka AB!=11

    13 = B OR (NOT A), aka AB!=10

    Great discovery about multi-functionality of this chip. Could be great for implementing ALU components. Or home brown FPGA

  3. Avataaar/Circle Created with python_avatars RichardInCancale says:

    I wish you could bring this project to the next step – just been watching the playlist!

  4. Avataaar/Circle Created with python_avatars Pete Sapwell AKA Geekfix1706 says:

    I had no idea a multiplexer could be used like that! Brilliant!

  5. Avataaar/Circle Created with python_avatars Markus Preckl says:

    Regarding the 4 "left-over" states of your truth table: Do you know about the "imply" gate function? The state "LED is lit" relies upon (or IMPLIES) that power be fed to your circuit. If your circuit has no power, but the LED is lit, that's an invalid state. Try "B implies A" and "A implies B" as well as the inverted-output variation of both" for these four lines in your 4-bit truth table.

  6. Avataaar/Circle Created with python_avatars Chris says:

    You are WRONG at the end of your Video! The 2 select lines are common to the multiplexers.
    You could only have 2 different permutations for the inputs A and B!
    Eg.: one side performs XOR and the other AND, which is an Half adder (how convenient)

  7. Avataaar/Circle Created with python_avatars זיו שדאור says:

    Can you post where did you buy the HEX switch? Thanks

  8. Avataaar/Circle Created with python_avatars flyingllama87 says:

    There is going to be more right Julian? 🙂

  9. Avataaar/Circle Created with python_avatars Darth Makroth says:

    i subscribed because of these stuff 😛 i love watching vids on home brew breadboard computers make more on this please

  10. Avataaar/Circle Created with python_avatars Gordon Charlton says:

    Bit late to the game, but here's my thoughts.

    That's every possible logic gate for two bits. Looking forward to seeing you figuring out the 512 ways (16*16*2 2 for add or subtract) that two stacks of them can combine with the adder. 🙂

    True and False are definitely useful – set one multifunction to False (0) to use the other to do straight bitwise logic, and set one to TRUE (-1) and either subtract or add to increment or decrement a number.

  11. Avataaar/Circle Created with python_avatars gudenau says:

    I noticed that if you split it down the middle of the X axis the bottom is inverted and mirrored. Neat!

  12. Avataaar/Circle Created with python_avatars Mahesh Rakhonde says:

    I want to meet you some day….😊

  13. Avataaar/Circle Created with python_avatars cogwheel42 says:

    A is A, but B is not B

  14. Avataaar/Circle Created with python_avatars Daniel says:

    I like the rotary encoder switch, can't find it on BangGood or Aliexpress. Where did you get it?

  15. Avataaar/Circle Created with python_avatars Sadie Kaye says:

    Hi I don't see how you can get an 8-bit wide gate (two input 8 bit words) from only four of these beasts since as I understand it the two "sides" of the '253 use the same A B control lines.

  16. Avataaar/Circle Created with python_avatars Florian Trück says:

    What a wonderful Idea!!! I see some usefull ways to use this: a digital filter stage for datastreams, a timing manipulator for a R-C element (kinda for music?)

  17. Avataaar/Circle Created with python_avatars Stephen Moll says:

    Why not call:
    Function 2 : "A>B"
    Function 4 : "A<B" or "B>A"
    Function B : "A>=B"
    Function D : "A<=B" or "B>=A"
    ?

  18. Avataaar/Circle Created with python_avatars Ray Gannon says:

    Very dodgy relying on TTL inputs floating high Julian. Beware of induced noise

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.