2021-03-23 09:06 AM
Hi all,
Im wanting to measure both the width and height of input pulses using ADC and Timers.
To get the width I can use a Timer with Input Capture and __HAL_TIM_GetCounter
But to get the height I'm unsure the best way. Currently I'm using the Input Capture interrupt to trigger a single ADC reading, but this seems very inefficient. Is there a better way to do this?
Thanks
Ed
2021-03-23 01:49 PM
Which STM32?
> this seems very inefficient
What do you mean by "inefficient" here?
JW