摘要:
A portable electronic device and an accessory device thereof, and an operating method for a portable electronic device. According to the disclosure, an accessory device coupled at a universal serial bus connector of a portable electronic device is detected and identified via the identification pin of the universal serial bus connector. When it is identified that the accessory device supports 1-wire communication via the identification pin, the accessory device is accessed via the 1-wire communication via the identification pin.
摘要:
A portable electronic device is provided. Connector includes the first and data pins. Processor includes input and output pins and detection pin coupled to the input pin. First resistor is coupled between the detection pin and first voltage. When the processor detects that the first and second pins of charger are coupled to the first and second data pins of the connector, the processor provides switching signal to the selector, so as to couple the first and second data pins of the connector to the input and output pins of the processor, respectively, and to provide second voltage different from the first voltage, to the second pin of the charger via the output pin. The processor obtains charging current value of the charger according to voltage of the detection pin. The charger includes second resistor coupled between the first and second pins.
摘要:
An electronic device and a method for driving an internal function block of a processor of the electric device to operate in a linear region. The electronic device comprises a processor having two multiple purpose pins (MPP1 and MPP2), an external device connection port, and two resistance elements. The external device connection port is further connected to the MPP1 and at a tested voltage. The first resistance element is connected between a high level voltage and the external device connection port. The second resistance element is connected between the external device connection port and the MPP2. The processor is configured to output the high or low level voltage at MPP2 when the tested voltage is in a non-linear operating region, to guarantee the tested voltage to a linear operating region of the function block which is coupled to the MPP1 by a multiplexing design.
摘要:
An electronic device includes a housing, a connector port and a switching device. The connector port receives a peripheral device. The processor is electrically connected to the connector port and includes a detection pin and a 1-wire pin. The switching device is coupled between the connector port and the processor to selectively connect the connector port to one of the detection pin or the 1-wire pin. When the peripheral device is inserted into the connector port, the processor controls the switching device to connect the connector port to the detection pin to determine whether the connected peripheral device is a 1-wire device. When the processor determines that the connected peripheral device is a 1-wire device, the processor controls the switching device to connect the connector port to the 1-wire pin and the processor executes 1-wire communication with the peripheral device via the 1-wire pin.
摘要:
An electronic device includes a housing, a connector port and a switching device. The connector port receives a peripheral device. The processor is electrically connected to the connector port and includes a detection pin and a 1-wire pin. The switching device is coupled between the connector port and the processor to selectively connect the connector port to one of the detection pin or the 1-wire pin. When the peripheral device is inserted into the connector port, the processor controls the switching device to connect the connector port to the detection pin to determine whether the connected peripheral device is a 1-wire device. When the processor determines that the connected peripheral device is a 1-wire device, the processor controls the switching device to connect the connector port to the 1-wire pin and the processor executes 1-wire communication with the peripheral device via the 1-wire pin.
摘要:
A portable electronic device is provided. Connector includes the first and data pins. Processor includes input and output pins and detection pin coupled to the input pin. First resistor is coupled between the detection pin and first voltage. When the processor detects that the first and second pins of charger are coupled to the first and second data pins of the connector, the processor provides switching signal to the selector, so as to couple the first and second data pins of the connector to the input and output pins of the processor, respectively, and to provide second voltage different from the first voltage, to the second pin of the charger via the output pin. The processor obtains charging current value of the charger according to voltage of the detection pin. The charger includes second resistor coupled between the first and second pins.
摘要:
The invention provides a method for an electronic device for automatically detecting and identifying a peripheral device. The electronic device comprises a connector having a first pin and a second pin and connects to a peripheral device through the connector. The method comprises the steps of determining whether the peripheral device is connected to the connector; reading a first state of the first pin and the second pin when determining that the peripheral device is connected to the connector; setting a voltage of the first pin to a first voltage level and then reading a second state of the first pin and the second pin; and identifying the peripheral device according to the first state and the second state. The invention also provides an electronic device and an electronic system utilizing the above-mentioned method.
摘要:
A portable electronic apparatus and a connection method therefore are disclosed. The portable electronic apparatus comprises a connector, a processing circuit, and a switch module. After a plug is plugged into the connector, the processing circuit reads a voltage value of the plug via the switch module. When determining that the voltage value of the plug is within a first voltage range, the processing circuit outputs switch signals to the switch module, so that an input signal of the plug is able to be transmitted to the processing circuit via the connector and the switch module. When determining that the voltage value of the plug is within a second voltage range, the processing circuit outputs other switch signals to the switch module, so that an output signal of the processing circuit is able to be transmitted to the plug via the switch module and the connector.
摘要:
The invention provides a method for an electronic device for automatically detecting and identifying a peripheral device. The electronic device comprises a connector having a first pin and a second pin and connects to a peripheral device through the connector. The method comprises the steps of determining whether the peripheral device is connected to the connector; reading a first state of the first pin and the second pin when determining that the peripheral device is connected to the connector; setting a voltage of the first pin to a first voltage level and then reading a second state of the first pin and the second pin; and identifying the peripheral device according to the first state and the second state. The invention also provides an electronic device and an electronic system utilizing the above-mentioned method.
摘要:
A detachable adapter is provided for being detachably connected to a data bus of a receptacle of a portable device to form a portable system. The adapter includes a conversion circuit and can inform the portable device that whether a power source is available and inform the portable device of connection status of the adapter through the data bus. The portable device can be connected to the power source through one of the receptacles of the adapter so that the portable device is powered or charged, and the portable device can be connected to at least one client device through the other receptacle of the adapter simultaneously.