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

๐Ÿ“š 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 โ†’

Your First Model โ€” LED Blink

This step-by-step tutorial walks you through creating your first MPLAB Blockset project โ€” a simple LED blink application that runs on a Microchip โ€ฆ

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 โ†’