MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › JK flip-flops: the four-row truth table and four triggering styles
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (698 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)(每月更新中)

JK flip-flops: the four-row truth table and four triggering styles

The JK is the most complete flip-flop in one package - master its table and counters come free. This page covers the function table, triggering styles and the master-slave trap.

1. How it works

Four rows say it all: J=K=0 holds; J=1,K=0 sets; J=0,K=1 resets; J=K=1 toggles - the toggle is the JK's signature, a divide-by-two for free where a D type needs an inverter. The 74LS112 packs two falling-edge JKs with active-low asynchronous S̄ and R̄ that override the clock. Chain them with J=K=1 and four stages give you a 16-way divider, each output tapping a lower frequency.

2. Practice and pitfalls

Four triggering styles: level-triggered inputs pass straight through while the clock is active - glitch food; master-slave samples on one phase and transfers on the other, but with a nasty quirk called ones-catching - a 10ns blip on J or K during the clock-high phase is captured and delivered at the falling edge, invisible on ordinary scopes; edge-triggered parts (74LS109, 74HC112) sample only at the edge and are the modern default; asynchronous set/reset initialize the chain from a known state via an RC (10kΩ plus 1µF, about 10ms) at power-up - but never assert both at once, that state is illegal. Clean the JK inputs with a Schmitt stage on any long line.

3. JK function quick table

JKQ(n+1)Action
00Q(n)Hold
101Set
010Reset
11Q̄(n)Toggle
S̄=0Any1Async set, overrides
R̄=0Any0Async reset, overrides

4. Notes

Motto: tie J=K=1 to divide, condition the inputs against ones-catching, RC-reset at power-up, and prefer edge-triggered parts over master-slave whenever the board allows.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Digital IC specification per GB/T 17574 (IEC 60748 series); logic symbols per GB/T 4728. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① A glitch on a master-slave input:caught once, delivered at the edge, untraceable
② S̄ and R̄ asserted together:an illegal state flaps the outputs at power-up
③ No power-on reset:the chain starts wherever it likes, every boot different

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