A charging and discharging control circuit is provided in which a delay
circuit is built in an over-discharge detector circuit, an over-charge
detector circuit, or the like. A delay time of the detector circuit can
be changed from an external without adding a control terminal, thereby
reducing a test time of the detector circuit. A voltage detector circuit
is disposed between a power supply terminal and a power supply voltage
detection terminal of the charging and discharging control circuit, and
the voltage detector circuit detects a specified voltage or higher, to
thereby shorten the delay time of the internal control circuit.