Feedback gives memory.
Wire two gates into each other and the circuit keeps a bit after the inputs go away. That is the start of every register, counter and memory.
The SR latch
Two NOR gates, each output feeding an input of the other. S = 1 sets Q to 1, R = 1 resets it to 0, and with S = R = 0 the outputs keep whatever they had: the circuit remembers. S = R = 1 is forbidden: both outputs go to 0 and the next state is unpredictable.
S = R = 0: no change, Q stays 0. The latch remembers.
NAND latch
Two cross coupled NAND gates make the same latch with active LOW inputs: S' = 0 sets, R' = 0 resets, both 1 hold. Put an inverter on each input and it behaves like the NOR latch (Task 4).
Gating with Enable
Two more NAND gates in front of a NAND latch pass S and R only while EN = 1. With EN = 0 the latch holds, whatever S and R do. That is the gated SR flip flop of Task 2a.
D and J-K
R is D inverted: S and R are never both 1. While EN = 1, Q follows D.
Q' goes back to the J gate and Q to the K gate. J = K = 1 toggles instead of being forbidden.
With EN held HIGH a gate J-K toggles again and again. Real J-K flip flops (7473) toggle once per clock edge.
Level or edge
Set EN / CLK to 1, then change D: the latch follows D, the flip flop does not. The flip flop took D only at the moment the clock went from 0 to 1.
Hold the chip with its notch on the left. Pin 1 is at the bottom left, the pins count up to the right, then continue along the top from right to left. Most 14 pin chips have VCC on pin 14 and GND on pin 7, but not all: check every new chip.
The 7475 has VCC on pin 5 and GND on pin 12; the 7474 the usual 14 and 7. Leave the 7474 preset and clear open (HIGH) unless you need them: a LOW there overrides the clock.
Bounce
A mechanical switch does not close cleanly: the contacts bounce for a few milliseconds and a flip flop may see two or three clock edges for one press. The push switches of the trainer (and of this bench) bounce. A NAND SR latch between the switch and the clock input removes it.
Check yourself
Q1NOR latch, Q = 1. S goes 0, R stays 0. What is Q?
1: no change.
Q2Which input state is forbidden for the NOR SR latch?
S = R = 1.
Q3A D latch has EN = 1. D changes from 0 to 1. What does Q do?
Follows D to 1 at once.
Q4A 7474 has CLK held HIGH. D changes. What does Q do?
Nothing: it changes only at a rising clock edge.