HC9S08SH. Timer not working properly

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HC9S08SH. Timer not working properly

596 次查看
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 回复

479 次查看
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 项奖励
回复