HAL Library 29- Analog to Digital converter for STM32Fxxx

Analog to digital converter library is out. It was a lot of time before I thought why I don’t have this basic library where anyone would use it. Now i exists. This library works on STM32F0xx, STM32F4xx and STM32F7xx based devices.

Library

Read more about new HAL libraries

Features

  • It uses basic polling for ADC complete
  • Supports VBAT reading
  • Does not get high sampling rates
  • Meant for basic use

Dependencies

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

Functions and enumerations

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

Example

DAC example is available on my Github HAL repository with included hex files for all available boards where ADC is supported. You will also found example for LCD use.

Download all libraries below.

Icon
TM STM32 Libraries

STM32 libraries based on STM32Fxxx HAL drivers.

 

tilz0R

Owner of this site. Also electronic enthusiasts, web developer, 3D printer fan, handball player and more. Big fan of STM32F4 devices. In anticipation of the new Discovery board for STM32F7 lines.

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!