hi
i'm making an experiment with a 8 bit MCU
i need two signals to turn on or off a device
A and B
so i placed them in two pins, lets say
MCUPIN8 and MCUPIN7
but after fooling around with the logic i came to the conclusion that
B = A'
which remind me of the flip flop D truth table
so i don't really need to waste two pins, one would do, but how can i generate the complement signal?
at first i though a npn transistor could help. i'll take the collector as A and the emitter as B and solved... but that's just too easy. would that really work?
i know the flip flop D does exactly what i want, but i'm asking this because i dont want to add a new part number to the bill of materials, but rather work with what i already have. besides, flip-flop d needs a clk, so i'd still be wasting two pins (at least). i could use that free pin in something else...
should i rather stay with the two pins?
thanks
i'm making an experiment with a 8 bit MCU
i need two signals to turn on or off a device
A and B
so i placed them in two pins, lets say
MCUPIN8 and MCUPIN7
but after fooling around with the logic i came to the conclusion that
B = A'
which remind me of the flip flop D truth table
so i don't really need to waste two pins, one would do, but how can i generate the complement signal?
at first i though a npn transistor could help. i'll take the collector as A and the emitter as B and solved... but that's just too easy. would that really work?
i know the flip flop D does exactly what i want, but i'm asking this because i dont want to add a new part number to the bill of materials, but rather work with what i already have. besides, flip-flop d needs a clk, so i'd still be wasting two pins (at least). i could use that free pin in something else...
should i rather stay with the two pins?
thanks