2022-06-17 03:47 PM
I use 6 ADCs.
I use 3 channels(Ch1, Ch3, Ch13) for ADC1.
I use 3 channels(Ch2, Ch4, Ch15) for ADC2.
Use DMA1 Channel1, DMA1 Channel2 respectively.
DMA1 Channel1 is used by ADC1,
Number Of Conversion is 3, Rank 1 = Ch1, Rank 2 = Ch3, Rank3 = Ch13.
When using 3 channels in DMA1 and during use DMA1 want to receive only one channel as DMA, please inquire how to change it.
ex)
step 1. DMA1 Ch1 - ADC1 Ch1, Ch3, Ch13
step 2. DMA1 Ch1 - ADC1 Ch1,
step 3. DMA1 Ch1 - ADC1 Ch1, Ch3, Ch13
step 4. DMA1 Ch1 - ADC1 Ch1,
step 5. DMA1 Ch1 - ADC1 Ch1, Ch3, Ch13
......
.....
.....
2022-06-17 06:34 PM
The hard way: change the DMA and ADC registers to the next configuration after each step.
The easy way: When saving conversion results, don't save Ch3 and Ch13 when you don't need them.
Cheers, Hal