2017-05-10 05:10 AM
Thank you for your patronage.
Injected conversion does not work.
I am using STM32F3348Discovery.
I want to use injected conversion as shown below.
So
,
I set up config as below.
And, I wrote a program as shown below.
But Injected conversion does not work. VinConversion, VoutConversion should be1400, 800 respectively.
For more detail, I attach main.c and STM32CubeMX file.
Please.
2017-05-10 11:59 AM
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.
2017-05-29 11:29 PM
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.