Spehro Pefhany said:
You can use 1/3 of a 74HC4052, which doesn't buffer the signals. If
you have a spare inverter around you can use two AND gates (B, /B
inputs to the gates), or two NAND gates and 3 inverters etc.
Thanks Speff. I don't have a 74HC4052 so I'll go with Petrus's 4001
approach. I blame the lateness and the wine, as it really is pretty
straightforward now that I look at it this morning!
Thanks for all replies. Here's my probable solution:
http://www.terrypin.dial.pipex.com/Images/LogicSolutions.gif
I got a bit preoccupied with trying (in vain) to find a way of using
two 4077 EXCL NOR gates I have spare. But, as I have no other spare
gates anyway, that would still have meant adding another chip.
For those that may be interested, the context is that this arises from
my curtain control project (separate threads). That has to be finished
by tonight. So far my design just has push-buttons for Open and Close,
plus two limit microswitches. All 4 of these deliver a high-going
pulse to set or reset two latches, which respectively drive relays,
one a DPDT controlling motor direction, the other SP switching motor
current on/off. I want to replace them by a single button, for 3
reasons:
- To allow electronic rather than manual triggering (e.g. by a timer,
and/or by a dawn/dusk circuit)
- To minimise wiring
- Because of the obvious redundancy of having two buttons (the state
of the curtains is obvious on sight!)
A brief push will then change the state of the curtains. Or a single
pulse (in parallel with the single button), from say a mains timer set
to 22:00 will close them, while the next such pulse at say 07:00 will
open them.
So:
A = proposed new single button signal
B = state of curtains (arbitrarily, H==>closed, L==>opened)
Out 1 = replacement for signal from Open button
Out 2 = replacement for signal from Close button.