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