Design Ideas September 28, 1995
The validation circuit in Fig 1 allows you to check the consistency of successively recurring 3-bit address codes. The circuit simultaneously applies the address code to the A port of IC2, a 7485 magnitude comparator, and to IC3, a 1-of-8 decoder. When IC2's B port reads the same address latched on the output of D flip-flop, IC1, OA=B goes high, thus enabling IC3. IC4's 4-bit counter counts the number of successive enables sent by IC2. Once the counter reaches the required number of validations, IC4 generates its own enable for IC3.
At start-up, OA=B is low, which disables E2, and IC4 is preset to zero. At the onset of the first address code, IC2 compares this code with the contents of IC1. Because the contents will be different, OA=B remains low, enabling PE. At the arrival of the clock pulse, IC4 is again preset to zero, and IC1 loads the first address code.
The circuit again compares the next address code with the contents of IC1. If they are identical, OA=B goes high, enabling E2 and disabling PE. Consequently, the following clock pulse increments the count of IC4. When the circuit attains the required number of validations, the Q2 output of IC4 goes high and completely enables IC3. If you need more validations, you can cascade additional 74161 counters.