Periodic Interrupt Timer for 1 milli second delay

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

Periodic Interrupt Timer for 1 milli second delay

2,479件の閲覧回数
ughadge
Contributor II

I want to generate an interrupt for 1 millisecond  for giving accurate delay in MC9S12XEP100 , 

I am stuck on how to do that , can you provide an example for reference as well ??

Thank you 

 

 

0 件の賞賛
返信
2 返答(返信)

2,474件の閲覧回数
chaitanya_kalyani
Contributor III

Hello @ughadge ,

 

I have implemented for S12ZVL. For MC9S12XEP100 it might be same. In CodeWarrior you can add TimerInt module 

chaitanya_kalya_1-1600867289470.png

Set the interrupt period 

chaitanya_kalya_2-1600867388413.png

and your ISR will be generated in Event.c file

chaitanya_kalya_0-1600923967237.png

 

That's done.

1,858件の閲覧回数
SBK_SBK_SBK_SBK
Contributor I

Screenshot (33).png

0 件の賞賛
返信