cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring external Pulse Width and Height/Voltage

EHolm.2
Associate II

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

1 REPLY 1

Which STM32?

> this seems very inefficient

What do you mean by "inefficient" here?

JW