Pro lesson · Preview
Timers & Counters
Count clock ticks to make precise time: prescaler and auto-reload set the period, and output-compare/input-capture modes generate and measure waveforms, with no CPU delay loops.
24 min read
This lesson is part of Pro
Upgrade to unlock the full lesson and the complete interview Q&A.
Unlock with Pro5 interview questions on this topic
Each one opens a full worked answer.
How do you configure a timer to interrupt at a specific frequency?What's the difference between output compare and input capture?What is SysTick and why do RTOSes use it?Your timer period is slightly off from what you calculated. What are the likely causes?What problems arise from a 16-bit timer counter?
This is just the start
Sign up free to track your progress through this course, mark lessons complete, and work through the full interview Q&A.
More in Embedded Systems Fundamentals
What Is an Embedded System?Inside an MCUThe Memory Map
Registers & Memory-Mapped I/O
GPIO: Digital I/O
Interrupts & ISRs