cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32h7 HRtim input capture ability

Burakgvl
Associate II

Can I measure low pulse duration(>10ns) using the STM32H Hrtim?

Hi all,

I'm new to STM32H7 development. So I'm hoping to get some help to start.

I need to measure pulse duration in 5- nanoseconds resolution or less. I then need to transfer the measured .

I have been looking at STM32H7 series MCU with the high resolution timer(ns). Can anyone comment if the Stm32H7 Hrtim would be able to do this measurement?

If yes, can you give me a starting point where to start in regards to measuring the pulses?

If no, which another mcu that would be suitable for my use?

Thanks in advance.

4 REPLIES 4
Paul1
Lead

Hi,

I posted some info in this similar issue, including a test project for a H743 Nucleo.

If you run the STM at 200MHz or higher then I expect you can get your resolution, but you will need to be careful how often you do that as it wouldn't leave any time for any code.

Paul

Burakgvl
Associate II

Hello Paul,

Thanks for your feedback.

LCE
Principal

I think most STMs which can run with a cpu clock >= 200 MHz have a timer running with max clock that can be used for input capture, so you could achieve an accuracy of +-5ns.

As long as the input signal's pulse duration isn't very low, you might solve it with interrupts, otherwise use DMA (I'd prefer this anyway).

Lots of info, example code and tutorials out there about STM32 timers.

Hi,

I wanted to review the link you sent, but I can't find it. Can you share again?