Hello everyone. I have a problem with the timer ... when using this sequence of update does not work sometimes. This if it worked in HC08Q. What you will see is the end of the IRQ routine and the subroutine uses.
The timer needs to change the parameters very often, but before you do delete the old data and reset the counter., but everything works well and sometimes.
I can do? Thank you all.
I found the fault. The answer is in the book MC9S08SH8 MCU Series Data Sheet, Rev. 3, pag 262: 16.7.4 The Differences from TPM v2 to TPM v3 - Write to TPMxCnVH:L registers.
Why does it work well?
Thanks to all