Periodic Interrupt Timer for 1 milli second delay

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

Periodic Interrupt Timer for 1 milli second delay

2,488 次查看
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,483 次查看
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,867 次查看
SBK_SBK_SBK_SBK
Contributor I

Screenshot (33).png

0 项奖励
回复