12

enter image description here

I know I can do this with two separate NAND gates, but it would be more space consuming. Is there a single standard logic gate (e.g.; 74V1Gxxx - SOT-23 package is preferred) which produces this result?

Or, can I get this result by using two transistors at most?

hkBattousai
  • 14,073
  • 33
  • 114
  • 197

4 Answers4

15

Sure, you could use a 74AXP1G57 "Low-power configurable multiple function gate"

enter image description here

enter image description here

It comes in a very small 6-pin package.

Spehro Pefhany
  • 397,265
  • 22
  • 337
  • 893
  • 2
    '1G57 for the smaller problems, '1G99 for the larger ones (no puns intended). – Ignacio Vazquez-Abrams May 28 '14 at 12:34
  • 2
    That's nice, because a dual NAND package would be at least 8 pins. – Ben Voigt May 28 '14 at 15:53
  • Do I read correctly that there are four ways to hook this up as an OR-NOT (A=0, B=1, A=C, B=C) but no way to use it as an OR, NAND or AND-NOT? – John Dvorak May 29 '14 at 05:08
  • @JanDvorak It's not really a universal gate, but it does some interesting things- most multiple-input gates are symmetric- and the ST inputs are usually an advantage (especially for applications like roll-your-own SMPS designs). – Spehro Pefhany May 29 '14 at 12:59
4

You could wire up a SN74LVC2G157 to do this function.

In general, when you need arbitrary logic, think "multiplexer."

Dave Tweed
  • 172,781
  • 17
  • 234
  • 402
3

You could wire up an LM556 (dual 555 timer IC), with the input stage wired normally and the output stage wired as an inverter.

Alex Shroyer
  • 1,310
  • 8
  • 14
1

I think this would take up more board space than the accepted answer, but it was fun to think about:

schematic

simulate this circuit – Schematic created using CircuitLab

Alex Shroyer
  • 1,310
  • 8
  • 14