Skip to main content
Associate II
September 6, 2023
Question

STM32 MCUs

Hi,

I want to use input capture mode with high resolution timer(HRTIM) on stm32f334r8 microprocessor. I am sending a pulse signal over the oscilloscope. I use one of the External Event Input pins for this. I want to capture the rising edges of the pulses I send using the HRTIM_Simple_Base_Start function. However, I couldn't do that. The settings I made regarding the configuration are as attached. How can I use input capture mode with HRTIM?

 
Updating Media
This topic has been closed for replies.

7 replies

LeyliferAuthor
Associate II
September 6, 2023

1t.png

2t.png

Issamos
Super User
September 6, 2023

Hello @Leylifer 

Referring to the RM0364. I see that the input capture mode is not defined in the chapter 22 off the ref.man (High-Resolution Timer (HRTIM)). I think that the HRTIM of the f334 doesn't support the input capture mode. 

Best regards.

II

AScha.3
Super User
September 6, 2023

capture should work - but what you wanna capture ??

you set counter free running + capture (event 5) -> seems no sense to me, you will get just random values this way.

 

If you feel a post has answered your question, please click on " Best Answer ".
Issamos
Super User
September 6, 2023

Hi @AScha.3 

Can you give me more details about how to use HRTIM in input capture mode . 

Best regards.

AScha.3
Super User
September 6, 2023

Referring to the RM0364. p.643 read:

AScha3_0-1694007631662.png

 

If you feel a post has answered your question, please click on " Best Answer ".