STMicroelectronics STSPIN32G4 Motor Controller with STM32G4 MCU is an extremely integrated and flexible motor controller for driving 3-phase brushless motors. This device helps designers choose the most suitable driving mode and reduce PCB area and the overall Bill Of Materials. The STSPIN32G4 embeds a triple half-bridge gate driver able to drive power MOSFETs with a current capability of 1A (sink and source). Three bootstrap diodes are embedded as well. The high and low-side switches of the same half-bridge cannot be simultaneously driven high, thanks to an integrated interlocking function. An additional protection feature is represented by hardware VDS monitoring circuitry that constantly monitors each of the six external MOSFETs. If an overvoltage is detected across one of them, it switches off all gate driver outputs. The overvoltage threshold is set through a dedicated SCREF pin.
The device is fully self-supplied thanks to an integrated flexible power management structure. It can generate all required supplies starting from the motor supply voltage, VM, the only one provided from outside. An embedded programmable buck regulator, with embedded power MOSFET, generates the supply voltage for the gate drivers starting from the motor supply voltage VM. Four different VCC output values can be selected through a dedicated configuration register (8V (default value), 10V, 12V, and 15V). An internal high precision low-drop linear regulator (LDO) is used to generate the 3.3V supply (VREG3V3) starting from the REGIN input voltage. The 3.3V output voltage supplies both the gate driver logic and the microcontroller. It is protected against short-circuit, overload, and undervoltage conditions. Both the buck and LDO regulators can be bypassed by providing external VCC and VREG3V3 supplies.
The integrated MCU (STM32G431VBx3) is based on the high-performance 32-bit ARM® Cortex®-M4 core, operating at a frequency up to 170MHz. It features a single-precision floating-point unit (FPU), a full set of DSP (Digital Signal Processing) instructions, and a memory protection unit (MPU), which enhances the application’s security. This microcontroller represents the mainstream choice for advanced motor control applications thanks to the very rich and specific set of features. These features include two fast 12-bit ADCs (4Msps), four comparators, three operational amplifiers, four DAC channels (two external and two internal), and an internal voltage reference buffer. It also includes one general-purpose 32-bit timer, two 16-bit PWM timers dedicated to motor control, seven general-purpose 16-bit timers, one 16-bit low-power timer.
The STMicroelectronics STSPIN32G4 also embeds high-speed memories (128kB of Flash memory and 32kB of SRAM) with several protection mechanisms and up to 40 available GPIOs. The device includes mathematical/arithmetic function acceleration peripherals (CORDIC for trigonometric functions and FMAC unit for filter functions) and main interfaces (I2C, SPI, UART, and CAN). It also has a comprehensive set of power-saving modes and an analog independent supply input for ADC, DAC, operational amplifiers, and comparators. Such a feature-rich microcontroller allows running very high-performance motor control algorithms offering unprecedented flexibility in choosing the best fitting control choice even for the most challenging motion control applications. Users can program the STSPIN32G4 to run sensorless or sensored Field Oriented Control (FOC) with one, two, or three shunts, more advanced position or torque control algorithms, or more traditional six-step control mode.









