INTRODUCTION
This application note describes one of the software libraries available for the ST7MC MCU. The ST7MC microcontroller comes with a dedicated motor control cell (MTC) and can drive both permanent magnet DC/AC motors (PMDC/PMAC also called BLDC) and induction AC motors. This application note describes the ST7MC software library required to control a BLDC motor with a trapezoidal 6-step drive in sensor or sensorless mode, open or closed loop, and in current or voltage mode. The control of a PMAC motor in Sinewave mode with sensors is detailed in application note AN1947. The control of an AC induction motor in Sine-wave mode is detailed in application note AN1904.