In the case where an external signal line is driven by a circuit other than an output circuit with a voltage higher than an on-chip power-source voltage, if an output transistor is activated in the output state immediately after the driving of the external signal line by the above other circuit was cancelled, a voltage equal to or higher than the breakdown voltage of an oxide film of a transistor