STM32 MCUs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 4: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?
- Labels:
-
STM32F3 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 4:41 AM
 
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 5:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 5: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 6:01 AM
Hi @AScha.3
Can you give me more details about how to use HRTIM in input capture mode .
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 6:41 AM
Referring to the RM0364. p.643 read:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.)
