PURPOSE: To conduct the selection of a test mode in a stable manner even when there is irregularity in the manufacture of a semiconductor integrated circuit with a built-in test mode selection circuit with which an internal circuit is set in a test mode by detecting the application of prescribed voltage higher than the voltage applied to the prescribed external terminal in the normal operation mode.
CONSTITUTION: The threshold voltage of a test mode selection circuit 38 is formed as VTH-TEST=R40 (resistance value of resistor 40)/R41 (resistance value of resistor 41).1/2.V (threshold voltage of inverter 42) + VCC (base voltage of PNP transistor 39) +0.8 (threshold voltage of PNP transistor 39), and the variation of the VTH-TEST due to irregularity of manufacture is prevented.