摘要 |
Embodiments of the present invention provide a circuit for detecting a button action on an earphone, a terminal, and an earphone. The method includes: when an earphone is in a state of being inserted into a terminal device, detecting, by the terminal device, a voltage difference between a first input end and a second input end; and if the voltage difference is greater than a first threshold, detecting that a button of the earphone is in a pressed state; or otherwise, if the voltage difference is not greater than the first threshold, detecting that the button of the earphone is in an unpressed state, so that the terminal device executes a corresponding action according to the button state. In this process, the terminal device detects the button state by using a button detection circuit, and executes the corresponding action. In the button detection circuit, when the button is in the pressed state, there is resistance between the button and a power supply. Therefore, circuit burnout caused by direct grounding of the power supply is avoided, and detection of the button state of the earphone is implemented. |