PURPOSE: To improve stability and precision of a circuit of an IC memory with floating gate type N channel FAMOS, by controlling in a proper way the writing time comparing some of the voltage of the input line to the input voltage.
CONSTITUTION: 35, 361...36N are MOS devices and 371∼37N are n channel FAMOS devices. As the threshold voltage VTH increases because of the writing in the device 37, so the electric differential V38 increases at the point 38. Therefore comparing the V38 and the signals from D/A converting part 31, the input is suspended to turn the FET35 off when the change of the V38 (VTH) reaches the desired value. With such an arrangement, the scattering in the input to the device 37 is completely prevented, so that the operations with high precision and high resolution can be achieved.