PHY 452 · Electronics
Our notes
2 min readAsynchronous (ripple) counters
T (or JK with J = K = 1) flip-flops in a chain; each flip-flop is clocked by the output of the previous one.
- An n-stage counter counts 0 to 2^n - 1 (4 stages: 0 to 15, a mod-16 counter).
- Each stage divides the frequency by 2: a 4-stage counter fed with 16 kHz gives 1 kHz at the last output.
- Disadvantage: delays add up stage by stage, giving momentary wrong counts (glitches) and limiting speed.
Modulus-N counters
To count 0 to N - 1, detect the state N and use it to clear the counter.
- Decade (mod-10) counter: 4 flip-flops (since 2^3 = 8 < 10 ≤ 16 = 2^4); when the count reaches 1010 (10), a NAND gate on outputs Q3 and Q1 resets all to 0000. The 7490 is a decade counter IC.
- Number of flip-flops needed for mod-N: the smallest n with 2^n ≥ N.
Synchronous counters
All flip-flops share the same clock; logic gates decide which ones toggle. Faster and free of ripple glitches. Designed with excitation tables and K-maps.
- For a binary up counter: Q0 toggles every clock; Q1 toggles when Q0 = 1; Q2 when Q0 Q1 = 1; and so on.
Up/down and other counters
- Down counters count backwards; up/down counters have a direction control (74193).
- Ring counter: a single 1 circulating in a shift register; n flip-flops give n states.
- Johnson (twisted ring) counter: the inverted output is fed back; n flip-flops give 2n states.
Registers
A group of flip-flops storing a word.
- Shift registers move data one place each clock:
- SISO: serial in, serial out (delay lines).
- SIPO: serial in, parallel out (receiving serial data).
- PISO: parallel in, serial out (sending data down one wire).
- PIPO: parallel in, parallel out (storage, buffering).
- A left shift of a binary number multiplies it by 2; a right shift divides by 2.
Applications
Digital clocks and watches (counters dividing a crystal frequency of 32,768 Hz by 2^15 to get 1 Hz), frequency counters, timers, event counters (people at a gate), keyboard scanning, serial communication (UART), and the registers inside processors.
Exams usually ask
- Design a mod-N counter and explain how it resets.
- Compare ripple and synchronous counters; explain the types of shift register.
Common mistake
Using three flip-flops for a decade counter. Three give only 8 states; ten states need four.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
No reading links here yet
Our team adds free books, videos and practice for each topic, and opens every link before it goes up.