cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL DAC Sample-And-Hold: Internal capacitor?

surumadurum
Associate III

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

1 REPLY 1
STTwo-32
ST Employee

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.