2022-08-23 11:15 PM
I am using STM32F103C8, in which I want to use pins which are configured as digital input to detect the square wave frequency or the frequency at which the pin is reading high and low.
Is it possible without Input capture direct mode?
2022-08-23 11:45 PM
Possible? yes - for example using EXTI interrupt and free-running timer - but the potential for error is higher and you need to set this interrupt to be of the highest priority among all other interrupts you are using.
JW
2022-08-24 12:27 AM
to measure precise freq and duty cicle of PWMs without bottering too much my processor
This guy explains it better
https://www.youtube.com/watch?v=qqzZ9C0umQ4