cancel
Showing results for 
Search instead for 
Did you mean: 

There seem to be a bug in STM32F3 HAL library for comparator power mode. Or else the reference manual is misleading

TFont.1
Associate

In reference manual, comparator power mode is not the same for all comparators. High Speed is (binary) 00 for comparators COMP1 and COMP2, and 11 for the others.

In stm32f3xx_hal_comp_ex.h, high speed is 00 and this is applied to all comparators.

1 ACCEPTED SOLUTION

Accepted Solutions
Imen GH
ST Employee

Hello,

I confirm that we have no bug in STM32F3 HAL library for comparator power mode and the RM must be corrected.

For all comparator, The bit value for High Speed is fixed to '00'

  • 00: High speed / full power

I have already raised this error internally to take in consideration.

We will correct the error in the coming release of the RM.

Best regards

View solution in original post

3 REPLIES 3
Imen GH
ST Employee

Hello,

I confirm that we have no bug in STM32F3 HAL library for comparator power mode and the RM must be corrected.

For all comparator, The bit value for High Speed is fixed to '00'

  • 00: High speed / full power

I have already raised this error internally to take in consideration.

We will correct the error in the coming release of the RM.

Best regards

TFont.1
Associate

Thank you both @Community member and​ @Imen GH​  for your replies. I can be no more afraid to use the library constants