Patent ID: 7956643

Claim:
A semiconductor device, comprising: a first internal terminal; a second internal terminal; a first switching circuit coupled to the second internal terminal to switch between a state in which the second internal terminal is electrically coupled to a first reference electric potential and a state in which the second internal terminal is not electrically coupled to the first reference electric potential; a second switching circuit coupled to the second internal terminal to switch between a state in which the second internal terminal is electrically coupled to a second reference electric potential and a state in which the second internal terminal is not electrically coupled to the second reference electric potential; and a comparator coupled to the first internal terminal and the second internal terminal to compare an electric potential of the first internal terminal with an electric potential of the second internal terminal, wherein the first switching circuit and the second switching circuit exclusively operate in accordance with the electric potential of the first internal terminal, wherein the semiconductor device further comprises an external terminal coupled to the first internal terminal, wherein, when the second internal terminal is coupled to the external terminal, the comparator outputs a signal indicative of a match, and wherein, when the second internal terminal is not coupled to the external terminal, the comparator outputs a signal indicative of a mismatch.