#include <hidef.h> /* common defines and macros */#include <mc9s12e128.h> /* derivative information *//* Interrupt for TIM0_TC4 */void interrupt 12 timer0TC4(void) { TIM0_TC4 += 512; PTT ^= 0xFF; /* Toggle LEDS */ TIM0_TFLG1_C4F = 1; /* Reset flag */ }void main(void) { DDRT = 0xFF; PTT = 0x00; TIM0_TCTL1 = 0x00; /* Take no action */ TIM0_TSCR1 = 0x80; /* Enable counter */ TIM0_TSCR2 = 0x00; /* No overlow flag/prescale */ TIM0_TIOS_IOS4 = 1; /* Enable O/C Timer1 */ TIM0_TFLG1_C4F = 1; /* Reset C4F flag */ TIM0_TIE = 0x10; /* Enable interrupt on TC1 */ asm("SWI"); TIM0_TC4 = TIM0_TCNT + 512; /* Set value to interrupt */ for(;;) {} }