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.

TMS570LS3137: PCNT in N2HET

Part Number: TMS570LS3137

Hi Team,

We are using PCNT instruction to count the number of pulses using N2HET module. We tried giving input signal frequency and could see the number of pulse count.
After that, when we give no input signal, it still shows the previous captured value. Is it expected behaviour from N2HET module?

Regards,
M.Sreenivasan.

  • Hello Sreenivasan,

    PCNT is used to measure the period of the pulse, and ECNT normally is used to count the edge or pulse. The period or the number is stored in the data field of PCNT or ECNT, and will not be updated until next event.