2020-09-22 07:33 AM
Hi.
I am working on microcontroller STM32L072KZ and STM32CubeMX.
I am trying to set a value of one pin depending on comparator value. I do not know how to do it in STM32CubeMX.
I want to do it using only hardware, not software.
Can anyone help me?
Solved! Go to Solution.
2020-09-22 10:59 AM
enable external output?
2020-09-22 10:59 AM
enable external output?
2020-09-22 11:20 AM
Set the respective pin to AF in GPIO_MODER, and select the proper AF number in GPIO_AFR.
JW
2020-09-23 05:16 AM
Thank you, I can't believe it was that easy.