Provided on the integrated circuit in addition to the conventional circuitry is additional circuitry including a photosensitive element such as a photodiode, the output terminal of which is connected via a Schmidt trigger to the clock terminal of an on-chip flip-flop.