cancel
Showing results for 
Search instead for 
Did you mean: 

HI, I am working with STM32L151VCT6. I would connect open drain sensor to measure the duration of the puls oh High level.Please suggest me how to measure this duration in seconds by interrupt.

satyag
Associate II
 
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1

Use an EXTI interrupt on the pin, and the HAL Tick counter?

Use a TIM in input capture, and large prescaler?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..