Other Parts Discussed in Thread: C2000WARE,
Hello TI-Team,
I want to configure cmpss using the c2000Ware to trigger a counter if the value in cmpss input is higher than the defined value in order to count events over time. In case I have more than x events in time y, I need to react. I use cmpss1 on pin 18.
I started with the example code:
CMPSS_configDAC(CMPSS1_BASE, CMPSS_DACREF_VDDA | CMPSS_DACVAL_SYSCLK |
CMPSS_DACSRC_SHDW);
CMPSS_setDACValueHigh(CMPSS1_BASE, 2048);
//
// Configure the output signals. Both CTRIPH and CTRIPOUTH will be fed by
// the asynchronous comparator output.
//
CMPSS_configOutputsHigh(CMPSS1_BASE, CMPSS_TRIP_ASYNC_COMP |
CMPSS_TRIPOUT_ASYNC_COMP);
Is there any example for this particular case.
So how do I configure the xbar to connect cmpss1 and xint5? I would like to avoid to count the events manually since they are quite high frequent in case they occur, is there an event count register which I can read out or which way is the best to count my events?
Thanks in advance.
