cannot change the modulo value of counter

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

cannot change the modulo value of counter

跳至解决方案
665 次查看
juliancox
Contributor V

I am using a free running counter on a S08QE16 cpu to generate a periodic interrupt every 4ms. The interrupt occurs every 8ms irrespective of the value I set for "Period/offset" for component FC1 using device TMP10.Screen Shot 2018-03-07 at 12.33.11.jpg

With the settings shown above I still get an interrupt every 8ms.

By examining the timer registers (using a breakpoint) the counter is counting, but TMP1MOD contains the value 0x0000. If I then enter a value of 0x8000 into TMP1MOD I get the timing I need. In the hardware initialisation code there is only an instruction to set  TMPMOD to 0x0000. Do we have a problem with ProcessorExpert?

0 项奖励
1 解答
532 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Julian Cox,

How about use the "TimerInt" component :

pastedImage_1.png

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
1 回复
533 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Julian Cox,

How about use the "TimerInt" component :

pastedImage_1.png

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励