cancel
Showing results for 
Search instead for 
Did you mean: 

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

Bj.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Bj.1
Associate II

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

View solution in original post

5 REPLIES 5

> continuously  happening without timer event

How do you know?

Read out and check/post content of ADC registers.

JW

Bj.1
Associate II

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

so the break point in transfer complete callback gets hit continuously

TDK
Guru

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".

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
Associate II

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