HC9S08SH. Timer not working properly

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HC9S08SH. Timer not working properly

514件の閲覧回数
Leojunin
Contributor IV

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.


ラベル(1)
0 件の賞賛
返信
1 返信

397件の閲覧回数
Leojunin
Contributor IV

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 件の賞賛
返信