To make an excessive power receiving request by a sink when a USB Type-C legacy cable is used. An electronic device includes a first and second terminals connected to a cable, a detection circuit for detecting the voltage of the first and second terminals, and a first or second terminal detected by the detection circuit. It is provided with a controller that determines the type of cable based on the terminal voltage and confirms the power supply capacity of the external electronic device connected via the cable according to the type of cable.
|
10. An electronic device that is connected to an external power supply device via a cable and that performs as a power receiving device, the electronic device comprising:
a first terminal connected to the cable, and connected to a first pull-up resistance or a first pull-down resistance via a first switch;
a second terminal connected to the cable, and connected a second pull-up resistance or a second pull-down resistance via a second switch;
a controller configured to:
when the first and second terminals are connected to the first and second pull-up resistances, respectively, determine a type of the cable according to a voltage of the second terminal;
when the first and second terminals are connected to the first and second pull-down resistances, respectively, determine connection with the external power supply device according to a voltage of the first terminal; and
check a power supply capacity of the external power supply device according to the type of the cable.
7. An electronic device connected to an external power supply device via a cable, the electronic device comprising:
a first terminal and a second terminal at least either one of which is connected to a signal line of the cable;
a detection circuit configured to detect voltages of the first terminal and the second terminal; and
a controller configured to determine a type of the cable based on detected one of voltages of the first terminal and the second terminal, and confirm a power supply capacity of the external power supply device according to the type of the cable,
wherein the electronic device is capable of operating as a power supplying device or a power receiving device; and
wherein, when the electronic device detects connection with the external power supply device, the electronic device transitions its operation to an operation as the power supplying device, and the controller determines the type of the cable according to the detected voltages of the first terminal and the second terminal.
1. An electronic device connected to an external power supply device via a cable, the electronic device comprising:
a first terminal and a second terminal at least either one of which is connected to a signal line of the cable;
a detection circuit configured to detect voltages of the first terminal and the second terminal;
a controller configured to determine a type of the cable based on detected one of voltages of the first terminal and the second terminal, and confirm a power supply capacity of the external power supply device according to the type of the cable; and
a first pull-up resistance, a second pull-up resistance, a first pull-down resistance, and a second pull-down resistance,
wherein the type of the cable is determined by connecting the first terminal and the second terminal to the first pull-up resistance and the second pull-up resistance, respectively; and
wherein the power supply capacity is confirmed by connecting the first terminal and the second terminal to the first pull-down resistance and the second pull-down resistance, respectively, after the type of the cable is determined.
11. A method for controlling power receiving of an electronic device which is connected to an external power supply device via a cable, the method comprising:
determining a type of the cable according to a first terminal and a second terminal which are connected to the cable;
detecting connection with the external power supply device according to voltages of the first and second terminals; and
confirming a power supply capacity of the external power supply device when the connection with the external power supply device is determined,
wherein the electronic device is not capable of performing as a power supplying device; and
wherein the electronic device comprises pull-up resistances and pull-down resistances that are connected to the first terminal and the second terminal via switches, respectively
wherein the method further comprises:
connecting the pull-up resistances to the first terminal and the second terminal, respectively, before the determining of the type of the cable; and
connecting the pull-down resistances to the first terminal and the second terminal, respectively, after the determining of the type of the cable.
2. The electronic device according to
wherein the controller is configured to confirm the power supply capacity and request for receiving power based on the confirmed power supply capacity when the controller determines that the type of the cable is a first type according to the confirmed power supply capacity; and
wherein the controller is configured to request for receiving a predetermined power without confirming the power supply capacity when the controller determines that the type of the cable is not the first type according to the confirmed power supply capacity.
3. The electronic device according to
4. The electronic device according to
5. The electronic device according to
6. The electronic device according to
8. The electronic device according to
wherein the controller is further configured to:
confirm the type of the cable determination flag when the electronic device detects the connection with the external power supply device;
maintain the operation as a power receiving device when the type of the cable determination flag indicates that the determination is already performed; and
transition the operation of the electronic device to the operation as the power supplying device, and determines the type of the cable according to the detected one of the voltages of the first terminal and the second terminal, when the type of the cable determination flag indicates that the determination is not already performed.
9. The electronic device according to
wherein the register is further configured to store a source connection detection flag which indicates that the connection with the external power supply device is detected;
wherein the controller activates the type of the cable determination flag if the source connection detection flag indicates that the connection with the external power supply device is detected when the operation of the electronic device transitions to the operation as the power supplying device.
12. The method according to
|
The disclosure of Japanese Patent Application No. 2019-194773 filed on Oct. 25, 2019 including the specification, drawings and abstract is incorporated herein by reference in its entirety.
The present invention relates to an electronic apparatus, and more particularly, the present invention relates to an electronic apparatus having a USB (Universal Serial Bus) Type-C control function and a system using the same.
The technique which carries out the power supply between device using the communication cable is spreading. For example, USB (Universal Serial Bus) is one of standards for connecting a peripheral device to an information device such as a computer, and power can be supplied at the same time as communication between the information appliances.
The electric power that can be supplied using the USB is specified in the standard. For example, in USB2.0 standard, the power that can be supplied by the standard is determined to be a voltage 5 V, current 500 mA. Further, in USB 3.x standard, x is any one of 0, 1, and 2, and the same applies hereinafter, it is defined that the electric power that can be supplied by the standard is the electric power that can be supplied by the standard is the electric voltage 5 V and the electric current 900 mA. When supplying electric power equal to or higher than the standard supplied electric power specified by USB 2.0 standard and USB 3.x standard, it is required to use standards such as USB BC (Battery Charging Specification) and USB PD (Power Delivery).
It is stipulated that USB Type-C to USB Type-C cables having USB Type-C connectors at both ends are used when supplying and receiving electric power equal to or higher than the standard supply electric power stipulated in USB 2.0 standard and USB 3.x standard without using a USB BC or a USB PD. USB Type-C is one of the standards for USB cables and connectors, and is compatible with data input/output, power supply, and video output.
In USB Type-C, a configuration channel signal (hereinafter referred to as a CC signal) is defined, and a terminal (configuration channel terminal) for a CC signal is provided in USB Type-C of the connectors. Source is a power supply device connects the configuration channel terminal (hereinafter referred to as CC terminal) to the power supply line with a pull-up resistor, the sink is a power receiving device by connecting the CC terminal to the GND line with a pull-down resistor, to determine its role. Therefore, the power feeding device and the power receiving device corresponding to USB Type-C detects the connecting status by monitoring the voltage of the CC terminal.
Also, USB Type-C compliant source is defined as standard supplied power, voltage 5 V—current 1.5 A or voltage 5 V—current 3 A power supply. A pull-up resistor value is defined corresponding to these supplied power. For example, the pull-up resistor is 56 kΩ if the standard supply power, 22 kΩ if the supply power is voltage 5 V—current 1.5 A, and 10 kΩ if the supply power is voltage 5 V—current 3 A. On the other hand, the pull-down resistance of the sink is defined as 5.1 kn. Therefore, the sink detects the connection with the source and confirms the power supply capability of the source by measuring the voltage level of the CC terminal.
There is a disclosed technique below.
[Non-patent Document 1] USB Type-C™ Cable and Connector Specification Revision 1.4
In USB Type-C, in addition to the USB Type-C to USB Type-C cable as described above, a USB cable (hereinafter, referred to as a USB Type-C legacy cable) having a USB Type-C connector at one end and an existing USB connector at the other end (USB2 0 connector or USB 3.x connector) is defined to ensure connectivity with an existing USB port. For example, “USB Type-C to Standard-A cabling” or the like. Such a USB Type-C legacy cable is used, for example, to connect a host device having a pre-existing interface to a peripheral device having a USB Type-C port. Power supply using USB Type-C legacy cables is limited to USB-standard power supply.
As described above, in the source corresponding to USB Type-C, the CC terminal is connected to the pull-up resistor, but the source corresponding to USB Type-C is not provided with the CC terminal. Thus, in USB Type-C, when using a USB Type-C legacy cable to connect a USB Type-C incompatible source to a USB Type-C compatible sink, a USB Type-C compliant sink is defined to connect a pull-up resistor to the signal line connected to the CC terminal within USB Type-C legacy cable to verify the source's power supply capability. As described above, since the power tolerance when using USB Type-C legacy cable is limited to the USB standard supply power, the resistance value of the pull-up resistor in the cable must be 56 kΩ, which is a resistance value corresponding to the USB standard supply power.
However, if this pull-up resistance value does not meet the value defined for the USB standard supply power, e.g., if the pull-up resistance value is less than 56 kΩ, the sink may require excessive power reception. As a result, the source may be overloaded, leading to source fault.
Other objects and novel features will become apparent from the description of this specification and the accompanying drawings.
Electronic device according to an embodiment, which is connected to an external power supply device via a cable, a first and second terminals connected to the cable, a detection circuit for detecting the voltage of the first and second terminals, the type of cable based on the first or second terminal voltage detected by the detection circuit to determine, and a controller for performing the power supply capacity confirmation of the external power supply device in accordance with the type of cable.
The electronic device according to an embodiment can perform safe power reception without making a power reception request with excessive power to an external power supply device.
Hereinafter, an electronic apparatus according to an embodiment will be described in detail with reference to the drawings. In the specification and the drawings, the same or corresponding constituent elements are denoted by the same reference numerals, and a repetitive description thereof is omitted. In the drawings, for convenience of description, the calibration may be omitted or simplified. In addition, at least a portion of each of the embodiments may be arbitrarily combined with each other.
Hereinafter, Embodiment 1 will be described with reference to the drawings.
USB cable 100 has a connector at least one end corresponding to USB Type-C, comprising a CC line as a signal line in addition to VBUS line and the GND line.
Source 200 has a USB Type-C non-compliant port. For example, a port that does not support USB Type-C is a USB 2.0 port or a USB 3.x port. The source 200 may be a USB host or a USB charger (AC adapter) with or without a host function.
The sink 300 includes USB Type-C compliant ports and controllers 303. USB Type-C corresponding port has an VBUS terminal, a ground terminal, a first configuration channel terminal (CC1 terminal) and a second configuration channel terminal (CC2 terminal). VBUS terminal and the GND terminal are connected to VBUS line and the GND line of the USB cable 100. One of CC1 terminal and CC2 terminal is connected to the CC-line of the USB-cable 100. In
First, a general configuration of a sink having a USB Type-C port will be described with reference to
CC1 terminal is connected to the first pull-up resistor Rp1 or the first pull-down resistor Rd1 via the first switch SW1. CC2 terminal is connected to a second pull-up resistor Rp2 or a second pull-down resistor Rd2 via a second switch SW2. Switching SW1, SW2 is controlled by the controller 303. It should be noted that the pull-down resistor Rd1, Rd2 is used to identify the sinks, and is defined by 5.1 kΩ according to USB Type-C standard.
Detector 302 is connected to CC1 terminal and CC2 terminal, and detects the terminal voltage of CC1 terminal and CC2 terminal, respectively.
Controller 303 controls the switch SW1 and SW2, to determine the connection status and cable type based on the terminal voltage of CC1 terminal and CC2 terminal detected by the detection circuit 302. Further, the controller 303 makes a power reception request based on the connection state and the cable type.
The register 304 stores information indicating whether or not the connection with the source is detected and whether or not the cable type is determined.
Incidentally, the pull-up resistor Rp1, Rp2, the pull-down resistor Rd1, Rd2 and the detecting circuit 302 may be formed in one semiconductor chip together with the controller 303 and the register 304, it may be an external component.
The state of the sink 300 according to the present embodiment will be described with reference to
The state ST1 is an (Unattached.SNK) state indicating a state in which the source 200 is not connected to the sink 300. Since the source 200 is not connected, the terminal voltage of CC1 terminal and CC2 terminal of the sink 300 indicates the ground potential GND connected to the pull-down resistor Rd1, Rd2.
The state ST2 is a sink connection standby state (AttachWait.SNK) indicating a state in which the sink 300 has detected that it is connected to the source 200. Sink 200, when the terminal voltage of CC1 terminal or CC2 terminal becomes equal to or higher than a predetermined voltage vRdmin, detects the connection with the source 200. This state is the sink-connection standby state (state ST2).
For example, when the sink 300 is connected to an external electronic device is a source 200 via a USB cable, either one of CC1 terminal and CC2 terminal is connected to the CC line in the USB cable. The CC line is connected to a pull-up resistor in source 200 if the USB cable is a USB Type-C to USB Type-C cable. Also, if the USB cable is a USB Type-C legacy cable, the CC line is connected to a pull-up resistor within the cable. Therefore, as shown in
The state ST3 is a state that detects for a certain period that the sink 300 is connected to the source 200, and transitions when VBUS supply from the source 200 is detected. This state is defined as a sink connection establishment state (Attached.SNK) indicating a state in which the connection as the sink 300 is established. Specifically, the sink 300, while confirming that the terminal voltage of CC1 terminal or CC2 terminal connected to the CC line maintains a predetermined voltage vRdmin or more over a predetermined period, when detecting the supply of the bus power supply voltage VBUS, the sink connection established state. Upon transitioning to the state ST3, the sink 300 begins receiving power from the source 200 and can operate as a normal USB-device. Incidentally, the sink 300 enters the state ST1 when the supply of the bus power supply voltage VBUS is removed source 200 is stopped.
The sink 300 according to the present embodiment further has a state ST4 that is a status for confirming the type of the USB cable. Status ST4, as a first state of connecting the pull-up resistor Rp1, Rp2 to CC1 terminal and CC2 terminal of the sink 300, a state of confirming the type of USB-cable connected to the sink 300 based on the terminal voltage of CC1 terminal and CC2 terminal. The transition to the state ST4 may be made from the state ST1 or from the state ST2.
In the state ST4, when it is detected that the connected USB cable is a USB Type-C to USB Type-C cable (first cable), the sink 300 again, in a state ST3 that has transitioned through the state ST1, ST2, after confirming the power supply capacity of the source 200 power receiving request with power based on the confirmed power supply capacity. On the other hand, in the state ST4, if it is not detected that the USB cable is a USB Type-C to USB Type-C cable, the sink 300 enters the state ST1. Then, the sink 300, again, in the state ST3 that has transitioned through the state ST1, ST2, without checking the power supply capacity of the source 200, the standard supply power (voltage 5 V, current 500 mA) defined by USB2.0 standard or USB 3.x standard power supply (voltage 5 V, current 900 mA) It performs a power receiving request at a predetermined power such as. Incidentally, hereinafter, these USB 2.0 standard or USB 3.x. The standard supplied power determined by the x standard is referred to as USB standard supplied power.
Here, USB Type-C to USB Type-C cabling will be described. As shown in
Therefore, in the state ST4 of
Referring to
First, the sink 300, when the power is supplied, transitions to the source-unconnected state (state ST4 in
Next, the detecting circuit 302 determines whether the terminal voltage of CC1 terminal or CC2 terminal is equal to or less than the voltage vRa (step S3). That is, it is determined whether there is a pull-down resistor Ra of the E marker in the cable connected to the sink 300. When the voltage of CC1 terminal or CC2 terminal is equal to or lower than the voltage vRa (Y in step S3), the controller 303 recognizes that the connected cable is a USB Type-C to USB Type-C cable, sets the cable type flag TYPC_CBL_FLG to 1b, and stores the cable type flag TYPC_CBL_FLG in the register 304 (step S4). Incidentally, the voltage vRa is determined according to the resistance value of the pull-up resistor Rp1, Rp2 of the sink 300. For example, if the resistance of the pull-up resistor Rp1 and Rp2 of the sink 300 is connected to a 5 V power supply at 56 kΩ, the voltage vRa is set to 0.2 V. The voltage vRa when the resistance value of the pull-up resistor Rp1 and Rp2 of the sink 300 is 22 kΩ is 0.4 V, the voltage vRa when the resistance value of the pull-up resistor Rp1 and Rp2 is 10 kΩ is set to 0.8 V.
On the other hand, when both CC1 terminal voltage and CC2 terminal voltage is greater than the voltage vRa (N in step S3), it means that the pull-down resistor Ra is not detected. This indicates that the connected USB cable is not a USB Type-C to USB Type-C cable. At this time, since it is not known whether or not the source 200 is connected to the sink 300, the controller 303 reads the source connection detection flag SRC_DET_FLG indicating that the connection with the source 200 has been detected from the register 304, and checks whether or not the connection with the source 200 has been detected. If 1b is set in the source connection detection flag SRC_DET_FLG (Y in step S5), since the connection with the source 200 is already detected, the state proceeds to step S6 to continue the operation as the sink 300. If 1b is not set in the source-connection-detection flag SRC_DET_FLG (N in step S5), the process returns to step S2.
The controller 303, after setting the cable type flag TYPC_CBL_FLG (step S4), or after confirming that 1b source connection detection flag SRC_DET_FLG (Y in step S5), performs the connection confirmation process as the sink 300. That is, the sink 300 transitions to the sink unconnected state (state ST1 in
The controller 303 checks the detected voltage of CC1 terminal and CC2 terminal in order to confirm the connection status (step S7). CC1 terminal or CC2 terminal connected to the CC-line, a voltage divided by the pull-up resistor Rpc in the pull-up resistor or cable 100 of the source 200 and the pull-down resistor Rd1 or Rd2 of the sink 300 appears. Controller 303, when either the terminal voltage of the terminal voltage and CC2 terminal of CC1 terminal is equal to or higher than the voltage vRdmin (Y in step S7), recognizes that the sink 300 is connected to the source 200. This state corresponds to the sink-connection standby state (state ST2 in
Thereafter, the controller 303 checks for a predetermined period, either CC1 terminal voltage and CC2 terminal voltage is equal to or higher than the voltage vRdmin, and whether the bus power supply voltage VBUS is supplied. As a result, the controller 303 checks whether or not the sink 300 is in a state in which a connection with the source 200 is established (a sink connection establishment state) (step S8).
When the controller 303 confirms that it has transitioned to the sink connection establishment state (state ST3 in
Meanwhile, in step S2, the pull-down resistor Ra of the E marker is not detected, and in step S5, the cable is not a USB Type-C to USB Type-C cable or the source 200 may not be connected if the source connection detection flag SRC_DET_FLG is not set. Therefore, when the state in which the pull-down resistor Ra of the E-marker is not detected and the source-connection detecting flag STC_DET_FLG is not set continues for a predetermined period of time, the sink 300 transitions to the sink-unconnected state (state ST1 in
In the sink unconnected state of step S13, the detector circuit 302 detects the terminal voltage of CC1 terminal and CC2 terminal. Controller 303, when the detected CC1 terminal voltage or CC2 terminal voltage is equal to or higher than the voltage vRdmin (Y in step S15), sets 1b to the source connection detection flag SRC_DET_FLG as a source 200 detects that it is connected (step S16). At this time, the sink 300 is not a state in which the connection as the sink 300 is established, but a state in which the connection of the sources 200 is detected (a sink connection standby state (state ST2)). After detecting that the source 200 is connected, the process returns to step S1 in order to confirm the type of the cable.
When the non-sink connection state in step S13 continues for a predetermined period of time (Y in step S14), the process returns to step S1. The continuation of the sink unconnected state may be due to the fact that the cable is connected but the source 200 is not connected. Therefore, the sink 300 is shifted to the source-unconnected state (state ST4) in order to first determine the type of the cable. As a result, even when the source 200 is not connected, the type of the cable can be determined first, and the time taken from the establishment of the connection of the sink to the request for reception can be shortened.
In this manner, by connecting the pull-up resistor Rp1, Rp2 to CC1 and CC2 terminals of the sink 300 to the same state as the source-unconnected state, the type of the connected cables can be recognized. When the sink 300 is connected to the source 200 using a USB Type-C to USB Type-C cable, the sink 300, after confirming the power supply capacity of the source 200 from CC1 and CC2 terminal voltage, the power receiving request with power corresponding to the confirmed power supply capacity. On the other hand, if the cable other than USB Type-C to USB Type-C cable is connected, the sink 300, regardless of CC1 and CC2 terminal voltage, i.e., performs a power receiving request at a predetermined power such as USB-standard supplied power without confirming the power supply capability of the source 200. That is, the sink 300 confirms the power supply capability of the source 200 according to the type of the connected cable. Therefore, even when the resistance values of the pull-up resistors in USB Type-C legacy cables are not appropriate, the sinks 300 can safely receive power without requesting the sources 200 connected via USB Type-C non-compliant ports to receive power with excessive power.
(Modifications)
In the power reception control flow of the
First, when power is supplied to the sink 300, the sink 300 is a sink unconnected state (state ST1 in
After detecting the source connection, the controller 303 transitions to the source unconnected state (state ST4 in
Step S26 is a state ST1 of
Also in the modification of the first embodiment, the type of the connected cable can be recognized by setting the sink 300 to the same state as the source unconnected state. Therefore, it is possible to prevent the sinks 300 from making excessive power reception requests to the sources 200 when connected by USB Type-C legacy cables. Further, in the present modification, since the source connection detection flag is not required, the processing can be simplified.
Next, Embodiment 2 will be described. Embodiment 2 differs from Embodiment 1 in that an electronic device operating as a sink has a power operation mode of USB dual-roll power.
USB Type-C defines three USB-port power operating modes. Source only, sink only, and dual roll power (hereinafter referred to as DRP) power mode of operation. The source 200 operates only as a power supply device, and the sink 300 operates only as a power receiving device, but the DRP can operate both as a power supply device and as a power receiving device. In the second embodiment, the power receiving control when the electronic device corresponding to DRP operates as a sink will be described.
Controller 403 controls the switch SW1, SW2, a first state in which CC1 terminal and CC2 terminal and the pull-up resistor Rp1, Rp2 is connected, and a second state in which CC1 terminal and CC2 terminal and the pull-down resistor Rd1, Rd2 is connected is switched periodically. When the external electronic device serving as a source 200 to the electronic device 400 is connected, the electronic device 400 detects the connection when the second state pull-down resistor Rd1, Rd2 is connected to CC1 terminal and CC2 terminal. On the other hand, when the external electronic device serving as a sink 300 to the electronic device 400 is connected, the electronic device 400 detects the connection when the first state connected to the pull-up resistor Rp1, Rp2 to CC1 terminal and CC2 terminal.
Register 404 stores the source connection detection flag SRC_DET_FLG indicating whether or not the source 200 has been detected, the cable type flag TYPC_CBL_FLG indicating the cable type, and the connection cable type determination execution flag CBL_CHK_FLG indicating whether or not to perform the determination process of the type of the connected cable.
In the DRP operation, a sink-unconnected state (Unattached.SNK) (state ST10) in which the pull-down resistor Rd1,Rd2 is connected to CC1 terminal and CC2 terminal and a source-unconnected state (Unattached.SRC) (state ST40) in which the pull-up resistor Rp1, Rp2 is connected to CC1 terminal and CC2 terminal are switched at predetermined times defined in USB Type-C standard. In each state, state transitions are performed according to the detected voltage of CC1 terminal or CC2 pin. Normally, in the sink unconnected state (state ST10), when detecting that the source 200 is connected due to a voltage change of CC1 terminal or CC2 terminal, the electronic device transitions to the sink connection standby state (AttachedWait.SNK) (state ST20), and when a predetermined condition is satisfied, the electronic device transitions to the sink connection establishment state (Attached.SRC). On the other hand, in the source unconnected state (state ST40), when detecting that the sink 300 is connected due to a voltage change of CC1 terminal or CC2 terminal, the electronic device transitions to the source connection standby state (AttachWait.SRC) (state ST50), and when a predetermined condition is satisfied, the electronic device transitions to the sink connection establishment state (Attached.SRC) (state ST60).
In the second embodiment, the data held in the register 404 is used in order for the electronic device 400 to transit from the sink connection standby state (state ST20) to the sink connection establishing state (Attached.SNK) (state ST30). Details will be described with reference to the flow charts of
As described above, during DRP operation switches the sink unconnected state (Unattached.SNK) (state ST10) in which the pull-down resistor Rd1, Rd2 is connected to CC1 terminal and CC2 pin, and the source unconnected state (Unattached.SRC) (state ST40) in which the pull-up resistor Rp1, Rp2 is connected to CC1 pin and CC2 pin in a predetermined time.
The controller 403, when the pull-down resistor Rd1, Rd2 is connected to CC1 terminal and CC2 terminal (Y in step S100), same to the first embodiment either the terminal voltage of CC1 terminal or CC2 terminal, the voltage vRdmin or more (Y in step S101), it determines that the external electronic device functioning as a source is connected. That is, the electronic device 400 transitions to the sink-connection standby state (state ST20 in
Then, the controller 403 reads the connection cable determination implementation flag CBL_CHK_FLG stored in the register 404, to confirm whether 1b is set in the connection cable type determination implementation flag CBL_CHK_FLG (step S103). Controller 403, if it is set to 1b (Y in step S103) the connection cable type determination implementation flag CBL_CHK_FLG, continues the process as the sink 300. That is, the controller 403 checks whether or not in a state of establishing a connection with the source 200 (step S104).
When the controller 403 enters the sink connection establishment state (state ST30 in
On the other hand, when 1b is not set in the connection-cable-type determination execution flag CBL_CHK_FLG (N in step S103), the controller 403 controls the switching SW1, SW2 to connect CC1 terminal and CC2 terminal to the pull-up resistor Rp1, Rp2 (step S109). That is, the controller 403 controls to transit to the source unconnected state (state ST40 in
When the electronic device 400 enters the source unconnected state, the controller 403 reads the source connection detection flag SRC_DET_FLG from the register 404 (step S110). The fact that 1b is set (Y in step S110) in the source connection detection flag SRC_DET_FLG indicates that the electronic device 400 has already detected a connection with the source as sink 300. Therefore, the controller 403, the subsequent processing determines that the electronic device 400 is a process for obtaining the cable type required to operate as the sink 300, sets 1b in the connection cable type determination implementation flag CBL_CHK_FLG and stores it in the register 404 (step S111).
If no 1b is set in the source connection detection flag SRC_DET_FLG, i.e., the source connection of the electronic device 400 is not detected (N in step S110), it indicates that the electronic device 400 is not determined to operate as the sink 300. Therefore, the electronic device 400 continues the connection confirmation process as a source.
Next, the controller 403 checks whether one of the terminal voltages of CC1 terminal and CC2 terminal is equal to or less than the voltage vRa (step S112). In this step S112, it is checked whether or not the cable connected to the electronic device 400 is a USB Type-C to Type-C cable. If the electronic device 400 which is set to the source unconnected state is connected to the source 200 via a USB Type-C to Type-C cable, since either one of CC1 terminal and CC2 terminal is connected to the cable pull-down resistor Ra, one of the terminal voltages of CC1 terminal and CC2 terminal becomes voltage vRa or less. On the other hand, when the terminal voltages of CC1 terminal and CC2 terminal are both higher than the voltage vRa, this indicates that the connecting cable is a USB Type-C legacy cable. This is because USB Type-C legacy cable does not have the E-marker pull-down resistor R a. Therefore, by checking whether one terminal voltage of CC1 terminal and CC2 terminal is equal to or less than the voltage vRa, it is possible to determine the type of connecting cable.
If one terminal voltage of CC1 terminal and CC2 terminal is equal to or less than the voltage vRa (Y in the stepped S112), i.e., the connecting cable is determined to be a USB Type-C to Type-C cable, the controller 403 confirms that it is not connected to the sink 300 based on the other terminal voltage of CC1 terminal and CC2 terminal. Since the pull-up resistor is connected to CC1 terminal and CC2 terminal in the stepped S109, the other terminal voltage of CC1 terminal and CC2 terminal is connected to the sink 200 having a pull-down resistor Rd is a predetermined voltage range (voltage vRdmin or higher, the voltage vRdmax or less). Therefore, if higher than the voltage vRdmax of the upper limit of the predetermined voltage range, it can be determined that the external electronic device connected is not the sink 300. Therefore, the controller 403 checks whether the other terminal voltage of CC1 terminal and CC2 terminal is higher than the voltage vRdmax (step S113). If the other terminal voltage of CC1 terminal and CC2 terminal is higher than the voltage vRdmax (Y in step S113), the controller 403 recognizes that it is not connected to the sink. Incidentally, the voltage vRdmax is lower than the power supply potential connected to the pull-up resistor Rp1, Rp2, for example, is defined by Type-C standard.
Then, the controller 403, in step S112, to indicate that the connection cable is determined to be USB Type-C to USB Type-C, and stores the register 404 by setting a 1b in the cable type flag TYPC_CBL_FLG (step S114).
On the other hand, when the other terminal voltage of CC1 terminal and CC2 terminal is equal to or less than the voltage vRdmax (N in step S113), the controller 403 recognizes that the electronic device 400 is connected to the sink 300, the electronic device 400 source-connected standby state (ST50 of
If the terminal voltage of one of CC1 terminal and CC2 terminal is not equal to or lower than the voltage vRa (N in step S112), that is, if it is determined that the connecting cable is a USB Type-C legacy cable, the controller 403 detects in step S115 whether or not the electronic device 400 is connected to the sink 300. Therefore, the controller 403 determines whether the terminal voltage of either CC1 terminal and CC2 terminal is equal to or less than the voltage vRdmax. If either one of CC1 terminal and CC2 terminal is not below the voltage vRdmax (N in step S115), the controller 403 recognizes that the electronic device 400 is not connected to the sink 300, the process proceeds to step S116. On the other hand, if the terminal voltage of either CC1 terminal and CC2 terminal is equal to or less than the voltage vRdmax (Y in step S115), the controller 403 recognizes that the electronic device 400 is connected to the sink 300, the operation as the source 200 starts (step S118).
Thus, the controller 403 confirms the type of the connecting cable (step S112), after determining that it is not connected to the sink 300 (Y of step S113, N of S115), if a predetermined time has elapsed (Y of step S116), the electronic device 400 in order to perform the operation as the sink 300 transitions to the sink unconnected state (step S117). That is, the controller 403 controls to connect a pull-down resistor to CC1 terminal and CC2 terminal, and returns to the step S100.
As described above, even when USB Type-C DRP-compliant electronic device operates as the sink 300, the DRP-compliant electronic device performs power reception control after determining the type of cables. Thus, when USB Type-C DRP-capable electronic devices operate as sink 300, even if they are connected via USB Type-C legacy cables, they can prevent the external source 200 from requesting excessive power. As a result, it is possible to safely receive power in power supply systems using USB Type-C legacy cables. Also, USB Type-C DRP-compliant electronics have pull-up and pull-down resistors to prevent excessive power reception requirements without the addition of new components.
If all USB Type-C DRP-compatible electronic devices control the status of their USB Type-C using the firmware, the type of cable can be checked without changing the hardware configuration.
The invention made by the present inventor has been described above based on the embodiment, but the present invention is not limited to the above embodiment, and it is needless to say that various modifications can be made without departing from the gist thereof.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
10761553, | Jun 17 2016 | Qualcomm Incorporated | Universal serial bus (USB) cable type detection and control techniques |
20180060201, | |||
20180069395, | |||
20190204895, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Sep 09 2020 | SUZUKI, TAKAYUKI | Renesas Electronics Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 054022 | /0067 | |
Oct 07 2020 | Renesas Electronics Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Oct 07 2020 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Date | Maintenance Schedule |
May 17 2025 | 4 years fee payment window open |
Nov 17 2025 | 6 months grace period start (w surcharge) |
May 17 2026 | patent expiry (for year 4) |
May 17 2028 | 2 years to revive unintentionally abandoned end. (for year 4) |
May 17 2029 | 8 years fee payment window open |
Nov 17 2029 | 6 months grace period start (w surcharge) |
May 17 2030 | patent expiry (for year 8) |
May 17 2032 | 2 years to revive unintentionally abandoned end. (for year 8) |
May 17 2033 | 12 years fee payment window open |
Nov 17 2033 | 6 months grace period start (w surcharge) |
May 17 2034 | patent expiry (for year 12) |
May 17 2036 | 2 years to revive unintentionally abandoned end. (for year 12) |