Hello Sara Stout-Grandy,
As you know, the TPM counter has two modes of operations:
• up counting : SC[CPWMS] = 0.
• up-down counting :SC[CPWMS] = 1.
So, if you want to force the TPM1 counter reload the data. What data you want to reload?
The TPMx_CNT register, Writing any value to COUNT also clears the counter.
If you just want to reload the TPM1 COUNT to 0 when the TPM0 overflow, you can write the TPM1 COUNT directly in the TPM0 overflow interrupt.
If you want to modify the MOD register, please refer to the reference manual to operate it:
31.5.8.1 MOD Register Update
If (CMOD[1:0] = 0:0) then MOD register is updated when MOD register is written.
If (CMOD[1:0] ≠ 0:0), then MOD register is updated according to the CPWMS bit, that
is:
• If the selected mode is not CPWM then MOD register is updated after MOD register
was written and the TPM counter changes from MOD to zero.
• If the selected mode is CPWM then MOD register is updated after MOD register was
written and the TPM counter changes from MOD to (MOD – 1).
Wish it helps you!
If you still have question, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------