AM263x MCU+ SDK  09.01.00
CMPSS Digital Filter trip

Introduction

A CMPSS example that enables the CMPSS High comparator and feeds the digital filter output to GPIO/OUTPUTXBAR pin

AM263X-CC

This example enables the CMPSSA1 COMPH comparator and feeds the digital filter CTRIPH signal to the OUTPUTXBAR1 pin.

Block diagram

CMPIN1P is used to give positive input and internal DAC is configured to provide the negative input. Internal DAC is configured to provide a signal at VDD/2. A Digital Filter signal is generated and is configured to be tripped by CTRIPOUTH.

When a low input(VSS) is provided to CMPIN1P,

  • Trip signal(OUTPUTXBAR0) output is low

When a high input(higher than VDD/2) is provided to CMPIN1P,

  • Trip signal(OUTPUTXBAR0) output turns high

External Connections

  • Give input on CMPIN1P (HSEC Pin 15)
  • Outputs can be observed on OUTPUTXBAR1 (HSEC Pin 81)

AM263X-LP

This example enables the CMPSSA1 COMPH comparator and feeds the digital filter CTRIPH signal to the OUTPUTXBAR1 pin.

CMPIN1P is used to give positive input and internal DAC is configured to provide the negative input. Internal DAC is configured to provide a signal at VDD/2. A Digital Filter signal is generated and is configured to be tripped by CTRIPOUTH.

When a low input(VSS) is provided to CMPIN1P,

  • Trip signal(OUTPUTXBAR1) output is low

When a high input(higher than VDD/2) is provided to CMPIN1P,

  • Trip signal(OUTPUTXBAR1) output turns high

External Connections

  • Give input on CMPIN1P (HSEC Pin 15)
  • Outputs can be observed on OUTPUTXBAR1

External Connections

  • Give input on CMPIN1P (HSEC Pin 15)
  • Outputs can be observed on XBAROUT1

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
Toolchain ti-arm-clang
Boards am263x-cc, am263x-lp
Example folder examples/drivers/cmpss/cmpss_digital_filter_trip/

Steps to Run the Example

  • When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
  • When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
  • Establish connections as mentioned in External Connections section
  • Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
  • When a low input is provided, Trip signal output is low
  • When a high input(higher than VDD/2) is provided, Trip signal output turns high

See Also

CMPSS

Sample Output

Shown below is a sample output when the application is run,

Output Waveform