2017-04-05 03:04 AM
On the STM32L431, there's an erratum described in STM32L431xx Errata sheet (STM32L431xx device limitations / DM00218224). It allows to reset COMP1 and COMP2 despite of the LOCK bit being set.
My question: What happens to an I/O pin that is connected to the COMP's output via the alternate function multiplexer / GPIOx_AFR? Will it switch to a defined state? If so, to which state?
#comp-erratum2017-04-05 07:03 AM
Hello
trepte.johannes
,Setting SYSCFGRST will restSYSCFG + COMP + VREFBUF, so it has no impact on GPIO registers even if the pin is configured in AF mode to be used as Comp output.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2017-04-05 07:37 AM
Hello Amel,
thanks for your quick response.
I understand that SYSCFGRST will not change GPIO registers.
But what about the voltage at the pin itself? The GPIO pin remains configured as an alternate function, connected to the COMP peripheral, which itself will be reset. What information will the COMP output pass to the GPIO driver?
This information would be important for me in order to implement a defined (save) state if the COMP gets reset.
Johannes