A CMPSS example that enables the CMPSS High comparator and feeds the digital filter output to GPIO/OUTPUTXBAR pin
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,
When a high input(higher than VDD/2) is provided to CMPIN1P,
External Connections
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,
When a high input(higher than VDD/2) is provided to CMPIN1P,
External Connections
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/ |
Shown below is a sample output when the application is run,