AM263Px MCU+ SDK  10.01.00
CMPSS

The CMPSS driver provides API to configure the CMPSS module. Below are the high level features supported by the CMPSS driver.

Features Supported

  • Each instance has 2 analog comparators, 2 programmable reference 12-bit DACs and a ramp generator.
  • Ability to generate trip signals for ePWM and for external signalling.
  • Ramp generator to produce a falling ramp input for the high reference 12-bit DAC when selected.
  • Ability to latch and invert output and also option to use hysteresis on output.
  • Option to choose VDDA or VDAC to be the DAC reference voltage.
  • Ability to synchronize submodules with EPWMSYNCPER.

SysConfig Features

Note
It is strongly recommend to use SysConfig where it is available instead of using direct SW API calls. This will help simplify the SW application and also catch common mistakes early in the development cycle.
  • Selection of CMPSS instance.
  • Configuring reference voltage and value source of DAC in the CMPSS module.
  • Configuring the low and high comparators by selecting negative input source, setting comparator DAC value and other options.

Features NOT Supported

NA

Important Usage Guidelines

NA

Example Usage

Include the below file to access the APIs

#include <drivers/cmpss.h>

API

APIs for CMPSS

cmpss.h