This invention discloses an interface
anomaly detection circuit and a charger. The interface
anomaly detection circuit includes: a pull-up module connected between a
voltage source and a configuration
signal line; a pull-down module connected between the configuration
signal line and a reference ground; a control module configured to control the on / off state of a first loop between the pull-up module and the configuration
signal line, control the on / off state of a second loop between the pull-down module and the configuration signal line, and output a first
switching signal or a second
switching signal; and a detection module for acquiring a sampled
voltage of the configuration signal line and, in response to the first
switching signal or the second switching signal, determining whether
parasitic capacitance or short-circuit resistance caused by
moisture intrusion exists on the configuration signal line based on the sampled
voltage. Through this method, this invention can reliably detect interface
moisture intrusion at a low circuit cost and avoids altering the interface structure to affect signal transmission.