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 →

ADC Blocks - Analog-to-Digital Converter Reference

The MCHP Blockset provides comprehensive ADC support for all Microchip microcontroller families. Each family has optimized ADC blocks tailored to the …

Read more →

Analog Signal Conditioning Blocks Documentation

Integrated analog peripherals for signal amplification, buffering, and voltage generation Overview Analog signal conditioning blocks provide access to …

Read more →

C Function Call

Complete reference for all MCHP Blockset peripheral blocks. PWM Blocks Pulse Width Modulation blocks for motor control and power conversion. ADC …

Read more →

CAN Communication Blocks

Overview The CAN (Controller Area Network) block family enables robust, multi-master communication on CAN bus networks. CAN is widely used in …

Read more →

PWM Blocks - Block Reference

Comprehensive PWM (Pulse Width Modulation) blocks for motor control, power conversion, and signal generation across all MCHP Blockset supported …

Read more →

System Blocks

System blocks configure the fundamental behavior of MCHP Blockset models, including target selection, clock configuration, multitasking scheduler, and …

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 →