Electronic – the simplest logic circuit + latch that satisfies this truth table

digital-logiclatchlogic-gates

enter image description here

This is not a homework problem, I'm just revisiting/relearning the practical applications of latches and logic circuits and I've been trying to figure this out on my own.

Basically, I want to turn one input bit into three possible states of two output bits. When the input bit is "0", both output bits should also be "0". When the input bit is "1", one of the output bits should be "1" and the other should be "0". Which output bit is "1" should alternate every time the input bit is "1". I suspect this can be done with two SR latches and an inverter but I can't for the life of me figure out how… any ideas are welcome!

Best Answer

Try to use JK-flip flop with two AND gates. J and K input connect to Vcc and AND gates place on the inverted and non-inverted output. The outputs change everytime the input is one and when the inputs is 0 the AND gates turn off the outputs. Probbably the simplest solution.enter image description here