MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › What the clock does in a gated synchronous RS flip-flop
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)(每月更新中)

What the clock does in a gated synchronous RS flip-flop

A synchronous RS flip-flop adds a clock gate to the basic RS so set and reset act only while the clock is active. This page shows how the clock cures the random flipping of the plain latch.

1. How it works

A basic RS changes state whenever Sbar or Rbar says so, so noise flips it and several latches cannot step in step. The synchronous RS puts an AND gate in series with each of S and R and feeds the clock CP into the other input. Only while CP is 1 can S and R pass into the inner latch; when CP is 0 the inputs are blocked and the state freezes. When to change is now scheduled by one common clock.

2. Numbers and practice

While CP is 1 the behavior matches the basic RS: S 1 sets, R 1 resets, both 0 holds. But S and R both 1 with CP 1 is still forbidden and drives an undefined state, so the constraint that S and R never equal 1 together must hold. Note it is level triggered: the whole CP 1 window is live, and if the inputs move inside that window the output follows, which is the seed of multiple toggling.

3. Pitfalls and fixes

Limitations lead onward: the gated RS buys a common beat but level triggering can still toggle many times during one long CP high, and the forbidden input pair is not removed. Edge-triggered D flip-flops and master-slave structures were invented precisely to sample on an edge and kill both problems. Understanding the gated RS is the first step toward clocked design.

4. Gated RS flip-flop action table

CPSRNext Q
0XXHold
100Hold
1101 set
1010 reset
111Forbidden undefined
1changechangeFollows inputs

5. Notes

Inputs must stay stable during CP 1; do not change S or R inside the clock high level or the latch toggles repeatedly. S and R both 1 remains forbidden; only the next generation of devices cures it.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Clocked logic 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:
① Inputs still moving during CP 1:level triggering toggles several times, the run-through fault
② S and R both 1 while CP is 1:still forbidden, state undefined after simultaneous release
③ Synchronous mistaken for edge triggered:you assume changes only at the edge but the whole high level is live

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