Periodic Interrupt Timer for 1 milli second delay

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Periodic Interrupt Timer for 1 milli second delay

1,980 Views
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 Kudos
Reply
2 Replies

1,975 Views
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,359 Views
SBK_SBK_SBK_SBK
Contributor I

Screenshot (33).png

0 Kudos
Reply