cannot change the modulo value of counter

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

cannot change the modulo value of counter

ソリューションへジャンプ
666件の閲覧回数
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 解決策
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 件の賞賛
1 返信
534件の閲覧回数
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 件の賞賛