摘要 |
PURPOSE:To make the title driver less susceptible to the effects of external noises and variations in voltage, without modifying the hardware of the driver, by providing a process of writing data from a driving signal generating part into a signal holding part, in a process loop which is provided in a control program for the driving signal generating part and is repeated at predetermined time intervals. CONSTITUTION:Driving data to be outputted is prepared in an MPU in a step P6, and then the content of a timer function incorporated in the MPU is cleared in a step P7. In a step P8, the driving data is written from the MPU into a flip-flop, and a driver causes an actuator to start operating according to a driving signal from the MPU. Next, in a step P9, the timer in the MPU is started. When it is detected in a step P10 that the content in the timer reaches a set value, the step P7 is again executed to clear the timer, and the same data as the previous data is written in the step P8. Therefore, the rewriting of the data does not cause any change in the operation of the actuator. The above operations are repeated until the driving data is changed to the next driving data. |