AnsweredAssumed Answered

stm32f407 ADC data alignement problem -> solution

Question asked by ra.ho on Mar 7, 2012
Latest reply on Mar 7, 2012 by baird.hal.001
I encountered a data alignement problem when using the 3 ADCs.
ADC_Mode = ADC_TripleMode_RegSimult

ADC_DataAlign = ADC_DataAlign_Right had no effect. Data was allways left-aligned.

The Problem was that I omitted assigning a value to "ADC_ExternalTrigConv" as ADC_ExternalTrigConvEdge is set to ADC_ExternalTrigConvEdge_None.
->The solution was therefore to put:
"ADC_InitStructure.ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1;"

See: Microcontrollers > STM32 > ADC resolution for stm32f205

Outcomes