cancel
Showing results for 
Search instead for 
Did you mean: 

Injected conversion does not work.

Ken Inoue
Associate III
Posted on May 10, 2017 at 14:10

Thank you for your patronage. 

Injected conversion does not work. 

I am using STM32F3348Discovery. 

I want to use  injected conversion as shown below. 

0690X00000606xcQAA.png

So

,

I set up config as below.

0690X00000606soQAA.png0690X00000606spQAA.png

And, I wrote a program as shown below.

0690X00000606yvQAA.png0690X00000606y1QAA.png0690X00000606y6QAA.png

But Injected conversion does not work. VinConversion, VoutConversion should be1400, 800 respectively. 

0690X00000606yBQAQ.png

For more detail, I attach main.c and STM32CubeMX file.

Please.

2 REPLIES 2
S.Ma
Principal
Posted on May 10, 2017 at 20:59

My only advice for debugging: Route the Timer trigger event to a GPIO pin, then wire it to the injected channel trigger input pin. This way, you will be able to monitor or even manually replace the timer trigger with your hand and debug the situation: In the debugger you can view the ADC register settings and manually fix it without recompiling.

Posted on May 30, 2017 at 06:29

Thank you for your reply. Thanks to your tip, I was able to solve it. I changed HRTIM's AD conversion trigger event from 1 to 2. Thank you.