Specifications
© 2008-2012 Microchip Technology Inc. DS70323E-page 43-3
Section 43. High-Speed PWM
High-Speed PWM
43
43.3 CONTROL REGISTERS
This section outlines the specific functions of each register that controls the operation of
High-Speed PWM module.
• PTCON: PWM Time Base Control Register
- Enables or disables the High-Speed PWM module
- Sets the Special Event Trigger for the Analog-to-Digital Converter (ADC) and enables
or disables the Primary Special Event Trigger interrupt
- Enables or disables immediate period updates
- Selects the synchronizing source for the master time base
- Specifies synchronization settings
• PTCON2: PWM Clock Divider Select Register
- Provides the clock prescaler to all PWM time bases
• PTPER: Master Time Base Period Register
- Provides the PWM time period value
• SEVTCMP: PWM Special Event Compare Register
- Provides the compare value that is used to trigger the ADC module and generates the
Primary Special Event Trigger interrupt
• STCON: PWM Secondary Master Time Base Control Register
- Sets the secondary Special Event Trigger for the ADC and enables or disables the
Secondary Special Event Trigger interrupt
- Enables or disables immediate period updates for the secondary master time base
- Selects synchronizing source for the secondary master time base
- Specifies synchronization settings for the secondary master time base
• STCON2: PWM Secondary Clock Divider Select Register
- Provides the clock prescaler to the PWM secondary master time base
• STPER: Secondary Master Time Base Period Register
- Provides the PWM time period value for the secondary master time base
• SSEVTCMP: PWM Secondary Special Event Compare Register
- Provides the compare value for the secondary master time base that is used to trigger
the ADC module and generates the Secondary Special Event Trigger interrupt
• CHOP: PWM Chop Clock Generator Register
- Enables and disables the chop signal used to modulate the PWM outputs
- Specifies the period for the chop signal
• MDC: PWM Master Duty Cycle Register
- Provides the PWM master duty cycle value
• PWMCONx: PWM Control Register
- Enables or disables fault interrupt, current-limit interrupt, primary trigger interrupt
- Provides the Interrupt status for fault interrupt, current-limit interrupt and primary
trigger interrupt
- Selects the type of time base (master time base or independent time base)
- Selects the type of duty cycle (master duty cycle or independent duty cycle)
- Controls Dead Time mode
- Enables or disables Center-aligned mode
- Controls external PWM Reset operation
- Enables or disables immediate updates of the duty cycle, phase offset and
independent time base period
• PDCx: PWM Generator Duty Cycle Register
- Provides the duty cycle value for the PWMxH and PWMxL outputs, if master time base
is selected
- Provides the duty cycle value for the PWMxH output, if independent time base is
selected