This user manual describes the brushless direct current motor (BLDC) vector software library, a vector control firmware library for 3-phase permanent-magnet (PM) motors developed for the STM8Sxxx microcontrollers.
This user manual describes the brushless direct current (BLDC) scalar software library for STM8Sxxx microcontrollers, designed for three-phase permanent-magnet motors. It supports both open-loop and speed control modes, with options for Hall sensor or sensorless operation. The library includes multiple C modules and an STVD workspace for rapid MCU and tool evaluation. It also provides ready-to-use functions to eliminate low-level algorithm development, enabling users to focus on application-specific tasks.
The manual covers BLDC theory, rotor speed measurement, commutation, BEMF detection, and startup strategies. It details library architecture, including virtual registers, I/Os, and drive structure. It also explains how to customize parameters, configure the system with a brake resistor, and use high- and low-level control functions for motor operation.
| CPU Frequency | 16 MHz |
|---|---|
| Flash Memory | up to 128 Kbytes |
| Operating Voltage | 2.95 to 5.5 V |
| Interrupts | 32 interrupts |
| ADC | 10-bit, up to 16 multiplexed channels |
| I/Os | up to 68 I/Os |
It is a scalar control firmware library for 3-phase permanent-magnet motors, supporting both open-loop and speed control modes with Hall sensor or sensorless operation.
It uses a sensorless algorithm for rotor position reconstruction based on BEMF detection, eliminating the need for speed sensors.
Basic knowledge of C programming, PM motor drives, and power inverter hardware is required; in-depth STM8Sxxx knowledge is only needed for customization.