Current Version

MPLAB Device Blocks for Simulink version 3.63.13 (Released: 14-May-2026)

The version number and release date above are injected automatically from data/version.json by the Build_Blockset.m packaging script โ€” they are always in sync with the installed toolbox.

This blockset enables Model-Based Design for Microchip dsPIC, PIC32, and SAM microcontrollers using MATLAB/Simulink with automatic code generation and deployment.

Version Information

To check your installed version, run in MATLAB:

>> picInfo

To verify installation and detect compilers/programmers:

>> picInfo('check')

Key Features

The MPLAB Device Blocks for Simulink provides:

Peripheral Blocks:

  • PWM (High-Speed, Advanced, complementary outputs, fault protection)
  • ADC (12-bit, 16-bit, SAR, simultaneous sampling)
  • UART, SPI, I2C communication peripherals
  • Timers, Capture, Compare, PWM peripherals
  • QEI (Quadrature Encoder Interface)
  • CAN, LIN automotive communication
  • DMA (Direct Memory Access)
  • GPIO (digital I/O, analog pins)

Code Generation Modes:

  • Standalone: Deploy embedded code to microcontroller
  • External Mode: Real-time parameter tuning and signal monitoring via XCP protocol
  • PIL (Processor-in-the-Loop): Verify code correctness and measure performance

Supported Device Families:

  • dsPIC30F, dsPIC33F, dsPIC33E, dsPIC33C, dsPIC33A
  • PIC32A (ARM-enhanced DSC)
  • PIC32MK, PIC32MZ, PIC32MM
  • SAM (ARM Cortex-M: SAME70, SAME54, SAMD21, etc.)

Development Tools Integration:

  • XC16, XC-DSC, XC32 compiler support
  • MPLAB X IDE integration for programming/debugging
  • Supports ICD4/5, PICkit4/5, PKOB4, Snap, ICE4 programmers

Release History

For detailed release notes including new features, bug fixes, and compatibility information for each version:

๐Ÿ“ฅ Visit the MATLAB File Exchange page:

๐Ÿ”— MPLAB Device Blocks for Simulink - File Exchange

The File Exchange page provides:

  • Detailed release notes for all versions
  • Version history and changelogs
  • Known issues and limitations
  • User reviews and ratings
  • Community discussions

Installation & Updates

Installing Latest Version

Method 1: MATLAB Add-On Explorer (Recommended)

  1. Open MATLAB Add-On Explorer
  2. Search for “MPLAB”
  3. Click “Add” to install latest version

Method 2: Download from GitHub

๐Ÿ”— GitHub Releases Page

Download the .mltbx installer and run it from MATLAB.

Checking for Updates

The File Exchange page shows the latest version available. Compare with your installed version (picInfo command) to determine if an update is available.

Compatibility

Supports MATLAB R2018b through R2025b (and newer releases as they become available).

๐Ÿ’ก Older MATLAB Versions: For MATLAB versions older than R2018b, contact support through the forum. Legacy versions may be available for specific MATLAB releases.

Compiler Compatibility

CompilerMinimum VersionRecommended
XC16v1.26+v2.10+
XC-DSCv3.20+v3.39+
XC32v2.40+v4.60+

See Compiler Setup for detailed compiler installation instructions.

Operating Systems

  • Windows: Windows 10/11 (64-bit)
  • Linux: Ubuntu 20.04+, other distributions supported

Migration Notes

When updating to a new blockset version:

  1. Backup your models: Make copies before opening with new version
  2. Check compatibility: Review release notes for breaking changes
  3. Refresh cache: Run rehash toolboxcache and RTW.TargetRegistry.getInstance('reset') after installation
  4. Rebuild models: Clean build (Ctrl+Shift+B) recommended after update
  5. Test thoroughly: Verify model functionality after migration

Known Issues & Workarounds

For current known issues and workarounds, see:

Getting Support

Community Support:

Documentation:

See Also