This page assumes you have seen none of the notation in the parent note. We build every letter, every subscript, and every +1 from the ground up, in the order they depend on each other. If a symbol appears, it was defined a line earlier. Read top to bottom.
Picture a clock with a single hand sweeping around a dial. Each tick the hand jumps forward one notch. When it reaches the last notch it snaps back to the start and begins again. That is the whole machine. Our job is to name its parts.
Look at the figure: the sweeping hand is the counter, the notches are the ticks, the last notch (amber) is the ceiling. Hold this picture — every symbol below is a label on some part of it.
WHY the topic needs this: every timer symbol is built out of a frequency (how fast the counter is fed) or a period (how long a full sweep or a pulse lasts). Without f and T nothing else can be stated.
The subscript "clk" is just a label meaning clock. It comes from the chip's Clock Tree and Prescalers. For now: fclk is the raw, usually-too-fast heartbeat.
WHY: 72 million ticks per second is far too fast for most jobs (a 1 kHz LED blink would need the counter to reach 72,000 — awkward). So we need a way to slow it down. That is the next symbol.
The number we program is called PSC (short for prescaler). But here is the crucial twist that trips everyone up:
Look at the figure: 72 white incoming ticks on the left, one amber tick surviving on the right — that surviving-tick rate is the timer clock, our next symbol.
Look at the figure: 4 slots on the dial for ARR=3, because 0,1,2,3 is four numbers, not three. That off-by-one is the single most common bug in timer code.
Look at the figure: the amber "off line" splits the sweep into a HIGH stretch (left, cyan) and a LOW stretch (right, dim). Slide the line right → more HIGH → brighter LED / faster motor.
When input capture takes two snapshots, we get two counter values. Call them c1 (first edge) and c2 (second edge). The elapsed ticks are Δ=c2−c1. But what if the counter wrapped (§5) between the edges? Then c2 is smaller than c1 and the raw subtraction goes negative — clearly wrong, since time never runs backwards.
Now every symbol has a meaning AND a picture. Here is how they feed the topic:
Read it top-down: frequency/period ideas feed the clock, the clock is geared down by the prescaler, that drives the counter, the counter plus its ceiling give the period, the counter plus a threshold give either PWM (out) or capture (in), and both flow into the full topic.
The output pin driven by CCR compares needs GPIO and Alternate Functions switched to alternate function mode, so the timer (not your code) owns the pin.
Overflow and capture events raise Interrupts and NVIC — that is how software counts extra laps for §7's wrap handling.
PWM duty feeds speed in Motor Control and H-Bridges; pulse width (a raw CCR in µs) feeds Servo and ESC Control.
The counting-both-directions cousin of capture lives in Encoder Mode.
Prefer the Hindi walk-through? See the Hinglish note.
Everything above is the vocabulary the parent Timers note speaks in. You now own every letter.