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.
To check your installed version, run in MATLAB:
To verify installation and detect compilers/programmers:
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)
- Open MATLAB Add-On Explorer
- Search for “MPLAB”
- 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
MATLAB/Simulink Versions
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
| Compiler | Minimum Version | Recommended |
|---|
| XC16 | v1.26+ | v2.10+ |
| XC-DSC | v3.20+ | v3.39+ |
| XC32 | v2.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:
- Backup your models: Make copies before opening with new version
- Check compatibility: Review release notes for breaking changes
- Refresh cache: Run
rehash toolboxcache and RTW.TargetRegistry.getInstance('reset') after installation - Rebuild models: Clean build (
Ctrl+Shift+B) recommended after update - Test thoroughly: Verify model functionality after migration
Known Issues & Workarounds
For current known issues and workarounds, see:
Getting Support
Community Support:
Documentation:
See Also