Skip to main content
Bj.1
Associate II
September 9, 2020
Solved

ADC conversion starts with first event and then continuously happening without timer event

  • September 9, 2020
  • 5 replies
  • 1072 views

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

This topic has been closed for replies.
Best answer by Bj.1

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

5 replies

waclawek.jan
Super User
September 9, 2020

> continuously  happening without timer event

How do you know?

Read out and check/post content of ADC registers.

JW

Bj.1
Bj.1Author
Associate II
September 9, 2020

i kept break point in timer event and in transfer complete callback

so the break point in transfer complete callback gets hit continuously

TDK
September 9, 2020

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
waclawek.jan
Super User
September 9, 2020

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

Bj.1
Bj.1AuthorBest answer
Associate II
September 13, 2020

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