23-May-2016, 2:06 PM
(This post was last modified: 23-May-2016, 2:09 PM by FelixNemis.)
Quote:If I understand correctly, in simple terms what's happen is...Almost, the clock itself simply turns on for 1 tick, then off for 7 ticks, like this:
Code:
C 1 2 3 4 5 6 7 C 1 2 3 4 5 6 7 C 1 2 3 4 5 6 7
-------------------------------------------------
|+| | | | | | | |+| | | | | | | |+| | | | | | | |
-------------------------------------------------
When one of the inputs is on, it will cause the wire to be activated in one of those normally off ticks, so say you turn on input 3, the output pattern then changes to this:
Code:
C 1 2 3 4 5 6 7 C 1 2 3 4 5 6 7 C 1 2 3 4 5 6 7
-------------------------------------------------
|+| | |+| | | | |+| | |+| | | | |+| | |+| | | | |
-------------------------------------------------
The output circuit sets each output based on the signal on the wire during n-ticks after the clock tick, so it turns on output 3.
Once input 3 is off, then after the next cycle of the clock output 3 will be turned off again.
And it works with any combination of inputs being on and off.
Quote:You could use this to compare 2 sets of inputs values e.g. on/off (though it might be simpler to just compare each pair of inputs individualy) but you need some seperate way of storing the information of which order they were activated in
I have a question for anyone knowledgeable or inclined; might it be possible to use two of these [or a similar set up] to compare two sets of data inputs [in the form of switch presses in a particular order]?
What I want to do is have two sets of switches being pressed in a certain order and be able to confirm whether or not the two match.