We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X

Automate Build and Execution on dsPIC33 DSCs and PIC32 or SAM MCUs 

Create stand-alone applications from a Simulink discrete time model and with just one click generate, compile and load the code for your application onto your target device. The MPLAB Device Blocks for Simulink is a free set of user interfaces and Simulink peripheral blocks for developing complex designs based on dsPIC33 Digital Signal Controllers (DSCs) and PIC32 or SAM microcontrollers (MCUs). To further simplify your development, the package also includes many examples in the form of demo models, including a complete BLDC motor control application. The latest version now offers support for single-shunt motor control algorithms and includes Simulink models for several additional examples.

These blocks are supported by the following design tools by Simulink:

  • Fixed Point Designer
  • Signal Processing Toolbox
  • DSP System Toolbox
  • Control System Toolbox

  • Blocks for peripherals: Digital In/Out, ADC, PWM, Change Notification, Output Compare, Input Capture, QEI, I2C, SPI, UART, Interrupt, Reset
  • Target configuration blocks: Master Block, Simulink Reset Config, Compiler Option, Data Sheet, MCU Overload, MCU Load, Task State, Scheduler Option (to define behavior on overload with multi-rate scheduler)
  • Ability to invoke dedicated functions written in C through a “C Function Call” block
  • Real-time view/analyze or log variables within MATLAB through a configurable, PICGUI interface
  • Supports MathWorks Processor In the Loop (PIL) and External-Mode
  • Creates a ready-to-use MPLAB X Integrated Development Environment (IDE) project
  • Supports over 400 devices


Title Version Date Published
MPLAB Device Blocks for Simulink® 3.48 11/19/2020


Title Download
AN1770 - Using the Microchip Motor Model Library for Simulink Download