MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How to write state equations and excitation tables for flip-flops
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)(每月更新中)

How to write state equations and excitation tables for flip-flops

Designing a sequential circuit starts from the state equation and the excitation table, which tell you how to wire each flip-flop input. This page lists the equations and excitation tables for the D, JK and T types.

1. How it works

A state equation describes the next state Qstar as a function of the present state Q and the inputs; the excitation table runs backwards: given the present state and the next state you want, what must the flip-flop inputs be? During design you read the excitation table to derive the input logic for every flip-flop. For example, to go from Q 0 to Qstar 1, a D type just needs D 1, a JK needs J 1 with K a don-t-care, and a T needs T 1.

2. Numbers and practice

The three types compared: D has Qstar equal to D, the simplest excitation, you get what you feed. JK has Qstar equal to J times Qbar plus Kbar times Q, with J K 1 toggling, J 1 K 0 setting, J 0 K 1 clearing and J K 0 holding, the most flexible. T has Qstar equal to T exclusive-or Q, toggling while T 1. JK covers both D and T behavior but takes more wiring; D is the easiest and dominates modern designs.

3. Pitfalls and fixes

A worked JK table has four rows: from 0 to 0 needs J 0, K free; from 0 to 1 needs J 1, K free; from 1 to 0 needs J free, K 1; from 1 to 1 needs J free, K 0. From there write J and K as logic functions of the input variables for each present-state combination, simplify on a Karnaugh map, and the gate circuit follows. That is the standard sequential design routine.

4. JK flip-flop excitation quick reference

Present QNext QJK
000X
011X
10X1
11X0
0→0Hold0X
1→1HoldX0

5. Notes

Build the excitation table first and simplify the input logic after; never wire J and K by feel. D is the least work, JK the most flexible, so choose by need.

6. References

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

7. Cautions

⚠️ Three common pitfalls:
① Excitation table copied wrong:J and K end up swapped and the state machine takes wrong branches
② Don-t-care X hardwired to 0:flexibility lost, the toggle that should happen never does
③ D, JK and T mixed without a common convention:excitation logic computes wrong and the whole machine scrambles

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