Skip to main content
Burakgvl
Associate
January 12, 2022
Solved

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

  • January 12, 2022
  • 2 replies
  • 1698 views

Hi all,

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

I need to measure pulse duration in 1 nanoseconds resolution or less. I then need to transfer the measured value to a another machines.

I have been looking at STM32G4 series MCU with the high resolution timer(ps). Can anyone comment if the Stm32 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.
Best answer by LCE

I have used the G4, but not the HRTIM.

The reference manual (RM0440 Rev 6, page 854):

The high-resolution is available for edge positioning, PWM period adjustment and externally

triggered pulse duration.

The high-resolution is not available for the following features

• Timer counter read and write accesses

Capture unit

So this seems to be rather an output feature for pulse generation, not measurement.

But I might be wrong...

2 replies

LCE
LCEBest answer
Principal II
January 12, 2022

I have used the G4, but not the HRTIM.

The reference manual (RM0440 Rev 6, page 854):

The high-resolution is available for edge positioning, PWM period adjustment and externally

triggered pulse duration.

The high-resolution is not available for the following features

• Timer counter read and write accesses

Capture unit

So this seems to be rather an output feature for pulse generation, not measurement.

But I might be wrong...

Burakgvl
BurakgvlAuthor
Associate
January 12, 2022

Oh, I was wrong. Thanks for your warning.

thundertronics.com
Visitor II
January 12, 2022

One reciprocal frequency meter project use STM32H730 with external ICs for this purpose: AS6501

link: 8 – 11 digits reciprocal frequency counter 0.1 Hz – 150 MHz - Page 1 (eevblog.com)

Also there is TDC7200 IC