Flip-Flops (Cambridge (CIE) A Level Computer Science): Revision Note
Exam code: 9618
SR & JK flip flops
What are SR and JK flip flops?
In A Level Computer Science, SR (Set-Reset) and JK flip flops are digital memory components used in sequential circuits
They store 1 bit of data and are commonly used in counters, control systems, and synchronous logic
They are both types of bistable circuits, meaning:
They have two stable states
They respond to clock signals
They are often edge-triggered (typically on the rising edge)
SR flip flop
SR stands for Set and Reset
An SR flip-flop can be constructed using NOR gates (common in exams)
Inputs:
S = Set
R = Reset
CLK = Clock (when edge-triggered)
Outputs:
Q = Current stored value
NOT(Q) = Inverse of Q
SR flip flop truth table (NOR logic)
S | R | Q (next state) | Description |
---|---|---|---|
|
|
| Memory/Hold |
|
|
| Reset |
|
|
| Set |
|
|
| Forces Q = 0 (NOR only) |
Examiner Tips and Tricks
In NOR-based SR flip-flops,
S = 1, R = 1
is not invalid, it forces Q = 0(In NAND-based designs, this state is undefined)
SR flip flop example
Action | S | R | Q | NOT(Q) | Reasoning |
---|---|---|---|---|---|
Initially |
|
|
|
| Set: S = 1 forces Q = 1 |
S changed to 0 |
|
|
|
| Memory mode: No change |
R changed to 1 |
|
|
|
| Reset: R = 1 forces Q = 0 |
R changed to 0 |
|
|
|
| Memory mode: Q holds |
S and R changed to 1 |
|
|
|
| NOR logic forces both Q and NOT(Q) to 0 (Q = 0) |
JK flip flop
The JK flip-flop is a more versatile version of the SR flip-flop
It solves the problem of the SR’s illegal state
Problem with SR | Why JK solves it |
---|---|
1. S = 1 and R = 1 is invalid | JK uses this condition to toggle the output instead |
2. Glitches from feedback loops | JK uses a clock to control exact timing of changes |
Inputs:
J = Set
K = Reset
CLK = Clock (required)
Outputs:
Q = Current state
NOT(Q) = Inverse
JK flip flop truth table
J | K | Q (next) | Description |
---|---|---|---|
|
|
| Memory/Hold |
|
|
| Reset |
|
|
| Set |
|
|
| Q becomes NOT(Q) |
Use cases
Flip Flop | Typical uses |
---|---|
SR | Simple memory, control circuits |
JK | Toggles, counters, frequency dividers |
Worked Example
Draw a logic circuit for an SR flip-flop and label the inputs.[3]

Answer
Or

You've read 0 of your 5 free revision notes this week
Unlock more, it's free!
Did this page help you?