Hello,
I simulated a pulse counting circuit using a binary counter IC and everything matched expected timing. On the real board, the count occasionally skips values when pulses arrive quickly.
Input pulses come from a Hall sensor.
Questions:
Should I suspect slow edges from the sensor rather than the counter IC itself?
Would a comparator or Schmitt trigger cleanup stage solve this?
On the PCB, should sensor inputs be routed away from clock nets and power switching traces?
Hi Eva
Exactly what sensor are you using. Some already have Schmidt triggers built in.
If not it would not do any harm to try this clean up solution.
Cheers Bob
Keep traces short and clean
Optional: small series resistor (100 ohm around) for damping
Your issue is almost certainly input signal quality, not the counter IC. Add a Schmitt trigger (or comparator with hysteresis) and improve routing … that normally eliminates skipped counts at higher speeds.