Hi guys, I'm using STM32G431 board and trying to use the internal OpAmp in standalone mode using Low Level Drivers (LL Drivers). The Opamp works fine in follower mode, but not in standalone mode. Can anyone suggest what might be the problem? Thanks i
Please find the code here,
SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN);
LL_OPAMP_SetMode (OPAMP2, LL_OPAMP_MODE_FUNCTIONAL);
LL_OPAMP_SetFunctionalMode (OPAMP2,LL_OPAMP_MODE_STANDALONE);
LL_OPAMP_SetInputNonInverting (OPAMP2, LL_OPAMP_INPUT_NONINVERT_IO0); //PA7
LL_OPAMP_SetInputInverting (OPAMP2, LL_OPAMP_INPUT_INVERT_IO0); //PA5
LL_OPAMP_SetInternalOutput (OPAMP2, LL_OPAMP_INTERNAL_OUPUT_DISABLED); //PA6
LL_OPAMP_Enable (OPAMP2);