Application of timed interrupt, accurate delay C program