This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pulse width measurement without input capture

Can we do Pulse width measurement without input capture method?

Is any any method?

How accurate this method will be?

Parents
  • Busy loop sampling will add delay?

    On one hand, it will require the main loop to enter a busy loop delay.

    But when it comes to timing precision, it can manage much better than 10us resolution because almost any modern processor will manage a compare/repeat loop at much higher iteration speeds than 10us. A busy loop is likely to manage 0.1us or better resolution with most ARM chips - as long as there aren't interrupts that burns lots of us.

Reply
  • Busy loop sampling will add delay?

    On one hand, it will require the main loop to enter a busy loop delay.

    But when it comes to timing precision, it can manage much better than 10us resolution because almost any modern processor will manage a compare/repeat loop at much higher iteration speeds than 10us. A busy loop is likely to manage 0.1us or better resolution with most ARM chips - as long as there aren't interrupts that burns lots of us.

Children