To provide a code reader with which image-pickup shaking does not occur.
Based on pulse currents supplied to the respective excited phases of a scan motor, differentiation circuits 80A and 80B, bidirectional comparators 82A and 82B, OR circuits 84A and 84B and a multivibrator 88 generate a signal showing the motor is in a drive period. On the other hand, it is detected by a moving distance counter 92 that the motor has moved by steps within a prescribed range and a signal is provided to show that image-pickup ranges are overlapped on conditions within the fixed range and the state of enabling image pickup is provided. When the motor is in a stop period and the image-pickup ranges are overlapped within the fixed range, based on the logical operation of these signals, a CCD control circuit 79 generates a shutter open/close signal, then a shutter 94 is opened and image pickup is performed. Thus, image pickup is performed during a period, in which the move of image-pickup part due to the scan motor is stopped.