cancel
Showing results for 
Search instead for 
Did you mean: 

DAC operation in STOP2 mode using on-chip peripheral option on STM32L496

Mounika_Navtech
Associate II

Hello,

 

DAC_Lowpowermodes.PNG

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

2 REPLIES 2
TDK
Super User

> 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.

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

Thank you for your Suggestion. I will proceed with STOP1 mode only.