Skip to main content
Visitor II
May 2, 2024
Solved

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

  • May 2, 2024
  • 2 replies
  • 1018 views

 

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.
    Best answer by sag

    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

    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

    sagAuthorAnswer
    Visitor II
    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