latch and selector
Posted: Mon Apr 30, 2012 5:16 pm
Hi all,
This maybe really basic, but it was useful to me, so I wanted to post it if it's useful to anyone else.
Basically, it's the same code, for two different uses.
The first is a basic SR latch. Q, and /Q are latched on or off accordingly.
The second is a selector function. Trigger input 1, outputs state 1, which is on,off,off. Trigger input 2, outputs state 2, which is off,on,off. Trigger input 3, outputs state 3, which is off, off, on.
This maybe really basic, but it was useful to me, so I wanted to post it if it's useful to anyone else.
Basically, it's the same code, for two different uses.
The first is a basic SR latch. Q, and /Q are latched on or off accordingly.
The second is a selector function. Trigger input 1, outputs state 1, which is on,off,off. Trigger input 2, outputs state 2, which is off,on,off. Trigger input 3, outputs state 3, which is off, off, on.