Portenta_H7_PWM

Device Control

This library enables you to use Hardware Timers on an STM32H7-based Portenta_H7 board to create and output PWM to pins.
These PWM channels, using Portenta_H7 Hardware Timers, still work even if other functions are blocking. Moreover, they are much more precise (certainly depending on clock frequency accuracy) than other software or ISR-based PWM, using millis(), micros() or Timer Interrupt. This important feature is absolutely necessary for mission-critical tasks. You can start, stop, change and restore the settings of any PWM channel on-the-fly.

Author: Khoi Hoang

Maintainer: Khoi Hoang

Read the documentation

Compatibility

This library is compatible with the mbed, mbed_portenta architectures so you should be able to use it on the following Arduino boards:

Compatibility Note

Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.

Releases

To use this library, open the Library Manager in the Arduino IDE and install it from there.