2019-04-03 05:20 AM
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 ?
Solved! Go to Solution.
2019-04-03 05:57 AM
From RM:
Note: Once DAC_Channelx is enabled, the corresponding GPIO pin (PA4) is automatically
connected to the analog converter output (DAC_OUT1).
JW
2019-04-03 05:57 AM
From RM:
Note: Once DAC_Channelx is enabled, the corresponding GPIO pin (PA4) is automatically
connected to the analog converter output (DAC_OUT1).
JW
2019-04-03 06:28 AM
Okay, thank you.