摘要 |
A circuit for detecting a button action on an earphone, including a first resistor, a comparator having with a first input end, a second input end, and an output end, with the first input end of the comparator connected to the first end of the first resistor, and the second input end of the comparator connected to the second end of the first resistor. A power supply us connected to the first resistor. The earphone includes a second resistor, and when the earphone is connected to the circuit, the second resistor is connected to the first resistor. The earphone further includes a microphone having a first end connected to the first end of the second resistor and a second end grounded, and a button having ends that are respectively connected the microphone and the second resistor. When the button is pressed, the ends of the button are connected. |