A CMPSS example that enables the CMPSS High comparator and feeds the asynchronous output to GPIO and EPWM
This example enables the CMPSSA0 COMPH comparator and feeds the asynchronous CTRIPOUTH signal to the XBAROUT0 pin and CTRIPH to EPWM0B.
CMPSS is configured to generate trip signals to trip the EPWM signals. 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. An EPWM signal is generated at EPWM0B 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,
This example enables the CMPSSA0 COMPH comparator and feeds the asynchronous CTRIPOUTH signal to the XBAROUT10 pin and CTRIPH to EPWM0B.
CMPSS is configured to generate trip signals to trip the EPWM signals. 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. An EPWM signal is generated at EPWM0B 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,
When using AM263x-CC with TMDSHSECDOCK (HSEC180 controlCARD Baseboard Docking Station)
Parameter | Value |
---|---|
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Boards | am263x-cc, am263x-lp |
Example folder | examples/drivers/cmpss/cmpss_asynchronous_trip/ |
Shown below is a sample output when the application is run,