Library 07- DA Converter on STM32F4

Digital to Analog Converter has inverse function as ADC. It converts digital value in microcontroller to analog value.

Library

Features

  • Output analog value from STM32F4x

Dependencies

  • CMSIS
    • STM32F4xx
    • STM32F4xx GPIO
    • STM32F4xx DAC
  • TM
    • TM GPIO
    • defines.h

STM32F4 has 1 DAC with 2 channels output. Table below shows pins for DAC.

DAC pins
DAC Channel ALIAS Pin APB
DAC_Channel_0 TM_DAC1 PA4 1
DAC_Channel_1 TM_DAC2 PA5 1

Alias is used in my library for easier use in library.

Example

Project is available on Github Github, download library below.

tilz0R

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...

Read before commenting!

Before you make a new comment, make sure you agree with things listed below:

  • - Read post to make sure if it is already posted what you are asking for,
  • - Make sure you have the latest version of libraries used in your project,
  • - Make a clean and grammatically correct written message,
  • - Report as many details as possible, including what have you done so far,
  • - Do NOT post any code here. Use Pastebin,
  • - Do NOT post any error codes here. Use Pastebin,
  • - Specify STM32Fxxx family and used Discovery/EVAL/Nucleo or custom made board,
  • - Make sure your clock is set correct for PLL,
  • - If you are using my HAL drivers, please check this post how to start.
Comment will be deleted on breaking these rules without notification!