Multiple ADC Channels reading same values
Hi I'm using STM32G0B0RET6, and im using ADC Channel 1,4,5,6,7,10,11,15, and 16 . and sequencer is set to not fully configurable because if set to fully configurable then i can't use Channel 15 and 16.
So here for all ADC channels i'm getting same values, can anyone help me resolve this issue
Initiated like this
HAL_ADCEx_Calibration_Start(&hadc1);
and
this my ADC reading part
HAL_ADC_Start(&hadc1);
HAL_ADC_PollForConversion(&hadc1, 200);
chanel1 = HAL_ADC_GetValue(&hadc1); //MDB 4 Vout sense
HAL_ADC_PollForConversion(&hadc1, 200);
chanel4 = HAL_ADC_GetValue(&hadc1); //Vcharge sense
HAL_ADC_PollForConversion(&hadc1, 200);
chanel5 = HAL_ADC_GetValue(&hadc1); //MDB 3 Vout sense
HAL_ADC_PollForConversion(&hadc1, 200);
chanel6 = HAL_ADC_GetValue(&hadc1); //MDB 2 Vout sense
HAL_ADC_PollForConversion(&hadc1, 200);
chanel7 = HAL_ADC_GetValue(&hadc1); //MDB 1 Vout sense*/
HAL_ADC_PollForConversion(&hadc1, 200);
chanel10 = HAL_ADC_GetValue(&hadc1); //Vbattery sense
HAL_ADC_PollForConversion(&hadc1, 200);
chanel11 = HAL_ADC_GetValue(&hadc1); //Vbattery sense
HAL_ADC_PollForConversion(&hadc1, 200);
chanel15 = HAL_ADC_GetValue(&hadc1); //Vsupply sense
HAL_ADC_PollForConversion(&hadc1, 200);
chanel16 = HAL_ADC_GetValue(&hadc1); //VCHG sense
HAL_Delay(300);
HAL_ADC_Stop(&hadc1);
