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: TOWR timer register

Part Number: AM623

Tool/software:

About the TOWR register, responsible for skipping overflow events (in the context of interruptions) from timers - in this case, I'm focusing on the MCU (M4F) ones:

When I write 0 to the register while I've already written another value previously, the next interruption never falls into the callback. The expectation was that only one would happen and fall into the callback, since I would be deactivating the register, not turning off my interruption. Any ideas on how to solve my problem? Is this problem only happening to me or is it a choice of the register architecture?

Pag. 13402 (AM623 - Reference_Manual)

For context, I'm using MCU_TIMER3 and, with each call to the interrupt overflow callback, I turn off the timer, disable the irq flag, change some registers, change the value of TOWR and, finally, turn the timer back on.