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: Continuation of pcnt overflow

Part Number: TMS570LS3137

Hi team,

This is regarding the support required in case mentioned below:

Please help in resolving this issue sooner.

Regards,

M.Sreenivasan.

  • Hello M.Sreenivasan,
    Due to the US holiday the responses may be delayed until the week of November 26th.

    Best regards,
    Miro
  • Hello M.Sreenivasan.

    PCNT captures the counter value [C24:C0] into the period/pulse count field [D31:D7] on the selected edge. The counter is incremented each N2HET loop even if the input signal is flat (no edges). After 2^24 NHET loop resolution clock cycle, the counter reaches overflow, and PCNT stops counting until the next reset edge (rising edge or falling edge based on the counter type) is detected.

    On your pin which has valid input, if the counter type for pin1 is rise2fall, when rising edge is detected, the counter value is cleared to zero, when the falling edge is detected, the counter value is captured and saved in data field [D31:D7].

    I still suggest to use ECNT rather than using PCNT to measure the pulse count.

    Thanks and Regards,
    QJ Wang