MCC Melody High Speed Analog Comparator With Slope Compensation DAC (CMP DAC Driver)
Overview
The high-speed analog comparator module provides a
method to monitor voltage, current and other critical
signals in a power conversion application that may be
too fast for the CPU and ADC to capture.
The high-speed analog comparator module is
comprised of a high-speed comparator, Pulse Density
Modulation (PDM) DAC and a slope compensation unit.
The slope compensation unit provides a user-defined
slope which can be used to alter the DAC output. This
feature is useful in applications, such as Peak Current
mode control, where slope compensation is required to
maintain the stability of the power supply
Features
- The user can configure the
DAC Mode based on their application needs.
- There are four modes supported : DC-Mode, Slope Mode, Hysteretic Mode and Triangle Wave Mode.
- The Clock and Divider settings can be configured in the
PLIB dependency of the driver module.
DAC Modes
$3
The DC mode is the default mode of operation of the DAC. The other modes use slope generator to vary the DAC data value at a user-defined rate to reach a desired endpoint value.
!
DC-Mode$3
The slope generator function can be utilized in Peak Current mode control-based power supply
applications, where slope compensation is required. The slope function modifies the non-slope
PDM DAC value repeatedly, at a user-defined rate, until the DAC data value reaches its endpoint.
!
Slope-Mode$3
Hysteretic mode control is sometimes called “Bang-Bang” control, where a signal within a power
converter is controlled within an upper cutoff and a lower cutoff limit. The Hysteretic mode is used
in power supply applications utilizing hysteretic control, such as LED drivers.
!Hysteretic-Mode
$3
Triangle Wave mode generates an output voltage that rises and falls with a triangle wave pattern.
!
Triangular-ModePIC24/dsPIC33 CMP Driver, PLIB and Device Package Version Compatibility Matrix
|CMP_DAC Driver | CMP_DAC PLIB| PIC24/dsPIC devices |
|:---| :---|:---|
1.0.1 | >=1.1.0 | >=5.4.0
1.0.0 | 1.1.0 | <=5.4.0
1.0.0 | <=1.0.1 | <=5.3.0
Changelog
All notable changes to this project will be documented in this file.
[1.2.2] - 2026-01-06
$3
-
CC16SCRIP-10092 :- Performance Improvement
[1.2.1] - 2025-11-10
$3
-
CC16SCRIP-10137 :- Support for INNSEL - Negative Input Source Select bits
[1.2.0] - 2025-05-15
$3
-
CC16SCRIP-9066 :- Support for dsPIC33AK512MPSxxx family of devices
[1.1.0] - 2024-07-10
$3
-
CC16SCRIP-9551 :- Updated link for API reference document
-
CC16SCRIP-7975 :- Added inline help for configuring Steady State Time and Transition Mode Time
[1.0.5] - 2023-10-04
$3
-
CC16SCRIP-7618 :- Updated notification for Slope-Mode, when a PWM generator is selected as trigger source
[1.0.4] - 2023-06-30
$3
-
CC16SCRIP-6615 :- Added notifications when SPGA1/2/3 is selected as Non inverting input
[1.0.3] - 2023-01-11
$3
-
CC16SCRIP-5331 :- Some Registers in generated code were not initialized to power-on reset values
[1.0.2] - 2022-05-24
$3
-
CC16SCRIP-2045 :- Dependency module names updated in builder view
[1.0.1] - 2022-01-13
$3
-
CC16SCRIP-3419 :- Dependency Selector label updated with PLIB name
-
CC16SCRIP-3324 :- Added notifications for the signal selections in Slope Mode