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.
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.
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.
| J | K | Q(n+1) | Action |
|---|---|---|---|
| 0 | 0 | Q(n) | Hold |
| 1 | 0 | 1 | Set |
| 0 | 1 | 0 | Reset |
| 1 | 1 | Q̄(n) | Toggle |
| S̄=0 | Any | 1 | Async set, overrides |
| R̄=0 | Any | 0 | Async reset, overrides |
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.
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.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.