cancel
Showing results for 
Search instead for 
Did you mean: 

How to use DAC as VREF for COMP2 ?

parobin
Associate II

Hi,

I use a STM32L052 and I would like to use DAC as VREF for comparator 2 (PB6) but without connecting DAC1 to PA4. It is possible ?

Because under STMCubeMX, when I set DAC as VREF for COMP2, it set automatically PA4 as DAC_OUT1 but in my application, PA4 is used for something else.

So is it possible to set DAC1 as VREF for COMP2 only in intern ?

1 ACCEPTED SOLUTION

Accepted Solutions

From RM:

Note: Once DAC_Channelx is enabled, the corresponding GPIO pin (PA4) is automatically

connected to the analog converter output (DAC_OUT1).

JW

View solution in original post

2 REPLIES 2

From RM:

Note: Once DAC_Channelx is enabled, the corresponding GPIO pin (PA4) is automatically

connected to the analog converter output (DAC_OUT1).

JW

parobin
Associate II

Okay, thank you.