Complete reference documentation for all MPLAB Blockset peripheral and system blocks.

Block Categories

โšก PWM

High-performance pulse-width modulation for motor control and signal generation.

  • PWM Blocks - Comprehensive PWM configuration for all device families

Popular Blocks:

  • PWM HS FEP - dsPIC33A high-resolution PWM with fine edge positioning
  • PWM High-Speed - dsPIC33C/CH/CK advanced PWM
  • MCPWM - Motor Control PWM for PIC32MK

โฑ๏ธ Timers

Timer configuration and resource management for periodic tasks and profiling.

Key Features:

  • Named timer resources for sharing across peripherals
  • Automatic prescaler calculation
  • Performance profiling for PIL testing

๐Ÿ“ Input Capture / Output Compare

Event timing and waveform generation with hardware accuracy.

Key Features:

  • Zero-latency event capture
  • Autonomous output generation
  • Frequency and pulse width measurement

๐Ÿ“Š ADC

High-speed analog-to-digital conversion for precision measurement.

  • ADC Blocks - High-speed SAR ADC, multi-channel sampling, trigger configuration

Key Features:

  • Simultaneous multi-channel sampling
  • PWM synchronization for motor control
  • DMA-based high-throughput acquisition

๐Ÿ“‰ Analog I/O

Analog signal processing and voltage generation.

Key Features:

  • High-speed comparators for fault protection
  • Programmable gain amplifiers for sensor interfacing
  • DAC for waveform generation

๐Ÿ“ก Communication

Serial communication interfaces for data exchange and networking.

๐Ÿ”ข Digital I/O

GPIO configuration and control for inputs and outputs.

๐Ÿ”„ Encoders & Counters

Position and speed measurement for motor control applications.

  • QEI - Quadrature Encoder Interface for dsPIC
  • PDEC - Position Decoder for SAM devices
  • QDEC - Quadrature Decoder for SAM
  • Change Notification - GPIO interrupt-on-change

โš™๏ธ System Configuration

Core configuration blocks required in every model.

๐Ÿ› ๏ธ Utility Blocks

Helper blocks for development, debugging, and visualization.

Quick Reference by Use Case

Motor Control Application

Essential blocks:

  1. MCHP_Master - Select dsPIC33 device
  2. PWM HS FEP / PWM High-Speed - Generate motor drive signals
  3. ADC - Sample phase currents and bus voltage
  4. QEI - Read encoder position and speed
  5. UART - Debug output or parameter tuning

Power Supply Control

Essential blocks:

  1. MCHP_Master - Select target device
  2. PWM - Control converter switching
  3. ADC - Measure output voltage/current
  4. Digital Input - Detect fault conditions
  5. UART / CAN - Communication interface

Sensor Data Acquisition

Essential blocks:

  1. MCHP_Master - Configure target and clock
  2. ADC / I2C / SPI - Read sensor data
  3. UART Tx-MATLAB - Stream data to picgui
  4. Digital Output - Status LEDs
  5. Timer - Periodic sampling

Block Naming Convention

All blocks use MCHP_ prefix during development:

  • MCHP_PWM_HS_FEP - PWM High-Speed with Fine Edge Positioning
  • MCHP_ADC - Analog-to-Digital Converter
  • MCHP_UART_Config - UART Configuration

Note: The product name is “MPLAB Blockset” but block names retain the MCHP_ prefix for compatibility.

Device Family Support

Each block documentation specifies supported device families:

  • Architecture ID 1: dsPIC30F
  • Architecture ID 2: dsPIC33F, PIC24F
  • Architecture ID 3: dsPIC33E
  • Architecture ID 4: dsPIC33C (CH/CK/CDV)
  • Architecture ID 5: SAM E7x/S7x (ARM Cortex-M7)
  • Architecture ID 6: SAM E5x/D5x (ARM Cortex-M4)
  • Architecture ID 7: SAM C2x/D2x (ARM Cortex-M0+)
  • Architecture ID 8: dsPIC33A (32-bit DSC with FPU)

Documentation Structure

Each block page typically includes:

  • Block Description - Purpose and functionality
  • Supported Device Families - Compatible chips and architectures
  • Block Inputs/Outputs - Port configuration
  • Configuration Parameters - GUI options and settings
  • Usage Examples - Step-by-step tutorials
  • Implementation Details - Register configuration, code generation
  • Troubleshooting - Common issues and solutions
  • See Also - Related blocks and resources

Need help finding a specific block? Use your browser’s search (Ctrl+F) or browse the categories above.

PWM

Pulse Width Modulation blocks for motor control, power conversion, and signal generation with high-resolution timing, fault protection, and advanced synchronization features.

Read more โ†’

C Function Call

Interface to custom C functions from Simulink models, enabling integration of legacy code, vendor libraries, and optimized routines with automatic โ€ฆ

Read more โ†’

ADC

Overview ADC (Analog-to-Digital Converter) blocks provide high-performance data acquisition for motor control, power conversion, and sensor โ€ฆ

Read more โ†’

Communication

Overview Communication blocks provide serial interfaces for data exchange, sensor connectivity, and network integration. The MPLAB Blockset offers โ€ฆ

Read more โ†’

Timers

Overview Timer blocks provide precise timing and resource management capabilities essential for embedded applications. The MPLAB Blockset offers timer โ€ฆ

Read more โ†’

Input Capture / Output Compare

Overview Input Capture and Output Compare blocks provide hardware-based event timing and waveform generation capabilities for precise measurement and โ€ฆ

Read more โ†’

Digital I/O

Overview Digital I/O blocks provide direct control of microcontroller GPIO (General Purpose Input/Output) pins for interfacing with LEDs, buttons, โ€ฆ

Read more โ†’

Encoders

Overview Encoder blocks provide hardware-based position and velocity measurement using quadrature encoders, essential for motor control and motion โ€ฆ

Read more โ†’

Analog I/O

Overview Analog I/O blocks provide precise voltage generation, signal conditioning, and threshold detection capabilities for motor control, power โ€ฆ

Read more โ†’

System Configuration

Overview System Configuration blocks provide essential initialization, clock configuration, scheduler control, and performance monitoring for embedded โ€ฆ

Read more โ†’

Utility

Overview Utility blocks provide essential support functions for development, debugging, and system information access. The MPLAB Blockset includes โ€ฆ

Read more โ†’