Microchip Motor Control Models for PIC MCUs and dsPIC DSCs

Reference motor controller and physical motor models for dsPIC DSCs and PIC MCUs


  • Create, simulate, and generate code for motor control algorithms
  • Model and simulate permanent-magnet synchronous motors (PMSM)
  • Generate code for deployment on dsPIC33, PIC24, and PIC32 controllers
  • Integrates with lower-level dsPIC® DSC I/O Blocksets and MPLAB® X IDE 


Microchip provides Simulink® blocksets for motor control applications targeting dsPIC Digital Signal Controller (DSCs) and PIC® microcontrollers (MCUs). This includes a library of blocks for creating motor controllers as well as reference models of the physical motors themselves. The models are supported by Microchip’s devices and development boards for a complete hardware and software motor control solution.

The motor control reference designs include the following:

  • Microchip Motor Control Library Blockset – Simulation blocks and code generation for motor control algorithms
  • Microchip Motor Model Library – Reference models to simulate PMSM motors

Microchip Motor Control Library Blockset – Microchip Motor Control Library Blockset contains a number of basic Simulink blocks that can be used to jumpstart Model-Based Design of motor control applications using Microchip dsPIC DSCs in the dsPIC33F and dsPIC33E families. These blocks include reference frame transforms, a proportional-integral controller, and trigonometric functions, all of which can be used with Embedded Coder® to generate efficient code for the dsPIC DSC target device.

Microchip’s Motor Model Library – Microchip’s Motor Model Library is a set of components (“blocks”) that can be used with Simulink. These blocks allow engineers to model a system with permanent-magnet synchronous motors (PMSM) under closed-loop control of an embedded microcontroller, such as Microchip’s dsPIC Digital Signal Controllers.

MPLAB 16-Bit Device Blocks for Simulink – Microchip also offers integrated 16/32-bit Device Blocks for Simulink. These blocks enable users to map inputs and outputs in their Simulink models to dsPIC33 peripherals and to automatically generate code that runs on the microcontrollers. These peripheral blocks work seamlessly with the motor control libraries described here and can also be used for a variety of other applications.

These libraries enable developers to use Model-Based Design during their development and testing and to gain a better understanding of their motor control systems. Simulation can be used to confirm the behavior of real systems and it can also be used to explore system behavior under conditions that are impossible or cumbersome to test with a real system. For simulation only, users need MATLAB®, Simulink, and Fixed-Point Designer from MathWorks. For code generation and deployment to hardware, users also need MATLAB Coder, Simulink Coder, and Embedded Coder.

Together, these components provide a rapid prototyping solution that allows compiling and flashing Simulink models of a motor control system into a dsPIC DSC with a single push of a button. For more information, refer to the Motor Control Simplified landing page on the Microchip web site.

Microchip Technology Inc.

2355 W Chandler Blvd
Chandler, AZ 85224
Tel: 480-792-7200
Fax: 480-899-9210

Required Products

Recommended Products


  • Windows


  • Consulting
  • E-mail
  • On-site assistance
  • System integration
  • Telephone
  • Training

Product Type

  • Embedded Software - Tools, IDE, RTOS


  • Control Systems
  • Embedded Systems
  • Process Control and Monitoring
  • Real-Time Systems


  • Automotive
  • Consumer Electronics
  • Industrial Automation and Machinery
  • Semiconductor