Capture a timer value upon another timer update
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-12-05 7:43 AM
Posted on December 05, 2013 at 16:43
Hi,
I have two timer running TIM2 and TIM4. I would like to capture TIM4 counter value when TIM2 overflows (update). I do not wish to sample the value inside the ISR because i need precision. I would like to use something like an input capture but with the trigger being the TIM2 update instead of an outside event.I feel like there is a simple solution there but just can't see it. Anyone has done that before?Thanks,Justin #stm32-timer-capture-update
Labels:
- Labels:
-
TIM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-12-05 9:01 AM
Posted on December 05, 2013 at 18:01
DMA Trigger?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-12-05 10:37 AM
Posted on December 05, 2013 at 19:37
Yes it looks like i'll try that.
Setup DMA1 CH2 to get triggered by TIM2_UP then the DMA transfers the value from TIM4->CNT to a RAM location later read is the TIM2_UP ISR...Thanks