Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 3: Applications of Counters

Lesson 15 of 20 in the free Digital Electronics-II notes on Siksha Sarovar, written by Rohit Jangra.

14.1 Frequency division

A binary counter inherently divides its clock. An N-bit counter clocked at f produces an output Q_{N-1} at f / 2^N. This is the most common application of counters in digital design:

Use caseExample
Wristwatch32.768 kHz crystal ÷ 2^15 → 1 Hz "tick"
UART baud rate generator16 × baud divider feeding the receiver clock
Audio sample-rate timerMaster clock ÷ N → 44.1 kHz / 48 kHz strobe
Microcontroller peripheral prescalerCPU clock ÷ N → ADC sample clock

14.2 Digital clocks

The everyday "digital clock" panel is a stack of counters:

14.3 Time delay generators

Need a controllable delay of T = N / f seconds? Preload a counter with the value N, clock it at frequency f, and gate the RCO pulse out. This is exactly the structure of the timer/counter peripherals in every microcontroller.

14.4 Event counting and tachometers

If you connect an external pulse train to the clock input of a counter instead of a steady clock, the counter becomes an event counter. Used in tachometers, particle counters and production lines.

14.5 Frequency measurement

Resolution = 1 / gate time. Used in every cheap bench frequency counter.

14.6 Programmable timing — pulse width modulation (PWM)

The output is HIGH for the first Duty clocks of every counter cycle and LOW for the rest. The duty cycle is Duty / Period, and the PWM frequency is f_clock / Period.

14.7 Sequencers and state machines

A counter plus a small decoder is the cheapest way to step through a fixed sequence of "phases" — for example the four-phase clock of an old microcontroller's instruction cycle, or the multi-step initialisation sequence of an SDRAM controller.

14.8 Application snapshot

ApplicationCounter ingredientNotes
Frequency dividerSynchronous or ripplePick synchronous for glitch-free output
Digital clockCascade of decade + mod-6Drives 7-segment display via 74LS47
Event counterCounter clocked by external pulseAdd a synchroniser if pulses are async
Frequency meterCounter + gate + displayResolution = 1 / gate time
Time-delay generatorPreloadable counter"Timer" peripheral in every MCU
PWM generatorCounter + comparatorFoundation of motor / power control
SequencerCounter + decoderDrives multi-phase state controllers

A counter is the single most reused building block in all of digital design — every chapter of every datasheet has one.