I want to convert 4 analog input in the same time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-30 11:04 PM
I want to convert 4 analog input in the same time, I chose the stm32f3 303vdt because it contains 4 ADCs. The problems is that I don't know how to get them working together. I have read that only two of them can work simultaneously ADC1 and ADC2, ADC3 and ADC4.
so i can use DMA setting.
My question is what's configuration have I to do for this stuff?
Dual ADC modes
In devices with two ADCs or more, dual ADC modes can be used (see Figure 69):
- ADC1 and ADC2 can be used together in dual mode (ADC1 is master)
- ADC3 and ADC4 can be used together in dual mode (ADC3 is master)
In dual ADC mode, the start of conversion is triggered alternately or simultaneously by the ADCx master to the ADC slave, depending on the mode selected by the bits DUAL[4:0] in the ADCx_CCR register.
Four possible modes are implemented:
- Injected simultaneous mode
- Regular simultaneous mode
- Interleaved mode
- Alternate trigger mode
how can i dual adc mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-30 11:14 PM
Use them in pairs (ADC1+ADC2, ADC3+ADC4) in dual mode, then use a common external trigger (TIM) to synchronize them. I believe posted an example of doing this to the forum.
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
‎2017-03-31 1:23 AM
,
,
,https://community.st.com/0D50X00009XkZ43SAF
,https://community.st.com/0D50X00009XkZ43SAF ♯ comment-107116
,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
‎2017-03-31 1:37 AM
i can't find ADC dualmode example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-31 1:42 AM
I posted links but they are stuck in moderation, I dug them up using Search
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
‎2017-03-31 1:59 AM
I want to convert 4 analog input in the same time, I chose the stm32f3 303vdt because it contains 4 ADCs.
It would perhaps be useful to explain 'at the same time' in more detail.
Depending on the bandwidth of your input signal, a single ADC with multiplexed channels and a sufficiently high sampling rate might suffice.
I might be wrong, but the clearer the description of the issue, the less guessing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-31 8:16 AM
It would help to know:
sample rate
input voltage range
desired resolution, accuracy
source impedance
processing requirements
sw filtering
....
