The best way to measure a pulse width is using the 16 bit timer "input capture" feature.
Maybe you'll find the code in my FreqMeasure library helpful?
The best way to measure a pulse width is using the 16 bit timer "input capture" feature.
Maybe you'll find the code in my FreqMeasure library helpful?