i use stm32f103 mcu with adc1 adc2 adc3 and i want to use adc in interleaved to increase sample from 1msps to 3msps. i search on google and in all code example and i can't find how to use adc in interleaved
Are you tied to the F1? I don't think it supports a triple interleave mode.
The interleave on the F1 pairs ADC1 and ADC2 with a 7 or 14-cycle slew between them, and a DMA from a 32-bit wide data register.
Look at this for a template
You can take a working ADC_Regular_injected_groups example as start point to make required updates according to your needs, this can help you as an implementation example:STM32Cube_FW_F1_V1.4.0\Projects\STM3210C_EVAL\Examples\ADC\ADC_Regular_injected_groups
i have problem
i select dual fast interleaved delay between sample 7 clock
and the STM32CubeMX give me this code
MX_GPIO_Init();MX_DMA_Init(); MX_ADC1_Init(); MX_ADC2_Init();
the problem in MX_ADC2_Init(); it's make stm32f103 stop working and hang and mcu look like dead.
i solve this probelm to use adc in interleave mode .because stm32cube use this two function MX_ADC1_Init(); MX_ADC2_Init(); and MX_ADC2_Init(); return with error when i see examples code in STM32F10x_StdPeriphit use ADC_Config(); and this work fine with meso the problem in stm32cube
Retrieving data ...