The STSPIN32G4 is an extremely integrated and flexible motor controller for driving 3-phase brushless motors, helping designers to choose the most suitable driving mode and reduce PCB area and overall Bill Of Materials.It embeds a triple half-bridge gate driver able to drive power MOSFETs with a current capability of 1 A (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 and in case an overvoltage is detected across one of them, 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 able to generate all required supplies starting from the motor supply voltage, VM; the only one to be 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, 8 V (default value), 10 V, 12 V and 15 V.An internal high precision low-drop linear regulator (LDO) is used to generate the 3.3 V supply (VREG3V3) starting from the REGIN input voltage. The 3.3 V 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 providing externally VCC and VREG3V3 supplies.An additional very low-quiescent regulator is used when the STSPIN32G4 is in standby mode, allowing to reduce the overall current consumption down to 15 μA typical.The integrated MCU (STM32G431VBx3) is based on the high-performance 32-bit ARM® Cortex®-M4 core, operating at a frequency up to 170 MHz and featuring a single-precision floating-point unit (FPU), 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 such as: two fast 12-bit ADCs (4 Msps), four comparators, three operational amplifiers, four DAC channels (2 external and 2 internal), an internal voltage reference buffer, 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. It also embeds high-speed memories (128 kB of Flash memory, and 32 kB of SRAM) with several protection mechanisms, up to 40 available GPIOs, mathematical/arithmetic function acceleration peripherals (CORDIC for trigonometric functions and FMAC unit for filter functions), main interfaces (I2C, SPI, UART and CAN), 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-steps control mode. The STSPIN32G4 also features the full set of protections and an extended temperature range (-40°C to +125°C), guaranteeing stable operation even in the most demanding industrial applications. Both SWD and JTAG interfaces are provided for microcontroller firmware programming and debugging. Finally, with an additional external three-phase driver (such as the STDRIVE101) two independent 3-phase BLDC motors can be efficiently driven from the STSPIN32G4, offering an unprecedented BOM saving and application optimization.