ADC conversion starts with first event and then continuously happening without timer event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 9:56 AM
I have configured STM32h743ZI with below Settings:
ADC1 with trigger set to tim1 update event
DMA to transfer from ADC to memory
Disabled continuous conversion
Problem:
I want the ADC to sample every 50us (TIM1 configured to 50us)
but conversion starts with first event and then continuously happening without timer event
Solved! Go to Solution.
- Labels:
-
ADC
-
STM32H7 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-13 9:35 AM
thank you guys
i found the problem through this post: https://community.st.com/s/question/0D50X00009XkYS5/i-cant-make-timer-stop-while-debuging
Problem: Timer was not halted while i am debugging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 10:16 AM
> continuously happening without timer event
How do you know?
Read out and check/post content of ADC registers.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 10:24 AM
i kept break point in timer event and in transfer complete callback
so the break point in transfer complete callback gets hit continuously
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 12:02 PM
Really hard to provide useful feedback without many details.
Even if the ADC is running continuously as you claim, the timer event should still happen.
One possibility is that the CPU is swamped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 12:24 PM
Read out and check/post content of ADC registers.
> Even if the ADC is running continuously as you claim, the timer event should still happen.
Indeed.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-13 9:35 AM
thank you guys
i found the problem through this post: https://community.st.com/s/question/0D50X00009XkYS5/i-cant-make-timer-stop-while-debuging
Problem: Timer was not halted while i am debugging
