cancel
Showing results for 
Search instead for 
Did you mean: 

Dac output of stm32h7 at startup

JMan.1
Associate

Hi,

I have a problem When I use Dac output of stm32h7 . Dac output go high (3.3v) for 200ms and then it go to adjusted value. Why?

How can I prevent this event?

2 REPLIES 2
TDK
Guru

The answer will depend on your code. To avoid a bad value on the pin, ensure the DAC is completely set up prior to assigning the DAC alternate function mode to the pin. I don't think this is possible with HAL by default.

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

Depends on where the 200ms comes from, if it is from spinning up the HSE and PLL, you'd probably want to configure critical pins early. The earliest opportunity being in the Reset_Handler.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..