How to use COMP on STM32g431c8T6? I found it not work correctly. The pol is noninverted When INP(1.6V)<INM(2v),the out is high. Only INP=0, the out is low.
void Comp1Init(void){ Comp1GpioInit(); RCC -> APB2ENR |= 1; //20230506///////////////////////////////////////////////////////// COMP1 -> CSR |= 3 << 19;//TIM3 OC3 Banking of CSA p739 /////////////////////////////////////////////////////////// COMP1 ...