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.

TMS320F280049C: eCAP clock frequency input change or change to16BIT operation

Part Number: TMS320F280049C

Dear all,

am working on TMS320F280049C controller,

how do I configure clock frequency for eCAP?

my system frequency is 100MHZ. I don't want to change the system frequency.

or I want to change the counter bit. currently, it's operating at 32bit mode. I have configured to operated ecap1 as a capture mode.  I need the capture mode and also overflow. both interrupt I have configured. it's working. but its overflowing every 42Sec. for my application it should overflow every 2sec. my capture input signal is around 20ms in length max. 

Please help me on this.

Thanks and Regards,

Rajakumar Ramu

  • Hi Rajakumar,

    You can't change the counter size. However, you might be able to utilize the sync to shorten the counter. Essentially the way it works is, whenever the ECAP receives a sync signal and if enabled, it loads the value from the phase register into the counter. You can program this phase register to be whatever value you need. The counter will start counting from the phase value which will shorten how long it takes to overflow. You will need to setup a periodic sync to keep this going. Let us know if this is not clear.