Board templates provide pre-configured Simulink models optimized for popular Microchip development boards. These templates include:
| Benefit | Description |
|---|---|
| Fast Prototyping | Start coding control algorithms in minutes instead of hours spent on peripheral configuration |
| Validated Hardware | All pin assignments and peripheral settings verified on actual hardware - reduces debugging time |
| Best Practices | Templates follow Microchip recommended configurations for optimal performance |
| Learning Tool | Study working examples to understand peripheral configuration patterns |
| Easy Portability | Switch between boards by simply loading a different template - same algorithm, different hardware |
| Development Board | PIM or DIM - DSC MODULES | Development Board | PIM or DIM - DSC MODULES |
|---|---|---|---|
![]() | โข Integrated dsPIC33AK512MPS506 DSC โข Power supply and digital power management โข On-board debugger with USB-UART bridge | ![]() | โข Integrated dsPIC33CK64MC105 DSC โข Motor control and DSP โข On-board debugger with USB-UART bridge |
![]() | โข Integrated dsPIC33CK256MC005 DSC โข Compact motor-control / general-purpose โข On-board PKOB nano (programmer + USB-CDC serial) | ![]() | โข Integrated dsPIC33CK256MP508 DSC โข RGB LED demo, buttons, potentiometer โข On-board PKOB nano (programmer + USB-CDC serial) |
![]() | โข dsPIC33AK128MC106 General Purpose DIM EV02G02A (External Mode ready) | ![]() | โข Integrated dsPIC33CK256MP508 DSC |
![]() | โข dsPIC33CK256MP508 PIM MA330041-2
(Int) / MA330041-1
(Ext) โข dsPIC33CK64MC105 PIM MA330051-2 (Int) / MA330051-1 (Ext) โข dsPIC33EP256MC506 PIM MA330031 (Ext OpAmp) | ![]() | โข EV14E50A
- dsPIC33CDV64MC106 โข EV04R09A - dsPIC33CDVL64MC106 |
![]() | โข dsPIC33AK128MC106 DIM EV68M17A
(Int/Ext OpAmp) โข dsPIC33AK256MPS306 DIM EV22K90A (Int/Ext OpAmp) โข dsPIC33AK512MC510 DIM (Pegasus, Int/Ext OpAmp) โข dsPIC33CK256MP508 DIM EV62P66A (Int/Ext OpAmp) โข dsPIC33CK64MC105 DIM EV03J37A (Int/Ext OpAmp) | ![]() | โข dsPIC33AK128MC106 DIM EV68M17A
(Perseus, Int/Ext OpAmp) โข Active PFC front-end, 325 V DC bus, 1.5 kW |
![]() | โข dsPIC33CK64MP105 reference design (throttle pot, buttons, encoder) |
Each template below documents its target device(s), key hardware features and shipped template model name.
Target Applications: Low-voltage motor control, BLDC/PMSM development
Key Features:
Template Models: FOC control, six-step commutation, sensor interfaces
Target Applications: Entry-level motor control prototyping
Key Features:
Template Models: Basic PWM control, ADC sampling, UART communication
Target Applications: Higher power motor control, industrial applications
Key Features:
Template Models: Advanced FOC, floating-point control, high-resolution PWM
The MCLV-48V-300W baseboard accepts motor-control plug-in modules (MC DIM) from several dsPIC families. Five DIMs are supported today; each ships as a dedicated template with its own PWM/ADC/QEI pin map and Internal vs External Op-Amp variant preset:
| DIM codename | MCU | Variant (default) | DIM Info Sheet |
|---|---|---|---|
| Perseus | dsPIC33AK128MC106 | External Op-Amp | DS70005527E |
| BlueRidge | dsPIC33AK256MPS306 | Internal Op-Amp | DS70005612B |
| Pegasus | dsPIC33AK512MC510 | External Op-Amp | DS70005553C |
| Sagitta | dsPIC33CK256MP508 | Internal Op-Amp | DS50003063B |
| Andromeda | dsPIC33CK64MC105 | External Op-Amp | โ |
Templates: MCHP_MCLV48V300W_dsPIC33AK128MC106_DIM.sltx,
MCHP_MCLV48V300W_dsPIC33AK256MPS306_DIM.sltx,
MCHP_MCLV48V300W_dsPIC33AK512MC510_DIM.sltx,
MCHP_MCLV48V300W_dsPIC33CK256MP508_DIM.sltx,
MCHP_MCLV48V300W_dsPIC33CK64MC105_DIM.sltx.
All five document both Op-Amp hardware paths (Internal via DIM on-chip
amplifier, External via MCP6024 on the baseboard) with inline shunt and
gain formulas and links to the relevant Datasheets. The Op-Amp variant
is switched by the boardVariants mask parameter on the BOARD
subsystem; switching rewires the current-sense signal M1_I* (internal)
โ M1_I*_EXT (external) โ see DS50002927A
Table 3-2 for the jumper / resistor changes needed on the baseboard.
Target Applications: High-voltage motor control, appliance drives, HVAC compressors, industrial 1-phase โ 3-phase inverters, active Power-Factor Correction (PFC) front-end.
Key Features:
Template Model: MCHP_MCHV230VAC1p5kW_dsPIC33AK128MC106_DIM.sltx.
Includes the full PINOUT for both motor loop and PFC loop, dual Op-Amp
variants (DIM on-chip vs baseboard MCP6024), HV safety notice, and
clickable links to the Perseus DIM Info Sheet and the MCHV inverter
schematic (03-00505-R1.0).
Target Applications: Dual-core motor control applications
Key Features:
Template Models: Dual-motor control, master-slave coordination
Target Applications: Power supply control, DC-DC converters, digital power management
Key Features:
Template Model: MCHC_CuriosityNano_EV17P63A_dsPIC33AK512MPS506.sltx
โ Digital power supply control, DC-DC converter PWM, multi-phase power management.
Target Applications: Compact motor-control development, sensor prototyping, rapid algorithm bring-up on the classic 16-bit dsPIC33C family.
Key Features:
Template Model: MCHC_CuriosityNano_EV88G73A_dsPIC33CK64MC105.sltx
โ Flat model (no BOARD subsystem) with Counter-Free-Running example + LED
blink; ready to extend with your algorithm. Use Ctrl+D to refresh
remappable pin popups after wiring up peripherals.
Target Applications: Compact motor-control and general-purpose prototyping on the larger-memory dsPIC33CK256MC005, rapid algorithm bring-up on the classic 16-bit dsPIC33C family.
Key Features:
Template Model: MCHC_CuriosityNano_EV08P02A_dsPIC33CK256MC005.sltx
โ Flat model (no BOARD subsystem) with a Counter-Free-Running example +
LED blink; ready to extend with your algorithm. Use Ctrl+D to refresh
remappable pin popups after wiring up peripherals.
Target Applications: General-purpose dsPIC33CK bring-up, GPIO / PWM / ADC prototyping, and a ready-to-run LED light-show demo for first-time users.
Key Features:
Template Model: MCHP_dsPIC33CK_Curiosity_DevBoard_dsPIC33CK256MP508.sltx
โ A ready-to-run RGB / LED light-show demo (not a bare-peripheral
template): RGB soft-PWM (3-bit, 8 levels, ~125 Hz), heartbeat debug LEDs,
buttons that modify the pattern, potentiometer (AN16) driving the rate, and a
USB-UART (CDC) channel ready for External Mode monitoring. A BOARD
subsystem shows the board photo. Open it, build, and watch the LEDs โ then
extend with your own algorithm.
mchp to open the block library
A typical board template includes the following components:

Templates include commonly-used peripherals pre-configured for the board hardware:
| Peripheral | Typical Configuration | Purpose |
|---|---|---|
| PWM | Center-aligned, complementary outputs with dead-time | Motor drive, power conversion |
| ADC | Synchronized with PWM, parallel sampling, multiple channels | Current/voltage sensing |
| QEI | Quadrature decoding with index, configurable resolution | Motor position/speed measurement |
| UART | 460800 baud (typical on Microchip boards; higher with FTDI) | Data logging, parameter tuning (picgui) |
| Digital I/O | Buttons (input), LEDs (output), fault signals | User interface, status indication |
| Op-Amps | Configured for current sensing with appropriate gain | Analog signal conditioning |
Templates include a working control algorithm demonstrating:
One of the key advantages of templates is easy portability. To migrate an algorithm from one board to another:
Example: Moving a FOC algorithm from MCLV-2 (dsPIC33CK) to MCLV-300W48V (dsPIC33A) requires only:
Updating current sensor scaling (different op-amp gains)
Adjusting PWM frequency (different board power stage limits)
Optionally switching from fixed-point to floating-point (utilizing dsPIC33A's FPU)
The core control algorithm remains unchanged!
| Task | Steps |
|---|---|
| Change PWM Frequency | Double-click PWM block |
| Add ADC Channel | Double-click ADC block |
| Change Clock Speed | Double-click Master block |
Best Practices:
rehash toolboxcache if blockset not foundOnce you’ve configured a model for a custom board, you can save it as a template for reuse:
Custom Board Note: When creating templates for custom hardware, thoroughly document:
Pin assignments and their mapping to board connectors
Clock configuration rationale and limitations
Scaling factors for analog inputs (sensor gains, voltage dividers)
Known hardware limitations or errata workarounds
Using the MCLV-2 template, you can implement a cascaded PI controller for DC motor speed control in under 30 minutes:
Load Template: Open “MCLV2_dsPIC33CK_MotorControl_Template”
Pre-configured Peripherals:
PWM: 20kHz, center-aligned, 1ยตs dead-time
ADC: Synchronized to PWM, measuring motor current (AN0) and potentiometer (AN13)
QEI: 1000-line encoder, speed measurement at 2ms rate
UART: 460800 baud for picgui data logging
Add Control Algorithm:
Inner current loop: PI controller at 50ยตs (20kHz)
Outer speed loop: PI controller at 1ms (1kHz)
Speed reference from potentiometer
Build & Deploy: Press Ctrl+B to generate code and program board
Tune & Visualize: Use picgui to monitor speed/current in real-time and adjust PI gains
Result: Working motor control system in 30 minutes instead of several hours of manual configuration!
MCHP Blockset Overview | Quick Start Guide | Motor Control Examples | External Mode | PIL Testing | User Guide