HAL Library 28- Digital to Analog converter for STM32Fxxx

Here it is. After many email about this library, I’ve finally made it. This library works on STM32F0xx, STM32F4xx and STM32F7xx based devices, where DAC is supported. For example, STM32F401 and STM32F411 does not support DAC.


Read more about new HAL libraries


  • It does not use built-in HAL support for generating signals
  • Output is based on user value
  • Independent 2 DAC channel outputs with 12-bit resolution


  • HAL
  • TM
    • STM32Fxxx HAL
    • defines.h configuration file
    • TM GPIO

Functions and enumerations

A list of functions and its enumerations can be found on DAC library API.


DAC example is available on my Github HAL repository with included hex files for all available boards where DAC is supported.

Download all libraries below.



Owner of this site. Application engineer, currently employed by STMicroelectronics. Exploring latest technologies and owner of different libraries posted on Github.

You may also like...