摘要 |
<p>PURPOSE:To execute just the processing which counts only the first set value that operates and simplify the processing at the time of timer interruption task by storing the time difference with the nearest higher order time for each timer set with priority order of second or lower. CONSTITUTION:Processing items at time-up time and the priority order of a time-up comparison processing are stored in a timer table 1. At the same time, the set time from the present time to time-up for the timer set of the first priority order and the time difference of the set time with the nearest higher priority in plural time units of different size for ones with second or lower priority order, are stored for each timer setting. The updating of the present value of the first priority order and the present counter are executed, and the output processing of time-up is executed only when the comparison result is coincident. Thus, the processing at the time of the timer interruption task is simplified, and the setting range of the timer that can be set can be enlarged.</p> |