Patent ID: 8476960
Filing Date: 2013-07-02
Classification: G06F

Abstract:
1. An identifying circuit connected between a Universal Serial Bus (USB) interface and a controller, the identifying circuit comprising: a first electronic switch, wherein a control terminal of the first electronic switch is connected to a positive data pin of the USB interface, a first terminal of the first electronic switch is connected to a power pin of the USB interface through a first resistor, a second terminal of the first electronic switch is grounded; a second electronic switch, wherein a control terminal of the second electronic switch is connected to the first terminal of the first electronic switch, a first terminal of the second electronic switch is connected to the power pin of the USB interface through a second resistor, the first terminal of the second electronic switch is further connected to an identification pin of the controller, a second terminal of the second electronic switch is grounded; a third electronic switch, wherein a control terminal of the third electronic switch is connected to the first terminal of the second electronic switch, a first terminal of the third electronic switch is connected to the power pin of the USB interface through a third resistor, a second terminal of the third electronic switch is grounded; and a fourth electronic switch, wherein a control terminal of the fourth electronic switch is connected to the first terminal of the third electronic switch, a first terminal of the fourth electronic switch is connected to the power pin of the USB interface, a second terminal of the fourth electronic switch is connected to the control terminal of the third electronic switch, the second terminal of the fourth electronic switch is further grounded through a fourth resistor; wherein when a power adapter is connected to the USB interface, the first electronic switch is not turned on, the second electronic switch is turned on, the third electronic switch is not turned on, the fourth electronic switch is not turned on, the identification pin of the controller receives a low level signal and determines that the power adapter is connected to the USB interface; when the USB interface is connected to a computer, the first electronic switch is turned on, the second electronic switch is not turned on, the third electronic switch is turned on, the fourth electronic switch is turned on, the identification pin of the controller receives a high level signal and determines that the computer is connected to the USB interface.