Skip to main content

Section 5.7 Remembering Things

In previous circuits we have seen, the flow of power has gone strictly left to right. But we can take the output of a gate and feed it back in as the inputs to earlier gates. This is the secret behind building a โ€œmemoryโ€ circuit: feeding the output back into the circuit produces a loop that โ€œremembersโ€ a value. The circuit below uses two NOR gates (NOR is short for Not OR, which is a NOT gate that comes right after an OR). Notice how the output of each NOR gate feeds back as an input to the other gate.
With that circuit (known as an SR Flip Flop), try the following experiments
  • Turn on Input 1 - this Sets the memory to 1. (Setting this input to on does nothing if the memory is already 1.)
  • Turn off Input 1. Notice that the memory stays on even though both switches are off.
  • Turn on Input 2 - this Resets the memory to 0. (Setting this input to on does nothing if the memory is already 0.)
  • Turn off Input 2. Now the circuit remembers the value 0 while both switches are off.
Essentially, the circuit remembers which input, Set or Reset, was most recently on. This is a form of memory: If we want to remember 1, we flip Input1 on briefly. To remember 0, we flip Input2 on briefly.
Many other circuits can โ€œrememberโ€ a value, but they all use this same basic idea of feeding outputs back in as inputs. To remember more than one bit, we would simply need to make multiple copies of this circuit, one for each bit we need to store.

Checkpoint 5.7.1.

In the SR flip-flop shown here, what happens when Input 1 is turned on?
  • The memory is set to 1.
  • The memory is reset to 0.
  • Both inputs are disconnected from the circuit.
  • The circuit stops remembering its value.

Checkpoint 5.7.2.

What feature allows the circuit to remember its value when the inputs are turned off?
  • It makes use of OR gates.
  • The final output is fed back into the circuit as an input.
  • It makes use of NOR gates.
  • It has two inputs and one output.
You have attempted of activities on this page.