DAC operation in STOP2 mode using on-chip peripheral option on STM32L496
Hello,
According to the STM32L496 reference manual, the DAC should be disabled before entering STOP2 mode, which implies that it doesn’t operate in STOP2.
However, in STM32CubeMX there is a configuration option for DAC output — external pin, on-chip peripheral, or both.
Earlier, when I selected external pin, the DAC output was not working in STOP2 mode (as expected). But now, after selecting on-chip peripheral, it is working even in STOP2 mode.
I am using DAC_OUT1 and DAC_OUT2 as threshold references for an internal comparator (not external output pins).
My questions:
Is it safe and valid to use the DAC with the on-chip peripheral option in STOP2 mode?
Or should I restrict my design to STOP1 mode for reliable operation?
Appreciate your help and clarification.
Thank you,
Mounika
