2016-06-13 12:52 AM
RM datasheet specify that ADEN must be 1 before configuring CFGR, SQRx ...
HAL_ADC_Init library configures these registers with ADEN= 0 Which procedure is the right one ? #adc-config2016-06-13 07:37 AM
Hi,
Could you precise which HAL version are you using ?In the reference manual is mentioned when no regular conversion is ongoing,
the ADDIS is set to 0 and ADEN is enabled (ADEN=1).In case ADDIS=1 it disable the ADC.Regards2016-06-14 01:29 AM
Hi,
In STM32Cube_FW_L4_V1.5.0\driver, file stm32l4xx_hal_adc.c, function HAL_ADC_Init, lines 468 and 522 ADEN=0 function HAL_Config_Channel, lines 2144, 2151, 2158, 2165 ... ADEN=0 What do we have to believe, HAL or reference manual ? Regards