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.

CCS/TMS320F28335: Have questions about eCap

Part Number: TMS320F28335


Tool/software: Code Composer Studio

Hello,

I am doing some experiments on the eCap module, but found some bugs

First, two sets of ePWM(ePWM2A, ePWM2B) with a frequency of 150kHz and a phase difference of 180 degrees have been set

After that, set two sets of eCap (eCap1, eCap2 on GPIO24, 25) to detect their pulse signals on the rising edge (ePWM)

The number of counts between CAP1 and CAP2 of eCap1 is 1000 (150MHz/150kHz), and so on

But ECap2Regs.CAP1 - ECap1Regs.CAP1 result is equal to 384 (which is the same as CAP2, 3 and 4)

Theoretically, because the counter frequency of eCap is 150MHz, and 150M/150k=1000

The calculation results (ECap2Regs.CAP1-ECap1Regs.CAP1) with a phase difference of 180 degrees should be 500, right?

Can anyone solve this problem or encounter the same problem but solve it later?

Best regard

Ray