Skip to main content
raffael
Associate II
March 7, 2012
Question

stm32f407 ADC data alignement problem -> solution

  • March 7, 2012
  • 1 reply
  • 648 views
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
This topic has been closed for replies.

1 reply

raptorhal2
Lead
March 7, 2012
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