MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Master-slave versus edge-triggered flip-flops: the real difference
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Master-slave versus edge-triggered flip-flops: the real difference

Both master-slave and edge-triggered flip-flops cure run-through, but their mechanism and performance differ. This page compares the structures, when each samples, and the pulse-triggered variant that fools people.

1. How it works

A master-slave flip-flop has two stages: the master listens transparently while CP is 1 and the slave holds; at the falling edge the master is blocked and hands its stored value to the slave. The output therefore updates once per cycle at the falling edge and run-through is gone. The catch: the slave carries whatever the master last saw, so the input must stay stable during the whole CP 1 window.

2. Numbers and practice

An edge-triggered flip-flop uses hold-blocking gates internally and samples D only at the rising or falling edge instant, frozen before and after. It is stricter than master-slave: the input may wander all through CP 1 as long as it is quiet around the edge window. That makes it more noise tolerant, and it is the mainstream for registers and counters today.

3. Pitfalls and fixes

Choosing between them: master-slave updates at the falling edge, edge-triggered at its specified edge; master-slave demands stability during CP 1, edge parts only around the window; master-slave is simpler but slower, edge parts faster. Beware the pulse-triggered master-slave JK, triggered once during CP 1 and released at the falling edge, easily confused with true edge action; tell them apart by the triangle plus bubble on the symbol.

4. Master-slave versus edge-triggered comparison

ItemMaster-slaveEdge triggered
SamplingListens at CP 1, out at falling edgeOne instant at the clock edge
Input demandStable during CP 1Stable only in the window
Run-throughEliminatedEliminated
Noise immunityModerateStrong
Update edgeFalling edgeSpecified edge
SpeedSlowerFaster

5. Notes

Edge-triggered parts are the safest choice for registers and counters; master-slave JK chips are still common in legacy boards, so read the datasheet for pulse-triggered versus edge action before swapping.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Sequential devices per GB/T 4728 and IEC 60748 series. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Master-slave treated as edge triggered:you let the input jump all through CP 1, but it must stay stable or data corrupts
② Pulse-triggered JK mistaken for an edge part:it only outputs at the falling edge and the timing phase computes wrong
③ Update edge misread:master-slave releases at the falling edge, edge parts at the rising edge, phase inverted

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL