I copied this code from a TIMER-CAPTURE example: unsigned long ctrTicks = DL_Timer_getCaptureCompareValue(TIMER_CAP_INST, DL_TIMER_CC_0_INDEX); where it worked when called from inside of the interrupt for that timer. When trying to apply it to a general purpose timer where I am trying to read the ticks accumulated between events I am always getting a zero. I need an example showing how to read read accumulated ticks between interrupts. I want to be able to use that to compute a more accurate time by Adding the acumulatedTicks * 0.25 to the counter I am already keeping for the 2us events.
The code above OK for TIMER-CAPTURE but is not working for a general TIMER. The general timer is currently configured against BUSCLK with divider of 1 and prescaler of 8 which yields a 250ns basic tick. I have the timer down counting generating an interrupt every 2 us which is working OK. I get a separate interrupt for a GPIO pin change and want to take the accumulated counter from the counter and add it to the counter we are currently tracking at resolution of 2 us. eg: double adjTimeCtr = usCntr + (ctrTicks * 0.25)
I don't want to use a capture timer for this because I am running short of resources when porting to a MSP0L1306.
I think I must be using the wrong value for DL_TIMER_CC_0_INDEX but don't know what the correct value is.
Can somebody provide a link to detailed explanations of all the functions like DL_Timer_getCaptureCompareValue along with all the constants and their purpose for each parameter.

