MC dsPIC33F MCPWMx GUI
Purpose
High fidelity model of a single Microchip dsPIC33F motor control PWM module with Graphical User Interface configuration.
Library
Processor in the Loop / Peripherals / Microchip dsPIC33F / PWM
Description
This block efficiently models the behavior of a single 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. This is the basic building block that is used in the register based MCPWM implementation which contains 4 modules.
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.PMOD
- Specifies operation of the PWM module 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.DTSA
- Dead Time Select bits for PWM high-side signal going active in this module.
- PDTCON2.DTSI
- Dead Time Select bits for PWM low-side signal going active in this module.
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.