Welcome to the MPLAB Blockset (MPLAB Device Blocks for Simulink)! This section provides everything you need to get started with model-based design for Microchip microcontrollers.

Quick Navigation

🚀 New Users Start Here

  • Installation - software and hardware requirements, setup, board templates, matlab commands.
  • Quick Start Guide - Your first model in 10 minutes
  • Overview - Understand the blockset architecture and workflow

📚 Learning Resources

🔧 Advanced Features

What is MPLAB Blockset?

The MPLAB Blockset provides Simulink blocks for Microchip 16-bit and 32-bit microcontrollers, enabling:

  • Rapid Prototyping: Build and test embedded applications visually
  • Automatic Code Generation: Generate optimized C code from Simulink models
  • Hardware Integration: Direct access to peripherals (PWM, ADC, UART, CAN, etc.)
  • Real-Time Debugging: Test algorithms on actual hardware with External Mode
  • Production Ready: Generate deployment-ready code with optimizations

Supported Device Families

  • dsPIC33: 30F, 33F, 33E, 33C (CH/CK/CDV), 33A (32-bit DSC with FPU)
  • PIC32: MK, MZ, MX, PIC32A series
  • SAM: ARM Cortex-M based (SAME5x, SAME7x, SAMC2x, SAMD2x)

Typical Workflow

  1. Install blockset and compilers
  2. Select target chip using MCHP_Master block
  3. Add peripheral blocks (PWM, ADC, UART, etc.)
  4. Configure pin assignments and parameters
  5. Simulate model behavior in Simulink
  6. Generate C code and compile
  7. Program microcontroller and test
  8. Debug with External Mode or PIL

Need Help?


Ready to start?Installation Guide

MPLAB Blockset Installation

Software Requirements Supported Operating Systems: Windows and Linux Component Requirements 1. MATLAB/Simulink MathWorks Required: • MATLAB R2018b to …

Read more →

Quick Start Guide

This guide will walk you through creating your first MCHP Blockset project in 10 minutes. Step 1: Open Simulink Library Browser Launch MATLAB Type …

Read more →

MCHP Blockset Overview

Overview The MCHP Blockset enables Model-Based Design for Microchip microcontrollers, providing a comprehensive library of peripheral blocks for …

Read more →

Board Templates

Overview Board templates provide pre-configured Simulink models optimized for popular Microchip development boards. These templates include: …

Read more →

Motor Control Examples

⚠️ Third-Party Educational Content The motor control examples and algorithms presented in this guide are provided by the ctrl-elec project, an …

Read more →

Scheduler & Multitasking

The MPLAB Device Blocks for Simulink includes a sophisticated scheduler that enables efficient execution of multi-rate Simulink models on …

Read more →

External Mode & PIL Testing

The MPLAB Device Blocks for Simulink provides two powerful tools for testing and validating embedded algorithms: External Mode: Real-time parameter …

Read more →

Data Visualization with PIC GUI

Overview PIC GUI is a lightweight, user-friendly data visualization tool that enables real-time monitoring of variables from your embedded …

Read more →

Supported Devices

The MCHP Blockset supports a wide range of Microchip microcontrollers and digital signal controllers across multiple families. dsPIC33A Family (32-bit …

Read more →