cancel
Showing results for 
Search instead for 
Did you mean: 

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

sag
Associate III

 

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

 

sag_0-1714645518122.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
sag
Associate III

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

 

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

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.
sag
Associate III

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