cancel
Showing results for 
Search instead for 
Did you mean: 

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

Burakgvl
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
LCE
Principal

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...

View solution in original post

3 REPLIES 3
LCE
Principal

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...

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

Oh, I was wrong. Thanks for your warning.