When consideration is given to drive circuits such as the high-voltage power source for erasure or programming and the drive circuit for a CMOS logic circuit, the current is as great as several tens of mA and the total current is considerably greater when a plurality of chips in the whole device are simultaneously erased or programmed.