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.

AM2632: ECAP minimal frequency to read

Part Number: AM2632

Hello,

currently I have question about minimal frequency of the signal which can be read with SYS_CLK=200MHz. Currently I'm seeing 40hz, as minimal value. If i'm going below, my software not able to read the params of signal. Is it possible to have ability to read signal with 1hz frequency,  via increasing of SYS_CLK ?

  • Hi Alex,

    Did you get CNTOFF interrupt or this over flow flag set? TSCTR is a 32-bit counter, and it increments per sys clock cycle, wraps around to 0x00000000 when it reaches the maximum value 0xFFFFFFFF. The 32-bit counter is bigger enough to measure a 1Hz PWM signal for sysclk=200MHz. Do you use TI SDK?

  • not sure about CNTOFF, yes I'm using TI SDK. I was able to read 1hz frequenсy on the launchpad, but with this micro no. What can be wrong? Code is the same

  • I am sorry for the typo. It should be CTROVF (counter overflow). 

    Do you enable the event prescaler? The input signal to ECAP can be prescaled by 2~62. This feature is very useful when the input has very high frequency. If this feature is enabled and prescaler is big, you might not be able to measure the 1Hz signal. 

    The prescaler is defined in ECCTL1[13:9]