摘要 |
A semiconductor device according to the present invention includes: 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, in which the first switching circuit and the second switching circuit exclusively operate in accordance with the electric potential of the first internal terminal. In the above-mentioned structure, when the second internal terminal is not bonded to an external terminal, the second internal terminal is pulled up or pulled down in accordance with a logical level of a signal input to the first internal terminal. Consequently, a connection state between the external terminal and the second internal terminal (mode pad) can be detected irrespective of the logical level (H level/L level) of the signal input to the first internal terminal.
|