Integrated circuits with multi-level memory cells and methods for producing the same are provided. An electrochemical device, which comprises an electrode active material having a gas generation plateau potential in a charging period, and is charged to an extent exceeding the plateau potential and then degassed, is also disclosed. The digital phase detector detects phase information of the FMCW signal to generate a detection signal.