This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F3 analog-digital converter

Hello.
I am using a STM32F303 development board and i am trying to use the 4 ADCs that incorporates.My first question is it's possible to use the 4 ADCs in the same time?. I want to measure four voltages variating from 0 to 3.6v on one analog input of each ADC.If anyone has an idea about how to do, i will be very grateful.
Best Regards

Parents
  • I have a question about the ADC clock of STM32F3. In fact in the examlples given by ST configure this clock like this:

    RCC_ADCCLKConfig(RCC_ADC12PLLCLK_Div1); //that's mean that the ADC is derived from the PLL Clock (72Mhz in this case). In the same time ADC_CommonInitStructure.ADC_Clock = ADC_Clock_AsynClkMode;
    So based on the data sheet, with this configuration has the advantage to reach the maximum of the ADC clock but it's not synchronized with the AHB clock. if i want to use timer to trigger the conversion of ADC, we have to use the AHB clock to drive the ADC clock.

    For that purpose i have configured my ADC clock like this :

    /* Configures the AHB clock (HCLK) ***/

    RCC_HCLKConfig(RCC_SYSCLK_Div1); // RCC_AHB_Clock_Source( 72MHz in this case ). Then :
    ADC_CommonInitStructure.ADC_Clock = ADC_Clock_SynClkModeDiv4; // this gives us 18 MHz

    Do you thank this configuration is correct or no ? Thank in advance of your help.

Reply
  • I have a question about the ADC clock of STM32F3. In fact in the examlples given by ST configure this clock like this:

    RCC_ADCCLKConfig(RCC_ADC12PLLCLK_Div1); //that's mean that the ADC is derived from the PLL Clock (72Mhz in this case). In the same time ADC_CommonInitStructure.ADC_Clock = ADC_Clock_AsynClkMode;
    So based on the data sheet, with this configuration has the advantage to reach the maximum of the ADC clock but it's not synchronized with the AHB clock. if i want to use timer to trigger the conversion of ADC, we have to use the AHB clock to drive the ADC clock.

    For that purpose i have configured my ADC clock like this :

    /* Configures the AHB clock (HCLK) ***/

    RCC_HCLKConfig(RCC_SYSCLK_Div1); // RCC_AHB_Clock_Source( 72MHz in this case ). Then :
    ADC_CommonInitStructure.ADC_Clock = ADC_Clock_SynClkModeDiv4; // this gives us 18 MHz

    Do you thank this configuration is correct or no ? Thank in advance of your help.

Children
No data