2014-09-09 02:52 AM
I implemented the ADC with Dual Regular simultaneous mode on the STM32CubeF4 library. I have problem on the initialization, seem it does not correctly. I tried to read Vref on the ADC1 and the ADC value on the ADC3 (Channel 9 and 14).
Can anyone help me about this? May be give me the example about that.Thank you very much.PS. I implement them on STM32F437II.2014-09-09 01:04 PM
Dual regular simultaneous mode is available only for ADC 1 and ADC 2. See Section 13.9.2 in the Reference Manual.
Cheers, Hal2014-09-09 10:11 PM
Hi Hal,
Thank you very much for answer me. So, Do we have any way to read Vref on the ADC1 and the ADC value on the ADC3 (Channel 9 and 14)? I need to use the Vref to calculate an accurate ADC.2014-09-10 05:28 AM
Wouldn't VRef be 0xFFF whatever voltage is was?
2014-09-10 08:29 AM
Vref is mean the internal voltage reference. Sorry to make you confuse.
2014-09-10 08:54 AM
VREFINT is available on ADC1_IN17
Dual mode would use ADC1 and ADC2 You're going to have to use ADC3 in scan mode to read your two channels. You can use ADC1 to measure the VREFINT point, and apply that to ADC2 and ADC3 values, as they share the same design and silicon process (ie assume identical performance)2014-09-11 04:58 AM
HiK. Suppakit,
Previous comment is correct, but even if you cannot do simultaneous conversion with ADC1-ADC3 hardware link, you can still use them in parallel. Please find attached an example running on STM32F4 Discovery board:►
this is equivalent to pseudo multimode simultaneous►
At each trigger event: ADC1 converts Vrefint, ADC3 converts channel 10 then channel 11►
LED on board is turned on when the ADC conversion sequence is completed Note: ADC trigger settings: This example allows selecting ADC trigger by timer or by software: