摘要 |
PROBLEM TO BE SOLVED: To stably control an actuator by fetching information indicating the state of the actuator in a microcomputer in a specified control cycle, obtaining a control parameter in main routine, and outputting it in a predetermined control cycle. SOLUTION: Motor control task starting interruption and position acquiring interruption are started by a timer in every control cycle of fixed interval. The microcomputer in a lens barrel receives the interruption, acquires the position of a focusing lens and executes motor control task processing. The control output interruption is started when a given time elapses after the motor control task starting interruption and the position acquiring interruption arise. The given time is fixed considering the time for all the interruption processing in addition to the motor control task processing. Therefore, the control cycle for executing the motor control task processing, a position acquiring cycle and a control output cycle are always held at fixed intervals.
|