摘要 |
Disclosed are a detection circuit and an electronic terminal. The detection circuit is applied in the electronic terminal and configured to detect a real-time working current of the electronic terminal. The circuit comprises: a resistor (101), configured to comprise a first end and a second end, wherein the resistance value of the resistor (101) is variable; a sampling unit, configured to be connected with both ends of the resistor (101) and collect voltages at both ends of the resistor (101); a first memory (103), configured to store a current calculating method and an electric quantity calculating method; a data processing control unit (104), configured to be connected with the sampling unit and the first memory (103), calculate a voltage difference between the both ends of the resistor (101) according to the voltages at the both ends of the resistor (101), and call the current calculating method and the electric quantity calculating method to acquire a current value and an electric quantity value according to the voltage difference and the resistance value of the resistor (101); and a power supply device (105), configured to provide a stable power supply for the detection circuit. |