This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EPWM+ECAP example

I use the standart TI example for Piccolo family - DSP2802x_examples\ecap_capture_pwm:

// TI File $Revision: /main/1 $

// Checkin $Date: September 19, 2008   16:34:25 $

// FILE:    Example_2802xECap_Capture_Pwm.c

The goal of this sample is using ECAP for counting SYSCLK edges during the pulses generated by EPWM 3.
The start period is 10.
Since ECAP and EPWM are clocked by the same clocksource there can be delayed reaction of ECAP on event from EPWM module.
The author uses the range shown at the picture.
But I am confused because the datasheet says Tpwm = TPRD+1.
My simulator puts value 0x016 (22 decimal) into the CAP2 register after the raising edge from EPWM output.
May be the range is (TPRD+1)*2+1 ... (TPRD+1)*2-1 ?
Thanks in advance,
Mihail.