STM32F0 ADC externally triggered and software triggered simultaneously?
Hi,
I need to measure 5 signals using the ADC. Out of the 5 signals, one is current (voltage across series shunt) which needs to be measured ONLY during transistor ON time, hence the ADC needs to be externally triggered by the PWM (OCREF). Other channels aren't time critical and can be triggered by software at regular intervals.
The controller(STM32F0 / STM32G0) I am using doesn't support ADC dual modes (Injected and Regulated) simultaneously.
Hence, currently I am changing between externally triggered and polling mode of ADC whenever the transistor drive needs to run and stops respectively and reading the data by DMA.
But, my concern here is:
1) Since I am unnecessarily scanning 5 channels during PWM ON time(where only 1 channel is required to be time critical), I am worried that the conversion completion time of all channels will exceed the ON time in cases of very low duty cycles.
2) Whether this method is correct and efficient considering the controller limitation? Is there a better way of doing this?
BR
