VOLTAGE-DETECTING METHOD AND RELATED CIRCUITS
First Claim
1. A voltage-detecting method for detecting power status of a battery with a voltage-detecting circuit, the voltage-detecting circuit comprising:
- a processor comprising a first general purpose input/output (GPIO) port and a second GPIO port;
a comparator having a first input end connected to the battery, a second input end, and an output end connected to the first GPIO port;
a first resistor connected between the second input end of the comparator and a first voltage source;
a first power segment detection circuit connected in parallel with the first resistor, the first power segment detection circuit comprising a third resistor and a first switch serially connected to the third resistor, the first switch connected to the second GPIO port; and
a second resistor connected between the second input end of the comparator and a second voltage source;
the voltage-detecting method comprising;
outputting a first control signal with the processor to control the first switch at the second GPIO port by determining a voltage level at the first GPIO port; and
outputting a power signal with the processor by determining a voltage level at the first GPIO port.
3 Assignments
0 Petitions
Accused Products
Abstract
A voltage-detecting circuit includes a CPU, a comparator, a first resistor, a second resistor, and at least a power level segment detector connected in parallel with the first resistor, the power level segment detector having a third resistor and a first switch serially connected to the third resistor. The battery is electrically connected to a first input end of the comparator. The first resistor is electrically connected between a second input end of the comparator and a reference voltage. The second resistor is electrically connected between the second input end of the comparator and ground. The method includes outputting a control signal with the CPU to control the first switch by determining voltage levels at the output end of the comparator, and outputting a power indication signal with the CPU to indicate the voltage level of the battery by determining voltage levels at the output end of the comparator.
5 Citations
20 Claims
-
1. A voltage-detecting method for detecting power status of a battery with a voltage-detecting circuit, the voltage-detecting circuit comprising:
-
a processor comprising a first general purpose input/output (GPIO) port and a second GPIO port;
a comparator having a first input end connected to the battery, a second input end, and an output end connected to the first GPIO port;
a first resistor connected between the second input end of the comparator and a first voltage source;
a first power segment detection circuit connected in parallel with the first resistor, the first power segment detection circuit comprising a third resistor and a first switch serially connected to the third resistor, the first switch connected to the second GPIO port; and
a second resistor connected between the second input end of the comparator and a second voltage source;
the voltage-detecting method comprising;
outputting a first control signal with the processor to control the first switch at the second GPIO port by determining a voltage level at the first GPIO port; and
outputting a power signal with the processor by determining a voltage level at the first GPIO port. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A voltage-detecting circuit comprising:
-
a processor comprising a first GPIO port and a second GPIO port;
a comparator having a first input end connected to a battery, a second input end, and an output end connected to the first GPIO port;
a first resistor connected between the second input end of the comparator and a first voltage source;
a first power segment detection circuit connected in parallel with the first resistor, the first power segment detection circuit comprising a third resistor and a first switch serially connected to the third resistor, the first switch connected to the second GPIO port; and
a second resistor connected between the second input end of the comparator and a second voltage source;
wherein the processor outputs a first control signal to control the first switch at the second GPIO port by determining a voltage level at the first GPIO port and then generates a power signal by determining a voltage level at the first GPIO port. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification