Skip to main content
Graduate
July 6, 2024
Solved

STM32F410RB DAC Alternate Function not present in AF mapping table

  • July 6, 2024
  • 2 replies
  • 969 views

I recently got a STM32F410RB. The block diagram shows "DAC1 as AF". I have been looking up the datasheet to find the alternate function pin for the DAC module in the "Alternate function mapping" table, but I'm unable to. Also, I see DAC1_OUT under the Alternate function column of the "Pin description" table. I am unable to ascertain the AF type hence. Any help would be highly appreciated. I am very new to STM32 programming, and have done it using the registers (no HAL).

Here is the datasheet I'm referring to: https://www.st.com/resource/en/datasheet/stm32f410rb.pdf

Thanks!

    This topic has been closed for replies.
    Best answer by STOne-32

    Dear @overbite8934 ,

     

    Welcome in STCommunity !  We have no alternate function AFx for DAC_OUT, it is an additional function. As described here 

    IMG_8852.jpeg

    Once you activate the DAC enable feature it will take the control of the pad - you need only to configure in Analog mode the GPIO .

    AFx are a kind of Digital Mux to route many Peripherals to only one digital pad ( Input or Output) at a time and avoid conflicts.

    Hope it helps ,

    STOne-32

    2 replies

    STOne-32Answer
    Technical Moderator
    July 6, 2024

    Dear @overbite8934 ,

     

    Welcome in STCommunity !  We have no alternate function AFx for DAC_OUT, it is an additional function. As described here 

    IMG_8852.jpeg

    Once you activate the DAC enable feature it will take the control of the pad - you need only to configure in Analog mode the GPIO .

    AFx are a kind of Digital Mux to route many Peripherals to only one digital pad ( Input or Output) at a time and avoid conflicts.

    Hope it helps ,

    STOne-32

    Graduate
    July 6, 2024

    Thank you so much! I did not see that was an additional function.