Skip to main content
Burakgvl
Associate
February 1, 2022
Question

Stm32h7 HRtim input capture ability

  • February 1, 2022
  • 4 replies
  • 5039 views

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.

This topic has been closed for replies.

4 replies

Paul1
Senior III
February 1, 2022

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

Associate II
September 6, 2023

Hi,

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

Burakgvl
BurakgvlAuthor
Associate
February 2, 2022

Hello Paul,

Thanks for your feedback.

LCE
Principal II
February 2, 2022

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.