ADC with Dual Regular simultaneous mode on STM32CubeF4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-09-09 2: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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-09-09 1: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, Hal- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-09-10 5:28 AM
Wouldn't VRef be 0xFFF whatever voltage is was?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-09-10 8:29 AM
Vref is mean the internal voltage reference. Sorry to make you confuse.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-09-10 8: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)Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-09-11 4: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:- ADC1 and ADC3 work in single mode
- ADC1 and ADC3 share the same trigger (Timer TRGO)
â–º
this is equivalent to pseudo multimode simultaneous - ADC1 and ADC3 have their results transferred automatically by DMA
â–º
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:- default setting: ADC trigger by timer: setting defined by constant ''ADC_TRIG_TIMER''. Both ADC are triggered by TIM2 (frequency 1Hz by default, can be changed with constant ''TIMER_FREQUENCY_HZ'')
- alternate setting: ADC trigger by software setting defined by constant ''ADC_TRIG_SW''.
