2023-09-06 04:40 AM
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?
2023-09-06 04:41 AM
2023-09-06 05:13 AM
2023-09-06 05:54 AM
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.
2023-09-06 06:01 AM
Hi @AScha.3
Can you give me more details about how to use HRTIM in input capture mode .
Best regards.
2023-09-06 06:41 AM
Referring to the RM0364. p.643 read:
2023-09-06 10:42 PM
Well, there are two options besides the free running mode option.
1-The timer operaters in non triggerable single shot mode
2-The timer operaters in retrigerable single-shot mode.
Which of these would I choose? I want to capture the signal that I send as two pulses from the oscilloscope, to capture between the two rising edges, adjust the configuration and set HAL_HRTIM_SimpleBaseStart(&hhrtim1, HRTIM_TIMERINDEX_TIMER_C);
I tried to use the function.
2023-09-07 12:50 AM
i wold try :
- timer start on trigger , not retrigg., one shot counting up from zero
- capture on trigger -> int.
then capture should have the time yo want (and possible get int on start/first pulse also...just ignore.)