cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f407 ADC data alignement problem -> solution

raffael
Associate II
Posted on March 07, 2012 at 16:05

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:

> >

ADC resolution for stm32f205

#stm32f4-adc-dataalign
1 REPLY 1
raptorhal2
Lead
Posted on March 07, 2012 at 19:42

The problem occurs in other ADC modes also. See my post STOne-32 ADC Lib Examples Problem on 24 January in this forum for more information and ST's response.

Cheers, Hal