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.

TMS320F28379D: TCR register _bit FREE and SOFT

Part Number: TMS320F28379D

Hello.

1-Please explain more bit FREE and SOFT in TCR register (cpu timer register). And example for application of this bits.

2- In datasheet said that if FREE = 2h = free run. My questions is one bit how to equal 10 (in binary mode)?????

Thank you.

  • Hi,

    Actually the register description describes the value of both SOFT and FREE bit together. I think this can be made more explicit in the description.

    When FREE = 1, value of SOFT bit is don't care. Hence for value 2 or 3 for FREE:SOFT, timer continues to run even if CPU is halted due to a software breakpoint.

    In case when FREE = 0, value of SOFT bit controls the emulation behaviour. Hence for value 0 or 1 for FREE: SOFT bits,  hard or soft stop of timer occurs in case of a software breakpoint.

    Let me know if this resolves your query.

    Thanks

    Vasudha

  • Hi,

    The FREE and SOFT bits are a debug feature. As you might know, the CPU timer register(TIM) will keep running when enabled. The FREE and SOFT bits can control what happens to the timer(TIM) upon a debugger halt.

    Basically, what you need to understand is that if the FREE bit is 1, then the no matter what is the SOFT bit, the timer will be free running. When the FREE bit is 0, the control comes over to STOP bit whether to stop after the next decrement(SOFT value ‘0’) or whether to stop after the TIM reaches 0(SOFT value ‘1’). The TRM combined these bits while giving out the description.

    I understand the confusion in the TRM. I’ll flag it with our team and will have it fixed.

    Thanks & Regards

    Pramod

  • Thank you very much.