HAL Library 26- Power Voltage Detector (PVD) for STM32Fxxx

Power Voltage Detector (PVD) can be used to detect if power voltage is below or above selected voltage. It can be used for closing file using FATFS when detected voltage below treshold so you don’t break data on card or similar thing, sky is the limit here.

PVD allows you to select 8 voltages between 2 and 3 volts. For detailed voltages, check reference manual.

Library

Read more about new HAL libraries

Features

  • Detect voltage rise or drop with interrupt

Dependencies

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

Functions and enumerations

Full functions and enumerations can be found on PVD API site.

Example

Examples for receiver and transmitter with or without interrupt pin are available on my Github account, where you can take a look at main.c file for more informations.

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!