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.

MSPM0G3507: Timer Settings - TRM Confirmation

Part Number: MSPM0G3507

Tool/software:

Hi team,

I would like to confirm the contents of the TRM regarding capture mode. 

On the use case of edge time capture on page 2014, there is example on how to use it as following.

https://www.ti.com/lit/pdf/slau846 

Example using up-counting mode for rising edge capture
In up-counting mode starting from zero (CM = 2, CVAE = 2),
TIMx can be configured to generate a zero pulse and start the counter from the configured capture event (CCOND) by setting ZCOND to 1.

Here is my question:

1. Zero pulse in capture mode means that when a specific event (edge capture) occurs, it resets the timer counter to zero. Is my understanding correct ?

2. If yes, in this case why the TIMx.CC do not start from "0" but "5" ?

Sorry for asking such a basic question, but i am struggling to understand this part and explaining it to the customer.

I hope you could help me understand better.

Thank you in advance.

Best regards,

Kenley

  • Hi Kenley,

    No. the zero pulse just mean that the counter has counted for one cycle. Since it is a 16 bit timer in up counting mode. When the counter counts up to 65535(2^16-1). The next count will be zero again. Then it will trigger zero pulse in this case. 

    Best regards,

    Cash Hao

  • Hi Cash,

    Thank you for your support.

    Sorry but let me clarify.

    It is said that "TIMx can be configured to generate a zero pulse and start the counter from the configured capture event (CCOND) by setting ZCOND to 1."

    As i understand from the sentences above, it means the TIMx is set as ZCOND to 1 which means zero pulse will be generated when rising edge of CCP.

    But on the graph below, i can not see the TIMx generate any zero pulse as you mentioned.

    Best regards,

    Kenley

  • Hi,

    Okay. I get your point. The document says you could set ZCOND to 1 and get a zero pulse when there is a rising edge of CCP. But the figure is not that condition. The figure does not configure the ZCOND to 1, It just shows a normal condition in capture mode. 

    Best regards,

    Cash Hao

  • Hi Cash,

    Understand it now.

    Thank you!

    Regards,

    Kenley