ELECTRONIC DEVICE CAPABLE OF AUTOMATICALLY SWITCHING BETWEEN A MASTER MODE AND A SLAVE MODE
First Claim
1. An electronic device capable of automatically switching between a master mode and a slave mode, comprising:
- a USB interface comprising a power pin and a date pin;
a power source;
a switching circuit connected between the power source and the power pin of the USB interface;
a controlling unit connected to the switching circuit;
a selection unit;
a master-slave selection triggering circuit comprising an input port connected to the power pin of the USB interface, a first output port connected to the controlling unit, and a second output port connected to the selection unit, which configured for detecting the voltage of the power pin of the USB interface and sending corresponding signals to the controlling unit and the selection unit via the first output port and the second output port respectively;
wherein, when the master-slave selection triggering circuit detects the power pin is at high voltage, the master-slave selection triggering circuit sends a slave triggering signal to the controlling unit and the selection circuit respectively via the first output port and the second output port, when the master-slave selection triggering circuit detects the power pin is at low voltage, the master-slave selection triggering circuit sends a master triggering signal to the controlling unit and the selection circuit respectively via the first output port and the second output port;
when the controlling unit receives the slave triggering signal from the first output port, the controlling unit switches off the switching circuit, then disconnects the connection between the power source and the power pin, when the selection circuit receives the slave triggering signal from the second output port, the selection circuit connects the slave mode controlling pin of the processing unit with the data pin;
when the controlling unit receives the master triggering signal from the first output port, the controlling unit switches on the switching circuit, then the power source is electrically connects to the power pin and provides power to the power pin;
when the selection circuit receives the master triggering signal from the second output port, the selection circuit connects the master mode controlling pin of the processing unit with the data pin.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic device, includes a USB interface, a processing unit, a master-slave select triggering circuit, a controlling unit, a selection circuit and a switching circuit. The master-slave selection triggering circuit including an input port, a first output port and a second output port. The master-slave select triggering circuit is used to detect the type of external electronic devices connected to the USB interface, if the external electronic device is a master device, the first and second output port output a slave triggering signal, the controlling unit switches off the switching circuit t and the selection circuit selects the processing unit into slave mode; if the external electronic device is the slave device, the first and second output port output a master triggering signal, the controlling unit switches on the switching circuit and the selection circuit select the processing unit into master mode.
31 Citations
7 Claims
-
1. An electronic device capable of automatically switching between a master mode and a slave mode, comprising:
-
a USB interface comprising a power pin and a date pin; a power source; a switching circuit connected between the power source and the power pin of the USB interface; a controlling unit connected to the switching circuit; a selection unit; a master-slave selection triggering circuit comprising an input port connected to the power pin of the USB interface, a first output port connected to the controlling unit, and a second output port connected to the selection unit, which configured for detecting the voltage of the power pin of the USB interface and sending corresponding signals to the controlling unit and the selection unit via the first output port and the second output port respectively; wherein, when the master-slave selection triggering circuit detects the power pin is at high voltage, the master-slave selection triggering circuit sends a slave triggering signal to the controlling unit and the selection circuit respectively via the first output port and the second output port, when the master-slave selection triggering circuit detects the power pin is at low voltage, the master-slave selection triggering circuit sends a master triggering signal to the controlling unit and the selection circuit respectively via the first output port and the second output port; when the controlling unit receives the slave triggering signal from the first output port, the controlling unit switches off the switching circuit, then disconnects the connection between the power source and the power pin, when the selection circuit receives the slave triggering signal from the second output port, the selection circuit connects the slave mode controlling pin of the processing unit with the data pin; when the controlling unit receives the master triggering signal from the first output port, the controlling unit switches on the switching circuit, then the power source is electrically connects to the power pin and provides power to the power pin;
when the selection circuit receives the master triggering signal from the second output port, the selection circuit connects the master mode controlling pin of the processing unit with the data pin. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
Specification