Skip to main content
Associate III
May 2, 2024
Solved

STM32G474VET3: internal DAC reference to the internal comparator configuration in CubeMx

 

I am not able to configure internal DAC reference to the internal comparator  of STM32G474VET3 

 

sag_0-1714645518122.png

 

This topic has been closed for replies.
sagBest answer
Associate III
May 3, 2024

Thanks Peter for this guidance.

Internal DAC options are related to DAC3 channels 1 & 2 and DAC4  channel 1 & 2 Only.

So need to enable those first.

 

Thanks 

 

sag_0-1714717423395.pngsag_1-1714717468735.png

sag_2-1714717482747.png

 

2 replies

Peter BENSCH
ST Technical Moderator
May 2, 2024

If you hover the mouse pointer over the greyed-out text, e.g. DAC1 OUT1, you will be shown a message explaining why it is greyed out. Specifically, it is here: "Need to have a 'DAC Out' activated [...]". So all you have to do is assign a DAC to the on-chip peripherals and you can configure the corresponding function in the COMPx.

Hope that helps?

Regards
/Peter

In order 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.
sagAuthorBest answer
Associate III
May 3, 2024

Thanks Peter for this guidance.

Internal DAC options are related to DAC3 channels 1 & 2 and DAC4  channel 1 & 2 Only.

So need to enable those first.

 

Thanks 

 

sag_0-1714717423395.pngsag_1-1714717468735.png

sag_2-1714717482747.png