Patent ID: 7463063

Claim:
A semiconductor device comprising: an output circuit that is built with a first switching element and a second switching element that are connected in series between a first direct-current voltage and a second direct-current voltage; an output terminal that is connected to a node at which the first and second switching elements are connected together; an internal circuit that produces data in a form of binary data that shifts between a first signal level and a second signal level; a first control circuit that performs switching control of the first and second switching elements of the output circuit according to the data inputted from the internal circuit; and a second control circuit to which a first control signal by which only the first switching element is forced ON by the first control circuit and a second control signal by which only the second switching element is forced ON by the first control circuit are inputted, the second control circuit that forcedly sets, according to the first and second control signals, a signal level of the data to be outputted from the internal circuit, wherein, when the data is at the first signal level, the first switching element is turned ON and the first direct-current voltage appears at the output terminal, wherein, when the data is at the second signal level, the second switching element is turned ON and the second direct-current voltage appears at the output terminal, wherein, when the first control signal is inputted to the second control circuit, the data that has been forced to be at the first signal level is outputted from the internal circuit to the first control circuit, wherein, when the second control signal is inputted to the second control circuit, the data that has been forced to be at the second signal level is outputted from the internal circuit to the first control circuit.