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.

D-type flip-flop with D, CLK, Q and Q-bar; a flip-flop with Q-bar fed back to D, and its clock and Q waveforms showing Q at half the clock frequency

The D-type flip-flop

  • Inputs: data D and clock CLK (the small triangle means it reacts to the clock edge).
  • Outputs: Q and Q― (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 Q― 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 Q― 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.

Timing diagram for a 3-bit binary up counter: clock, Q0, Q1 and Q2, with the count 0 to 7 then back to 0

Following the timing diagram: Q0 (the 1s bit) toggles at every clock pulse, Q1 (2s) toggles half as often, Q2 (4s) half as often again. Reading Q2Q1Q0 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 2n 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.

Log in · Subscribe · Start free trial

All notes in Electronic

  1. The MOSFET
  2. The Zener Diode
  3. The Photodiode
  4. The Hall Effect Sensor
  5. Analogue and Digital Signals
  6. Sampling and Quantisation
  7. LC Resonance Filters
  8. The Operational Amplifier and the Comparator
  9. Inverting and Non-inverting Amplifiers
  10. Summing and Difference Amplifiers
  11. Real Op-amps: Saturation and Frequency Response
  12. Logic Gates and Boolean Algebra
  13. Flip-flops and Counters
  14. Astable and Monostable Circuits (555 Timer)
  15. Communication Systems and Transmission Media
  16. 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.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Logic Gates and Boolean Algebra Next note: Astable and Monostable Circuits (555 Timer)

All AQA A Level Physics topics · A Level Physics