JP6887852B2 - Electronic devices and their control methods - Google Patents

Electronic devices and their control methods Download PDF

Info

Publication number
JP6887852B2
JP6887852B2 JP2017072514A JP2017072514A JP6887852B2 JP 6887852 B2 JP6887852 B2 JP 6887852B2 JP 2017072514 A JP2017072514 A JP 2017072514A JP 2017072514 A JP2017072514 A JP 2017072514A JP 6887852 B2 JP6887852 B2 JP 6887852B2
Authority
JP
Japan
Prior art keywords
pull
terminal
external device
switch
resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017072514A
Other languages
Japanese (ja)
Other versions
JP2018173886A (en
Inventor
正一 中所
正一 中所
和臣 戸口
和臣 戸口
祐樹 野川
祐樹 野川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2017072514A priority Critical patent/JP6887852B2/en
Publication of JP2018173886A publication Critical patent/JP2018173886A/en
Application granted granted Critical
Publication of JP6887852B2 publication Critical patent/JP6887852B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Direct Current Feeding And Distribution (AREA)
  • Power Sources (AREA)

Description

本発明は、電子機器及びその制御方法に関する。 The present invention relates to an electronic device and a control method thereof.

近時では、ホスト側にもデバイス側にも用い得るとともに逆挿しが可能な小型のコネクタであるUSB Type−Cコネクタが提案されている。USB Type−Cに関する規格は、USB3.1規格において規定されている。デフォルトにおいてホストとして機能するとともに電力を供給する側のポート、即ち、デフォルトにおいてソース(Source)となるType−Cポートは、DFP(Downstream Facing Port)と称される。デフォルトにおいてデバイスとして機能するとともに電力を受け取る側のポート、即ち、デフォルトにおいてシンク(Sink)となるTyep−Cポートは、UFP(Upstream Facing Port)と称される。DFPにもUFPにもなり得るとともに、これらの役割を切り替え得るType−Cポートは、DRP(Dual Role Port)と称される。DRPを備えた電子機器、即ち、DRP機器は、外部機器に電力を供給する側の機器であるDFP機器になることもできるし、外部機器から電力を受け取る側の機器であるUFP機器になることもできる。各々の機器の役割を決定する際には、CC(コンフィギュレーションチャネル、Configuration Channel)端子が用いられる。 Recently, a USB Type-C connector, which is a small connector that can be used on both the host side and the device side and can be inserted backwards, has been proposed. The standard for USB Type-C is defined in the USB 3.1 standard. A port that functions as a host and supplies power by default, that is, a Type-C port that is a source by default, is called a DFP (Downstream Facing Port). The port on the side that functions as a device and receives power by default, that is, the Type-C port that becomes a sink by default, is called a UFP (Upstream Facing Port). A Type-C port that can be both a DFP and a UFP and can switch between these roles is called a DRP (Dual Role Port). An electronic device equipped with a DRP, that is, a DRP device can be a DFP device that is a device that supplies power to an external device, or a UFP device that is a device that receives power from an external device. You can also. A CC (Configuration Channel) terminal is used to determine the role of each device.

USB3.1規格においては、オプション機能としてオルタネートモード(Alternate Mode)が規定されている。オルタネートモードを用いれば、DisplayPort(DP)規格やHDMI(登録商標)(High−Definition Multimedia Interface)規格等に準拠した映像データ等をディスプレイ等に転送することが可能である。特許文献1には、接続された機器の種類を判定する技術が開示されている。 In the USB3.1 standard, an alternate mode is specified as an optional function. By using the alternate mode, it is possible to transfer video data or the like conforming to the DisplayPort (DP) standard, the HDMI (registered trademark) (High-Definition Multimedia Interface) standard, or the like to a display or the like. Patent Document 1 discloses a technique for determining the type of connected device.

特開2013−109410号公報Japanese Unexamined Patent Publication No. 2013-109410

しかしながら、従来の技術においては、外部機器への不本意な電力供給が電子機器から為されてしまう場合があった。 However, in the conventional technology, there is a case where an unwilling power supply to an external device is made from an electronic device.

本発明の目的は、外部機器へ電力供給を抑制し得る電子機器及びその制御方法を提供することにある。 An object of the present invention is to provide an electronic device capable of suppressing power supply to an external device and a control method thereof.

実施形態の一態様によれば、外部機器を接続可能であるとともに、前記外部機器との間で受給電を行い得るコネクタと、前記コネクタに備えられた所定の端子と、接続を切り替えるスイッチと、前記スイッチを介して前記所定の端子に接続可能なプルアップ抵抗と、前記スイッチを介して前記所定の端子に接続可能なプルダウン抵抗と、前記スイッチを周期的に切り替える制御部であって、前記所定の端子が前記プルアップ抵抗に接続された状態で、前記所定の端子の電位が所定の範囲内となったことを検出してから所定時間以内に、前記所定の端子と前記プルアップ抵抗とが未接続となるように前記スイッチを制御する制御部とを有し、前記所定の範囲の上限は、前記プルアップ抵抗に接続された電源線の電位より低く、前記所定の範囲の下限は、前記プルダウン抵抗に接続された接地線の電位より高いことを特徴とする電子機器が提供される。 According to one aspect of the embodiment, a connector capable of connecting an external device and receiving and supplying power to and from the external device, a predetermined terminal provided in the connector, and a switch for switching the connection. A control unit that periodically switches between a pull-up resistor that can be connected to the predetermined terminal via the switch, a pull-down resistor that can be connected to the predetermined terminal via the switch, and the predetermined switch. in a state where the terminal is connected to the pull-up resistor, since it is detected that the potential of the predetermined terminal is Tsu Do within a predetermined range within the predetermined time, the predetermined terminal and the pull-up resistor There have a control unit for controlling the switch so that the unconnected, the upper limit of the predetermined range is lower than the potential of the connected power line to the pull-up resistor, the lower limit of the predetermined range, An electronic device is provided that is higher than the potential of the ground wire connected to the pull-down resistor.

実施形態の他の態様によれば、外部機器を接続可能であるとともに、前記外部機器との間で受給電を行い得るコネクタと、前記コネクタに備えられ、前記外部機器に備えられた他の所定の端子にケーブルを介して接続可能な所定の端子と、接続を切り替える第1のスイッチと、前記第1のスイッチを介して前記所定の端子に接続可能なプルアップ抵抗と、前記第1のスイッチを介して前記所定の端子に接続可能なプルダウン抵抗と、前記第1のスイッチと前記所定の端子との間に備えられた第2のスイッチと、前記所定の端子の電位を監視する監視部と、前記第1のスイッチを周期的に切り替えるとともに、前記第2のスイッチの開閉を制御する制御部であって、前記第2のスイッチを開放した状態で前記監視部によって検出される前記所定の端子の電位に基づいて、前記第2のスイッチを前記外部機器に備えられたプルアップ抵抗に前記外部機器の前記所定の端子が接続される期間である前記外部機器のプルアップ期間の所定の規格上の下限値よりも短い所定の期間だけ閉じる制御部とを有し、前記制御部は、前記第2のスイッチを開放した状態で前記監視部によって検出される前記所定の端子の電位が閾値以上となる第1の状態が生じた場合に、前記第2のスイッチを前記所定の期間だけ閉じることを特徴とする電子機器が提供される。
According to another aspect of the embodiment, a connector capable of connecting an external device and receiving and supplying power to and from the external device, and another predetermined connector provided in the connector and provided in the external device. A predetermined terminal that can be connected to the terminal via a cable, a first switch that switches the connection, a pull-up resistor that can be connected to the predetermined terminal via the first switch, and the first switch. and a pull-down resistor connectable to the predetermined terminal via a second switch provided between said first switch and the predetermined terminal, the monitoring unit for monitoring the electric position of the predetermined terminal A control unit that periodically switches the first switch and controls the opening and closing of the second switch, and the predetermined value detected by the monitoring unit with the second switch open. based on the electric position of the terminal, a predetermined of the pull-up period of said external device is a period in which a predetermined terminal is connected to the external device the second switch to a pull-up resistor provided in said external device possess a just closing controller short predetermined period of time than the lower limit value of the standard, the control unit, the potential of the predetermined terminal to which the detected by the monitoring unit in the open state of the second switch threshold If the first condition being above occurs, electronic apparatus characterized Rukoto closing the second switch by the predetermined period of time is provided.

本発明によれば、外部機器への電力供給を抑制し得る電子機器及びその制御方法を提供することができる。 According to the present invention, it is possible to provide an electronic device capable of suppressing power supply to an external device and a control method thereof.

第1実施形態による電子機器と外部機器とケーブルとを示すブロック図である。It is a block diagram which shows the electronic device, the external device, and the cable according to 1st Embodiment. 第1実施形態による電子機器と外部機器とケーブルとを示すブロック図である。It is a block diagram which shows the electronic device, the external device, and the cable according to 1st Embodiment. USB Type−Cコネクタのピン配置を示す図である。It is a figure which shows the pin arrangement of the USB Type-C connector. 第1実施形態による電子機器の動作を示すフローチャートである。It is a flowchart which shows the operation of the electronic device by 1st Embodiment. 第1実施形態による電子機器の動作の例を示すタイミングチャートである。It is a timing chart which shows the example of the operation of the electronic device by 1st Embodiment. 比較例による電子機器の動作の例を示すタイミングチャートである。It is a timing chart which shows the example of the operation of the electronic device by the comparative example. 比較例による電子機器の動作の例を示すタイミングチャートである。It is a timing chart which shows the example of the operation of the electronic device by the comparative example. 第2実施形態による電子機器の動作を示すフローチャートである。It is a flowchart which shows the operation of the electronic device by 2nd Embodiment. 第2実施形態による電子機器の動作の例を示すタイミングチャートである。It is a timing chart which shows the example of the operation of the electronic device by 2nd Embodiment. 第3実施形態による電子機器を示すブロック図である。It is a block diagram which shows the electronic device by 3rd Embodiment. 各箇所の状態を示すタイミングチャートである。It is a timing chart which shows the state of each place. 第3実施形態による電子機器の動作を示すフローチャートである。It is a flowchart which shows the operation of the electronic device by 3rd Embodiment. 第4実施形態による電子機器を示すブロック図である。It is a block diagram which shows the electronic device by 4th Embodiment. 各箇所の状態を示すタイミングチャートである。It is a timing chart which shows the state of each place. 第4実施形態による電子機器の動作を示すフローチャートである。It is a flowchart which shows the operation of the electronic device by 4th Embodiment.

以下に、本発明の好ましい実施の形態を、添付の図面に基づいて詳細に説明する。
[第1実施形態]
第1実施形態による電子機器及びその制御方法について図面を用いて説明する。図1及び図2は、本実施形態による電子機器と外部機器とケーブルとを示すブロック図である。図1は、電子機器100のCC端子101bがプルアップ抵抗103に接続され、外部機器200のCC端子201bがプルダウン抵抗204に接続された状態を示している。図2は、電子機器100のCC端子101bがプルダウン抵抗104に接続され、外部機器200のCC端子201bがプルアップ抵抗203に接続された状態を示している。図1に示すように、本実施形態による電子機器100は、ケーブル300を介して外部機器200に接続される。電子機器100は、例えば、電子機器100に装填されたバッテリ(図示せず)から供給される電力によって動作する撮像装置であるものとする。電子機器100は、例えば、後述するTX端子を介して外部機器200に映像信号を送信することが可能である。外部機器200は、例えば、電子機器100等から受信した映像信号に基づいて画像を表示するディスプレイ(表示装置)であるものとする。外部機器200は、例えば、外部から供給される電力によって動作するものであってもよいし、外部機器200に装填されたバッテリ(図示せず)から供給される電力によって動作するものであってもよい。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[First Embodiment]
An electronic device according to the first embodiment and a control method thereof will be described with reference to the drawings. 1 and 2 are block diagrams showing an electronic device, an external device, and a cable according to the present embodiment. FIG. 1 shows a state in which the CC terminal 101b of the electronic device 100 is connected to the pull-up resistor 103 and the CC terminal 201b of the external device 200 is connected to the pull-down resistor 204. FIG. 2 shows a state in which the CC terminal 101b of the electronic device 100 is connected to the pull-down resistor 104 and the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. As shown in FIG. 1, the electronic device 100 according to the present embodiment is connected to the external device 200 via the cable 300. It is assumed that the electronic device 100 is, for example, an imaging device that operates by electric power supplied from a battery (not shown) loaded in the electronic device 100. The electronic device 100 can transmit a video signal to the external device 200 via, for example, a TX terminal described later. The external device 200 is, for example, a display (display device) that displays an image based on a video signal received from an electronic device 100 or the like. The external device 200 may be operated by, for example, electric power supplied from the outside, or may be operated by electric power supplied from a battery (not shown) loaded in the external device 200. Good.

電子機器100には、USB Type−C規格に準拠したポート150が備えられている。電子機器100のポート150には、コネクタ101が備えられている。外部機器200には、USB Type−C規格に準拠したポート250が備えられている。外部機器200のポート250には、コネクタ201が備えられている。コネクタ101、201は、いずれもレセプタクルである。ケーブル300の一方の端部にはUSB Type−C規格に準拠したコネクタ301aが備えられており、ケーブル300の他方の端部にはUSB Type−C規格に準拠したコネクタ301bが備えられている。コネクタ301a、301bは、いずれもプラグである。電子機器100のポート150と外部機器200のポート250とは、ケーブル300を介して接続される。電子機器100のポート150と外部機器200のポート250との間で受給電を行うことも可能である。 The electronic device 100 is provided with a port 150 conforming to the USB Type-C standard. The port 150 of the electronic device 100 is provided with a connector 101. The external device 200 is provided with a port 250 conforming to the USB Type-C standard. The port 250 of the external device 200 is provided with a connector 201. The connectors 101 and 201 are both receptacles. One end of the cable 300 is provided with a connector 301a compliant with the USB Type-C standard, and the other end of the cable 300 is provided with a connector 301b compliant with the USB Type-C standard. The connectors 301a and 301b are both plugs. The port 150 of the electronic device 100 and the port 250 of the external device 200 are connected via a cable 300. It is also possible to receive and supply power between the port 150 of the electronic device 100 and the port 250 of the external device 200.

電子機器100は、DFPにもUFPにもなり得るとともに、これらの役割を切り替え得るType−CポートであるDRPを備えた電子機器、即ち、DRP機器である。DFPは、デフォルトにおいてホストとして機能するとともに電力を供給する側のポート、即ち、デフォルトにおいてソースとなるType−Cポートである。UFPは、デフォルトにおいてデバイスとして機能するとともに電力を受け取る側のポート、即ち、デフォルトにおいてシンクとなるTyep−Cポートである。オルタネートモードに対応する電子機器100は、後述するトグリング(Toggling)を行うことを可能にすべく、DRPを備えることを要する。このため、電子機器100は、DRPを備えている。外部機器200がDRP機器である場合、電子機器100のポート150が、電力を供給する側であるソースとなり、外部機器200のポート250が、電力を受け取る側であるシンクとなることがある。この場合には、電子機器100に装填されたバッテリ(図示せず)の残電力、即ち、バッテリ残量が徐々に低下する。バッテリ残量が低下すると、電子機器100は正常に動作し得なくなる。従って、電子機器100のバッテリ残量の低下を防止する観点からは、電子機器100から外部機器200に電力供給がなされないようにすることが好ましい。 The electronic device 100 is an electronic device that can be both a DFP and a UFP and has a DRP that is a Type-C port capable of switching between these roles, that is, a DRP device. The DFP is a port that functions as a host and supplies power by default, that is, a Type-C port that is a source by default. The UFP is a type port that functions as a device by default and receives power, that is, a type-C port that is a sink by default. The electronic device 100 corresponding to the alternate mode needs to be provided with a DRP in order to enable the toggling described later. Therefore, the electronic device 100 includes a DRP. When the external device 200 is a DRP device, the port 150 of the electronic device 100 may be a source that supplies power, and the port 250 of the external device 200 may be a sink that receives power. In this case, the remaining power of the battery (not shown) loaded in the electronic device 100, that is, the remaining battery level gradually decreases. When the remaining battery level is low, the electronic device 100 cannot operate normally. Therefore, from the viewpoint of preventing a decrease in the remaining battery level of the electronic device 100, it is preferable not to supply power from the electronic device 100 to the external device 200.

図3は、USB Type−Cコネクタのピン配置を示す図、即ち、コネクタ101,201のピン配置を示す図である。USB Type−Cコネクタは、逆挿しした場合であっても正常に動作すべく、点対称なピン配置となっている。コネクタ101には、CC端子(CC1、CC2)101b(図1参照)、即ち、所定の端子が備えられている。即ち、電子機器100のポート150には、CC端子101bが備えられている。コネクタ201には、CC端子(CC1、CC2)201b(図1参照)が備えられている。即ち、外部機器200のポート250には、CC端子201bが備えられている。上述したように、DRPを備えた電子機器は、外部機器に電力を供給する側の機器であるDFP機器になることもできるし、外部機器から電力を受け取る側の機器であるUFP機器になることもできる。各々の機器の役割を決定する際には、CC端子101b、201bが用いられる。CC端子101bとCC端子201bとは、ケーブル300を介して電気的に接続される。CC端子101bの電位Vsは、接続検出部112を介してモニタリングされる。CC端子201bの電位は、後述する接続検出部212を介してモニタリングされる。 FIG. 3 is a diagram showing the pin arrangement of the USB Type-C connector, that is, a diagram showing the pin arrangement of the connectors 101 and 201. The USB Type-C connector has a point-symmetrical pin arrangement so that it can operate normally even when it is inserted in the reverse direction. The connector 101 is provided with CC terminals (CC1, CC2) 101b (see FIG. 1), that is, predetermined terminals. That is, the port 150 of the electronic device 100 is provided with the CC terminal 101b. The connector 201 is provided with CC terminals (CC1, CC2) 201b (see FIG. 1). That is, the port 250 of the external device 200 is provided with the CC terminal 201b. As described above, the electronic device equipped with the DRP can be a DFP device that is a device that supplies power to the external device, or a UFP device that is a device that receives power from the external device. You can also. CC terminals 101b and 201b are used when determining the role of each device. The CC terminal 101b and the CC terminal 201b are electrically connected via the cable 300. The potential Vs of the CC terminal 101b is monitored via the connection detection unit 112. The potential of the CC terminal 201b is monitored via the connection detection unit 212 described later.

コネクタ101には、VBUS端子(電源端子)101aやGND端子(グラウンド端子)が備えられている。コネクタ201には、VBUS端子201aやGND端子が備えられている。一方の機器から他方の機器に対してVBUS端子101a、201aを介して所定の電圧、即ち、VBUSが供給され得る。TX端子(TX1+、TX1−、TX2+、TX2−)は信号送信用の端子であり、RX端子(RX1+、RX1−、RX2+、RX2−)は信号受信用の端子であり、これらは高速データ伝送に対応し得る。SBU端子(SBU1、SBU2)は、サイドバンド信号端子であり、多様な用途に適宜用い得る。D+端子及びD−端子は、USB2.0をサポートするために用いられる。ケーブル300には、図3に示す各々の端子に対応する電線が備えられている。 The connector 101 is provided with a VBUS terminal (power supply terminal) 101a and a GND terminal (ground terminal). The connector 201 is provided with a VBUS terminal 201a and a GND terminal. A predetermined voltage, that is, VBUS may be supplied from one device to the other device via the VBUS terminals 101a and 201a. The TX terminals (TX1 +, TX1-, TX2 +, TX2-) are terminals for signal transmission, and the RX terminals (RX1 +, RX1-, RX2 +, RX2-) are terminals for signal reception, and these are for high-speed data transmission. Can be accommodated. The SBU terminals (SBU1, SBU2) are sideband signal terminals and can be appropriately used for various purposes. The D + terminal and the D- terminal are used to support USB 2.0. The cable 300 is provided with an electric wire corresponding to each terminal shown in FIG.

電子機器100がDFP機器、即ち、デフォルトにおいて電力を供給する側となった場合には、電子機器100は、コネクタ101に備えられたVBUS端子101aに所定の電圧、即ち、VBUSを印加する。VBUSの電圧は、例えば5Vである。電子機器100と外部機器200とは、接続が確立した後に、ソースとシンクの役割を交換するパワーロールスワップ(PR SWAP)を実行することが可能である。しかし、パワーロールスワップが実行されるまでの間は、電子機器100は外部機器200に対して電力を供給せざるをえない。従って、電子機器100のバッテリ400の残量低下を防止する観点からは、電子機器100と外部機器200との接続が確立する際に、電子機器100がDFP機器とならないようにすることが好ましい。 When the electronic device 100 becomes a DFP device, that is, a power supply side by default, the electronic device 100 applies a predetermined voltage, that is, VBUS to the VBUS terminal 101a provided in the connector 101. The voltage of VBUS is, for example, 5V. After the connection is established, the electronic device 100 and the external device 200 can perform a power roll swap (PR SWAP) in which the roles of the source and the sink are exchanged. However, until the power roll swap is executed, the electronic device 100 has no choice but to supply electric power to the external device 200. Therefore, from the viewpoint of preventing the remaining amount of the battery 400 of the electronic device 100 from decreasing, it is preferable that the electronic device 100 does not become a DFP device when the connection between the electronic device 100 and the external device 200 is established.

図1に示すように、電子機器100は、コネクタ101と、プルアップ抵抗103と、プルダウン抵抗104と、スイッチ107と、スイッチ制御部109と、接続検出部112と、システム制御部110と、タイマ部111と、電源部116とを備えている。 As shown in FIG. 1, the electronic device 100 includes a connector 101, a pull-up resistor 103, a pull-down resistor 104, a switch 107, a switch control unit 109, a connection detection unit 112, a system control unit 110, and a timer. A unit 111 and a power supply unit 116 are provided.

プルアップ抵抗103の一方の端部は、電源線に接続されている。電源線は所定の電圧の定電圧電源に接続されており、電源線の電位はVCCとなっている。プルアップ抵抗103の他方の端部は、スイッチ107に接続されている。プルアップ抵抗103は、スイッチ107を介してCC端子101bに接続可能である。プルアップ抵抗103の抵抗値は、USB Type−C規格に規定されており、例えば22kΩである。VCCの電圧値は、USB Type−C規格に規定されており、例えば5Vである。VCCは、VBUS端子101aを介して外部機器200に供給される電源、即ち、VBUSとは別個に生成される。 One end of the pull-up resistor 103 is connected to the power supply line. The power supply line is connected to a constant voltage power supply having a predetermined voltage, and the potential of the power supply line is VCS. The other end of the pull-up resistor 103 is connected to the switch 107. The pull-up resistor 103 can be connected to the CC terminal 101b via the switch 107. The resistance value of the pull-up resistor 103 is specified in the USB Type-C standard, and is, for example, 22 kΩ. The voltage value of the VCS is specified in the USB Type-C standard, and is, for example, 5V. The VCS is generated separately from the power supply supplied to the external device 200 via the VBUS terminal 101a, that is, the VBUS.

プルダウン抵抗104の一方の端部は、接地線に接続されている。接地線の電位は接地電位GND、即ち、0Vである。プルダウン抵抗104の他方の端部は、スイッチ107に接続されている。プルダウン抵抗104は、スイッチ107を介してCC端子101bに接続可能である。プルダウン抵抗104の抵抗値は、USB Type−C規格に規定されており、例えば5.1kΩである。プルアップ抵抗103は、スイッチ107を介して所定の端子、即ち、CC端子101bに接続可能である。また、プルダウン抵抗104は、スイッチ107を介して所定の端子、即ち、CC端子101bに接続可能である。 One end of the pull-down resistor 104 is connected to the ground wire. The potential of the ground wire is the ground potential GND, that is, 0V. The other end of the pull-down resistor 104 is connected to the switch 107. The pull-down resistor 104 can be connected to the CC terminal 101b via the switch 107. The resistance value of the pull-down resistor 104 is specified in the USB Type-C standard, and is, for example, 5.1 kΩ. The pull-up resistor 103 can be connected to a predetermined terminal, that is, the CC terminal 101b via the switch 107. Further, the pull-down resistor 104 can be connected to a predetermined terminal, that is, the CC terminal 101b via the switch 107.

スイッチ107は、接続を切り替えるものである。スイッチ107は、ある状態においては、CC端子101bとプルアップ抵抗103とを接続する(プルアップ状態)。スイッチ107は、他の状態においては、CC端子101bとプルダウン抵抗104とを接続する(プルダウン状態)。スイッチ107は、更に他の状態においては、CC端子101bをプルアップ抵抗103にもプルダウン抵抗104にも接続しない(開放状態)。スイッチ107は、スイッチ制御部109によって制御される。 The switch 107 switches the connection. In a certain state, the switch 107 connects the CC terminal 101b and the pull-up resistor 103 (pull-up state). In other states, the switch 107 connects the CC terminal 101b and the pull-down resistor 104 (pull-down state). In still other states, the switch 107 does not connect the CC terminal 101b to either the pull-up resistor 103 or the pull-down resistor 104 (open state). The switch 107 is controlled by the switch control unit 109.

スイッチ制御部(SW制御部)109は、システム制御部110からの指示に基づいてスイッチ107を制御する。スイッチ制御部109は、CC端子101bがプルアップ抵抗103に接続されるようにスイッチ107を制御し得る。CC端子101bをプルアップ抵抗103に接続することによって、電子機器100がホスト機器、即ち、DFP機器であることを外部機器200に対して示し得る。スイッチ制御部109は、CC端子101bがプルダウン抵抗104に接続されるようにスイッチ107を制御し得る。CC端子101bをプルダウン抵抗104に接続することによって、電子機器100がデバイス機器、即ち、UFP機器であることを外部機器200に対して示し得る。スイッチ制御部109は、スイッチ107を周期的に切り替え得る。スイッチ107を周期的に切り替えることよって、電子機器100がホスト機器にもデバイス機器にもなり得るDRP機器であることを外部機器200に対して示し得る。スイッチ制御部109は、スイッチ107を開放状態に設定し得る。即ち、スイッチ制御部109は、CC端子101bをプルアップ抵抗103とプルダウン抵抗104のいずれにも接続しない状態とし得る。スイッチ制御部109は、電子機器100と外部機器200とがケーブル300を介して接続されたことが接続検出部112によって判定されるまで、CC端子101bがプルアップ抵抗103とプルダウン抵抗104とに交互に接続されるように制御を行う。CC端子101bをプルアップ抵抗103とプルダウン抵抗104とに交互に周期的に接続することは、トグリングと称される。 The switch control unit (SW control unit) 109 controls the switch 107 based on an instruction from the system control unit 110. The switch control unit 109 can control the switch 107 so that the CC terminal 101b is connected to the pull-up resistor 103. By connecting the CC terminal 101b to the pull-up resistor 103, it is possible to indicate to the external device 200 that the electronic device 100 is a host device, that is, a DFP device. The switch control unit 109 can control the switch 107 so that the CC terminal 101b is connected to the pull-down resistor 104. By connecting the CC terminal 101b to the pull-down resistor 104, it is possible to indicate to the external device 200 that the electronic device 100 is a device device, that is, a UFP device. The switch control unit 109 may periodically switch the switch 107. By periodically switching the switch 107, it is possible to indicate to the external device 200 that the electronic device 100 is a DRP device that can be both a host device and a device device. The switch control unit 109 may set the switch 107 to the open state. That is, the switch control unit 109 may be in a state in which the CC terminal 101b is not connected to either the pull-up resistor 103 or the pull-down resistor 104. In the switch control unit 109, the CC terminal 101b alternates between the pull-up resistor 103 and the pull-down resistor 104 until the connection detection unit 112 determines that the electronic device 100 and the external device 200 are connected via the cable 300. Control so that it is connected to. The alternating periodic connection of the CC terminal 101b to the pull-up resistor 103 and the pull-down resistor 104 is called toggling.

接続検出部(接続判定回路、接続検出部)112は、電子機器100と外部機器200とがケーブル300を介して接続されたか否かを判定する。接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されたか否かの判定結果を、システム制御部110に出力する。即ち、電子機器100と外部機器200とがケーブル300を介して接続された場合、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されたことを示す情報をシステム制御部110に対して出力する。接続検出部112は、CC端子101bの電位Vsが以下のような式(1)で示される所定の範囲内である場合に、電子機器100と外部機器200とがケーブル300を介して接続されたと判定する。電圧Vminは、例えば0.2Vであり、電圧Vmaxは、例えば2.04Vである。電圧Vmin、Vmaxは、例えば、USB Type−C規格に規定されている。
Vmin≦Vs<Vmax ・・・(1)
The connection detection unit (connection determination circuit, connection detection unit) 112 determines whether or not the electronic device 100 and the external device 200 are connected via the cable 300. The connection detection unit 112 outputs to the system control unit 110 a determination result of whether or not the electronic device 100 and the external device 200 are connected via the cable 300. That is, when the electronic device 100 and the external device 200 are connected via the cable 300, the connection detection unit 112 provides information indicating that the electronic device 100 and the external device 200 are connected via the cable 300. Output to the control unit 110. The connection detection unit 112 states that the electronic device 100 and the external device 200 are connected via the cable 300 when the potential Vs of the CC terminal 101b is within a predetermined range represented by the following equation (1). judge. The voltage Vmin is, for example, 0.2V, and the voltage Vmax is, for example, 2.04V. The voltages Vmin and Vmax are defined in, for example, the USB Type-C standard.
Vmin ≤ Vs <Vmax ... (1)

式(1)で示される所定の範囲の上限の電圧Vmaxは、プルアップ抵抗102に接続された電源線の電位、即ち、VCCよりも低い。また、式(1)で示される所定の範囲の下限の電圧Vminは、プルダウン抵抗104に接続された接地線の電位、即ち、GNDよりも高い。 The upper limit voltage Vmax in the predetermined range represented by the formula (1) is lower than the potential of the power supply line connected to the pull-up resistor 102, that is, the VCS. Further, the lower limit voltage Vmin of the predetermined range represented by the equation (1) is higher than the potential of the ground wire connected to the pull-down resistor 104, that is, GND.

例えば、CC端子101bがスイッチ107を介してプルアップ抵抗103に接続されており、電子機器100と外部機器200とがケーブル300を介して接続されていない場合には、CC端子101bの電位VsはVCCである。VCCは、式(1)に示す所定の範囲内ではない電位である。この場合、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されていると判定しない。 For example, when the CC terminal 101b is connected to the pull-up resistor 103 via the switch 107 and the electronic device 100 and the external device 200 are not connected via the cable 300, the potential Vs of the CC terminal 101b is set. It is a VCS. The VCS is a potential that is not within the predetermined range shown in the formula (1). In this case, the connection detection unit 112 does not determine that the electronic device 100 and the external device 200 are connected via the cable 300.

また、CC端子101bがスイッチ107を介してプルダウン抵抗104に接続されており、電子機器100と外部機器200とがケーブル300を介して接続されていない場合には、CC端子101bの電位VsはGND(0V)である。GNDは、式(1)に示す所定の範囲内ではない電位である。この場合、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されていると判定しない。 Further, when the CC terminal 101b is connected to the pull-down resistor 104 via the switch 107 and the electronic device 100 and the external device 200 are not connected via the cable 300, the potential Vs of the CC terminal 101b is GND. (0V). GND is a potential that is not within the predetermined range shown in the formula (1). In this case, the connection detection unit 112 does not determine that the electronic device 100 and the external device 200 are connected via the cable 300.

このように、電子機器100と外部機器200とがケーブル300を介して接続されていない場合には、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されていると判定しない。 In this way, when the electronic device 100 and the external device 200 are not connected via the cable 300, the connection detection unit 112 connects the electronic device 100 and the external device 200 via the cable 300. Is not judged.

CC端子101bとCC端子201bとが電気的に接続されている場合であっても、CC端子101bがプルアップ抵抗103に接続され、CC端子201bがプルアップ抵抗203に接続されている場合、CC端子101bの電位VsはVCCである。VCCは、式(1)に示す所定の範囲内ではない電位である。この場合、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されていると判定しない。 Even when the CC terminal 101b and the CC terminal 201b are electrically connected, if the CC terminal 101b is connected to the pull-up resistor 103 and the CC terminal 201b is connected to the pull-up resistor 203, the CC The potential Vs of the terminal 101b is VCS. The VCS is a potential that is not within the predetermined range shown in the formula (1). In this case, the connection detection unit 112 does not determine that the electronic device 100 and the external device 200 are connected via the cable 300.

CC端子101bとCC端子201bとが電気的に接続されている場合であっても、CC端子101bがプルダウン抵抗104に接続され、CC端子201bがプルダウン抵抗204に接続されている場合、CC端子101bの電位Vsは接地電位GNDである。接地電位GNDは、式(1)に示す所定の範囲内ではない電位である。この場合、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されていると判定しない。 Even when the CC terminal 101b and the CC terminal 201b are electrically connected, if the CC terminal 101b is connected to the pull-down resistor 104 and the CC terminal 201b is connected to the pull-down resistor 204, the CC terminal 101b The potential Vs of is the ground potential GND. The ground potential GND is a potential that is not within the predetermined range shown in the equation (1). In this case, the connection detection unit 112 does not determine that the electronic device 100 and the external device 200 are connected via the cable 300.

このように、電子機器100と外部機器200とがケーブル300を介して接続されている場合であっても、CC端子101b、201bのいずれもがプルアップ抵抗103,203に接続されている場合には、CC端子101bの電位VsはVCCとなる。また、電子機器100と外部機器200とがケーブル300を介して接続されている場合であっても、CC端子101b、201bのいずれもがプルダウン抵抗104,204に接続されている場合には、CC端子101bの電位VsはGNDとなる。従って、これらの場合にも、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されていると判定しない。 In this way, even when the electronic device 100 and the external device 200 are connected via the cable 300, when both the CC terminals 101b and 201b are connected to the pull-up resistors 103 and 203. The potential Vs of the CC terminal 101b is VCS. Even when the electronic device 100 and the external device 200 are connected via the cable 300, if both the CC terminals 101b and 201b are connected to the pull-down resistors 104 and 204, the CC The potential Vs of the terminal 101b is GND. Therefore, even in these cases, the connection detection unit 112 does not determine that the electronic device 100 and the external device 200 are connected via the cable 300.

図1に示すように、CC端子101bがプルアップ抵抗103に接続され、CC端子201bがプルダウン抵抗204に接続され、CC端子101bとCC端子201bとがケーブル300を介して接続されている場合には、以下のようになる。即ち、CC端子101bの電位Vsは、式(1)に示す所定の範囲内の電位となる。この場合、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されていると判定する。 As shown in FIG. 1, when the CC terminal 101b is connected to the pull-up resistor 103, the CC terminal 201b is connected to the pull-down resistor 204, and the CC terminal 101b and the CC terminal 201b are connected via the cable 300. Is as follows. That is, the potential Vs of the CC terminal 101b is a potential within a predetermined range shown in the equation (1). In this case, the connection detection unit 112 determines that the electronic device 100 and the external device 200 are connected via the cable 300.

図2に示すように、CC端子101bがプルダウン抵抗104に接続され、CC端子201bがプルアップ抵抗203に接続され、CC端子101bとCC端子201bとがケーブル300を介して接続されている場合には、以下のようになる。即ち、CC端子101bの電位Vsは、式(1)に示す所定の範囲内の電位となる。この場合、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されていると判定する。 As shown in FIG. 2, when the CC terminal 101b is connected to the pull-down resistor 104, the CC terminal 201b is connected to the pull-up resistor 203, and the CC terminal 101b and the CC terminal 201b are connected via the cable 300. Is as follows. That is, the potential Vs of the CC terminal 101b is a potential within a predetermined range shown in the equation (1). In this case, the connection detection unit 112 determines that the electronic device 100 and the external device 200 are connected via the cable 300.

電子機器100と外部機器200とがケーブル300を介して接続されていることが接続検出部112によって判定されると、システム制御部110は、トグリングを終了するようにスイッチ制御部109を制御する。トグリングが終了した段階でCC端子101bに接続されている抵抗が、CC端子101bに接続される抵抗としてスイッチ制御部109によって選択された抵抗である。 When the connection detection unit 112 determines that the electronic device 100 and the external device 200 are connected via the cable 300, the system control unit 110 controls the switch control unit 109 so as to end the toggle ring. The resistor connected to the CC terminal 101b at the stage when the toggling is completed is the resistor selected by the switch control unit 109 as the resistor connected to the CC terminal 101b.

CC端子101bに接続される抵抗としてプルアップ抵抗103がスイッチ制御部109によって選択された場合、電子機器100は、DFP機器として外部機器200に接続される。即ち、この場合、電子機器100のポート150はソースとなり、外部機器200のポート250はシンクとなる。電子機器100は、CC端子101bにプルアップ抵抗103が接続された状態で外部機器200との接続が確立した場合には、外部機器200にポート150を介して給電可能な接続状態になる。 When the pull-up resistor 103 is selected by the switch control unit 109 as the resistor connected to the CC terminal 101b, the electronic device 100 is connected to the external device 200 as a DFP device. That is, in this case, the port 150 of the electronic device 100 serves as a source, and the port 250 of the external device 200 serves as a sink. When the connection with the external device 200 is established with the pull-up resistor 103 connected to the CC terminal 101b, the electronic device 100 is in a connected state in which power can be supplied to the external device 200 via the port 150.

一方、CC端子101bに接続される抵抗としてプルダウン抵抗104がスイッチ制御部109によって選択された場合、電子機器100は、UFP機器として外部機器200に接続される。即ち、この場合、電子機器100のポート150はシンクとなり、外部機器200のポート250はソースとなる。電子機器100は、CC端子101bにプルダウン抵抗104が接続された状態で外部機器200との接続が確立した場合には、外部機器200からポート150を介して受電可能な接続状態となる。 On the other hand, when the pull-down resistor 104 is selected by the switch control unit 109 as the resistor connected to the CC terminal 101b, the electronic device 100 is connected to the external device 200 as a UFP device. That is, in this case, the port 150 of the electronic device 100 serves as a sink, and the port 250 of the external device 200 serves as a source. When the connection with the external device 200 is established with the pull-down resistor 104 connected to the CC terminal 101b, the electronic device 100 is in a connected state in which power can be received from the external device 200 via the port 150.

システム制御部110は、電子機器100の全体の制御を司る。システム制御部110は、電子機器100に備えられた各々の機能ブロック、即ち、スイッチ制御部109、タイマ部111、接続検出部112、及び、電源部116等を制御する。システム制御部110としては、例えばCPU(Central Processing Unit)等が用いられる。システム制御部110は、電子機器100に備えられた各々の機能ブロックから出力される情報を取得し、各々の機能ブロックの動作を制御する信号を出力する。システム制御部110は、スイッチ制御部109と相俟って、スイッチ107を周期的に切り替える制御部(制御手段)として機能し得る。システム制御部110は、電子機器100と外部機器200とがケーブル300を介して接続されているか否かについての接続検出部112による判定結果に基づいて、トグリングを継続するか否かを示す情報をスイッチ制御部109に対して出力する。電子機器100と外部機器200とがケーブル300を介して接続されたと接続検出部112が判定した場合には、システム制御部110は、トグリングを終了するようにスイッチ制御部109を制御する。これにより、CC端子101bに接続される抵抗が固定される。また、システム制御部110は、電子機器100と外部機器200とがケーブル300を介して接続された後に、CC端子101bに接続されている抵抗を示す情報をスイッチ制御部109から取得し、取得した情報に基づいて以下のような判定を行う。即ち、システム制御部110は、電子機器100がDFP機器として外部機器200に接続されたか、UFP機器として外部機器200に接続されたかを判定する。 The system control unit 110 controls the entire electronic device 100. The system control unit 110 controls each functional block provided in the electronic device 100, that is, a switch control unit 109, a timer unit 111, a connection detection unit 112, a power supply unit 116, and the like. As the system control unit 110, for example, a CPU (Central Processing Unit) or the like is used. The system control unit 110 acquires information output from each functional block provided in the electronic device 100, and outputs a signal for controlling the operation of each functional block. The system control unit 110, in combination with the switch control unit 109, can function as a control unit (control means) for periodically switching the switch 107. The system control unit 110 provides information indicating whether or not to continue toggling based on the determination result by the connection detection unit 112 as to whether or not the electronic device 100 and the external device 200 are connected via the cable 300. Output to the switch control unit 109. When the connection detection unit 112 determines that the electronic device 100 and the external device 200 are connected via the cable 300, the system control unit 110 controls the switch control unit 109 so as to end the toggle ring. As a result, the resistor connected to the CC terminal 101b is fixed. Further, the system control unit 110 acquires information indicating the resistance connected to the CC terminal 101b from the switch control unit 109 after the electronic device 100 and the external device 200 are connected via the cable 300. The following judgment is made based on the information. That is, the system control unit 110 determines whether the electronic device 100 is connected to the external device 200 as a DFP device or connected to the external device 200 as a UFP device.

システム制御部110は、外部機器200との間で情報を送受信するために、CC端子101bの電圧を制御する。システム制御部110は、USB Type−C Power Delivery(PD)規格に準拠した通信、即ち、PD通信を行う。システム制御部110は、CC端子101bを介して、USB Type−C規格に準拠した通信を行う。システム制御部110は、外部機器200との間で接続が確立した後に、送受信の試行を行い、PD通信におけるメッセージ授受が成功したか否かを判定する。PD通信おけるメッセージ授受が成功した場合には、電子機器100と外部機器200の双方がPD規格に対応していると判定され、以後、PD通信を用いた制御が行われる。PD通信におけるメッセージ授受が成功しなかった場合には、電子機器100と外部機器200とのうちのいずれか又は双方がPD規格に対応していないと判定される。電子機器100と外部機器200とのうちの少なくともいずれかがPD規格に対応していない場合には、モニタとの間でDisplayPort(DP)通信をすることが可能なオルタネートモードで動作し得ない。ここでは、電子機器100と外部機器200のいずれもがPD規格に対応しているものとする。 The system control unit 110 controls the voltage of the CC terminal 101b in order to send and receive information to and from the external device 200. The system control unit 110 performs communication conforming to the USB Type-C Power Delivery (PD) standard, that is, PD communication. The system control unit 110 performs communication conforming to the USB Type-C standard via the CC terminal 101b. After the connection with the external device 200 is established, the system control unit 110 makes a transmission / reception trial and determines whether or not the message transmission / reception in the PD communication is successful. When the message transmission / reception in the PD communication is successful, it is determined that both the electronic device 100 and the external device 200 are compatible with the PD standard, and thereafter, control using the PD communication is performed. If the message exchange in the PD communication is not successful, it is determined that either or both of the electronic device 100 and the external device 200 does not correspond to the PD standard. If at least one of the electronic device 100 and the external device 200 does not support the PD standard, it cannot operate in the alternate mode capable of DisplayPort (DP) communication with the monitor. Here, it is assumed that both the electronic device 100 and the external device 200 correspond to the PD standard.

タイマ部111は、時間を計測するものである。タイマ部111によって計測された時間を示す情報は、システム制御部110に供給される。 The timer unit 111 measures the time. Information indicating the time measured by the timer unit 111 is supplied to the system control unit 110.

電源部(電力制御回路)116は、不図示の電圧変換部が備えられている。電圧変換部は、例えばバッテリ(図示せず)等から供給される電力を用いて所定の電圧、即ち、VCCやVBUS等を生成する。電源部116は、電子機器100の内部に備えられた電子回路や駆動部品等への電力の供給を制御する。また、電源部116は、外部機器200から受け取る電力をバッテリに充電する。VBUS_Sourceは、電子機器100から外部機器200に供給されるVBUSを示しており、スイッチ117とVBUS端子101aとを介して外部機器200に供給される。VBUS_Sinkは、外部機器200から電子機器100に供給されるVBUSを示しており、電子機器100に備えられたバッテリ等に供給される。システム制御部110は、電子機器100のポート150をソースとする場合には、スイッチ117をオン状態にするとともに、スイッチ118をオフ状態とする。これにより、電子機器100からVBUS端子101aを介して外部機器200にVBUSが供給される。システム制御部110は、電子機器100のポート150をシンクとする場合には、スイッチ117をオフ状態にするとともに、スイッチ118をオン状態とする。これにより、外部機器200からのVBUSがVBUS端子101aを介して電子機器100のバッテリ等が供給され、当該バッテリに対して充電が行われる。 The power supply unit (power control circuit) 116 includes a voltage conversion unit (not shown). The voltage conversion unit generates a predetermined voltage, that is, VCS, VBUS, or the like by using the electric power supplied from, for example, a battery (not shown) or the like. The power supply unit 116 controls the supply of electric power to electronic circuits, drive components, and the like provided inside the electronic device 100. Further, the power supply unit 116 charges the battery with the electric power received from the external device 200. VBUS_Source indicates VBUS supplied from the electronic device 100 to the external device 200, and is supplied to the external device 200 via the switch 117 and the VBUS terminal 101a. VBUS_Sink indicates VBUS supplied from the external device 200 to the electronic device 100, and is supplied to a battery or the like provided in the electronic device 100. When the port 150 of the electronic device 100 is used as the source, the system control unit 110 turns on the switch 117 and turns off the switch 118. As a result, VBUS is supplied from the electronic device 100 to the external device 200 via the VBUS terminal 101a. When the port 150 of the electronic device 100 is used as a sink, the system control unit 110 turns off the switch 117 and turns on the switch 118. As a result, the VBUS from the external device 200 is supplied with the battery of the electronic device 100 or the like via the VBUS terminal 101a, and the battery is charged.

外部機器200は、電子機器100と同様に、DRPポートを備えた機器、即ち、DRP機器である。外部機器200は、コネクタ201と、プルアップ抵抗203と、プルダウン抵抗204と、スイッチ207と、スイッチ制御部209と、接続検出部212と、システム制御部210と、タイマ部211と、電源部216とを備えている。電源部216には、スイッチ217,218が備えられている。外部機器200の各々の機能ブロックは、電子機器100における同名の機能ブロックと同様であるため、説明を省略する。 The external device 200 is a device provided with a DRP port, that is, a DRP device, like the electronic device 100. The external device 200 includes a connector 201, a pull-up resistor 203, a pull-down resistor 204, a switch 207, a switch control unit 209, a connection detection unit 212, a system control unit 210, a timer unit 211, and a power supply unit 216. And have. The power supply unit 216 is provided with switches 217 and 218. Since each functional block of the external device 200 is the same as the functional block of the same name in the electronic device 100, the description thereof will be omitted.

電子機器100のCC端子101bがプルアップ抵抗103に接続され、且つ、外部機器200のCC端子201bがプルダウン抵抗204に接続された状態で、電子機器100と外部機器200との接続が確立した場合には、以下のようになる。即ち、電子機器100はDFP機器とされ、外部機器200はUFP機器とされる。一方、電子機器100のCC端子101bがプルダウン抵抗104に接続され、且つ、外部機器200のCC端子101bがプルアップ抵抗203に接続された状態で、電子機器100と外部機器200との接続が確立した場合には、以下のようになる。即ち、電子機器100はUFP機器とされ、外部機器200はDFP機器とされる。 When the connection between the electronic device 100 and the external device 200 is established with the CC terminal 101b of the electronic device 100 connected to the pull-up resistor 103 and the CC terminal 201b of the external device 200 connected to the pull-down resistor 204. Is as follows. That is, the electronic device 100 is a DFP device, and the external device 200 is a UFP device. On the other hand, the connection between the electronic device 100 and the external device 200 is established with the CC terminal 101b of the electronic device 100 connected to the pull-down resistor 104 and the CC terminal 101b of the external device 200 connected to the pull-up resistor 203. If so, it will be as follows. That is, the electronic device 100 is a UFP device, and the external device 200 is a DFP device.

電子機器100のCC端子101bがプルアップ抵抗103に接続された状態で、電子機器100と外部機器200とがケーブル300を介して接続されていることが検出された場合、以下のような処理が行われる。即ち、電子機器100は、所定時間tVBUSON以内にVBUS端子101aを介して外部機器200に所定の電圧、即ち、VBUSを供給する。所定時間tVBUSONは、Universal Serial Bus Type-C Cable and Connector Specification Revision 1.2において規定されており、275msである。上述したように、電子機器100のポート150が、電力を供給する側であるソースとなり、外部機器200のポート250が、電力を受け取る側であるシンクとなった場合には、以下のようになる。即ち、電子機器100から外部機器200に電力が供給され、電子機器100のバッテリ残量が徐々に低下する。バッテリ残量が低下すると、電子機器100は正常に動作し得なくなる。従って、上述したように、バッテリ残量の低下を防止する観点からは、電子機器100のポート150がソースとならないようにすることが好ましい。 When it is detected that the electronic device 100 and the external device 200 are connected via the cable 300 while the CC terminal 101b of the electronic device 100 is connected to the pull-up resistor 103, the following processing is performed. Will be done. That is, the electronic device 100 supplies a predetermined voltage, that is, VBUS, to the external device 200 via the VBUS terminal 101a within a predetermined time tVBUSON. The predetermined time tVBUSON is specified in Universal Serial Bus Type-C Cable and Connector Specification Revision 1.2 and is 275 ms. As described above, when the port 150 of the electronic device 100 becomes the source on the power supply side and the port 250 of the external device 200 becomes the sink on the power receiving side, the result is as follows. .. That is, power is supplied from the electronic device 100 to the external device 200, and the remaining battery level of the electronic device 100 gradually decreases. When the remaining battery level is low, the electronic device 100 cannot operate normally. Therefore, as described above, from the viewpoint of preventing a decrease in the remaining battery level, it is preferable that the port 150 of the electronic device 100 does not serve as a source.

しかしながら、DRP機器は、所定周期tDRPでCC端子101bの極性を変化させることを要する。所定周期tDRPは、Universal Serial Bus Type-C Cable and Connector Specification Revision 1.2において規定されており、50ms〜100msである。CC端子101bの極性が周期的に変化するため、CC端子101bは、プルダウン状態になることもあるし、プルアップ状態になることもある。 However, the DRP device needs to change the polarity of the CC terminal 101b in a predetermined cycle tDRP. The predetermined period tDRP is specified in Universal Serial Bus Type-C Cable and Connector Specification Revision 1.2, and is 50 ms to 100 ms. Since the polarity of the CC terminal 101b changes periodically, the CC terminal 101b may be in a pull-down state or a pull-up state.

CC端子101bがプルアップ抵抗103に接続されている状態で、電子機器100と外部機器200とがケーブル300を介して接続されていることが検出された場合、システム制御部110は以下のように動作する。即ち、システム制御部110は、スイッチ107を開放状態にするように、スイッチ制御部109を制御する。これにより、CC端子101bがプルアップ抵抗103にもプルダウン抵抗104にも接続されない状態となる。スイッチ107が開放状態になると、CC端子101bの電位Vsは上記のような式(1)に示す所定の範囲内の電位ではなくなる。CC端子101bの電位Vsが上記のような式(1)に示す所定の範囲内の電位でなくなると、システム制御部110は、電子機器100と外部機器200との接続が切断されたと判定する。電子機器100と外部機器200との接続が切断されたと判定されるため、電子機器100がDFP機器として外部機器200に接続されるのを防止することができる。この後、システム制御部110は、トグリングが再開されるようにスイッチ制御部109を制御する。 When it is detected that the electronic device 100 and the external device 200 are connected via the cable 300 while the CC terminal 101b is connected to the pull-up resistor 103, the system control unit 110 performs as follows. Operate. That is, the system control unit 110 controls the switch control unit 109 so as to open the switch 107. As a result, the CC terminal 101b is not connected to either the pull-up resistor 103 or the pull-down resistor 104. When the switch 107 is opened, the potential Vs of the CC terminal 101b is no longer within the predetermined range represented by the above equation (1). When the potential Vs of the CC terminal 101b is no longer within the predetermined range represented by the above formula (1), the system control unit 110 determines that the connection between the electronic device 100 and the external device 200 is disconnected. Since it is determined that the connection between the electronic device 100 and the external device 200 is disconnected, it is possible to prevent the electronic device 100 from being connected to the external device 200 as a DFP device. After this, the system control unit 110 controls the switch control unit 109 so that the toggle ring is restarted.

図4は、本実施形態による電子機器100の動作を示すフローチャートである。
ステップS401において、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されているか否かを判定する。電子機器100と外部機器200とがケーブル300を介して接続されているか否かは、CC端子101bの電位Vsが式(1)に示す所定の範囲内であるか否かによって判定される。電子機器100と外部機器200とがケーブル300を介して接続されていると判定された場合には(ステップS401においてYES)、ステップS402に移行する。電子機器100と外部機器200とがケーブル300を介して接続されていないと判定された場合には(ステップS401においてNO)、ステップS401が繰り返される。
FIG. 4 is a flowchart showing the operation of the electronic device 100 according to the present embodiment.
In step S401, the connection detection unit 112 determines whether or not the electronic device 100 and the external device 200 are connected via the cable 300. Whether or not the electronic device 100 and the external device 200 are connected via the cable 300 is determined by whether or not the potential Vs of the CC terminal 101b is within a predetermined range shown in the equation (1). If it is determined that the electronic device 100 and the external device 200 are connected via the cable 300 (YES in step S401), the process proceeds to step S402. If it is determined that the electronic device 100 and the external device 200 are not connected via the cable 300 (NO in step S401), step S401 is repeated.

ステップS402において、システム制御部110は、CC端子101bがプルアップ抵抗103に接続されている否か、即ち、プルアップ状態であるか否かを検出する。CC端子101bがプルアップ抵抗103に接続されている場合には(ステップS402においてYES)、ステップS403に移行する。CC端子101bがプルダウン抵抗104に接続されている場合には(ステップS402においてNO)、ステップS404に移行する。 In step S402, the system control unit 110 detects whether or not the CC terminal 101b is connected to the pull-up resistor 103, that is, whether or not it is in the pull-up state. When the CC terminal 101b is connected to the pull-up resistor 103 (YES in step S402), the process proceeds to step S403. If the CC terminal 101b is connected to the pull-down resistor 104 (NO in step S402), the process proceeds to step S404.

ステップS404において、システム制御部110は、電子機器100をUFP機器として外部機器200に接続する。具体的には、電子機器100のシステム制御部110と外部機器200のシステム制御部210との間でPD通信が行われ、電子機器100と外部機器200との間でPD規格に基づく接続、即ち、PD接続が確立される。電子機器100はUFP機器とされ、外部機器200はDFP機器とされる。電子機器100から外部機器200には電力が供給されない一方、外部機器200から電子機器100に電力が供給される。 In step S404, the system control unit 110 connects the electronic device 100 to the external device 200 as a UFP device. Specifically, PD communication is performed between the system control unit 110 of the electronic device 100 and the system control unit 210 of the external device 200, and the connection between the electronic device 100 and the external device 200 based on the PD standard, that is, , PD connection is established. The electronic device 100 is a UFP device, and the external device 200 is a DFP device. While power is not supplied from the electronic device 100 to the external device 200, power is supplied from the external device 200 to the electronic device 100.

ステップS403において、システム制御部110は、電子機器100と外部機器200とがケーブル300を介して接続されたことが検出されてから所定時間tVBUSON以内にスイッチ107が開放状態になるように、スイッチ制御部109を制御する。即ち、システム制御部110は、USB Type−C等の所定の規格に基づく接続が外部機器200との間で確立する前に、CC端子101bとプルアップ抵抗103とが未接続になるようにスイッチ制御部109を制御する。これにより、CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位となったことが検出されてから所定時間tVBUSON以内にスイッチ107が開放状態になる。所定時間tVBUSONは、上述したように、275msである。スイッチ207が開放状態になると、電子機器100のシステム制御部110と外部機器200のシステム制御部210は、電子機器100と外部機器200との間の接続が切断されたと判定する。これにより、電子機器100がDFP機器として外部機器200に接続されることが防止され、電子機器100から外部機器200への電力の供給が回避される。なお、ここでは、電子機器100と外部機器200とがケーブル300を介して接続されたことが検出されてから所定時間tVBUSON以内にスイッチ107を開放状態にする場合を例に説明したが、これに限定されるものではない。電子機器100と外部機器200とがケーブル300を介して接続されたことが検出されてから所定時間tVBUSON以内に、CC端子101bをプルダウン抵抗104に接続するようにしてもよい。CC端子101bをプルダウン抵抗104に接続することによっても、CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位でなくなる。従って、このようにした場合にも、電子機器100がDFP機器として外部機器200に接続されることが防止され、電子機器100から外部機器200への電力の供給が回避される。 In step S403, the system control unit 110 controls the switch so that the switch 107 is opened within a predetermined time tVBUSON after it is detected that the electronic device 100 and the external device 200 are connected via the cable 300. The unit 109 is controlled. That is, the system control unit 110 switches so that the CC terminal 101b and the pull-up resistor 103 are not connected before a connection based on a predetermined standard such as USB Type-C is established with the external device 200. Controls the control unit 109. As a result, the switch 107 is opened within a predetermined time tVBUSON after it is detected that the potential Vs of the CC terminal 101b is within the predetermined range shown in the equation (1). The predetermined time tVBUSON is 275 ms as described above. When the switch 207 is opened, the system control unit 110 of the electronic device 100 and the system control unit 210 of the external device 200 determine that the connection between the electronic device 100 and the external device 200 has been disconnected. As a result, the electronic device 100 is prevented from being connected to the external device 200 as a DFP device, and the supply of electric power from the electronic device 100 to the external device 200 is avoided. Here, a case where the switch 107 is opened within a predetermined time tVBUSON after it is detected that the electronic device 100 and the external device 200 are connected via the cable 300 has been described as an example. It is not limited. The CC terminal 101b may be connected to the pull-down resistor 104 within a predetermined time tVBUSON after it is detected that the electronic device 100 and the external device 200 are connected via the cable 300. By connecting the CC terminal 101b to the pull-down resistor 104, the potential Vs of the CC terminal 101b is not within the predetermined range shown in the equation (1). Therefore, even in this case, the electronic device 100 is prevented from being connected to the external device 200 as a DFP device, and the supply of electric power from the electronic device 100 to the external device 200 is avoided.

ステップS405において、システム制御部110は、時間の計測をタイマ部111に開始させる。この後、ステップS406に移行する。
ステップS406において、スイッチ制御部109は、トグリングを再開する。この後、ステップS407に移行する。
In step S405, the system control unit 110 causes the timer unit 111 to start measuring the time. After that, the process proceeds to step S406.
In step S406, the switch control unit 109 restarts the toggle ring. After that, the process proceeds to step S407.

ステップ407において、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されているか否かを判定する。電子機器100と外部機器200とがケーブル300を介して接続されていると判定された場合には(ステップS407においてYES)、ステップS408に移行する。電子機器100と外部機器200とがケーブル300を介して接続されていないと判定された場合には(ステップS407においてNO)、ステップS407が繰り返される。 In step 407, the connection detection unit 112 determines whether or not the electronic device 100 and the external device 200 are connected via the cable 300. If it is determined that the electronic device 100 and the external device 200 are connected via the cable 300 (YES in step S407), the process proceeds to step S408. If it is determined that the electronic device 100 and the external device 200 are not connected via the cable 300 (NO in step S407), step S407 is repeated.

ステップS408において、システム制御部110は、CC端子101bがプルアップ抵抗103に接続されている否かを判定する。CC端子101bがプルアップ抵抗103に接続されている場合には(ステップS408においてYES)、ステップS409に移行する。CC端子101bがプルダウン抵抗104に接続されている場合には(ステップS408においてNO)、ステップS404に移行する。 In step S408, the system control unit 110 determines whether or not the CC terminal 101b is connected to the pull-up resistor 103. When the CC terminal 101b is connected to the pull-up resistor 103 (YES in step S408), the process proceeds to step S409. When the CC terminal 101b is connected to the pull-down resistor 104 (NO in step S408), the process proceeds to step S404.

ステップS409において、システム制御部110は、タイマ部111によって計測された時間Tが第1の閾値TH1以上であるか否かを判定する。タイマ部111によって計測された時間Tが第1の閾値TH1以上である場合には(ステップS409においてYES)、ステップS410に移行する。タイマ部111によって計測された時間Tが第1の閾値TH1未満である場合には(ステップS409においてNO)、ステップS403に戻る。第1の閾値TH1は、例えば上述したtDRPに基づいて設定することができる。tDRPは、上述したように、50ms〜100msである。ここでは、第1の閾値TH1を例えば100msより長い時間とする。なお、第1の閾値TH1は、適宜設定し得る。 In step S409, the system control unit 110 determines whether or not the time T measured by the timer unit 111 is equal to or greater than the first threshold value TH1. If the time T measured by the timer unit 111 is equal to or greater than the first threshold value TH1 (YES in step S409), the process proceeds to step S410. If the time T measured by the timer unit 111 is less than the first threshold value TH1 (NO in step S409), the process returns to step S403. The first threshold TH1 can be set, for example, based on the tDRP described above. The tDRP is 50 ms to 100 ms, as described above. Here, the first threshold value TH1 is set to a time longer than, for example, 100 ms. The first threshold value TH1 can be set as appropriate.

ステップS410において、システム制御部110は、電子機器100をDFP機器として外部機器200と接続する。具体的には、電子機器100のシステム制御部110と外部機器200のシステム制御部210との間でPD通信が行われ、電子機器100と外部機器200との間でPD規格に基づく接続、即ち、PD接続が確立される。電子機器100はDFP機器とされ、外部機器200はUFP機器とされる。電子機器100のCC端子101bは、プルアップ抵抗103に接続されたままの状態が維持される。CC端子101bがプルアップ抵抗103に接続された状態で、電子機器100と外部機器200とが接続されている状態がステップS407において検出されてから所定時間tVBUSON以内に、システム制御部110は、以下のような処理を行う。即ち、システム制御部110は、コネクタ101のVBUS端子101aを介して外部機器200に電力の供給を開始する。所定時間tVBUSONは、上述したように275msである。電子機器100から外部機器200には電力が供給される一方、外部機器200から電子機器100には電力が供給されない。このように、CC端子101bがプルアップ抵抗103に接続された状態でCC端子101bの電位が所定の範囲内となる状態が生じてから第1の閾値TH1の時間が経過した後においては、システム制御部110は、以下のように動作する。即ち、システム制御部110は、CC端子101bの電位が所定の範囲内となる状態が再び生じた場合であっても、CC端子101bとプルアップ抵抗103とが未接続となるようなスイッチ107の制御を行わない。 In step S410, the system control unit 110 connects the electronic device 100 to the external device 200 as a DFP device. Specifically, PD communication is performed between the system control unit 110 of the electronic device 100 and the system control unit 210 of the external device 200, and the connection between the electronic device 100 and the external device 200 based on the PD standard, that is, , PD connection is established. The electronic device 100 is a DFP device, and the external device 200 is a UFP device. The CC terminal 101b of the electronic device 100 is maintained in a state of being connected to the pull-up resistor 103. Within tVBUSON for a predetermined time after the state in which the electronic device 100 and the external device 200 are connected is detected in step S407 with the CC terminal 101b connected to the pull-up resistor 103, the system control unit 110 is described as follows. Perform processing like. That is, the system control unit 110 starts supplying electric power to the external device 200 via the VBUS terminal 101a of the connector 101. The predetermined time tVBUSON is 275 ms as described above. While power is supplied from the electronic device 100 to the external device 200, power is not supplied from the external device 200 to the electronic device 100. In this way, after the time of the first threshold value TH1 has elapsed from the state in which the potential of the CC terminal 101b is within a predetermined range while the CC terminal 101b is connected to the pull-up resistor 103, the system The control unit 110 operates as follows. That is, the system control unit 110 of the switch 107 such that the CC terminal 101b and the pull-up resistor 103 are not connected even when the state in which the potential of the CC terminal 101b is within the predetermined range occurs again. No control is performed.

なお、ここでは、ステップS410において、電子機器100がDFP機器として外部機器200と接続される場合を例に説明したが、これに限定されるものではない。例えば、ステップS410において、電子機器100と外部機器200との間で接続が確立されないようにしてもよい。この場合、電子機器100と外部機器200との間で接続が確立できない旨を、例えば、電子機器100に備えられた不図示のUI(User Interface)等を用いてユーザに告知するようにしてもよい。かかるUIとしては、例えば表示部等が挙げられる。 Here, in step S410, the case where the electronic device 100 is connected to the external device 200 as a DFP device has been described as an example, but the present invention is not limited to this. For example, in step S410, the connection may not be established between the electronic device 100 and the external device 200. In this case, even if the user is notified that the connection cannot be established between the electronic device 100 and the external device 200 by using, for example, a UI (User Interface) (not shown) provided in the electronic device 100. Good. Examples of such a UI include a display unit and the like.

図5(a)は、本実施形態による電子機器100の動作の例を示すタイムチャートである。図5(a)は、本実施形態による電子機器100と外部機器200との接続が未確立の状態における動作を示している。図5(a)には、本実施形態による電子機器100のCC端子101bの電位Vsと、CC端子101bに接続される抵抗とが示されている。Rpは、電子機器100のCC端子101bがプルアップ抵抗103に接続されている状態を示しており、Rdは、電子機器100のCC端子101bがプルダウン抵抗104に接続されている状態を示している。 FIG. 5A is a time chart showing an example of the operation of the electronic device 100 according to the present embodiment. FIG. 5A shows an operation in a state where the connection between the electronic device 100 and the external device 200 according to the present embodiment is not established. FIG. 5A shows the potential Vs of the CC terminal 101b of the electronic device 100 according to the present embodiment and the resistance connected to the CC terminal 101b. Rp indicates a state in which the CC terminal 101b of the electronic device 100 is connected to the pull-up resistor 103, and Rd indicates a state in which the CC terminal 101b of the electronic device 100 is connected to the pull-down resistor 104. ..

図5(a)に示すように、電子機器100に備えられたスイッチ制御部109は、電子機器100のCC端子101bに接続される抵抗が周期的に切り替わるようにスイッチ107を制御する(トグリング)。 As shown in FIG. 5A, the switch control unit 109 provided in the electronic device 100 controls the switch 107 so that the resistance connected to the CC terminal 101b of the electronic device 100 is periodically switched (toggling). ..

タイミングt0からタイミングt2までは、電子機器100のCC端子101bはプルアップ抵抗103に接続される。この際、電子機器100のCC端子101bの電位VsはVCCとなる。 From timing t0 to timing t2, the CC terminal 101b of the electronic device 100 is connected to the pull-up resistor 103. At this time, the potential Vs of the CC terminal 101b of the electronic device 100 becomes VCS.

タイミングt2において、電子機器100のCC端子101bに接続される抵抗は、プルアップ抵抗103からプルダウン抵抗104に切り替えられる。これにより、電子機器100のCC端子101bの電位VsはGNDとなる。タイミングt2からタイミングt4までは、電子機器100のCC端子101bにプルダウン抵抗104が接続された状態が維持される。従って、タイミングt2からタイミングt4までは、電子機器100のCC端子101bの電位VsはGNDのまま維持される。 At the timing t2, the resistor connected to the CC terminal 101b of the electronic device 100 is switched from the pull-up resistor 103 to the pull-down resistor 104. As a result, the potential Vs of the CC terminal 101b of the electronic device 100 becomes GND. From the timing t2 to the timing t4, the state in which the pull-down resistor 104 is connected to the CC terminal 101b of the electronic device 100 is maintained. Therefore, from the timing t2 to the timing t4, the potential Vs of the CC terminal 101b of the electronic device 100 is maintained as GND.

タイミングt4において、電子機器100のCC端子101bに接続される抵抗は、プルダウン抵抗104からプルアップ抵抗103に切り替えられる。これにより、電子機器100のCC端子101bの電位VsはVCCとなる。タイミングt0からタイミングt4までの期間は、電子機器100のスイッチ制御部109がスイッチ107を周期的に制御する際の1周期に相当する。この後も、上記と同様の処理が繰り返される。 At the timing t4, the resistor connected to the CC terminal 101b of the electronic device 100 is switched from the pull-down resistor 104 to the pull-up resistor 103. As a result, the potential Vs of the CC terminal 101b of the electronic device 100 becomes VCS. The period from the timing t0 to the timing t4 corresponds to one cycle when the switch control unit 109 of the electronic device 100 periodically controls the switch 107. After that, the same process as described above is repeated.

図5(b)は、外部機器200の動作の例を示すタイムチャートである。図5(b)は、電子機器100と外部機器200との接続が未確立の状態における動作を示している。図5(b)には、外部機器200のCC端子201bの電位と、CC端子201bに接続される抵抗とが示されている。Rpは、CC端子201bがプルアップ抵抗203に接続されている状態を示しており、Rdは、CC端子201bがプルダウン抵抗204に接続されている状態を示している。 FIG. 5B is a time chart showing an example of the operation of the external device 200. FIG. 5B shows an operation in a state where the connection between the electronic device 100 and the external device 200 is not established. FIG. 5B shows the potential of the CC terminal 201b of the external device 200 and the resistance connected to the CC terminal 201b. Rp indicates a state in which the CC terminal 201b is connected to the pull-up resistor 203, and Rd indicates a state in which the CC terminal 201b is connected to the pull-down resistor 204.

タイミングt0からタイミングt1までは、外部機器200のCC端子201bはプルアップ抵抗203に接続されている。この際、外部機器200のCC端子201bの電位はVCCとなる。 From timing t0 to timing t1, the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. At this time, the potential of the CC terminal 201b of the external device 200 becomes VCS.

タイミングt1において、外部機器200のCC端子201bに接続される抵抗は、プルアップ抵抗203からプルダウン抵抗204に切り替えられる。これにより、外部機器200のCC端子201bの電位はGNDとなる。タイミングt1からタイミングt3までは、外部機器200のCC端子201bにプルダウン抵抗204が接続された状態が維持される。従って、タイミングt1からタイミングt3までは、外部機器200のCC端子201bの電位はGNDのまま維持される。 At the timing t1, the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-up resistor 203 to the pull-down resistor 204. As a result, the potential of the CC terminal 201b of the external device 200 becomes GND. From the timing t1 to the timing t3, the state in which the pull-down resistor 204 is connected to the CC terminal 201b of the external device 200 is maintained. Therefore, from the timing t1 to the timing t3, the potential of the CC terminal 201b of the external device 200 is maintained as GND.

タイミングt3において、外部機器200のCC端子201bに接続される抵抗は、プルダウン抵抗204からプルアップ抵抗203に切り替えられる。これにより、外部機器200のCC端子201bの電位はVCCとなる。タイミングt3からタイミングt5までは、外部機器200のCC端子201bにプルアップ抵抗203が接続された状態が維持される。従って、タイミングt3からタイミングt5までは、外部機器200のCC端子201bの電位はVCCのまま維持される。 At the timing t3, the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-down resistor 204 to the pull-up resistor 203. As a result, the potential of the CC terminal 201b of the external device 200 becomes VCS. From the timing t3 to the timing t5, the state in which the pull-up resistor 203 is connected to the CC terminal 201b of the external device 200 is maintained. Therefore, from the timing t3 to the timing t5, the potential of the CC terminal 201b of the external device 200 is maintained as the VCS.

タイミングt5において、外部機器200のCC端子201bに接続される抵抗は、プルアップ抵抗203からプルダウン抵抗204に切り替えられる。これにより、外部機器200のCC端子201bの電位はGNDとなる。タイミングt1からタイミングt5までの期間は、外部機器200に備えられたスイッチ制御部209がスイッチ207を周期的に制御する際の1周期に相当する。この後も、上記と同様の処理が繰り返される。 At the timing t5, the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-up resistor 203 to the pull-down resistor 204. As a result, the potential of the CC terminal 201b of the external device 200 becomes GND. The period from the timing t1 to the timing t5 corresponds to one cycle when the switch control unit 209 provided in the external device 200 periodically controls the switch 207. After that, the same process as described above is repeated.

図5(c)は、電子機器100と外部機器200とがケーブル300を介して接続された際の動作を示すタイミングチャートである。図5(c)は、電子機器100と外部機器200とがタイミングt0において接続された場合の動作の例を示している。図5(c)には、電子機器100のCC端子101bの電位Vsと、電子機器100のCC端子101bに接続される抵抗と、外部機器200のCC端子201bに接続される抵抗とが示されている。 FIG. 5C is a timing chart showing an operation when the electronic device 100 and the external device 200 are connected via the cable 300. FIG. 5C shows an example of operation when the electronic device 100 and the external device 200 are connected at timing t0. FIG. 5C shows the potential Vs of the CC terminal 101b of the electronic device 100, the resistor connected to the CC terminal 101b of the electronic device 100, and the resistor connected to the CC terminal 201b of the external device 200. ing.

タイミングt0からタイミングt1までは、電子機器100のCC端子101bはプルアップ抵抗103に接続されており、外部機器200のCC端子201bもプルアップ抵抗203に接続されている。このため、電子機器100のCC端子101bの電位Vsは、VCCとなる。VCCは、上記のような式(1)に示す所定の範囲内の電位ではない。従って、タイミングt0からタイミングt1までの間においては、電子機器100と外部機器200とがケーブル300を介して接続されていることが接続検出部112によって検出されない。 From timing t0 to timing t1, the CC terminal 101b of the electronic device 100 is connected to the pull-up resistor 103, and the CC terminal 201b of the external device 200 is also connected to the pull-up resistor 203. Therefore, the potential Vs of the CC terminal 101b of the electronic device 100 becomes VCS. The VCS is not a potential within a predetermined range represented by the above formula (1). Therefore, between the timing t0 and the timing t1, the connection detection unit 112 does not detect that the electronic device 100 and the external device 200 are connected via the cable 300.

タイミングt1において、外部機器200のCC端子201bに接続される抵抗がプルアップ抵抗203からプルダウン抵抗204に切り替わると、電子機器100のCC端子101bの電位Vsは、式(1)に示す所定の範囲内の電位となる。電子機器100の接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されたことを検出する。このような状態で電子機器100と外部機器200との接続が確立されると、電子機器100はDFP機器とされ、外部機器200はUFP機器とされる。 When the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-up resistor 203 to the pull-down resistor 204 at the timing t1, the potential Vs of the CC terminal 101b of the electronic device 100 becomes a predetermined range shown in the equation (1). It becomes the potential inside. The connection detection unit 112 of the electronic device 100 detects that the electronic device 100 and the external device 200 are connected via the cable 300. When the connection between the electronic device 100 and the external device 200 is established in such a state, the electronic device 100 is regarded as a DFP device, and the external device 200 is regarded as a UFP device.

本実施形態では、CC端子101bがプルアップ抵抗103に接続された状態で、電子機器100と外部機器200とがケーブル300を介して接続されていることが検出された場合、システム制御部110は、以下のように動作する。即ち、システム制御部110は、スイッチ107が開放状態となるようにスイッチ制御部109を制御する。これにより、CC端子101bがプルアップ抵抗103にもプルダウン抵抗104にも接続されていない状態となる。例えば、スイッチ制御部109は、タイミングt7において、スイッチ107を開放状態にする。タイミングt7は、電子機器100と外部機器200とがケーブル300を介して接続されていることが接続検出部112によって検出された後、所定時間tVBUSONが経過する前のタイミングである。上述したように、所定時間tVBUSONは275msである。CC端子101bがプルアップ抵抗103にもプルダウン抵抗104にも接続されない状態になると、CC端子101bの電位Vsは上記のような式(1)に示す所定の範囲内の電位ではなくなる。このため、電子機器100のシステム制御部110及び外部機器200のシステム制御部210は、電子機器100と外部機器200との接続が切断されたと判定する。このため、電子機器100がDFP機器として外部機器200に接続されるのを防止することができる。 In the present embodiment, when it is detected that the electronic device 100 and the external device 200 are connected via the cable 300 while the CC terminal 101b is connected to the pull-up resistor 103, the system control unit 110 performs the system control unit 110. , Works as follows. That is, the system control unit 110 controls the switch control unit 109 so that the switch 107 is in the open state. As a result, the CC terminal 101b is not connected to either the pull-up resistor 103 or the pull-down resistor 104. For example, the switch control unit 109 opens the switch 107 at the timing t7. The timing t7 is a timing before the predetermined time tVBUSON elapses after the connection detection unit 112 detects that the electronic device 100 and the external device 200 are connected via the cable 300. As described above, the predetermined time tVBUSON is 275 ms. When the CC terminal 101b is not connected to either the pull-up resistor 103 or the pull-down resistor 104, the potential Vs of the CC terminal 101b is not within the predetermined range shown in the above equation (1). Therefore, the system control unit 110 of the electronic device 100 and the system control unit 210 of the external device 200 determine that the connection between the electronic device 100 and the external device 200 has been disconnected. Therefore, it is possible to prevent the electronic device 100 from being connected to the external device 200 as a DFP device.

電子機器100と外部機器200との接続が切断されると、外部機器200のシステム制御部210は、トグリングが再開されるようにスイッチ制御部209を制御する。また、電子機器100と外部機器200との接続が切断されると、電子機器100のシステム制御部110も、トグリングが再開されるようにスイッチ制御部109を制御する。タイミングt8は、電子機器100がトグリングを再開するタイミングを示している。タイミングt8においては、電子機器100のCC端子101bはプルダウン抵抗104に接続されており、外部機器200のCC端子201bはプルダウン抵抗204に接続されている。CC端子101bをプルダウン抵抗104に接続した状態からスイッチ107の周期的な切り替えを再開しているのは、電子機器100をUFP機器として外部機器200に接続されやすくするためである。CC端子101bがプルダウン抵抗104に接続されている場合、CC端子101bの電位Vsは接地電位GNDである。接地電位GNDは、上記のような式(1)に示す所定の範囲内の電位ではない。従って、タイミングt8からタイミングt9までの間においては、電子機器100と外部機器200とがケーブル300を介して接続されていることは接続検出部112によって検出されない。 When the connection between the electronic device 100 and the external device 200 is disconnected, the system control unit 210 of the external device 200 controls the switch control unit 209 so that the toggle ring is restarted. Further, when the connection between the electronic device 100 and the external device 200 is disconnected, the system control unit 110 of the electronic device 100 also controls the switch control unit 109 so that the toggle ring is restarted. The timing t8 indicates the timing at which the electronic device 100 restarts the toggling. At the timing t8, the CC terminal 101b of the electronic device 100 is connected to the pull-down resistor 104, and the CC terminal 201b of the external device 200 is connected to the pull-down resistor 204. The reason why the periodic switching of the switch 107 is restarted from the state where the CC terminal 101b is connected to the pull-down resistor 104 is to facilitate the connection of the electronic device 100 as a UFP device to the external device 200. When the CC terminal 101b is connected to the pull-down resistor 104, the potential Vs of the CC terminal 101b is the ground potential GND. The ground potential GND is not within the predetermined range represented by the above equation (1). Therefore, between the timing t8 and the timing t9, the connection detection unit 112 does not detect that the electronic device 100 and the external device 200 are connected via the cable 300.

タイミングt9において、外部機器200のCC端子201bに接続される抵抗がプルダウン抵抗204からプルアップ抵抗203に切り替わると、電子機器100のCC端子101bの電位Vsは、式(1)に示す所定の範囲内の電位となる。電子機器100の接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されたことを検出する。このような状態で電子機器100と外部機器200との間で接続が確立されると、電子機器100はUFP機器とされ、外部機器200はDFP機器とされる。 At the timing t9, when the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-down resistor 204 to the pull-up resistor 203, the potential Vs of the CC terminal 101b of the electronic device 100 becomes a predetermined range shown in the equation (1). It becomes the potential inside. The connection detection unit 112 of the electronic device 100 detects that the electronic device 100 and the external device 200 are connected via the cable 300. When a connection is established between the electronic device 100 and the external device 200 in such a state, the electronic device 100 is regarded as a UFP device, and the external device 200 is regarded as a DFP device.

なお、ここでは、CC端子101bがプルアップされた状態で、電子機器100と外部機器200とがケーブル300を介して接続されたことが検出された場合に、スイッチ107を開放状態にする場合を例に説明したが、これに限定されるものではない。例えば、かかる場合に、CC端子101bをプルダウン抵抗104にも接続するようにしてもよい。この場合には、CC端子101bの電位Vsは接地電位GNDとなり、上記のような式(1)に示す所定の範囲内の電位ではなくなる。従って、電子機器100のシステム制御部110及び外部機器200のシステム制御部210は、電子機器100と外部機器200との接続が切断されたと判定する。従って、このようにしても、電子機器100がDFP機器として外部機器200に接続されるのを防止することができる。 Here, the case where the switch 107 is opened when it is detected that the electronic device 100 and the external device 200 are connected via the cable 300 while the CC terminal 101b is pulled up is used. Although explained as an example, the present invention is not limited to this. For example, in such a case, the CC terminal 101b may also be connected to the pull-down resistor 104. In this case, the potential Vs of the CC terminal 101b becomes the ground potential GND, and the potential is not within the predetermined range shown in the above equation (1). Therefore, the system control unit 110 of the electronic device 100 and the system control unit 210 of the external device 200 determine that the connection between the electronic device 100 and the external device 200 has been disconnected. Therefore, even in this way, it is possible to prevent the electronic device 100 from being connected to the external device 200 as a DFP device.

図6(a)は、比較例による電子機器の動作の例を示すタイムチャートである。図6(a)は、比較例による電子機器と外部機器200との接続が未確立の状態における動作を示している。図6(a)には、比較例による電子機器のCC端子の電位と、当該CC端子に接続される抵抗とが示されている。Rpは、比較例による電子機器のCC端子がプルアップ抵抗に接続されている状態を示しており、Rdは、比較例による電子機器のCC端子がプルダウン抵抗に接続されている状態を示している。 FIG. 6A is a time chart showing an example of the operation of the electronic device according to the comparative example. FIG. 6A shows an operation in a state where the connection between the electronic device and the external device 200 is not established according to the comparative example. FIG. 6A shows the potential of the CC terminal of the electronic device according to the comparative example and the resistance connected to the CC terminal. Rp indicates a state in which the CC terminal of the electronic device according to the comparative example is connected to the pull-up resistor, and Rd indicates a state in which the CC terminal of the electronic device according to the comparative example is connected to the pull-down resistor. ..

図6(a)に示すように、比較例による電子機器のCC端子に接続される抵抗が周期的に切り替えられる。タイミングt0からタイミングt1までは、比較例による電子機器のCC端子はプルアップ抵抗に接続される。タイミングt1において、比較例による電子機器のCC端子に接続される抵抗は、プルアップ抵抗からプルダウン抵抗に切り替えられる。タイミングt1からタイミングt3までは、比較例による電子機器のCC端子はプルダウン抵抗が接続される。タイミングt3において、比較例による電子機器のCC端子に接続される抵抗は、プルダウン抵抗からプルアップ抵抗に切り替えられる。タイミングt3からタイミングt5までは、比較例による電子機器のCC端子はプルアップ抵抗に接続される。タイミングt5において、比較例による電子機器のCC端子に接続される抵抗は、プルアップ抵抗からプルダウン抵抗に切り替えられる。タイミングt1からタイミングt5までの期間は、比較例による電子機器に備えられたスイッチ制御部がスイッチを周期的に制御する際の1周期に相当する。この後も、上記と同様の処理が繰り返される。 As shown in FIG. 6A, the resistance connected to the CC terminal of the electronic device according to the comparative example is periodically switched. From timing t0 to timing t1, the CC terminal of the electronic device according to the comparative example is connected to the pull-up resistor. At the timing t1, the resistor connected to the CC terminal of the electronic device according to the comparative example is switched from the pull-up resistor to the pull-down resistor. From timing t1 to timing t3, a pull-down resistor is connected to the CC terminal of the electronic device according to the comparative example. At the timing t3, the resistor connected to the CC terminal of the electronic device according to the comparative example is switched from the pull-down resistor to the pull-up resistor. From timing t3 to timing t5, the CC terminal of the electronic device according to the comparative example is connected to the pull-up resistor. At the timing t5, the resistor connected to the CC terminal of the electronic device according to the comparative example is switched from the pull-up resistor to the pull-down resistor. The period from the timing t1 to the timing t5 corresponds to one cycle when the switch control unit provided in the electronic device according to the comparative example periodically controls the switch. After that, the same process as described above is repeated.

図6(b)は、外部機器200の動作の例を示すタイムチャートである。図6(b)は、比較例による電子機器と外部機器200との接続が未確立の状態における動作を示している。図6(b)には、外部機器200のCC端子201bの電位と、CC端子201bに接続される抵抗とが示されている。 FIG. 6B is a time chart showing an example of the operation of the external device 200. FIG. 6B shows an operation in a state where the connection between the electronic device and the external device 200 is not established according to the comparative example. FIG. 6B shows the potential of the CC terminal 201b of the external device 200 and the resistance connected to the CC terminal 201b.

タイミングt0からタイミングt2までは、外部機器200のCC端子201bはプルアップ抵抗203に接続される。タイミングt2において、外部機器200のCC端子201bに接続される抵抗は、プルアップ抵抗203からプルダウン抵抗204に切り替えられる。タイミングt2からタイミングt4までは、外部機器200のCC端子201bはプルダウン抵抗204に接続される。タイミングt4において、外部機器200のCC端子201bに接続される抵抗は、プルダウン抵抗204からプルアップ抵抗203に切り替えられる。タイミングt0からタイミングt4までの期間は、外部機器200に備えられたスイッチ制御部209がスイッチ207を周期的に制御する際の1周期に相当する。この後も、上記と同様の処理が繰り返される。 From timing t0 to timing t2, the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. At the timing t2, the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-up resistor 203 to the pull-down resistor 204. From timing t2 to timing t4, the CC terminal 201b of the external device 200 is connected to the pull-down resistor 204. At the timing t4, the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-down resistor 204 to the pull-up resistor 203. The period from the timing t0 to the timing t4 corresponds to one cycle when the switch control unit 209 provided in the external device 200 periodically controls the switch 207. After that, the same process as described above is repeated.

図6(c)は、比較例による電子機器と外部機器200とがケーブル300を介して接続された際の動作を示すタイミングチャートである。図6(c)は、比較例による電子機器と外部機器200とがタイミングt0において接続された場合の動作を示している。図6(c)には、比較例による電子機器のCC端子の電位と、比較例による電子機器のCC端子に接続される抵抗と、外部機器200のCC端子201bに接続される抵抗とが示されている。 FIG. 6C is a timing chart showing an operation when an electronic device and an external device 200 according to a comparative example are connected via a cable 300. FIG. 6C shows the operation when the electronic device and the external device 200 according to the comparative example are connected at the timing t0. FIG. 6C shows the potential of the CC terminal of the electronic device according to the comparative example, the resistance connected to the CC terminal of the electronic device according to the comparative example, and the resistance connected to the CC terminal 201b of the external device 200. Has been done.

タイミングt0からタイミングt1までは、比較例による電子機器のCC端子はプルアップ抵抗に接続されており、外部機器200のCC端子201bもプルアップ抵抗203に接続されている。このため、比較例による電子機器のCC端子の電位は、VCCとなる。VCCは、上記のような式(1)に示す所定の範囲内の電位ではない。従って、タイミングt0からタイミングt1までの間においては、比較例による電子機器と外部機器200とがケーブル300を介して接続されているとは判定されない。 From timing t0 to timing t1, the CC terminal of the electronic device according to the comparative example is connected to the pull-up resistor, and the CC terminal 201b of the external device 200 is also connected to the pull-up resistor 203. Therefore, the potential of the CC terminal of the electronic device according to the comparative example is VCS. The VCS is not a potential within a predetermined range represented by the above formula (1). Therefore, between the timing t0 and the timing t1, it is not determined that the electronic device and the external device 200 according to the comparative example are connected via the cable 300.

タイミングt1において、比較例による電子機器のCC端子に接続される抵抗がプルアップ抵抗からプルダウン抵抗に切り替わると、CC端子の電位は、式(1)に示す所定の範囲内の電位となる。比較例による電子機器に備えられた接続検出部は、比較例による電子機器と外部機器200とがケーブル300によって接続されたと判定する。このような状態で比較例による電子機器100と外部機器200との接続が確立されると、比較例による電子機器のポートは、デフォルトにおいて電力を受け取る側のポートであるUFPとされる。一方、外部機器200のポート250は、デフォルトにおいて供給する側のポートであるDFPとされる。 At the timing t1, when the resistor connected to the CC terminal of the electronic device according to the comparative example is switched from the pull-up resistor to the pull-down resistor, the potential of the CC terminal becomes a potential within a predetermined range shown in the equation (1). The connection detection unit provided in the electronic device according to the comparative example determines that the electronic device according to the comparative example and the external device 200 are connected by the cable 300. When the connection between the electronic device 100 according to the comparative example and the external device 200 is established in such a state, the port of the electronic device according to the comparative example is UFP, which is the port on the side of receiving power by default. On the other hand, the port 250 of the external device 200 is DFP, which is the port on the supply side by default.

タイミングt1以降においては、USB Type−C接続が確立しているため、比較例による電子機器100のCC端子はプルダウン抵抗に接続されたままとなり、外部機器200のCC端子201bはプルアップ抵抗203に接続されたままとなる。 Since the USB Type-C connection is established after the timing t1, the CC terminal of the electronic device 100 according to the comparative example remains connected to the pull-down resistor, and the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. Stay connected.

タイミングt6において、VBUS端子201aを介して外部機器200から比較例による電子機器100への電力の供給が開始される。タイミングt6は、USB Type−C接続が確立した後、所定時間tVBUSONを経過する前のタイミングであり、上述したように、所定時間tVBUSONは275msである。 At the timing t6, the power supply from the external device 200 to the electronic device 100 according to the comparative example is started via the VBUS terminal 201a. The timing t6 is the timing before the predetermined time tVBUSON elapses after the USB Type-C connection is established, and as described above, the predetermined time tVBUSON is 275 ms.

図7(a)は、比較例による電子機器の動作の他の例を示すタイムチャートである。図7(a)は、比較例による電子機器と外部機器200との接続が未確立の状態における動作を示している。図7(a)には、比較例による電子機器のCC端子の電位と、当該CC端子に接続される抵抗とが示されている。Rpは、比較例による電子機器のCC端子がプルアップ抵抗に接続されている状態を示しており、Rdは、比較例による電子機器のCC端子がプルダウン抵抗に接続されている状態を示している。 FIG. 7A is a time chart showing another example of the operation of the electronic device according to the comparative example. FIG. 7A shows an operation in a state where the connection between the electronic device and the external device 200 is not established according to the comparative example. FIG. 7A shows the potential of the CC terminal of the electronic device according to the comparative example and the resistance connected to the CC terminal. Rp indicates a state in which the CC terminal of the electronic device according to the comparative example is connected to the pull-up resistor, and Rd indicates a state in which the CC terminal of the electronic device according to the comparative example is connected to the pull-down resistor. ..

図7(a)に示すように、比較例による電子機器のCC端子に接続される抵抗が周期的に切り替えられる。タイミングt0からタイミングt2までは、比較例による電子機器のCC端子はプルアップ抵抗に接続される。タイミングt2において、比較例による電子機器のCC端子に接続される抵抗は、プルアップ抵抗からプルダウン抵抗に切り替えられる。タイミングt2からタイミングt4までは、比較例による電子機器のCC端子はプルダウン抵抗が接続される。タイミングt4において、比較例による電子機器のCC端子に接続される抵抗は、プルダウン抵抗からプルアップ抵抗に切り替えられる。タイミングt0からタイミングt4までの期間は、比較例による電子機器に備えられたスイッチ制御部がスイッチを周期的に制御する際の1周期に相当する。この後も、上記と同様の処理が繰り返される。 As shown in FIG. 7A, the resistance connected to the CC terminal of the electronic device according to the comparative example is periodically switched. From timing t0 to timing t2, the CC terminal of the electronic device according to the comparative example is connected to the pull-up resistor. At the timing t2, the resistor connected to the CC terminal of the electronic device according to the comparative example is switched from the pull-up resistor to the pull-down resistor. From timing t2 to timing t4, a pull-down resistor is connected to the CC terminal of the electronic device according to the comparative example. At the timing t4, the resistor connected to the CC terminal of the electronic device according to the comparative example is switched from the pull-down resistor to the pull-up resistor. The period from the timing t0 to the timing t4 corresponds to one cycle when the switch control unit provided in the electronic device according to the comparative example periodically controls the switch. After that, the same process as described above is repeated.

図7(b)は、外部機器200の動作の例を示すタイムチャートである。図7(b)は、比較例による電子機器と外部機器200との接続が未確立の状態における動作を示している。図7(b)には、外部機器200のCC端子201bの電位と、CC端子201bに接続される抵抗とが示されている。 FIG. 7B is a time chart showing an example of the operation of the external device 200. FIG. 7B shows an operation in a state where the connection between the electronic device and the external device 200 is not established according to the comparative example. FIG. 7B shows the potential of the CC terminal 201b of the external device 200 and the resistance connected to the CC terminal 201b.

タイミングt0からタイミングt1までは、外部機器200のCC端子201bはプルアップ抵抗203に接続される。タイミングt1において、外部機器200のCC端子201bに接続される抵抗は、プルアップ抵抗203からプルダウン抵抗204に切り替えられる。タイミングt1からタイミングt3までは、外部機器200のCC端子201bはプルダウン抵抗204に接続される。タイミングt3において、外部機器200のCC端子201bに接続される抵抗は、プルダウン抵抗204からプルアップ抵抗203に切り替えられる。タイミングt3からタイミングt5までは、外部機器200のCC端子201bはプルアップ抵抗203に接続される。タイミングt1からタイミングt5までの期間は、外部機器200に備えられたスイッチ制御部209がスイッチ207を周期的に制御する際の1周期に相当する。この後も、上記と同様の処理が繰り返される。 From timing t0 to timing t1, the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. At the timing t1, the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-up resistor 203 to the pull-down resistor 204. From timing t1 to timing t3, the CC terminal 201b of the external device 200 is connected to the pull-down resistor 204. At the timing t3, the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-down resistor 204 to the pull-up resistor 203. From timing t3 to timing t5, the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. The period from the timing t1 to the timing t5 corresponds to one cycle when the switch control unit 209 provided in the external device 200 periodically controls the switch 207. After that, the same process as described above is repeated.

図7(c)は、比較例による電子機器と外部機器200とがケーブル300を介して接続された際の動作を示すタイミングチャートである。図7(c)は、比較例による電子機器と外部機器200とがタイミングt0において接続された場合の動作を示している。図7(c)には、比較例による電子機器のCC端子の電位と、比較例による電子機器のCC端子に接続される抵抗と、外部機器200のCC端子201bに接続される抵抗とが示されている。 FIG. 7C is a timing chart showing an operation when an electronic device and an external device 200 according to a comparative example are connected via a cable 300. FIG. 7C shows the operation when the electronic device and the external device 200 according to the comparative example are connected at the timing t0. FIG. 7C shows the potential of the CC terminal of the electronic device according to the comparative example, the resistance connected to the CC terminal of the electronic device according to the comparative example, and the resistance connected to the CC terminal 201b of the external device 200. Has been done.

タイミングt0からタイミングt1までは、比較例による電子機器のCC端子はプルアップ抵抗に接続されており、外部機器200のCC端子201bもプルアップ抵抗203に接続されている。このため、比較例による電子機器のCC端子の電位は、VCCとなる。VCCは、式(1)に示す所定の範囲内の電位ではない。従って、タイミングt0からタイミングt1までの間においては、比較例による電子機器と外部機器200とがケーブル300を介して接続されているとは判定されない。 From timing t0 to timing t1, the CC terminal of the electronic device according to the comparative example is connected to the pull-up resistor, and the CC terminal 201b of the external device 200 is also connected to the pull-up resistor 203. Therefore, the potential of the CC terminal of the electronic device according to the comparative example is VCS. The VCS is not a potential within the predetermined range shown in the formula (1). Therefore, between the timing t0 and the timing t1, it is not determined that the electronic device and the external device 200 according to the comparative example are connected via the cable 300.

タイミングt1において、外部機器200のCC端子201bに接続される抵抗がプルアップ抵抗203からプルダウン抵抗204に切り替わると、CC端子201bの電位は、式(1)に示す所定の範囲内の電位となる。比較例による電子機器に備えられた接続検出部は、比較例による電子機器と外部機器200とがケーブル300によって接続されたと判定する。このような状態で比較例による電子機器100と外部機器200との接続が確立されると、比較例による電子機器は、デフォルトにおいて電力を供給する側であるDFP機器とされる。一方、外部機器200は、デフォルトにおいて受け取る側であるUFP機器とされる。 When the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-up resistor 203 to the pull-down resistor 204 at the timing t1, the potential of the CC terminal 201b becomes a potential within a predetermined range shown in the equation (1). .. The connection detection unit provided in the electronic device according to the comparative example determines that the electronic device according to the comparative example and the external device 200 are connected by the cable 300. When the connection between the electronic device 100 according to the comparative example and the external device 200 is established in such a state, the electronic device according to the comparative example is a DFP device that supplies power by default. On the other hand, the external device 200 is a UFP device that is the receiving side by default.

タイミングt1以降においては、USB Type−C接続が確立しているため、比較例による電子機器100のCC端子はプルアップ抵抗に接続されたままとなり、外部機器200のCC端子201bはプルダウン抵抗204に接続されたままとなる。 Since the USB Type-C connection is established after the timing t1, the CC terminal of the electronic device 100 according to the comparative example remains connected to the pull-up resistor, and the CC terminal 201b of the external device 200 becomes the pull-down resistor 204. Stay connected.

タイミングt6において、比較例に備えられたVBUS端子を介して比較例による電子機器から外部機器200への電力の供給が開始される。タイミングt6は、USB Type−C接続が確立した後、所定時間tVBUSONを経過する前のタイミングであり、上述したように、所定時間tVBUSONは275msである。 At the timing t6, the power supply from the electronic device according to the comparative example to the external device 200 is started via the VBUS terminal provided in the comparative example. The timing t6 is the timing before the predetermined time tVBUSON elapses after the USB Type-C connection is established, and as described above, the predetermined time tVBUSON is 275 ms.

このように、比較例による電子機器においては、当該電子機器がUFP機器として外部機器200に接続されることもあるし、当該電子機器がDFP機器として外部機器200に接続されることもある。 As described above, in the electronic device according to the comparative example, the electronic device may be connected to the external device 200 as a UFP device, or the electronic device may be connected to the external device 200 as a DFP device.

このように、本実施形態による電子機器100は、CC端子101bがプルアップ抵抗103に接続された状態で、電子機器100と外部機器200とがケーブル300を介して接続されたことが検出された場合には、以下のように動作する。即ち、本実施形態による電子機器100は、スイッチ107を開放状態にするか、又は、CC端子101bをプルダウン抵抗104に接続する。この後、本実施形態による電子機器100は、トグリングを再開する。このため、本実施形態によれば、電子機器100がDFP機器として外部機器200に接続されるのを抑制することができ、電子機器100から外部機器200に電力が供給されるのを抑制することができる。 As described above, in the electronic device 100 according to the present embodiment, it was detected that the electronic device 100 and the external device 200 were connected via the cable 300 while the CC terminal 101b was connected to the pull-up resistor 103. In that case, it works as follows. That is, in the electronic device 100 according to the present embodiment, the switch 107 is opened or the CC terminal 101b is connected to the pull-down resistor 104. After that, the electronic device 100 according to the present embodiment restarts toggling. Therefore, according to the present embodiment, it is possible to suppress the electronic device 100 from being connected to the external device 200 as a DFP device, and to suppress the power supply from the electronic device 100 to the external device 200. Can be done.

[第2実施形態]
第2実施形態による電子機器及びその制御方法について図面を用いて説明する。図1乃至図7に示す第1実施形態による電子機器と同一の構成要素には、同一の符号を付して説明を省略または簡潔にする。
[Second Embodiment]
The electronic device according to the second embodiment and the control method thereof will be described with reference to the drawings. The same components as those of the electronic device according to the first embodiment shown in FIGS. 1 to 7 are designated by the same reference numerals, and the description thereof will be omitted or simplified.

本実施形態による電子機器100は、CC端子101bがプルアップされた状態で、電子機器100と外部機器200とがケーブル300を介して接続されたことが検出された際に場合には、CC端子101bをプルダウン抵抗104に接続するものである。そして、本実施形態による電子機器100は、CC端子101bがプルダウン抵抗104に接続された状態を維持するものである。 The electronic device 100 according to the present embodiment is a CC terminal when it is detected that the electronic device 100 and the external device 200 are connected via the cable 300 in a state where the CC terminal 101b is pulled up. The 101b is connected to the pull-down resistor 104. Then, the electronic device 100 according to the present embodiment maintains a state in which the CC terminal 101b is connected to the pull-down resistor 104.

図8は、本実施形態による電子機器100の動作を示すフローチャートである。
ステップS501からステップS504までの動作は、図4を用いて上述した第1実施形態による電子機器100におけるステップS401からステップS404までの動作と同様であるので、説明を省略する。
FIG. 8 is a flowchart showing the operation of the electronic device 100 according to the present embodiment.
Since the operations from step S501 to step S504 are the same as the operations from step S401 to step S404 in the electronic device 100 according to the first embodiment described above with reference to FIG. 4, the description thereof will be omitted.

ステップS505において、システム制御部110は、CC端子101bがプルダウン抵抗104に接続されるようにスイッチ制御部109を制御する。システム制御部110は、CC端子101bがプルダウン抵抗104に接続された状態を維持し、トグリングを再開させない。この後、ステップS506に移行する。 In step S505, the system control unit 110 controls the switch control unit 109 so that the CC terminal 101b is connected to the pull-down resistor 104. The system control unit 110 maintains the state in which the CC terminal 101b is connected to the pull-down resistor 104 and does not restart the toggle ring. After that, the process proceeds to step S506.

ステップS506において、システム制御部110は、時間の計測をタイマ部111に開始させる。この後、ステップS507に移行する。 In step S506, the system control unit 110 causes the timer unit 111 to start measuring the time. After that, the process proceeds to step S507.

ステップS507において、接続検出部112は、電子機器100と外部機器200とがケーブル300を介して接続されているか否かを判定する。電子機器100と外部機器200とがケーブル300を介して接続されているか否かは、CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位であるか否かによって判定される。電子機器100と外部機器200とがケーブル300を介して接続されていると判定された場合には(ステップS507においてYES)、ステップS508に移行する。電子機器100と外部機器200とがケーブル300を介して接続されていないと判定された場合には(ステップS507においてNO)、ステップS509に移行する。 In step S507, the connection detection unit 112 determines whether or not the electronic device 100 and the external device 200 are connected via the cable 300. Whether or not the electronic device 100 and the external device 200 are connected via the cable 300 is determined by whether or not the potential Vs of the CC terminal 101b is within a predetermined range shown in the equation (1). .. If it is determined that the electronic device 100 and the external device 200 are connected via the cable 300 (YES in step S507), the process proceeds to step S508. If it is determined that the electronic device 100 and the external device 200 are not connected via the cable 300 (NO in step S507), the process proceeds to step S509.

ステップS508において、システム制御部110は、電子機器100をUFP機器として外部機器200に接続する。具体的には、電子機器100のシステム制御部110と外部機器200のシステム制御部210との間でPD通信が行われ、電子機器100と外部機器200との間でPD規格に基づく接続、即ち、PD接続が確立される。電子機器100はUFP機器とされ、外部機器200はDFP機器とされる。電子機器100から外部機器200には電力が供給されない一方、外部機器200から電子機器100に電力が供給される。 In step S508, the system control unit 110 connects the electronic device 100 to the external device 200 as a UFP device. Specifically, PD communication is performed between the system control unit 110 of the electronic device 100 and the system control unit 210 of the external device 200, and the connection between the electronic device 100 and the external device 200 based on the PD standard, that is, , PD connection is established. The electronic device 100 is a UFP device, and the external device 200 is a DFP device. While power is not supplied from the electronic device 100 to the external device 200, power is supplied from the external device 200 to the electronic device 100.

ステップS509において、システム制御部110は、タイマ部111によって計測された時間Tが第1の閾値TH1以上であるか否かを判定する。タイマ部111によって計測された時間Tが第1の閾値TH1以上である場合には(ステップS509においてYES)、ステップS510に移行する。タイマ部111によって計測された時間Tが第1の閾値TH1未満である場合には(ステップS509においてNO)、ステップS507に戻る。 In step S509, the system control unit 110 determines whether or not the time T measured by the timer unit 111 is equal to or greater than the first threshold value TH1. If the time T measured by the timer unit 111 is equal to or greater than the first threshold value TH1 (YES in step S509), the process proceeds to step S510. If the time T measured by the timer unit 111 is less than the first threshold value TH1 (NO in step S509), the process returns to step S507.

ステップS510において、システム制御部110は、電子機器100をDFP機器として外部機器200と接続する。具体的には、システム制御部110は、CC端子101bがプルアップ抵抗103に接続されるようにスイッチ制御部109を制御する。そして、電子機器100と外部機器200とがケーブル300を介して接続されたことが接続検出部112によって検出された後、電子機器100のシステム制御部110と外部機器200のシステム制御部210との間でPD通信が行われる。そして、電子機器100と外部機器200との間でPD規格に基づく接続、即ち、PD接続が確立される。電子機器100はDFP機器とされ、外部機器200はUFP機器とされる。CC端子101bがプルアップ抵抗103に接続された状態で、電子機器100と外部機器200とが接続されている状態がステップS507において検出されてから所定時間tVBUSON以内に、システム制御部110は、以下のような処理を行う。即ち、システム制御部110は、コネクタ101のVBUS端子101aを介して外部機器200に電力の供給を開始する。所定時間tVBUSONは、上述したように275msである。電子機器100から外部機器200には電力が供給される一方、外部機器200から電子機器100には電力が供給されない。このように、CC端子101bがプルアップ抵抗103に接続された状態でCC端子101bの電位が所定の範囲内となる状態が生じてから第1の閾値TH1の時間が経過した段階では、システム制御部110は以下のように動作する。即ち、USB Type−C等の所定の規格に基づく接続がこの段階で外部機器200との間で確立していない場合には、システム制御部110は、CC端子101bとプルアップ抵抗103とが接続されるようにスイッチ107を制御する。 In step S510, the system control unit 110 connects the electronic device 100 as a DFP device to the external device 200. Specifically, the system control unit 110 controls the switch control unit 109 so that the CC terminal 101b is connected to the pull-up resistor 103. Then, after the connection detection unit 112 detects that the electronic device 100 and the external device 200 are connected via the cable 300, the system control unit 110 of the electronic device 100 and the system control unit 210 of the external device 200 PD communication is performed between them. Then, a connection based on the PD standard, that is, a PD connection is established between the electronic device 100 and the external device 200. The electronic device 100 is a DFP device, and the external device 200 is a UFP device. Within tVBUSON for a predetermined time after the state in which the electronic device 100 and the external device 200 are connected in the state where the CC terminal 101b is connected to the pull-up resistor 103 is detected in step S507, the system control unit 110 is described as follows. Perform processing like. That is, the system control unit 110 starts supplying electric power to the external device 200 via the VBUS terminal 101a of the connector 101. The predetermined time tVBUSON is 275 ms as described above. While power is supplied from the electronic device 100 to the external device 200, power is not supplied from the external device 200 to the electronic device 100. In this way, when the time of the first threshold value TH1 elapses after the state where the potential of the CC terminal 101b is within the predetermined range occurs while the CC terminal 101b is connected to the pull-up resistor 103, the system control is performed. The unit 110 operates as follows. That is, when a connection based on a predetermined standard such as USB Type-C has not been established with the external device 200 at this stage, the system control unit 110 connects the CC terminal 101b and the pull-up resistor 103. The switch 107 is controlled so as to be operated.

なお、ここでは、ステップS510において、電子機器100がDFP機器として外部機器200と接続される場合を例に説明したが、これに限定されるものではない。例えば、ステップS510において、電子機器100と外部機器200との間で接続が確立されないようにしてもよい。この場合、電子機器100と外部機器200との間で接続が確立できない旨を、例えば、電子機器100に備えられた不図示のUI等を用いてユーザに告知するようにしてもよい。 Here, in step S510, the case where the electronic device 100 is connected to the external device 200 as a DFP device has been described as an example, but the present invention is not limited to this. For example, in step S510, the connection may not be established between the electronic device 100 and the external device 200. In this case, the user may be notified that the connection cannot be established between the electronic device 100 and the external device 200 by using, for example, a UI (not shown) provided in the electronic device 100.

図9(a)は、本実施形態による電子機器100の動作の例を示すタイムチャートである。図9(a)は、本実施形態による電子機器100と外部機器200との接続が未確立の状態における動作を示している。図9(a)には、本実施形態による電子機器100のCC端子101bの電位Vsと、CC端子101bに接続される抵抗とが示されている。Rpは、電子機器100のCC端子101bがプルアップ抵抗103に接続されている状態を示しており、Rdは、電子機器100のCC端子101bがプルダウン抵抗104に接続されている状態を示している。 FIG. 9A is a time chart showing an example of the operation of the electronic device 100 according to the present embodiment. FIG. 9A shows an operation in a state where the connection between the electronic device 100 and the external device 200 according to the present embodiment is not established. FIG. 9A shows the potential Vs of the CC terminal 101b of the electronic device 100 according to the present embodiment and the resistance connected to the CC terminal 101b. Rp indicates a state in which the CC terminal 101b of the electronic device 100 is connected to the pull-up resistor 103, and Rd indicates a state in which the CC terminal 101b of the electronic device 100 is connected to the pull-down resistor 104. ..

図9(a)に示すように、電子機器100に備えられたシステム制御部110は、電子機器100のCC端子101bに接続される抵抗が周期的に切り替えられるように、スイッチ制御部109を制御する。即ち、システム制御部110は、トグリングが行われるようにスイッチ制御部109を制御する。本実施形態による電子機器100におけるタイミングt0からタイミングt7までの動作は、図5(a)を用いて上述した第1実施形態による電子機器100におけるタイミングt0からタイミングt7までの動作と同様であるため、説明を省略する。 As shown in FIG. 9A, the system control unit 110 provided in the electronic device 100 controls the switch control unit 109 so that the resistance connected to the CC terminal 101b of the electronic device 100 is periodically switched. To do. That is, the system control unit 110 controls the switch control unit 109 so that the toggle ring is performed. Since the operation from timing t0 to timing t7 in the electronic device 100 according to the present embodiment is the same as the operation from timing t0 to timing t7 in the electronic device 100 according to the first embodiment described above with reference to FIG. 5 (a). , The description is omitted.

図9(b)は、外部機器200の動作の例を示すタイムチャートである。図9(b)は、電子機器100と外部機器200との接続が未確立の状態における動作を示している。図9(b)には、外部機器200のCC端子201bの電位と、CC端子201bに接続される抵抗とが示されている。Rpは、CC端子201bがプルアップ抵抗203に接続されている状態を示しており、Rdは、CC端子201bがプルダウン抵抗204に接続されている状態を示している。 FIG. 9B is a time chart showing an example of the operation of the external device 200. FIG. 9B shows an operation in a state where the connection between the electronic device 100 and the external device 200 is not established. FIG. 9B shows the potential of the CC terminal 201b of the external device 200 and the resistance connected to the CC terminal 201b. Rp indicates a state in which the CC terminal 201b is connected to the pull-up resistor 203, and Rd indicates a state in which the CC terminal 201b is connected to the pull-down resistor 204.

外部機器200におけるタイミングt0からタイミングt7までの動作は、図5(b)を用いて上述した外部機器200におけるタイミングt0からタイミングt7までの動作と同様であるため、説明を省略する。 Since the operation from timing t0 to timing t7 in the external device 200 is the same as the operation from timing t0 to timing t7 in the external device 200 described above with reference to FIG. 5B, the description thereof will be omitted.

図9(c)は、電子機器100と外部機器200とがケーブル300を介して接続された際の動作を示すタイミングチャートである。図9(c)は、電子機器100と外部機器200とがタイミングt0において接続された場合の動作の例を示している。図9(c)には、電子機器100のCC端子101bの電位Vsと、電子機器100のCC端子101bに接続される抵抗と、外部機器200のCC端子201bに接続される抵抗とが示されている。 FIG. 9C is a timing chart showing an operation when the electronic device 100 and the external device 200 are connected via the cable 300. FIG. 9C shows an example of operation when the electronic device 100 and the external device 200 are connected at timing t0. FIG. 9C shows the potential Vs of the CC terminal 101b of the electronic device 100, the resistor connected to the CC terminal 101b of the electronic device 100, and the resistor connected to the CC terminal 201b of the external device 200. ing.

タイミングt0からタイミングt1までは、電子機器100のCC端子101bはプルアップ抵抗103に接続されており、外部機器200のCC端子201bもプルアップ抵抗203に接続されている。このため、電子機器100のCC端子101bの電位Vsは、VCCとなる。VCCは、式(1)に示す所定の範囲内の電位ではない。従って、タイミングt0からタイミングt1までの間においては、電子機器100と外部機器200とがケーブル300を介して接続されていることは接続検出部112によって検出されない。 From timing t0 to timing t1, the CC terminal 101b of the electronic device 100 is connected to the pull-up resistor 103, and the CC terminal 201b of the external device 200 is also connected to the pull-up resistor 203. Therefore, the potential Vs of the CC terminal 101b of the electronic device 100 becomes VCS. The VCS is not a potential within the predetermined range shown in the formula (1). Therefore, between the timing t0 and the timing t1, it is not detected by the connection detection unit 112 that the electronic device 100 and the external device 200 are connected via the cable 300.

タイミングt1において、外部機器200のCC端子201bに接続される抵抗がプルアップ抵抗203からプルダウン抵抗204に切り替わると、電子機器100のCC端子101bの電位Vsは、式(1)に示す所定の範囲内の電位となる。電子機器100の接続検出部112は、電子機器100と外部機器200とがケーブル300によって接続されたことを検出する。このように、タイミングt1においては、CC端子101bがプルアップ抵抗103に接続された状態で、電子機器100と外部機器200とがケーブル300によって接続されたことが検出される。 At the timing t1, when the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-up resistor 203 to the pull-down resistor 204, the potential Vs of the CC terminal 101b of the electronic device 100 becomes a predetermined range shown in the equation (1). It becomes the potential inside. The connection detection unit 112 of the electronic device 100 detects that the electronic device 100 and the external device 200 are connected by the cable 300. As described above, at the timing t1, it is detected that the electronic device 100 and the external device 200 are connected by the cable 300 while the CC terminal 101b is connected to the pull-up resistor 103.

本実施形態では、CC端子101bがプルアップ抵抗103に接続された状態で、電子機器100と外部機器200とがケーブル300を介して接続されていることが検出された場合、システム制御部110は、以下のように動作する。即ち、システム制御部110は、スイッチ107が開放状態になるようにスイッチ制御部109を制御する。これにより、CC端子101bは、プルアップ抵抗103にもプルダウン抵抗104にも接続されていない状態となる。例えば、スイッチ制御部109は、タイミングt7において、スイッチ107を開放状態にする。タイミングt7は、電子機器100と外部機器200とがケーブル300を介して接続されたことが接続検出部112によって検出された後、所定時間tVBUSONが経過する前のタイミングである。上述したように、所定時間tVBUSONは275msである。CC端子101bがプルアップ抵抗103にもプルダウン抵抗104にも接続されない状態になると、CC端子101bの電位Vsは、式(1)に示す所定の範囲内の電位ではなくなる。このため、電子機器100のシステム制御部110及び外部機器200のシステム制御部210は、電子機器100と外部機器200との接続が切断されたと判定する。このため、電子機器100がDFP機器として外部機器200に接続されるのを防止することができる。 In the present embodiment, when it is detected that the electronic device 100 and the external device 200 are connected via the cable 300 while the CC terminal 101b is connected to the pull-up resistor 103, the system control unit 110 performs the system control unit 110. , Works as follows. That is, the system control unit 110 controls the switch control unit 109 so that the switch 107 is in the open state. As a result, the CC terminal 101b is not connected to either the pull-up resistor 103 or the pull-down resistor 104. For example, the switch control unit 109 opens the switch 107 at the timing t7. The timing t7 is a timing before the predetermined time tVBUSON elapses after the connection detection unit 112 detects that the electronic device 100 and the external device 200 are connected via the cable 300. As described above, the predetermined time tVBUSON is 275 ms. When the CC terminal 101b is not connected to the pull-up resistor 103 or the pull-down resistor 104, the potential Vs of the CC terminal 101b is not within the predetermined range shown in the equation (1). Therefore, the system control unit 110 of the electronic device 100 and the system control unit 210 of the external device 200 determine that the connection between the electronic device 100 and the external device 200 has been disconnected. Therefore, it is possible to prevent the electronic device 100 from being connected to the external device 200 as a DFP device.

電子機器100と外部機器200との接続が切断されると、外部機器200のシステム制御部210はトグリングを再開する。また、電子機器100と外部機器200との接続が切断されると、電子機器100のシステム制御部110は、CC端子101bがプルダウン抵抗104に接続されるようにスイッチ制御部109を制御する。タイミングt8は、CC端子101bがプルダウン抵抗104に接続されるタイミングを示している。タイミングt8においては、電子機器100のCC端子101bはプルダウン抵抗104に接続されており、外部機器200のCC端子201bはプルダウン抵抗204に接続されている。このため、CC端子101bの電位Vsは接地電位GNDとなる。接地電位GNDは、式(1)に示す所定の範囲内の電位ではない。従って、タイミングt8からタイミングt9までの間においては、電子機器100と外部機器200とがケーブル300を介して接続されていることは接続検出部112によって検出されない。電子機器100のシステム制御部110は、CC端子101bがプルダウン抵抗104に接続されている状態を維持し、トグリングを再開させない。 When the connection between the electronic device 100 and the external device 200 is disconnected, the system control unit 210 of the external device 200 restarts the toggle ring. When the connection between the electronic device 100 and the external device 200 is disconnected, the system control unit 110 of the electronic device 100 controls the switch control unit 109 so that the CC terminal 101b is connected to the pull-down resistor 104. The timing t8 indicates the timing at which the CC terminal 101b is connected to the pull-down resistor 104. At the timing t8, the CC terminal 101b of the electronic device 100 is connected to the pull-down resistor 104, and the CC terminal 201b of the external device 200 is connected to the pull-down resistor 204. Therefore, the potential Vs of the CC terminal 101b becomes the ground potential GND. The ground potential GND is not within the predetermined range shown in the equation (1). Therefore, between the timing t8 and the timing t9, the connection detection unit 112 does not detect that the electronic device 100 and the external device 200 are connected via the cable 300. The system control unit 110 of the electronic device 100 maintains the state in which the CC terminal 101b is connected to the pull-down resistor 104, and does not restart the toggle ring.

タイミングt9において、外部機器200のCC端子201bに接続される抵抗がプルダウン抵抗204からプルアップ抵抗203に切り替わると、電子機器100のCC端子101bの電位Vsは、式(1)に示す所定の範囲内の電位となる。電子機器100の接続検出部112は、電子機器100と外部機器200とがケーブル300によって接続されたと判定する。このような状態で電子機器100と外部機器200との接続が確立されると、電子機器100はUFP機器とされ、外部機器200はDFP機器とされる。 At the timing t9, when the resistor connected to the CC terminal 201b of the external device 200 is switched from the pull-down resistor 204 to the pull-up resistor 203, the potential Vs of the CC terminal 101b of the electronic device 100 becomes a predetermined range shown in the equation (1). It becomes the potential inside. The connection detection unit 112 of the electronic device 100 determines that the electronic device 100 and the external device 200 are connected by the cable 300. When the connection between the electronic device 100 and the external device 200 is established in such a state, the electronic device 100 is regarded as a UFP device, and the external device 200 is regarded as a DFP device.

このように、本実施形態では、CC端子101bがプルアップ抵抗103に接続されている際に、電子機器100と外部機器200とがケーブル300を介して接続されたことが検出された場合には、CC端子101bをプルダウン抵抗104に接続する。そして、本実施形態による電子機器100は、CC端子101bをプルダウン抵抗104に接続した状態を維持し、トグリングを再開しない。このため、本実施形態によれば、電子機器100をUFP機器として外部機器200との接続を速やかに確立し得る。 As described above, in the present embodiment, when it is detected that the electronic device 100 and the external device 200 are connected via the cable 300 when the CC terminal 101b is connected to the pull-up resistor 103, , CC terminal 101b is connected to the pull-down resistor 104. Then, the electronic device 100 according to the present embodiment maintains the state in which the CC terminal 101b is connected to the pull-down resistor 104, and does not restart the toggling. Therefore, according to the present embodiment, the electronic device 100 can be used as a UFP device to quickly establish a connection with the external device 200.

[第3実施形態]
第3実施形態による電子機器及びその制御方法について図面を用いて説明する。図10は、本実施形態による電子機器100aを示すブロック図である。図1乃至図9に示す第1又は第2実施形態による電子機器と同一の構成要素には、同一の符号を付して説明を省略または簡潔にする。
[Third Embodiment]
The electronic device according to the third embodiment and the control method thereof will be described with reference to the drawings. FIG. 10 is a block diagram showing an electronic device 100a according to the present embodiment. The same components as those of the electronic device according to the first or second embodiment shown in FIGS. 1 to 9 are designated by the same reference numerals, and the description thereof will be omitted or simplified.

本実施形態による電子機器100aは、電圧監視部113を用いて外部機器200のCC端子201bの電位を監視し、外部機器200のCC端子201bがプルアップされている際に、スイッチ114を閉じるものである。 The electronic device 100a according to the present embodiment monitors the potential of the CC terminal 201b of the external device 200 by using the voltage monitoring unit 113, and closes the switch 114 when the CC terminal 201b of the external device 200 is pulled up. Is.

本実施形態による電子機器100aは、第1及び第2実施形態による電子機器100と同様に、コネクタ101、プルアップ抵抗103、プルダウン抵抗104、スイッチ107、システム制御部110、タイマ部111及び接続検出部112を備えている。また、本実施形態による電子機器100aは、電圧監視部113と、スイッチ制御部109aと、スイッチ114とを備えている。 Like the electronic devices 100 according to the first and second embodiments, the electronic device 100a according to the present embodiment includes the connector 101, the pull-up resistor 103, the pull-down resistor 104, the switch 107, the system control unit 110, the timer unit 111, and the connection detection. The unit 112 is provided. Further, the electronic device 100a according to the present embodiment includes a voltage monitoring unit 113, a switch control unit 109a, and a switch 114.

スイッチ114は、開閉動作を行うものである。スイッチ114は、CC端子101bとスイッチ107との間に備えられている。 The switch 114 performs an opening / closing operation. The switch 114 is provided between the CC terminal 101b and the switch 107.

電圧監視部(電位監視部)113は、コネクタ101に備えられたCC端子101bの電位Vsを監視する。CC端子101bの電位Vsを監視する方法としては、例えば、CC端子101bの電位Vsに悪影響を与えない範囲で抵抗分圧を行うことによって電位Vsを検出する方法や、ボルテージフォロアを用いて電位Vsを検出する方法が挙げられる。CC端子101bの電位Vsの検出方法は、これらに限定されるものではない。 The voltage monitoring unit (potential monitoring unit) 113 monitors the potential Vs of the CC terminal 101b provided on the connector 101. As a method of monitoring the potential Vs of the CC terminal 101b, for example, a method of detecting the potential Vs by performing resistance voltage division within a range that does not adversely affect the potential Vs of the CC terminal 101b, or a method of detecting the potential Vs using a voltage follower. There is a method of detecting. The method for detecting the potential Vs of the CC terminal 101b is not limited to these.

スイッチ制御部109aは、システム制御部110からの指示に基づいてスイッチ107やスイッチ114を制御する。スイッチ制御部109aは、スイッチ107を周期的に切り替えるとともに、スイッチ114の開閉を制御する。スイッチ114を閉じた状態にすると、CC端子101bとスイッチ107とが接続された状態になる。一方、スイッチ114を開放した状態にすると、CC端子101bとスイッチ107とが接続されていない状態になる。CC端子101bがケーブル300を介して外部機器200のCC端子201bに接続されており、且つ、CC端子101bがスイッチ107に接続されていない状態においては、外部機器200のCC端子201bの電位を電圧監視部113によって監視し得る。 The switch control unit 109a controls the switch 107 and the switch 114 based on an instruction from the system control unit 110. The switch control unit 109a periodically switches the switch 107 and controls the opening and closing of the switch 114. When the switch 114 is closed, the CC terminal 101b and the switch 107 are connected. On the other hand, when the switch 114 is opened, the CC terminal 101b and the switch 107 are not connected. When the CC terminal 101b is connected to the CC terminal 201b of the external device 200 via the cable 300 and the CC terminal 101b is not connected to the switch 107, the potential of the CC terminal 201b of the external device 200 is voltageed. It can be monitored by the monitoring unit 113.

システム制御部110は、スイッチ114を開放した状態で電圧監視部113によって検出されるCC端子101bの電位に基づいて、スイッチ114を所定の期間だけ閉じるものである。システム制御部110は、外部機器200のCC端子201bがプルアップ抵抗203に接続されたことが電圧監視部113を介して検出された際には、以下のように動作する。即ち、システム制御部110は、タイマ部111を用いて時間の計測を開始するとともに、スイッチ114が閉じた状態になるようにスイッチ制御部109aを制御する。システム制御部110は、タイマ部111により計測された時間Tが第2の閾値TH2未満である場合には、スイッチ114を閉じた状態に維持する。そして、電子機器100aと外部機器200とがケーブル300を介して接続されたことが接続検出部112によって検出された場合には、電子機器100aをUFP機器として外部機器200に接続する。第2の閾値TH2は、CC端子がプルアップされる期間であるプルアップ期間の最小値に基づいて設定される。タイマ部111により計測された時間Tが、プルアップ期間の最小値未満であれば、外部機器200のCC端子201bはプルアップ抵抗203に接続されたままである。外部機器200のCC端子201bがプルアップ抵抗203に接続された状態で、CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位になれば、電子機器100aはプルダウン抵抗104に接続されていることとなる。従って、この場合には、電子機器100aをUFP機器として外部機器200に接続し得る。 The system control unit 110 closes the switch 114 for a predetermined period based on the potential of the CC terminal 101b detected by the voltage monitoring unit 113 with the switch 114 open. The system control unit 110 operates as follows when it is detected via the voltage monitoring unit 113 that the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. That is, the system control unit 110 starts measuring the time using the timer unit 111, and controls the switch control unit 109a so that the switch 114 is in the closed state. When the time T measured by the timer unit 111 is less than the second threshold value TH2, the system control unit 110 keeps the switch 114 in the closed state. When the connection detection unit 112 detects that the electronic device 100a and the external device 200 are connected via the cable 300, the electronic device 100a is connected to the external device 200 as a UFP device. The second threshold value TH2 is set based on the minimum value of the pull-up period, which is the period during which the CC terminal is pulled up. If the time T measured by the timer unit 111 is less than the minimum value of the pull-up period, the CC terminal 201b of the external device 200 remains connected to the pull-up resistor 203. When the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203 and the potential Vs of the CC terminal 101b falls within the predetermined range shown in the equation (1), the electronic device 100a becomes the pull-down resistor 104. It will be connected. Therefore, in this case, the electronic device 100a can be connected to the external device 200 as a UFP device.

プルアップ期間の最小値、即ち、下限値は、例えばUSB Type−C規格等において定められており、例えば15msである。一方、クロック信号のばらつき等によって、タイマ部111による時間の計測結果にはばらつきが生じ得る。クロック信号のばらつきに起因するタイマ部111の計測結果のばらつきが例えば1ms程度である場合、第2の閾値TH2は例えば14ms程度に設定し得る。なお、第2の閾値TH2は、これに限定されるものではなく、適宜設定し得る。このように、第2の閾値TH2、即ち、所定の期間は、プルアップ期間についての規格上の下限値よりも短く設定される。 The minimum value of the pull-up period, that is, the lower limit value is defined in, for example, the USB Type-C standard, and is, for example, 15 ms. On the other hand, the time measurement result by the timer unit 111 may vary due to variations in the clock signal and the like. When the variation in the measurement result of the timer unit 111 due to the variation in the clock signal is, for example, about 1 ms, the second threshold value TH2 can be set to, for example, about 14 ms. The second threshold value TH2 is not limited to this, and can be set as appropriate. In this way, the second threshold TH2, that is, the predetermined period, is set shorter than the standard lower limit value for the pull-up period.

システム制御部110は、タイマ部111により計測された時間Tが第2の閾値TH2以上である場合には、スイッチ114を開放する。タイマ部111により計測された時間Tが第2の閾値TH2以上になると、外部機器200のCC端子201bがプルダウン抵抗204に接続される可能性が生じるためである。 The system control unit 110 opens the switch 114 when the time T measured by the timer unit 111 is equal to or greater than the second threshold value TH2. This is because when the time T measured by the timer unit 111 becomes equal to or higher than the second threshold value TH2, the CC terminal 201b of the external device 200 may be connected to the pull-down resistor 204.

図11(a)は、外部機器200のCC端子201bの状態と、スイッチ114の状態とを示すタイムチャートである。図11(a)に示すように、タイマ部111による計測結果が第2の閾値TH2未満のタイミングにおいては、外部機器200のCC端子201bはプルアップ抵抗203に接続されている。図11(b)は、比較例におけるタイムチャートである。図11(b)に示すように、タイマ部111による計測結果が第2の閾値TH2以上のタイミングにおいては、外部機器200のCC端子201bがプルダウン抵抗204に接続されている場合がある。 FIG. 11A is a time chart showing the state of the CC terminal 201b of the external device 200 and the state of the switch 114. As shown in FIG. 11A, the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203 at the timing when the measurement result by the timer unit 111 is less than the second threshold value TH2. FIG. 11B is a time chart in a comparative example. As shown in FIG. 11B, the CC terminal 201b of the external device 200 may be connected to the pull-down resistor 204 at the timing when the measurement result by the timer unit 111 is equal to or higher than the second threshold value TH2.

システム制御部110は、CC端子201bの電位の経時的な変化を、電圧監視部113を介して観測し、外部機器200におけるトグリングの周期を把握することも可能である。システム制御部110は、こうして把握した外部機器200におけるトグリングの周期に基づいて、第2の閾値TH2を決定するようにしてもよい。 The system control unit 110 can also observe the change in the potential of the CC terminal 201b over time via the voltage monitoring unit 113 and grasp the toggle cycle in the external device 200. The system control unit 110 may determine the second threshold value TH2 based on the toggle ring cycle in the external device 200 thus grasped.

図12は、本実施形態による電子機器100aの動作を示すフローチャートである。
ステップS801において、システム制御部110は、スイッチ114が開放状態になるようにスイッチ制御部109aを制御する。
ステップS802において、システム制御部110は、トグリングが開始されるようにスイッチ制御部109aを制御する。トグリングは、スイッチ107を周期的に切り替えることによって行われる。
FIG. 12 is a flowchart showing the operation of the electronic device 100a according to the present embodiment.
In step S801, the system control unit 110 controls the switch control unit 109a so that the switch 114 is in the open state.
In step S802, the system control unit 110 controls the switch control unit 109a so that the toggle ring is started. Toggling is performed by periodically switching the switch 107.

ステップS803において、システム制御部110は、CC端子101bの電位Vsが閾値以上であるか否か、具体的には、第3の閾値TH3以上であるか否かを判定する。CC端子101bの電位が第3の閾値TH3以上であることは、外部機器200のCC端子201bがプルアップ抵抗203に接続されていることを意味する。CC端子101bの電位が第3の閾値TH3未満であることは、外部機器200のCC端子201bがプルアップ抵抗203に接続されていないか、電子機器100aと外部機器200とがケーブル300を介して接続されていないことを意味する。第3の閾値TH3は、外部機器200のCC端子201bがプルアップ抵抗203に接続されていることを判定可能な電位であればよく、適宜設定し得る。CC端子101bの電位Vsが第3の閾値TH3以上である場合には(ステップS803においてYES)、ステップS804に移行する。一方、CC端子101bの電位Vsが第3の閾値TH3未満である場合には(ステップS803においてNO)、ステップS803が繰り返される。 In step S803, the system control unit 110 determines whether or not the potential Vs of the CC terminal 101b is equal to or greater than the threshold value, specifically, whether or not the potential Vs of the CC terminal 101b is equal to or greater than the third threshold value TH3. When the potential of the CC terminal 101b is equal to or higher than the third threshold value TH3, it means that the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. The fact that the potential of the CC terminal 101b is less than the third threshold value TH3 means that the CC terminal 201b of the external device 200 is not connected to the pull-up resistor 203, or the electronic device 100a and the external device 200 are connected via the cable 300. It means that it is not connected. The third threshold value TH3 may be set as appropriate as long as it has a potential at which it can be determined that the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. When the potential Vs of the CC terminal 101b is equal to or higher than the third threshold value TH3 (YES in step S803), the process proceeds to step S804. On the other hand, when the potential Vs of the CC terminal 101b is less than the third threshold value TH3 (NO in step S803), step S803 is repeated.

ステップS804において、タイマ部111は、時間の計測を開始する。この後、ステップS805に移行する。
ステップS805において、システム制御部110は、スイッチ114が閉じた状態になるようにスイッチ制御部109aを制御する。これにより、CC端子101bとスイッチ107とが接続された状態になる。この後、ステップS806に移行する。
In step S804, the timer unit 111 starts measuring the time. After that, the process proceeds to step S805.
In step S805, the system control unit 110 controls the switch control unit 109a so that the switch 114 is in the closed state. As a result, the CC terminal 101b and the switch 107 are connected to each other. After that, the process proceeds to step S806.

ステップS806において、システム制御部110は、タイマ部111によって計測された時間Tが第2の閾値TH2以上であるか否かを判定する。タイマ部111によって計測された時間Tが第2の閾値TH2未満である場合には(ステップS806においてNO)、ステップS808に移行する。タイマ部111によって計測された時間Tが第2の閾値TH2未満であるということは、外部機器200のCC端子201bがプルアップ抵抗203に接続されていることを意味する。一方、タイマ部111によって計測された時間Tが第2の閾値TH2以上である場合には(ステップS806においてYES)、ステップS807に移行する。ステップS807において、システム制御部110は、スイッチ114が開放状態になるようにスイッチ制御部109aを制御する。この後、ステップS803に戻る。 In step S806, the system control unit 110 determines whether or not the time T measured by the timer unit 111 is equal to or greater than the second threshold value TH2. If the time T measured by the timer unit 111 is less than the second threshold value TH2 (NO in step S806), the process proceeds to step S808. The fact that the time T measured by the timer unit 111 is less than the second threshold value TH2 means that the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. On the other hand, when the time T measured by the timer unit 111 is equal to or greater than the second threshold value TH2 (YES in step S806), the process proceeds to step S807. In step S807, the system control unit 110 controls the switch control unit 109a so that the switch 114 is in the open state. After that, the process returns to step S803.

ステップS808において、接続検出部112は、電子機器100aと外部機器200とがケーブル300を介して接続されているか否かを判定する。電子機器100aと外部機器200とがケーブル300を介して接続されているか否かは、CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位であるか否かによって判定される。電子機器100aと外部機器200とがケーブル300を介して接続されていないと判定された場合には(ステップS808においてNO)、ステップS806に戻る。一方、電子機器100aと外部機器200とがケーブル300を介して接続されていると判定された場合には(ステップS808においてYES)、電子機器100aをUFP機器として外部機器200に接続する(ステップS809)。こうして、図12に示す処理が終了する。 In step S808, the connection detection unit 112 determines whether or not the electronic device 100a and the external device 200 are connected via the cable 300. Whether or not the electronic device 100a and the external device 200 are connected via the cable 300 is determined by whether or not the potential Vs of the CC terminal 101b is within a predetermined range shown in the equation (1). .. If it is determined that the electronic device 100a and the external device 200 are not connected via the cable 300 (NO in step S808), the process returns to step S806. On the other hand, when it is determined that the electronic device 100a and the external device 200 are connected via the cable 300 (YES in step S808), the electronic device 100a is connected to the external device 200 as a UFP device (step S809). ). In this way, the process shown in FIG. 12 is completed.

このように、本実施形態によれば、電圧監視部113を用いて外部機器200のCC端子201bの電位を監視し、外部機器200のCC端子201bがプルアップ抵抗203に接続されている際にスイッチ114を閉じる。CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位になった場合には、外部機器200のCC端子201bはプルアップ抵抗203に接続されており、電子機器100aのCC端子101bはプルダウン抵抗104に接続されている。従って、本実施形態によれば、電子機器100aをUFP機器として外部機器200に速やかに接続することが可能となる。 As described above, according to the present embodiment, the voltage monitoring unit 113 is used to monitor the potential of the CC terminal 201b of the external device 200, and when the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203. Close the switch 114. When the potential Vs of the CC terminal 101b is within the predetermined range shown in the equation (1), the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203, and the CC terminal of the electronic device 100a is connected. 101b is connected to the pull-down resistor 104. Therefore, according to the present embodiment, the electronic device 100a can be quickly connected to the external device 200 as a UFP device.

[第4実施形態]
第4実施形態による電子機器及びその制御方法について図面を用いて説明する。図13は、本実施形態による電子機器を示すブロック図である。図1乃至図12に示す第1乃至第3実施形態による電子機器と同一の構成要素には、同一の符号を付して説明を省略または簡潔にする。
[Fourth Embodiment]
An electronic device according to a fourth embodiment and a control method thereof will be described with reference to the drawings. FIG. 13 is a block diagram showing an electronic device according to the present embodiment. The same components as those of the electronic devices according to the first to third embodiments shown in FIGS. 1 to 12 are designated by the same reference numerals, and the description thereof will be omitted or simplified.

本実施形態による電子機器100bは、スイッチ114とスイッチ107との間の所定箇所115の電位Vs′を、電圧監視部113を用いて監視するものである。そして、本実施形態による電子機器100bは、当該所定箇所115がスイッチ107を介してプルダウン抵抗104に接続されている際に、スイッチ114を閉じるものである。 The electronic device 100b according to the present embodiment monitors the potential Vs'at a predetermined position 115 between the switch 114 and the switch 107 by using the voltage monitoring unit 113. Then, the electronic device 100b according to the present embodiment closes the switch 114 when the predetermined portion 115 is connected to the pull-down resistor 104 via the switch 107.

電圧監視部113は、スイッチ114とスイッチ107との間の所定箇所115の電位Vs′を監視する。所定箇所115の電位Vs′を監視する方法としては、例えば、所定箇所115の電位Vs′に悪影響を与えない範囲で抵抗分圧を行うことによって電位Vs′を検出する方法が挙げられる。また、所定箇所115の電位Vs′を監視する方法として、ボルテージフォロアを用いて所定箇所115の電位Vs′を検出する方法が挙げられる。しかし、所定箇所115の電位Vs′を監視する方法は、これらに限定されるものではない。 The voltage monitoring unit 113 monitors the potential Vs'at a predetermined location 115 between the switch 114 and the switch 107. Examples of the method of monitoring the potential Vs'at the predetermined location 115 include a method of detecting the potential Vs' by performing resistance partial pressure within a range that does not adversely affect the potential Vs' at the predetermined location 115. Further, as a method of monitoring the potential Vs'at the predetermined location 115, there is a method of detecting the potential Vs' at the predetermined location 115 using a voltage follower. However, the method of monitoring the potential Vs'at the predetermined location 115 is not limited to these.

スイッチ制御部109aは、システム制御部110からの指示に基づいてスイッチ107やスイッチ114を制御する。スイッチ114を閉じた状態にすると、CC端子101bとスイッチ107とが接続された状態になる。一方、スイッチ114を開放した状態にすると、CC端子101bとスイッチ107とが接続されていない状態になる。スイッチ114を開放した状態において、電圧監視部113は、所定箇所115がスイッチ107を介してプルアップ抵抗103に接続されているか、それともプルダウン抵抗104に接続されているかを監視し得る。 The switch control unit 109a controls the switch 107 and the switch 114 based on an instruction from the system control unit 110. When the switch 114 is closed, the CC terminal 101b and the switch 107 are connected. On the other hand, when the switch 114 is opened, the CC terminal 101b and the switch 107 are not connected. With the switch 114 open, the voltage monitoring unit 113 can monitor whether the predetermined location 115 is connected to the pull-up resistor 103 or the pull-down resistor 104 via the switch 107.

システム制御部110は、所定箇所115がスイッチ107を介してプルダウン抵抗204に接続されたことが電圧監視部113を介して検出された際には、以下のように動作する。即ち、システム制御部110は、タイマ部111を用いて時間の計測を開始するとともに、スイッチ114が閉じた状態になるようにスイッチ制御部109aを制御する。システム制御部110は、タイマ部111により計測された時間Tが第4の閾値TH4未満である場合には、スイッチ114を閉じた状態に維持する。そして、電子機器100bと外部機器200とがケーブル300を介して接続されたことが接続検出部112によって検出された場合には、電子機器100bをUFP機器として外部機器200に接続する。第4の閾値TH4は、例えば、CC端子101bがプルダウンされる期間であるプルダウン期間に基づいて設定される。第4の閾値TH4は、電子機器100のプルダウン期間よりも短く設定される。タイマ部111により計測された時間Tが、プルダウン期間未満であれば、所定箇所115はプルダウン抵抗204に接続されたままである。所定箇所115がプルダウン抵抗204に接続された状態で、CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位になれば、外部機器200はプルアップ抵抗203に接続されていることとなる。従って、この場合には、電子機器100bをUFP機器として外部機器200に接続し得る。 The system control unit 110 operates as follows when it is detected via the voltage monitoring unit 113 that the predetermined location 115 is connected to the pull-down resistor 204 via the switch 107. That is, the system control unit 110 starts measuring the time using the timer unit 111, and controls the switch control unit 109a so that the switch 114 is in the closed state. When the time T measured by the timer unit 111 is less than the fourth threshold value TH4, the system control unit 110 keeps the switch 114 in the closed state. Then, when the connection detection unit 112 detects that the electronic device 100b and the external device 200 are connected via the cable 300, the electronic device 100b is connected to the external device 200 as a UFP device. The fourth threshold value TH4 is set based on, for example, a pull-down period, which is a period during which the CC terminal 101b is pulled down. The fourth threshold value TH4 is set shorter than the pull-down period of the electronic device 100. If the time T measured by the timer unit 111 is less than the pull-down period, the predetermined location 115 remains connected to the pull-down resistor 204. If the potential Vs of the CC terminal 101b is within the predetermined range shown in the equation (1) while the predetermined location 115 is connected to the pull-down resistor 204, the external device 200 is connected to the pull-up resistor 203. It will be. Therefore, in this case, the electronic device 100b can be connected to the external device 200 as a UFP device.

プルダウン期間は、例えばUSB Type−C規格等を満たすように電子機器100bにおいて設定される。一方、クロック信号のばらつき等によって、タイマ部111による時間の計測結果にはばらつきが生じ得る。クロック信号のばらつきに起因するタイマ部111の計測結果のばらつきと、プルダウン期間とに基づいて、第4の閾値TH4が設定される。なお、第4の閾値TH4は、これに限定されるものではなく、適宜設定し得る。 The pull-down period is set in the electronic device 100b so as to satisfy, for example, the USB Type-C standard. On the other hand, the time measurement result by the timer unit 111 may vary due to variations in the clock signal and the like. The fourth threshold value TH4 is set based on the variation in the measurement result of the timer unit 111 due to the variation in the clock signal and the pull-down period. The fourth threshold value TH4 is not limited to this, and can be set as appropriate.

システム制御部110は、タイマ部111により計測された時間Tが第4の閾値TH4以上である場合には、スイッチ114を開放する。タイマ部111により計測された時間Tが第4の閾値TH4以上になると、電子機器100bのCC端子101bがプルアップ抵抗103に接続される可能性が生じるためである。 The system control unit 110 opens the switch 114 when the time T measured by the timer unit 111 is equal to or greater than the fourth threshold value TH4. This is because when the time T measured by the timer unit 111 becomes equal to or higher than the fourth threshold value TH4, the CC terminal 101b of the electronic device 100b may be connected to the pull-up resistor 103.

なお、ここでは、タイマ部111によって計測された時間Tが第4の閾値TH4以上である場合に、スイッチ114を開放する場合を例に説明したが、これに限定されるものではない。所定箇所115が接続される抵抗がプルダウン抵抗104からプルアップ抵抗105に切り替わるタイミングを、タイマ部111を用いることなく検出するようにし、当該タイミングに応じてスイッチ114を閉じるようにしてもよい。 Here, the case where the switch 114 is opened when the time T measured by the timer unit 111 is equal to or higher than the fourth threshold value TH4 has been described as an example, but the present invention is not limited to this. The timing at which the resistor to which the predetermined location 115 is connected switches from the pull-down resistor 104 to the pull-up resistor 105 may be detected without using the timer unit 111, and the switch 114 may be closed according to the timing.

図14は、電子機器100bの所定箇所115の状態と、スイッチ114の状態とを示すタイムチャートである。図14に示すように、タイマ部111による計測結果が第4の閾値TH4未満のタイミングにおいては、電子機器100bの所定箇所115はプルダウン抵抗104に接続されている。 FIG. 14 is a time chart showing the state of the predetermined portion 115 of the electronic device 100b and the state of the switch 114. As shown in FIG. 14, when the measurement result by the timer unit 111 is less than the fourth threshold value TH4, the predetermined portion 115 of the electronic device 100b is connected to the pull-down resistor 104.

図15は、本実施形態による電子機器100bの動作を示すフローチャートである。
ステップS1001において、システム制御部110は、スイッチ114が開放状態になるようにスイッチ制御部109aを制御する。
FIG. 15 is a flowchart showing the operation of the electronic device 100b according to the present embodiment.
In step S1001, the system control unit 110 controls the switch control unit 109a so that the switch 114 is in the open state.

ステップS1002において、システム制御部110は、トグリングが開始されるようにスイッチ制御部109aを制御する。トグリングは、スイッチ107を周期的に切り替えることによって行われる。 In step S1002, the system control unit 110 controls the switch control unit 109a so that the toggle ring is started. Toggling is performed by periodically switching the switch 107.

ステップS1003において、システム制御部110は、所定箇所115の電位Vs′が閾値未満であるか否か、具体的には、第5の閾値TH5未満であるか否かを判定する。所定箇所115の電位Vs′が第5の閾値TH5未満であることは、所定箇所115がプルダウン抵抗104に接続されていることを意味する。所定箇所115の電位Vs′が第5の閾値TH5以上であることは、所定箇所115がプルダウン抵抗104に接続されていることを意味する。第5の閾値TH5は、所定箇所115がプルダウン抵抗104に接続されていることを判定可能な電位であればよく、適宜設定し得る。所定箇所115の電位Vs′が第5の閾値TH5未満である場合には(ステップS1003においてYES)、ステップS1004に移行する。一方、所定箇所115の電位Vs′が第5の閾値TH5以上である場合には(ステップS1003においてNO)、ステップS1003が繰り返される。 In step S1003, the system control unit 110 determines whether or not the potential Vs'at the predetermined location 115 is less than the threshold value, specifically, whether or not it is less than the fifth threshold value TH5. When the potential Vs'at the predetermined location 115 is less than the fifth threshold value TH5, it means that the predetermined location 115 is connected to the pull-down resistor 104. When the potential Vs'at the predetermined location 115 is equal to or higher than the fifth threshold value TH5, it means that the predetermined location 115 is connected to the pull-down resistor 104. The fifth threshold value TH5 may be set as appropriate as long as it has a potential at which it can be determined that the predetermined portion 115 is connected to the pull-down resistor 104. If the potential Vs'at the predetermined location 115 is less than the fifth threshold value TH5 (YES in step S1003), the process proceeds to step S1004. On the other hand, when the potential Vs'at the predetermined location 115 is equal to or higher than the fifth threshold value TH5 (NO in step S1003), step S1003 is repeated.

ステップS1004において、タイマ部111は、時間の計測を開始する。この後、ステップS1005に移行する。
ステップS1005において、システム制御部110は、スイッチ114が閉じた状態になるようにスイッチ制御部109aを制御する。これにより、CC端子101bと所定箇所115とが接続された状態になる。この後、ステップS1006に移行する。
In step S1004, the timer unit 111 starts measuring the time. After that, the process proceeds to step S1005.
In step S1005, the system control unit 110 controls the switch control unit 109a so that the switch 114 is in the closed state. As a result, the CC terminal 101b and the predetermined location 115 are connected to each other. After that, the process proceeds to step S1006.

ステップS1006において、システム制御部110は、タイマ部111によって計測された時間Tが第4の閾値TH4以上であるか否かを判定する。タイマ部111によって計測された時間Tが第4の閾値TH4未満である場合には(ステップS1006においてNO)、ステップS1008に移行する。タイマ部111によって計測された時間Tが第4の閾値TH4未満であるということは、所定箇所115がプルダウン抵抗104に接続されていることを意味する。一方、タイマ部111によって計測された時間Tが第4の閾値TH4以上である場合には(ステップS1006においてYES)、ステップS1007に移行する。ステップS1007において、システム制御部110は、スイッチ114が開放状態になるようにスイッチ制御部109aを制御する。この後、ステップS1003に戻る。 In step S1006, the system control unit 110 determines whether or not the time T measured by the timer unit 111 is equal to or greater than the fourth threshold value TH4. If the time T measured by the timer unit 111 is less than the fourth threshold value TH4 (NO in step S1006), the process proceeds to step S1008. When the time T measured by the timer unit 111 is less than the fourth threshold value TH4, it means that the predetermined position 115 is connected to the pull-down resistor 104. On the other hand, when the time T measured by the timer unit 111 is equal to or greater than the fourth threshold value TH4 (YES in step S1006), the process proceeds to step S1007. In step S1007, the system control unit 110 controls the switch control unit 109a so that the switch 114 is in the open state. After that, the process returns to step S1003.

ステップS1008において、接続検出部112は、電子機器100bと外部機器200とがケーブル300を介して接続されているか否かを判定する。電子機器100bと外部機器200とがケーブル300を介して接続されているか否かは、CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位であるか否かによって判定される。電子機器100bと外部機器200とがケーブル300を介して接続されていないと判定された場合には(ステップS1008においてNO)、ステップS1006に戻る。一方、電子機器100bと外部機器200とがケーブル300を介して接続されていると判定された場合には(ステップS1008においてYES)、電子機器100bをUFP機器として外部機器200に接続する(ステップS1009)。こうして、図15に示す処理が終了する。 In step S1008, the connection detection unit 112 determines whether or not the electronic device 100b and the external device 200 are connected via the cable 300. Whether or not the electronic device 100b and the external device 200 are connected via the cable 300 is determined by whether or not the potential Vs of the CC terminal 101b is within a predetermined range shown in the equation (1). .. If it is determined that the electronic device 100b and the external device 200 are not connected via the cable 300 (NO in step S1008), the process returns to step S1006. On the other hand, when it is determined that the electronic device 100b and the external device 200 are connected via the cable 300 (YES in step S1008), the electronic device 100b is connected to the external device 200 as a UFP device (step S1009). ). In this way, the process shown in FIG. 15 is completed.

このように、本実施形態によれば、スイッチ114とスイッチ107との間の所定箇所115の電位Vs′の電位を、電圧監視部113を用いて監視し、所定箇所115がプルダウン抵抗104に接続されている際にスイッチ114を閉じる。CC端子101bの電位Vsが式(1)に示す所定の範囲内の電位になった場合には、外部機器200のCC端子201bはプルアップ抵抗203に接続されており、電子機器100bのCC端子101bはプルダウン抵抗104に接続されている。従って、本実施形態によれば、電子機器100bをUFP機器として外部機器200に速やかに接続することが可能となる。 As described above, according to the present embodiment, the potential of the potential Vs'at the predetermined location 115 between the switch 114 and the switch 107 is monitored by using the voltage monitoring unit 113, and the predetermined location 115 is connected to the pull-down resistor 104. The switch 114 is closed when the switch 114 is set. When the potential Vs of the CC terminal 101b is within the predetermined range shown in the equation (1), the CC terminal 201b of the external device 200 is connected to the pull-up resistor 203, and the CC terminal of the electronic device 100b is connected. 101b is connected to the pull-down resistor 104. Therefore, according to the present embodiment, the electronic device 100b can be quickly connected to the external device 200 as a UFP device.

[その他の実施形態]
以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されるものではなく、その要旨の範囲内で種々の変形及び変更が可能である。
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other Embodiments]
Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and modifications can be made within the scope of the gist thereof.
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

100…電子機器
101…コネクタ
103…プルアップ抵抗
104…プルダウン抵抗
107…スイッチ
109、109a…スイッチ制御部
110…システム制御部
111…タイマ部
112…接続検出部
113…電圧監視部
114…スイッチ
100 ... Electronic device 101 ... Connector 103 ... Pull-up resistor 104 ... Pull-down resistor 107 ... Switch 109, 109a ... Switch control unit 110 ... System control unit 111 ... Timer unit 112 ... Connection detection unit 113 ... Voltage monitoring unit 114 ... Switch

Claims (16)

外部機器を接続可能であるとともに、前記外部機器との間で受給電を行い得るコネクタと、
前記コネクタに備えられた所定の端子と、
接続を切り替えるスイッチと、
前記スイッチを介して前記所定の端子に接続可能なプルアップ抵抗と、
前記スイッチを介して前記所定の端子に接続可能なプルダウン抵抗と、
前記スイッチを周期的に切り替える制御部であって、前記所定の端子が前記プルアップ抵抗に接続された状態で、前記所定の端子の電位が所定の範囲内となったことを検出してから所定時間以内に、前記所定の端子と前記プルアップ抵抗とが未接続となるように前記スイッチを制御する制御部と
を有し、
前記所定の範囲の上限は、前記プルアップ抵抗に接続された電源線の電位より低く、前記所定の範囲の下限は、前記プルダウン抵抗に接続された接地線の電位より高いことを特徴とする電子機器。
A connector that can be connected to an external device and can receive and receive power from the external device.
A predetermined terminal provided on the connector and
A switch to switch the connection and
A pull-up resistor that can be connected to the predetermined terminal via the switch,
A pull-down resistor that can be connected to the predetermined terminal via the switch,
Said switch and a control unit which periodically switches a state where the predetermined terminal is connected to the pull-up resistor, since it is detected that the potential of the predetermined terminal is Tsu Do within a predetermined range within a predetermined time, the predetermined terminal and the pull-up resistors have a control unit for controlling the switch so that the unconnected,
The upper limit of the predetermined range is lower than the potential of the power supply line connected to the pull-up resistor, and the lower limit of the predetermined range is higher than the potential of the ground wire connected to the pull-up resistor. machine.
前記制御部は、前記所定の端子が前記プルアップ抵抗に接続された状態で、前記所定の端子の電位が前記所定の範囲内となったことを検出してから前記所定時間以内に、前記スイッチを開放状態にすることを特徴とする請求項1に記載の電子機器。 The control unit detects that the potential of the predetermined terminal is within the predetermined range in a state where the predetermined terminal is connected to the pull-up resistor, and the switch is within the predetermined time. The electronic device according to claim 1, wherein the electronic device is opened. 前記制御部は、前記所定の端子が前記プルアップ抵抗に接続された状態で、前記所定の端子の電位が前記所定の範囲内となったことを検出してから前記所定時間以内に、前記所定の端子と前記プルダウン抵抗とが接続されるように前記スイッチを制御することを特徴とする請求項1に記載の電子機器。 The control unit detects that the potential of the predetermined terminal is within the predetermined range in a state where the predetermined terminal is connected to the pull-up resistor, and within the predetermined time, the predetermined terminal is connected. the electronic device according to claim 1 in which the terminal and the pull-down resistor and controls the switch so as to connect. 前記制御部は、前記所定の端子が前記プルアップ抵抗に接続された状態で、前記所定の端子の電位が前記所定の範囲内となったことを検出してから前記所定時間以内に前記所定の端子と前記プルアップ抵抗とが未接続となるように前記スイッチを制御した後、前記スイッチの周期的な切り替えを再開することを特徴とする請求項1からのいずれか1項に記載の電子機器。 The control unit detects that the potential of the predetermined terminal is within the predetermined range in a state where the predetermined terminal is connected to the pull-up resistor, and then the predetermined terminal is within the predetermined time. The electron according to any one of claims 1 to 3 , wherein the switch is controlled so that the terminal and the pull-up resistor are not connected, and then the periodic switching of the switch is restarted. machine. 前記制御部は、前記所定の端子を前記プルダウン抵抗に接続した状態から前記スイッチの周期的な切り替えを再開することを特徴とする請求項に記載の電子機器。 The electronic device according to claim 4 , wherein the control unit restarts periodic switching of the switch from a state in which the predetermined terminal is connected to the pull-down resistor. 前記所定時間、所定の規格に基づく接続が前記外部機器との間で確立するための時間であることを特徴とする請求項1からのいずれか1項に記載の電子機器。 The predetermined time is, electronic device claimed in any one of claims 5, characterized in that connection based on Jo Tokoro standard is the time for establishing between the external devices. 前記制御部は、前記所定の端子が前記プルアップ抵抗に接続された状態で、前記所定の端子の電位が前記所定の範囲内となったことを検出してから前記所定時間以内に前記所定の端子と前記プルダウン抵抗とが接続されるように前記スイッチを制御した後、前記所定の端子と前記プルダウン抵抗とが接続された状態を維持することを特徴とする請求項に記載の電子機器。 The control unit detects that the potential of the predetermined terminal is within the predetermined range in a state where the predetermined terminal is connected to the pull-up resistor, and then the predetermined terminal is within the predetermined time. The electronic device according to claim 3 , wherein after controlling the switch so that the terminal and the pull-down resistor are connected, the state in which the predetermined terminal and the pull-down resistor are connected is maintained. 外部機器を接続可能であるとともに、前記外部機器との間で受給電を行い得るコネクタと、
前記コネクタに備えられ、前記外部機器に備えられた他の所定の端子にケーブルを介して接続可能な所定の端子と、
接続を切り替える第1のスイッチと、
前記第1のスイッチを介して前記所定の端子に接続可能なプルアップ抵抗と、
前記第1のスイッチを介して前記所定の端子に接続可能なプルダウン抵抗と、
前記第1のスイッチと前記所定の端子との間に備えられた第2のスイッチと、
前記所定の端子の電位を監視する監視部と、
前記第1のスイッチを周期的に切り替えるとともに、前記第2のスイッチの開閉を制御する制御部であって、前記第2のスイッチを開放した状態で前記監視部によって検出される前記所定の端子の電位に基づいて、前記第2のスイッチを前記外部機器に備えられたプルアップ抵抗に前記外部機器の前記所定の端子が接続される期間である前記外部機器のプルアップ期間の所定の規格上の下限値よりも短い所定の期間だけ閉じる制御部と
を有し、
前記制御部は、前記第2のスイッチを開放した状態で前記監視部によって検出される前記所定の端子の電位が閾値以上となる第1の状態が生じた場合に、前記第2のスイッチを前記所定の期間だけ閉じる
ことを特徴とする電子機器。
A connector that can be connected to an external device and can receive and receive power from the external device.
A predetermined terminal provided in the connector and connectable to another predetermined terminal provided in the external device via a cable, and a predetermined terminal.
The first switch to switch the connection and
A pull-up resistor that can be connected to the predetermined terminal via the first switch,
A pull-down resistor that can be connected to the predetermined terminal via the first switch,
A second switch provided between the first switch and the predetermined terminal,
A monitoring unit for monitoring the electric position of the predetermined terminal,
A control unit that periodically switches the first switch and controls the opening and closing of the second switch, and is a terminal of the predetermined terminal detected by the monitoring unit in a state where the second switch is open. based on the electric position, said second switch said on the external device to a provided pull-up resistor to the external device of the predetermined pull-up period of said external device predetermined terminal is a period to be connected standards possess a just closing controller short predetermined period of time than the lower limit value of,
The control unit switches the second switch to the second switch when a first state occurs in which the potential of the predetermined terminal detected by the monitoring unit becomes equal to or higher than a threshold value in a state where the second switch is open. Close for a specified period
An electronic device characterized by that.
記制御部は、前記外部機器に備えられた他のプルアップ抵抗に前記外部機器の前記他の所定の端子が接続される期間である前記外部機器のプルアップ期間を、前記監視部を用いて検出し、前記外部機器の前記プルアップ期間に基づいて前記所定の期間を設定することを特徴とする請求項に記載の電子機器。 Before SL control unit, the pull-up period of said external device said another predetermined terminal of the external device to other pull-up resistor provided in the external device is a period to be connected, using the monitoring unit The electronic device according to claim 8 , wherein the predetermined period is set based on the pull-up period of the external device. 前記第の状態が生じてから前記所定の期間が経過した段階で、前記外部機器との間での所定の接続が確立していない場合には、前記制御部は、前記第2のスイッチを開放することを特徴とする請求項8又は9に記載の電子機器。 If a predetermined connection with the external device has not been established at the stage where the predetermined period has elapsed from the occurrence of the first state, the control unit switches the second switch. The electronic device according to claim 8 or 9 , wherein the electronic device is opened. 前記コネクタは、USB Type−C規格に準拠していることを特徴とする請求項1から10のいずれか1項に記載の電子機器。 The electronic device according to any one of claims 1 to 10 , wherein the connector conforms to the USB Type-C standard. 前記所定の端子に前記プルアップ抵抗が接続された状態で前記外部機器との接続が確立した場合には、前記外部機器に前記コネクタを介して給電可能な接続状態となり、前記所定の端子に前記プルダウン抵抗が接続された状態で前記外部機器との接続が確立した場合には、前記外部機器から前記コネクタを介して受電可能な接続状態となることを特徴とする請求項1から11のいずれか1項に記載の電子機器。 When the connection with the external device is established with the pull-up resistor connected to the predetermined terminal, the external device is connected to the external device via the connector, and the predetermined terminal is connected to the external device. Any of claims 1 to 11 , wherein when a connection with the external device is established with the pull-down resistor connected, the connection state is such that power can be received from the external device via the connector. The electronic device according to item 1. 外部機器を接続可能であるとともに前記外部機器との間で受給電を行い得るコネクタに備えられた所定の端子がプルダウン抵抗とプルアップ抵抗とに交互に接続されるようにスイッチを周期的に切り替えるステップと、
前記所定の端子が前記プルアップ抵抗に接続された状態で、前記所定の端子の電位が所定の範囲内となったことを検出してから所定時間以内に、前記所定の端子と前記プルアップ抵抗とが未接続となるように前記スイッチを制御するステップと
を有し、
前記所定の範囲の上限は、前記プルアップ抵抗に接続された電源線の電位より低く、前記所定の範囲の下限は、前記プルダウン抵抗に接続された接地線の電位より高い
ことを特徴とする電子機器の制御方法。
The switch is periodically switched so that a predetermined terminal provided in a connector capable of connecting an external device and receiving and supplying power to and from the external device is alternately connected to a pull-down resistor and a pull-up resistor. Steps and
Wherein in a predetermined state in which the terminal is connected to the pull-up resistor, within a predetermined time from the detection of the potential of the predetermined terminal is Tsu Do within a predetermined range, said pull-up and said predetermined terminal resistance and is closed and controlling the switch so that the unconnected,
The upper limit of the predetermined range is lower than the potential of the power supply line connected to the pull-up resistor, and the lower limit of the predetermined range is higher than the potential of the ground wire connected to the pull-up resistor. A characteristic electronic device control method.
外部機器を接続可能であるとともに前記外部機器との間で受給電を行い得るコネクタに備えられ、前記外部機器に備えられた他の所定の端子にケーブルを介して接続可能な所定の端子がプルダウン抵抗とプルアップ抵抗とに交互に接続されるように第1のスイッチを周期的に切り替えるステップと、
前記所定の端子と前記第1のスイッチとの間に備えられた第2のスイッチを開放した状態で、前記所定の端子の電位に基づいて、前記第2のスイッチを前記外部機器に備えられたプルアップ抵抗に前記外部機器の前記所定の端子が接続される期間である前記外部機器のプルアップ期間の所定の規格上の下限値よりも短い所定の期間だけ閉じるステップと
を有し、
前記閉じるステップは、前記第2のスイッチを開放した状態で前記所定の端子の電位が閾値以上となる第1の状態が生じた場合に、前記第2のスイッチを前記所定の期間だけ閉じるステップを含む
することを特徴とする電子機器の制御方法。
A connector provided with a connector capable of connecting an external device and capable of receiving and supplying power to and from the external device, and a predetermined terminal that can be connected to another predetermined terminal provided with the external device via a cable is pulled down. The step of periodically switching the first switch so that the resistor and the pull-up resistor are connected alternately,
Wherein in the open state of the second switch provided between the predetermined terminal and the first switch, based on the electric position of the predetermined terminal, provided with the second switch to the external device possess the only closing step short predetermined period of time than the lower limit value of the predetermined standard pull-up period of said external device is a period in which a predetermined terminal is connected to the external device to the pull-up resistors,
The closing step is a step of closing the second switch for the predetermined period when the first state in which the potential of the predetermined terminal becomes equal to or higher than the threshold value occurs in the state where the second switch is opened. A method of controlling an electronic device, which comprises.
コンピュータに、
外部機器を接続可能であるとともに前記外部機器との間で受給電を行い得るコネクタに備えられた所定の端子がプルダウン抵抗とプルアップ抵抗とに交互に接続されるようにスイッチを周期的に切り替えるステップと、
前記所定の端子が前記プルアップ抵抗に接続された状態で、前記所定の端子の電位が所定の範囲内となったことを検出してから所定時間以内に、前記所定の端子と前記プルアップ抵抗とが未接続となるように前記スイッチを制御するステップとを実行させるためのプログラムであって、
前記所定の範囲の上限は、前記プルアップ抵抗に接続された電源線の電位より低く、前記所定の範囲の下限は、前記プルダウン抵抗に接続された接地線の電位より高い、
プログラム
On the computer
The switch is periodically switched so that a predetermined terminal provided in a connector capable of connecting an external device and receiving and supplying power to and from the external device is alternately connected to a pull-down resistor and a pull-up resistor. Steps and
Wherein in a predetermined state in which the terminal is connected to the pull-up resistor, within a predetermined time from the detection of the potential of the predetermined terminal is Tsu Do within a predetermined range, said pull-up and said predetermined terminal A program for executing a step of controlling the switch so that the resistor is not connected .
The upper limit of the predetermined range is lower than the potential of the power supply line connected to the pull-up resistor, and the lower limit of the predetermined range is higher than the potential of the ground wire connected to the pull-up resistor.
Program .
コンピュータに、
外部機器を接続可能であるとともに前記外部機器との間で受給電を行い得るコネクタに備えられ、前記外部機器に備えられた他の所定の端子にケーブルを介して接続可能な所定の端子がプルダウン抵抗とプルアップ抵抗とに交互に接続されるように第1のスイッチを周期的に切り替えるステップと、
前記所定の端子と前記第1のスイッチとの間に備えられた第2のスイッチを開放した状態で、前記所定の端子の電位に基づいて、前記第2のスイッチを前記外部機器に備えられたプルアップ抵抗に前記外部機器の前記所定の端子が接続される期間である前記外部機器のプルアップ期間の所定の規格上の下限値よりも短い所定の期間だけ閉じるステップと
を実行させるためのプログラムであって、
前記閉じるステップは、前記第2のスイッチを開放した状態で前記所定の端子の電位が閾値以上となる第1の状態が生じた場合に、前記第2のスイッチを前記所定の期間だけ閉じるステップを含む、
プログラム
On the computer
A connector provided with a connector capable of connecting an external device and capable of receiving and supplying power to and from the external device, and a predetermined terminal that can be connected to another predetermined terminal provided with the external device via a cable is pulled down. The step of periodically switching the first switch so that the resistor and the pull-up resistor are connected alternately,
Wherein in the open state of the second switch provided between the predetermined terminal and the first switch, based on the electric position of the predetermined terminal, provided with the second switch to the external device To execute a step of closing the pull-up resistor for a predetermined period shorter than a predetermined standard lower limit of the pull-up period of the external device, which is a period during which the predetermined terminal of the external device is connected. a program,
The closing step is a step of closing the second switch for the predetermined period when the first state in which the potential of the predetermined terminal becomes equal to or higher than the threshold value occurs in the state where the second switch is opened. Including,
Program .
JP2017072514A 2017-03-31 2017-03-31 Electronic devices and their control methods Active JP6887852B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017072514A JP6887852B2 (en) 2017-03-31 2017-03-31 Electronic devices and their control methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017072514A JP6887852B2 (en) 2017-03-31 2017-03-31 Electronic devices and their control methods

Publications (2)

Publication Number Publication Date
JP2018173886A JP2018173886A (en) 2018-11-08
JP6887852B2 true JP6887852B2 (en) 2021-06-16

Family

ID=64106644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017072514A Active JP6887852B2 (en) 2017-03-31 2017-03-31 Electronic devices and their control methods

Country Status (1)

Country Link
JP (1) JP6887852B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7348721B2 (en) * 2018-11-29 2023-09-21 ルネサスエレクトロニクス株式会社 Controller, control method, control program
JP7398881B2 (en) * 2019-05-07 2023-12-15 キヤノン株式会社 Electronic equipment and its control method
CN114630230B (en) * 2022-05-12 2022-10-14 荣耀终端有限公司 Electronic equipment, pull-up circuit and method for suppressing earphone POP sound

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9767060B2 (en) * 2014-08-26 2017-09-19 Nokia Technologies Oy USB type C to MHL M1 dead battery charging
JP2016218972A (en) * 2015-05-26 2016-12-22 株式会社バッファロー USB hub device
JP2017033461A (en) * 2015-08-05 2017-02-09 ローム株式会社 Detection circuit and detection method for reversible cable, and dual roll device of host device using the same

Also Published As

Publication number Publication date
JP2018173886A (en) 2018-11-08

Similar Documents

Publication Publication Date Title
JP6878102B2 (en) Electronic devices and their control methods
US11196221B2 (en) Semiconductor device of USB interface and method of operating the same
EP2238530B1 (en) Discovery of electronic devices utilizing a control bus
JP5636421B2 (en) Extended power supply in HDMI system
JP6887852B2 (en) Electronic devices and their control methods
JP2018106555A (en) Electronic apparatus, control method thereof, program, and storage medium
JP6643994B2 (en) Method and apparatus for charging an electronic device via a USB connection
US20160004650A1 (en) Portable device, cable assembly, and usb system
KR20140144277A (en) Electronic device and control method therefor
US10317436B2 (en) Interface circuitry for bidirectional power connector
US12009621B2 (en) Device and method of ensuring power delivery in universal serial bus interface
EP3796484A1 (en) Connector, and charging control method using connector
US20200133366A1 (en) Methods and apparatus for safe negotiation of high current for active cable assemblies
JP6938171B2 (en) Electronic devices and their control methods
EP3796483A1 (en) Connector and second electronic device comprising same
JP7130463B2 (en) Electronic devices and methods of controlling electronic devices
JP6915299B2 (en) Power receiving device
WO2011158310A1 (en) Communication apparatus
EP4350934A1 (en) Connector and power supply control method applied to connector
JP2018200345A (en) Electronic equipment, control method thereof, and communication system
JP7146405B2 (en) Electronic device and its control method, communication system
WO2009135816A1 (en) Charge suspend feature for mobile device
US20180343394A1 (en) Electronic apparatus, method for controlling the same, and communication system
JP2018173887A (en) Electronic apparatus and control method therefor, and electronic device and control method therefor

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20171214

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20180126

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200324

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210204

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210405

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210420

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210519

R151 Written notification of patent or utility model registration

Ref document number: 6887852

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151