PLECS 3.7 Online Help

MC dsPIC33F MCPWM REG

Purpose

High fidelity model of the Microchip dsPIC33F motor control PWM module with register based 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 block is configured using register values which closely emulates the hardware implementation. The registers can be entered in decimal (15), binary (0b1111) or hexadecimal (0xF) representation.

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

Fcy [Hz]
Counter clock frequency defined in Hz.
PTCON
PWM time base control register.
PWMCONx
PWM control register x.
PDTCONx
Dead time control register x.
FPOR:POR
Device output pin configuration register.

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.