2025-10-21 11:56 PM
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
2025-10-22 6:37 AM
> According to the STM32L496 reference manual, the DAC should be disabled before entering STOP2 mode, which implies that it doesn’t operate in STOP2.
If the reference manual says you should disable DAC before entering STOP2 mode, you should disable it before entering STOP2. "It works" does not imply "it's supported and won't damage the chip".
> Or should I restrict my design to STOP1 mode for reliable operation?
That's what I would do.
2025-10-23 4:23 AM
Thank you for your Suggestion. I will proceed with STOP1 mode only.