cancel
Showing results for 
Search instead for 
Did you mean: 

Sending comparator to output

TWaks.1
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

enable external output?

0693W000004GlouQAC.png

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
TDK
Guru

enable external output?

0693W000004GlouQAC.png

If you feel a post has answered your question, please click "Accept as Solution".

Set the respective pin to AF in GPIO_MODER, and select the proper AF number in GPIO_AFR.

0693W000004GlsNQAS.png

JW

TWaks.1
Associate

Thank you, I can't believe it was that easy.