Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes
×

MPLAB

MPLAB® Device Blocks for Simulink®

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 microcontrollers (MCUs). The package also includes many examples in the form of demo models to further simplify your development, 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 MATLAB®:

  • Fixed Point Designer
  • Signal Processing Toolbox
  • DSP System Toolbox
  • Control System Toolbox
MPLAB Device Blocks for Simulink

Key Features of MPLAB Device Blocks for Simulink

  • 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 270 devices
TitleVersionDate PublishedDownload
MPLAB Device Blocks for Simulink®3.4611/21/201