Can we do Pulse width measurement without input capture method?
Is any any method?
How accurate this method will be?
You can get better precision with a busy-loop sampling a pin (assuming you can afford to turn off interrupts while polling) than you get by use of external interrupts.
The external interrupt adds a fixed error from the response time - and a variable jitter depending on if there are other interrupts that must end before the external interrupt can be handled.
Note that it is often possible to use a single timer for more than one thing. So a free-running timer can be concurrently used for: 1) Software delays where the free-running timer is polled. 2) Capture to measure external signals 3) Periodic interrupts, by having the ISR constantly updating the match register(s) ...
A single timer that supports multiple match registers can be used to generate multiple interrupts at different frequency by avoiding the auto-reload feature. So there may be huge differences in the "quality" of timers between different processor manufacturers.
The schoolbook descriptions of how to use timers tends to be rather light on how to maximize the use of the hardware. Possibly because very few teachers has spent a significant amount of time implementing professional-grade software.
Busy loop sampling will add delay.
Note that it is often possible to use a single timer for more than one thing. So a free-running timer can be concurrently used for: 1) Software delays where the free-running timer is polled. 2) Capture to measure external signals 3) Periodic interrupts, by having the ISR constantly updating the match register(s)
Yes this i want to try. if you see datasheet of RX610 then Timer unit0 having different functionality.
If i wanna use unit0 channel0,then only one counter is their. So suppose i want to use this timer for internal counter and for input capture.
So if i will modify or reset main counter then it will disturb other other one.
In this case how to handle???