摘要 |
The method delays operation of a personal computer for a fixed time using a delay routine. The method comprises the steps of: (A) resetting count and enabling timer interrupt when an interrupt disable signal is generated; (B) adding flag by one when flag is zero, and adding count by one and replacing flag by count value when flag is 1 and timer interrupt occurs; (C) executing dummy instruction when no timer interrupt occurs; and (D) executing dummy instruction when flag is less than 1 and calculating delay parameter by counting the number of executed dummy instructions.
|