Skip to main content
surumadurum
Associate III
April 15, 2024
Question

STM32WL DAC Sample-And-Hold: Internal capacitor?

  • April 15, 2024
  • 1 reply
  • 1908 views

I want to generate a constant, steady voltage as COMP INPM in STOP1 with the DAC (using HAL libs at the moment).

Unfortunately I cannot get a steady signal. The voltage drifts around some seconds, stabilises and starts from the beginning (oddly seems to relate to COMP interrupt, but might be coincidence).

I was wondering whether this is possible without an external capacitor? The manual mentions an internal capacitor and gives formulas to calculate the sample, hold&refresh times, but the specs of the internal cap are nowhere stated.

surumadurum_0-1713209445540.png

Does this mean, sample and hold without external cap only works with disabled buffer and on-chip peripherals selected only?
What would be the correct values for sample,hold&refresh in this scenario?

 

Thanks,

Robert

This topic has been closed for replies.

1 reply

STTwo-32
ST Technical Moderator
June 2, 2024

Hello @surumadurum 

According to the DS13293, the DAC can't be enabled on STOP 1 mode. It just retain his curent configurations.

Best Regards.

STTwo-32 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.