Is page pe yeh assume kiya gaya hai ki tumne parent note ki koi bhi notation pehle nahi dekhi. Hum har letter, har subscript, aur har +1 ko ground up se build karenge, usi order mein jis order mein woh ek doosre pe depend karte hain. Agar koi symbol appear karta hai, toh usse ek line pehle define kiya gaya hai. Upar se neeche padho.
Ek clock imagine karo jisme ek hi haath ek dial pe ghoomta hai. Har tick par woh haath ek notch aage jump karta hai. Jab woh last notch tak pahunchta hai toh wapas start pe snap ho jaata hai aur phir se shuru ho jaata hai. Yahi poori machine hai. Hamara kaam hai iske parts ko naam dena.
Figure dekho: woh ghoomta hua haath counter hai, notches ticks hain, aur last notch (amber) ceiling hai. Yeh picture dimag mein rakho — neeche diye gaye har symbol is picture ke kisi ek part ka label hai.
YEH TOPIC ISKE BAARE MEIN KYUN CARE KARTA HAI: har timer symbol ya toh ek frequency (counter kitni tez feed ho raha hai) ya ek period (ek full sweep ya pulse kitni der chalti hai) se bana hota hai. f aur T ke bina kuch bhi nahi keh sakte.
Subscript "clk" sirf ek label hai jiska matlab hai clock. Yeh chip ke Clock Tree and Prescalers se aata hai. Abhi ke liye: fclk ek raw, usually-bahut-fast heartbeat hai.
KYUN: 72 million ticks per second zyaadatar kamon ke liye bahut zyaada fast hai (ek 1 kHz LED blink ke liye counter ko 72,000 tak pahunchna padega — awkward). Toh hume ise slow karne ka koi tareeqa chahiye. Agle symbol mein yahi hai.
Joh number hum program karte hain use PSC kehte hain (short for prescaler). Lekin yahan ek crucial twist hai jo sabko confuse karta hai:
Figure dekho: left pe 72 white incoming ticks, right pe ek amber tick jo survive kar gayi — woh surviving-tick rate hi timer clock hai, haara agla symbol.
Figure dekho: amber "off line" sweep ko ek HIGH stretch (left, cyan) aur ek LOW stretch (right, dim) mein split kar rahi hai. Line ko right slide karo → zyaada HIGH → brighter LED / faster motor.
Jab input capture do snapshots leta hai, toh hume do counter values milti hain. Inhe c1 (pehli edge) aur c2 (doosri edge) bolte hain. Elapsed ticks hain Δ=c2−c1. Lekin kya hua agar counter edges ke beech wrap (§5) ho gaya? Toh c2c1 se chhota hoga aur raw subtraction negative ho jaayegi — clearly galat, kyunki time kabhi ulta nahi chalta.
Ab har symbol ka ek meaning bhi hai aur ek picture bhi. Yeh dikhaata hai ki woh topic ko kaise feed karte hain:
Upar se neeche padho: frequency/period ideas clock ko feed karte hain, clock ko prescaler gear down karta hai, woh counter drive karta hai, counter plus uski ceiling period dete hain, counter plus ek threshold ya toh PWM (out) ya capture (in) deta hai, aur dono full topic mein flow karte hain.