PLECS 3.7 Online Help

MC dsPIC33F MCPWM GUI

Purpose

High fidelity model of the Microchip dsPIC33F motor control PWM module with Graphical User Interface configuration.

Library

Processor in the Loop / Peripherals / Microchip dsPIC33F / PWM

Description

pict

This block efficiently models the behavior of a Microchip dsPIC33F motor control PWM module with full timing resolution for a variable PWM period. The module is configured using a graphical user interface. With the Graphical User Interface, the block can simply be configured using combo boxes in the component mask. Under the hood, the resulting register configuration is forwarded to the register based implementation of the Microchip motor control module. The resulting register configuration further is accessible via the probe signals.

For a detailed description of the supported features and the usage of the block please refer to the detailed documentation Microchip Motor Control PWM.

Parameters

PWM General

Fcy [Hz]
Counter clock frequency defined in Hz.
PTCON.PTMOD
PWM counter mode.
PTCON.PTCKPS
A prescaler for the counter time base calculation.
PTCON.PTOPS
A prescaler for the counter time base calculation.
PWMCON1.PMODx
Specifies operation of PWMx I/O pair in independent or complementary mode.
PWMCON2.SEVOPS
A postscaler for the PWM special event trigger output.
FPOR:POR.HPOL
PWM high-side polarity bit.
FPOR:POR.LPOL
PWM low-side polarity bit.

Dead Time Module

PDTCON1.DTA
Unsigned 6-bit dead time value bits for Dead Time Unit A.
PDTCON1.DTAPS
A prescaler for the PWM Dead Time Unit A.
PDTCON1.DTB
Unsigned 6-bit dead time value bits for Dead Time Unit B.
PDTCON1.DTBPS
A prescaler for the PWM Dead Time Unit B.
PDTCON2.DTSxA
Dead Time Select bits for PWM high-side signal going active for module x.
PDTCON2.DTSxI
Dead Time Select bits for PWM low-side signal going active for module x.

Probe Signals

PTPER
PWM time base period register.
PTCON
PWM time base control register.
PWMCONx
PWM control register x.
PDTCONx
Dead time control register x.
FPOR:POR
Device output pin configuration register.
PWMIF
PWM interrupt flags.
SEVT
PWM Special Event Trigger.
PWMHx
High-side output for PWMx.
PWMLx
Low-side output for PWMx.
PDCx
PWM duty cycle register x.
PSECMP
Special event compare register.