Flip-flops and Counters | AQA A Level Physics notes
Free preview: Flip-flops and Counters
Sequential Logic and the Flip-flop
Logic with a memory
In sequential logic the output depends on the inputs and on what happened before: the circuit remembers. Changes happen in step with a clock, a square wave of regular pulses. The basic memory element is the flip-flop, which stores one bit.

The D-type flip-flop
- Inputs: data D and clock CLK (the small triangle means it reacts to the clock edge).
- Outputs: Q and (always the opposite of Q).
- On each rising edge of the clock (0 → 1), Q takes the value D has at that instant, and holds it until the next rising edge, whatever D does in between.
Dividing by two
Following the right of the diagram: connect back to D. Now at each rising edge Q becomes the opposite of what it was: it toggles. Q goes through one full cycle for every two clock cycles, so its frequency is half the clock frequency.
💡 Clock edges
Draw a dashed line down from every rising clock edge on a timing diagram. Outputs can only change on those lines.
Binary Counters
Chain toggling flip-flops so that each one is clocked by the one before (by its output: with rising-edge flip-flops this makes the chain count up rather than down). Each stage halves the frequency again. Read together, the outputs count clock pulses in binary.

Following the timing diagram: (the 1s bit) toggles at every clock pulse, (2s) toggles half as often, (4s) half as often again. Reading after each pulse gives 000, 001, 010, … , 111, then back to 000. A 3-bit counter counts 0 to 7 (8 states); an n-bit counter has states.
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in Electronic
- The MOSFET
- The Zener Diode
- The Photodiode
- The Hall Effect Sensor
- Analogue and Digital Signals
- Sampling and Quantisation
- LC Resonance Filters
- The Operational Amplifier and the Comparator
- Inverting and Non-inverting Amplifiers
- Summing and Difference Amplifiers
- Real Op-amps: Saturation and Frequency Response
- Logic Gates and Boolean Algebra
- Flip-flops and Counters
- Astable and Monostable Circuits (555 Timer)
- Communication Systems and Transmission Media
- AM, FM and Time-Division Multiplexing
What's inside for this topic
16 teacher notes, 279 practice questions, 28 flashcards, 6 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: Logic Gates and Boolean Algebra Next note: Astable and Monostable Circuits (555 Timer)