Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes

32-bit Microcontrollers for Motor Control Applications 

All the Technology You Need to Quickly Get Your Motors Spinning

Did you know that Microchip has one of the most extensive and scalable motor control portfolios in the industry? With products ranging from 8-, 16- and 32-bit microcontrollers (MCUs) to integrated FET driver controllers, even high-voltage power modules including Silicon Carbide (SiC) and IGBT technology, we’ve got you covered.

Our 32-bit microcontroller (MCU) lineup covers a broad range of motor control applications from basic Brushless DC (BLDC) 6-step scalar control to highly advanced sensorless Field Oriented Control (FOC) and sensored feedback examples for positioning applications. If you can dream it, Microchip 32-bit MCUs can spin it.

Motor Control icon

Entry Level

Mid Range

High Performance

SAM D2x and C2x MCUs

48 MHz Arm® Cortex®- M0+ Based MCUs with Up to 256 KB Flash

SAM D/E5x Series MCUs

120 MHz Arm Cortex-M4 Based MCUs with Up to 1 MB Flash


120 MHz MIPS Core with Up to 1 MB Flash


300 MHz Arm Cortex-M7 Based MCUs with Up to 2 MB Flash

  • Up to 1 Msps ADC
  • 12-bit DAC
  • Motor Control PWM
  • Analog Comparators
  • CAN FD
  • Sigma Delta ADC
  • 5V Devices
  • Up to 1 Msps ADC
  • Motor Control PWM
  • 12-bit DAC
  • Analog Comparators
  • CAN FD
  • Position Encoder Interface
  • USB
  • Ethernet
  • Up to 3.75 Msps ADC
  • Motor Control PWM
  • 12-bit DAC
  • Analog Comparators
  • Four CAN 2.0
  • Position Encoder Interface
  • Two USB
  • Op Amps
  • Up to 2 Msps ADC
  • Motor Control PWM
  • 12-bit DAC
  • Analog Comparators
  • CAN FD
  • Position Encoder Interface
  • USB
  • Ethernet
  • Tightly Coupled Memory

Motor Control Application Features


This family is a simple and effective choice when looking for a cost-optimized 32-bit MCU for 6-step, scalar control or basic FOC.


Are you looking for more MIPS for your FOC application? Offering 120 MHz performance with Floating Point and DSP extensions, the SAM D5x series of MCUs makes a great choice for “motor control and more” type applications.


Take advantage of high-performance analog with the PIC32MK series of MIPS-based MCUs. They offer one of the industry’s most advanced, integrated analog front-end modules featuring seven individual ADC core engines. When combined in interleaving mode, these ADCs offer up to 20 Msps conversions speeds at 12 bits. With their integrated op amps, PIC32MK MCUs offer the performance to drive two complete FOC-type BLDC or PMSM motors.


Satisfy your need for speed with the SAM S70 series of MCUs. Featuring a pair of dual sample-and-hold 12-bit ADC engines, the SAM S70 is a very capable controller for dual-motor applications. Powered by a 300 MHz Arm Cortex-M7 core with up to 64 KB of tightly coupled core memory, this is one blazing fast FOC control machine.


Offering the rock-solid performance of an Arm Cortex-M0+ core in a true 5V device, the SAM C2x series of MCUs offers enough MIPS for higher control loop frequency FOC of a BLDC or PMSM motor, with options for CAN FD.

Want “motor control and more” with a little more? The SAM E5x series of MCUs offers all the performance of the SAM D5x series, with options for USB, CAN FD and Ethernet for creating connected motor control applications with a single MCU.

Can you get blindingly fast control loops and industrial connectivity options in one solution? Yes, you can with the SAM E70 series of MCUs. Featuring all the performance features of the SAM S70 series, the SAM E70 adds connectivity options including IEEE-1588 Ethernet and CAN FD. For critical real-time control applications, take advantage of the QSPI interface to add the LAN9252 EtherCAT® slave controller to simplify the development of EtherCAT-based motor control.

Software and Demo Applications

Application code and software examples for our 32-bit devices are maintained through MPLAB® Harmony v3. Use the link below to get more information and to download
MPLAB Harmony v3:

Example code includes:

  • ACIM V/Hz Control for the SAM C21
  • Block Commutation with Hall Sensor Feedback for BLDC for the SAM C21
  • PMSM FOC with Encoder Positioning for the SAM E54
  • PMSM FOC with Encoder Positioning for the SAM E70
  • (Sensorless) PMSM FOC with PLL Estimator for SAM the E54
  • (Sensorless) PMSM FOC with PLL Estimator for SAM the E70
  • (Sensorless) Reduced Order Lueneberger Control for PMSM Motors for the SAM C21
  • (Sensorless) Reduced Order Lueneberger Control for PMSM Motors (with Anti-Windmilling) for the SAM C21
  • (Sensorless) Reduced Order Lueneberger Control for PMSM Motors (With Max Torque Per Ampere) for the SAM C21

More information and source code are available directly on the MPLAB Harmony GitHub page. All code is free to modify and use on Microchip MCUs.


There’s No Solution Without Tools

dsPICDEM MCLV Board Photo

The dsPICDEM™ MCLV-2 Development Board is targeted to control a Brushless DC (BLDC) motor or Permanent Magnet Synchronous Motor (PMSM) in sensor or sensorless operation. This flexible and cost-effective board can be configured in different ways for use with Microchip’s specialized motor control digital signal controllers. The dsPICDEM MCLV-2 Development Board supports a plug-in module for the MIPS32 microAptiv™ based PIC32MK motor control device families, as well as recently added plug-in modules for the Arm Cortex-based ATSAME70, ATSAMC21 and SAM D/E54 MCUs.


Design and Simulation Tools

MPLAB® Device Blocks for Simulink® Are Now Free to Download

The MPLAB Device Blocks for Simulink provide a set of user interfaces and Simulink peripheral blocks for the dsPIC30 and dsPIC33 families of DSCs and PIC32MK MCUs. You can create standalone applications from a Simulink discrete time model by adding blocks provided by Microchip. Code for the application is generated, compiled and loaded on a target in a single, one-push-button step. Many examples, in the form of demo models that include a complete BLDC motor control application, are provided with the package.


AN2785 – Interleaving ADC’s for maximum speed

AN2520 – Sensorless Field Oriented Control (FOC) for a Permanent Magnet Synchronous Motor (PMSM) Using a PLL Estimator and Equation-based Flux Weakening (FW) Application Note

AN2590 – Sensorless FOC for PMSM using Reduced Order Luenberger Observer

AN2584 – Integrated Power Factor Correction (PFC) and Sensorless Field Oriented Control (FOC) System for Microchip 32-bit Microcontrollers

AN2757 – Sensored (Encoder-based) Field Oriented Control of Three-Phase Permanent Magnet Synchronous Motor (PMSM)