Some STM32F4 microcontrollers have 3 ADCs on board, they can be configured in various modes.
I wonder is it possible to configure ADC1 and ADC2 in "Dual interleaved" mode, but have ADC3 configured as independent channel?
When generating project in CubeMX, if I turn on all 3 ADCs, and select for example "Dual interleaved mode only" in ADC1 - all other ADC default to this mode without possibility to change it. This is quite weird, since CubeMX basically says that all 3 ADCs are configured in dual interleaved mode, which is illogical (3 ADCs working in Dual...). There is no way to change ADC3 to any other mode, even though having it as "Independent" seems to be the only logical solution.
On page 402 here under bullet 2 it says "In the Dual ADC mode, the ADC3 slave part is not present.", I am not sure what is meant by that: is ADC3 as a whole is not working in dual mode or simply ADC3 is not SLAVE anymore?
I'm afraid it is the only reference to ADC3 in dual mode in official reference manual.
On page 78 here it says "ADC1 master and ADC2 slave, ADC3 is independently.", which kinda suggests that ADC3 can be configured as independent, but this pdf doesn't describe it any further.
I also found this application note, but it is only for microcontrollers with 2 ADCs inside. If there is the same note but taking into account ADC3 - please share, I haven't found it.
So the following questions arise:
- Is CubeMX bugged? I mean, clearly there is no sense to configure 3 ADCs in dual configuration. It either has to set ADC3 to independent mode or show error message "You can't use ADC3 anymore, lol".
- Can I configure it manually in code or this is not supposed to work like that at all?
I could of course try to make it work by building a project in such config and see if it works, but if it is not supposed to work like that at all that would be just a waste of many hours. There is no documentation about it, even if it will somewhat work it will be a hell of a mess to try to make it work with DMA I presume.
So if anybody has done something similar or knows for a fact that it is not supposed to work would be nice to hear.
Oh and if somebody wonder why do it in a first place:
it would be nice to have "one channel" that utilizes dual mode to get 4.8 MSPS and the other just regular (from ADC3) with 2.4 MSPS. As opposed to having two simple channels at 2.4 MSPS.