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.

AM623: M4F timer TOWR, one pulse, cascade

Part Number: AM623
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

We have a register in the MCU domain timers, called TOWR, responsible for masking overflow ticks. If you set it to 10, only the 10th timer overflow will count as effective, from what I understand, so, in short, the timer can overflow as many times as I think necessary and only count as a legitimate overflow when I want. My question is: if my timer is configured for the "one pulse mode" parameter, would the timer reset the number of interruptions required by TOWR at each stop and new trigger or would it continue counting, regardless of whether its state in the TCLR is reset?

I have already tested TOWR and it works perfectly, however, I do not have my setup to test this hypothesis about onepulse. I want to connect a pulse generator, which will have a physical output, pwm mode, as a cascade to another timer, which will be triggered at each pulse, counting from 0xFFFFFFFD to 0xFFFFFFFF and stopping, thus requiring one pulse. It will mask all events until a specific number of trigger pulses is reached, basically, working as a pulse counter, but without needing to interrupt due to match or overflow. It will only trigger my irq function when it reaches the number of pulses that I determine.

  • Hi Rafael,

    Please expect responses in few business days.

    Thanks for your patience.

    Regards,

    Vaibhav

  • Hello Rafael,

    So, TOWR register is interesting, and the functionality is correct as what you have mentioned.

    My question is: if my timer is configured for the "one pulse mode" parameter, would the timer reset the number of interruptions required by TOWR at each stop and new trigger or would it continue counting, regardless of whether its state in the TCLR is reset?

    So, let me write down your question again.

    You want to know that if you set your time in "one shot enable mode" as described in SysConfig, will that change the values in TOWR register or not? And since one stop mode I suppose is basically one time interrupt generation, so will the value in TOWR register be changes after one interrupt generation?

    Is the above question the same as what you wanted to ask?

    Regards,

    Vaibhav