① What counts as a valid signal
All three layers must pass for an event to count, keeping noise and jitter out:
Range admission: the reading must fall inside C2's stored valid range [4.75 V, 5.25 V]; anything outside is rejected.
Reference locked: after power-up hold steady for 100 ms, extract a constant 4.95 V reading and lock [4.90 V, 5.00 V] as this cycle's private reference — departure is judged relative to that reference, not an absolute voltage.
Timing validation: only the full sequence departure → silence shorter than timeout → return counts as one valid event and increments Count by one.
② Why 1/2/3 belong to one cycle
The key isDual timers reset: every time the signal disappears, the hardware timer (100 ms) and logic confirmation (110 ms) start from zero together; if the signal returns within the gap, both timers reset and resample.
All three silences are shorter than 100 ms, so the timers never reach the final threshold,The cycle boundary never closes, so events 1, 2 and 3 are collected into one cycle and Count accumulates to 3.
Without this mechanism, the first silence would reach the 100 ms final ruling — the three pulses would become three isolated cycles with Count=1 each, decoding to something entirely different.
③ Timing parameters (example values)
Anchor: hold steady for 100 ms → reading 4.95 V.
Hardware timeout:100ms;Logic confirmation:110ms.
Hardware stop event:T=405ms;Cycle final ruling:T=415ms.
Durations are example values taken from the specification's exemplary ranges; actual implementation parameters govern.