Hi,
I use the capture function firstly. i don't know how to use it .
if i want to read the capture value , Does it must read it in ISR ? or read it in main loop?
Thank you !
Solved! Go to Solution.
No, it is not necessary to read it in the ISR handler.
But I think you need to let the ISR tells you that the capture event has happened.
You can read it in the ISR, or use a flag to control when to read it in the main loop.
No, it is not necessary to read it in the ISR handler.
But I think you need to let the ISR tells you that the capture event has happened.
You can read it in the ISR, or use a flag to control when to read it in the main loop.