Non si capisce:

1) con quale sistema operativo stai lavorando

2) con quale compilatore

3) perche' dovresti usare l'interrupt per un timer