When I was developing the eCAP--function of TMS320F28069, I encountered a problem; I couldn't find an explanation in the relevant documents, which caused the problem to persist;
As shown in the attached file, ECAPx pin(from GPIO)---input pulse---after prescaler (for example, the value of prescaler(counter) is 10)---PSout is increased by 1 every 10 pulses;
That is to say: ECAPx pin(from GPIO)---number of input pulses every 10---the register value of ECAPx increases by 1;
Here comes the question:
If the last time, ECAPx pin(from GPIO)---the number of input pulses is 16---the register value of ECAPx increases by 1;
When the count is restarted next time, ECAPx pin(from GPIO)---the number of input pulses is 4---the register value of ECAPx increases by 1;
It is generally correct;
However, when I start a new pulse capture (ECAP), I can clear the ----prescaler(counter) residual pulse counter value of the previous pulse capture (ECAP) to zero;
But I didn't find --- how can --