HC9S08SH. Timer not working properly

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HC9S08SH. Timer not working properly

308 Views
Leojunin
Contributor III

Hello everyone. I have a problem with the timer ... when using this sequence of update does not work sometimes. This if it worked in HC08QWhat 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.


Labels (1)
0 Kudos
1 Reply

191 Views
Leojunin
Contributor III

I found the fault. The answer is in the book :smileyhappy: 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

0 Kudos