A semiconductor device having a semiconductor substrate supplied with a fluctuating voltage comprising:
- said semiconductor substrate of a first conductivity type;
- a first well of a second conductivity type formed in said semiconductor substrate;
- a second well of the first conductivity type formed in said first well;
- and, wherein said first conductivity type is P-type and said second conductivity type is N-type, and wherein the device further comprising:
- a pair of first MOS field effect transistors of P-type formed on the surface of said first well of N-type;
- a pair of second MOS field effect transistors of N-type formed on the surface of said second well of P-type;
- and
- said four MOS field effect transistors being connected in a NAND circuit.