JP6884039B2 - Electronics - Google Patents

Electronics Download PDF

Info

Publication number
JP6884039B2
JP6884039B2 JP2017107065A JP2017107065A JP6884039B2 JP 6884039 B2 JP6884039 B2 JP 6884039B2 JP 2017107065 A JP2017107065 A JP 2017107065A JP 2017107065 A JP2017107065 A JP 2017107065A JP 6884039 B2 JP6884039 B2 JP 6884039B2
Authority
JP
Japan
Prior art keywords
terminal
detection
electronic device
voltage
power supply
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
JP2017107065A
Other languages
Japanese (ja)
Other versions
JP2018205837A (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 JP2017107065A priority Critical patent/JP6884039B2/en
Priority to US15/985,812 priority patent/US10673251B2/en
Priority to CN201810536878.5A priority patent/CN109066827B/en
Publication of JP2018205837A publication Critical patent/JP2018205837A/en
Application granted granted Critical
Publication of JP6884039B2 publication Critical patent/JP6884039B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Description

本発明は、接続機器を検出し、接続機器から電力を受け取る電子機器に関する。 The present invention detects the connected device, relates to an electronic equipment receiving power from the connected device.

近年、電子機器から二次電池を取り出さず二次電池の充電を電子機器内部で行う本体内充電が一般化してきている。本体内充電においては、インターフェースとしてUSB(Universal Serial Bus)を利用し、電力供給装置のUSBのVBUSラインから得られる電力で電子機器内の二次電池を充電する方法が普及してきている。また、電子機器の更なる供給電力上昇の要求に応え、USB PD(Power Delivery)やUSB Type−C規格の策定によって7.5Wを超える電力を利用する道が開けてきている。以下、Type−C規格に準拠したUSBを備えた装置をType−C装置、Type−C規格に準拠しないUSBを備えた装置を非Type−C装置と称する。 In recent years, in-body charging in which the secondary battery is charged inside the electronic device without removing the secondary battery from the electronic device has become common. In the main body charging, a method of using USB (Universal Serial Bus) as an interface and charging the secondary battery in the electronic device with the electric power obtained from the USB VBUS line of the power supply device has become widespread. In addition, in response to the demand for further increase in power supply of electronic devices, the establishment of USB PD (Power Delivery) and USB Type-C standards has opened the way to use power exceeding 7.5 W. Hereinafter, a device equipped with a USB conforming to the Type-C standard is referred to as a Type-C device, and a device provided with a USB not conforming to the Type-C standard is referred to as a non-Type-C device.

電力供給装置から電子機器が得る電力は、電子機器が接続機器検出やエニュメレーションを行って電力供給装置の電力供給能力を判定し、判定した供給能力に従って電子機器がUSB VBUSラインから電力を得る構成が一般的である。電子機器は、接続機器検出によって電力供給装置の電力供給能力を判定しているが、その判定は規格で策定されたUSBインターフェースの信号線の電圧、信号線を用いた通信、および/または、VBUSラインを用いた通信によって論理的に行われる。特許文献1には、電源検出回路から給電検出の通知を受けた後、第1データ端子と第2データ端子の電圧を検出することによりチャージャーの種類を検出する入出力回路が記載されている。 The power obtained by the electronic device from the power supply device is determined by the electronic device detecting and enumerating the connected device to determine the power supply capacity of the power supply device, and the electronic device obtains power from the USB VBUS line according to the determined supply capacity. The configuration is common. The electronic device determines the power supply capacity of the power supply device by detecting the connected device, and the determination is based on the voltage of the signal line of the USB interface defined by the standard, communication using the signal line, and / or VBUS. It is logically done by communication using a line. Patent Document 1 describes an input / output circuit that detects the type of charger by detecting the voltages of the first data terminal and the second data terminal after receiving a notification of power supply detection from the power supply detection circuit.

特開2012−205366号公報Japanese Unexamined Patent Publication No. 2012-205366

USB Type−C規格では、電力供給装置はCC端子によって受電装置の接続を検出してから275ms以内にVBUS電圧の供給を行う必要がある。したがって、受電装置は、電力供給装置からCC端子の電圧を検出してから275ms以内にVBUS電圧を検出したか否かによって、接続されている電力供給装置がType−C装置か否かを判定することができる。しかしながら、電力供給装置のVBUS電圧出力タイミングが早すぎる場合や、CC端子がVBUS電圧に抵抗でプルアップされている場合に、CC端子より後に検出されるべきVBUS電圧の検出タイミングが早くなる場合が考えられる。また、電力供給装置及び受電装置のVBUS出力容量、VBUS入力容量によって、CC端子より前に検出されるべき電力供給装置のVBUS電圧の検出タイミングが遅くなる場合も考えられる。 According to the USB Type-C standard, the power supply device needs to supply the VBUS voltage within 275 ms after detecting the connection of the power receiving device by the CC terminal. Therefore, the power receiving device determines whether or not the connected power supply device is a Type-C device based on whether or not the VBUS voltage is detected within 275 ms after detecting the voltage of the CC terminal from the power supply device. be able to. However, when the VBUS voltage output timing of the power supply device is too early, or when the CC terminal is pulled up to the VBUS voltage by a resistor, the detection timing of the VBUS voltage that should be detected after the CC terminal may be earlier. Conceivable. Further, depending on the VBUS output capacity and VBUS input capacity of the power supply device and the power receiving device, the detection timing of the VBUS voltage of the power supply device that should be detected before the CC terminal may be delayed.

受電装置はVBUS電圧を検出した後にCC端子の電圧を検出した場合、電力供給装置が非Type−C装置であると判定する。電力供給装置が実際にはType−C装置であったとしても、上述のような検出タイミングの揺らぎにより非Type−C装置であると判定されてしまう場合がある。その場合、受電装置に設定される受電条件はType−C装置の電力供給能力でなく、たとえばUSB2.0の電力に制限されてしまう。 When the power receiving device detects the voltage of the CC terminal after detecting the VBUS voltage, it determines that the power supply device is a non-Type-C device. Even if the power supply device is actually a Type-C device, it may be determined that it is a non-Type-C device due to the fluctuation of the detection timing as described above. In that case, the power receiving condition set in the power receiving device is not limited to the power supply capacity of the Type-C device, but is limited to, for example, the power of USB 2.0.

一方、受電装置はCC端子の電圧を検出した後にVBUS電圧を検出した場合、電力供給装置がType−C装置であると判定する。電力供給装置が実際には非Type−C装置でありUSB2.0対応装置であったとしても、上述の検出タイミングの揺らぎによりType−C装置と判定される場合がある。その場合、受電装置は、電力供給装置が非Type−Cであるにもかかわらず、USB Type−C規格に対応した電力供給能力で動作を開始してしまう。 On the other hand, when the power receiving device detects the VBUS voltage after detecting the voltage of the CC terminal, it determines that the power supply device is a Type-C device. Even if the power supply device is actually a non-Type-C device and a USB 2.0 compatible device, it may be determined to be a Type-C device due to the above-mentioned fluctuation of the detection timing. In that case, the power receiving device starts operating with a power supply capacity corresponding to the USB Type-C standard even though the power supply device is non-Type-C.

本発明は、外部装置が接続された際の端子電圧の検出のタイミングにずれが生じても、外部装置の電力供給能力を適切に判定できるようにすることを目的とする。 An object of the present invention is to make it possible to appropriately determine the power supply capacity of an external device even if the timing of detecting the terminal voltage when the external device is connected is deviated.

上記の目的を解決するために、本発明の一態様による電子機器は、以下の構成を備える。すなわち、
インターフェースを介して接続された外部装置から電力を受電可能な電子機器であって、
前記インターフェースに含まれる第1の端子と第2の端子からの所定の電圧の検出の時間差が所定値以下か否かを判定する判定手段と、
前記時間差が前記所定値以下の場合には、第1の接続機器検出を実行し、前記時間差が前記所定値より大きい場合には、前記第1の接続機器検出とは異なる第2の接続機器検出を実行することにより前記外部装置の種別を判定する実行手段と、
前記実行手段による前記外部装置の種別の判定の結果に基づいて受電制御を行う制御手段と、を備える。
In order to solve the above object, the electronic device according to one aspect of the present invention has the following configuration. That is,
An electronic device that can receive power from an external device connected via an interface.
A determination means for determining whether or not the time difference in detecting a predetermined voltage from the first terminal and the second terminal included in the interface is equal to or less than a predetermined value.
When the time difference is equal to or less than the predetermined value, the first connected device detection is executed, and when the time difference is larger than the predetermined value, the second connected device detection different from the first connected device detection is executed. An execution means for determining the type of the external device by executing
A control means for performing power reception control based on the result of determination of the type of the external device by the execution means is provided.

本発明によれば、外部装置が接続された際の端子電圧の検出のタイミングにずれが生じても、外部装置の電力供給能力を適切に判定できる。 According to the present invention, even if the timing of detecting the terminal voltage when the external device is connected is deviated, the power supply capacity of the external device can be appropriately determined.

実施形態1の電子機器による接続機器の判定手順を示すフローチャート。The flowchart which shows the determination procedure of the connected device by the electronic device of Embodiment 1. 実施形態1の電子機器によう接続機器の判定手順を示すフローチャート。The flowchart which shows the determination procedure of the connected device like the electronic device of Embodiment 1. 実施形態1による電子機器の接続機器種別と動作条件の真理値表。Truth table of connected device types and operating conditions of electronic devices according to the first embodiment. 実施形態1による電子機器の構成例を示すブロック図。FIG. 3 is a block diagram showing a configuration example of an electronic device according to the first embodiment. 実施形態1による電子機器の構成例を示すブロック図。FIG. 3 is a block diagram showing a configuration example of an electronic device according to the first embodiment. 実施形態1の電子機器における信号の動作を示すタイミングチャート。The timing chart which shows the operation of the signal in the electronic device of Embodiment 1. 実施形態1の電子機器における信号の動作を示すタイミングチャート。The timing chart which shows the operation of the signal in the electronic device of Embodiment 1. 実施形態1の電子機器における信号の動作を示すタイミングチャート。The timing chart which shows the operation of the signal in the electronic device of Embodiment 1. 実施形態1の電子機器における信号の動作を示すタイミングチャート。The timing chart which shows the operation of the signal in the electronic device of Embodiment 1. 実施形態1の電子機器における信号の動作を示すタイミングチャート。The timing chart which shows the operation of the signal in the electronic device of Embodiment 1. 実施形態2による電子機器の構成例を示すブロック図。FIG. 3 is a block diagram showing a configuration example of an electronic device according to the second embodiment. 実施形態3の電子機器による接続機器の判定手順を示すフローチャート。The flowchart which shows the determination procedure of the connected device by the electronic device of Embodiment 3.

以下、図面を参照して本発明の実施形態を説明する。ただし、本発明は以下の実施形態に限定されるものではない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the present invention is not limited to the following embodiments.

[実施形態1]
実施形態1では、インターフェースを介して接続された外部装置から電力を受電可能な電子機器において、インターフェースの第1の端子と第2の端子における所定の電圧の検出のタイミングに基づいて異なる接続機器検出が実行される。より具体的には、第1と第2の端子における所定の電圧検出の時間差が所定値以下か否かで接続機器検出を切り替えることにより、電圧の検出タイミングのずれへの対処が実現される。以下、インターフェースとしてUSBを、第1の端子としてVBUS端子を、第2の端子としてCC端子を用いる電子機器を例として用いて実施形態1を説明する。
[Embodiment 1]
In the first embodiment, in an electronic device capable of receiving electric power from an external device connected via an interface, different connected device detections are performed based on the timing of detecting predetermined voltages at the first terminal and the second terminal of the interface. Is executed. More specifically, by switching the detection of connected devices depending on whether or not the time difference between the predetermined voltage detections at the first and second terminals is equal to or less than the predetermined value, it is possible to deal with the deviation of the voltage detection timing. Hereinafter, the first embodiment will be described using an electronic device using a USB as an interface, a VBUS terminal as a first terminal, and a CC terminal as a second terminal as an example.

具体的な動作を説明する前に、まず、電子機器の構成を説明する。図3A、図3Bは、実施形態1に係る電子機器の構成例を示すブロック図である。実施形態1の説明に使用するブロック図は、実施形態1の説明に不要なブロックへの電源接続と各ブロックの入力および出力キャパシタの記載は省略している。また、実施形態1の説明に不要なブロックと動作の詳細な説明は省略している。 Before explaining the specific operation, first, the configuration of the electronic device will be described. 3A and 3B are block diagrams showing a configuration example of the electronic device according to the first embodiment. In the block diagram used for the description of the first embodiment, the description of the power supply connection to the blocks and the input and output capacitors of each block, which are unnecessary for the description of the first embodiment, is omitted. Further, detailed explanations of blocks and operations that are unnecessary for the explanation of the first embodiment are omitted.

図3Aにおいて、外部装置としての電力供給装置401は、電子機器301へ有線(USBのVBUS)で電力供給が可能な装置である。電力供給装置401は電力供給のみが可能な装置であってもよいし、電力供給以外の機能を備えた装置であってもよい。また、USB対応規格はUSB2.0、USB3.0、USB3.1、USB BC、USB PD、USB Type−Cのいずれに対応したものでもよい。 In FIG. 3A, the power supply device 401 as an external device is a device capable of supplying power to the electronic device 301 by wire (USB VBUS). The power supply device 401 may be a device capable of supplying only power, or may be a device having a function other than power supply. Further, the USB compatible standard may be any of USB2.0, USB3.0, USB3.1, USB BC, USB PD, and USB Type-C.

VBUS電源402は、電子機器301に電力供給装置401から電子機器301へ電力を供給するための電源である。VBUS電源402の電力には電力供給装置401の外部から供給される電力が用いられてもよいし、電力供給装置401の内部に備えた電池から供給される電力が用いられてもよい。USBコネクタ403は、USB規格に対応したコネクタである。USBコネクタ403は電力供給装置401の装置構成を限定しないので定義は省略する。また、電力供給装置401側のUSBインターフェースの各信号は電力供給装置401の装置構成を限定しないので定義は省略する。 The VBUS power supply 402 is a power source for supplying electric power to the electronic device 301 from the power supply device 401 to the electronic device 301. As the electric power of the VBUS power supply 402, the electric power supplied from the outside of the electric power supply device 401 may be used, or the electric power supplied from the battery provided inside the electric power supply device 401 may be used. The USB connector 403 is a connector corresponding to the USB standard. Since the USB connector 403 does not limit the device configuration of the power supply device 401, the definition is omitted. Further, since each signal of the USB interface on the power supply device 401 side does not limit the device configuration of the power supply device 401, the definition is omitted.

USBインターフェースケーブル404は、電力供給装置401と電子機器301のUSBインターフェースを係合するケーブルである。USBインターフェースケーブル404は、EMCA(Electronically Marked Cable Assembly)であってもよい。 The USB interface cable 404 is a cable that engages the power supply device 401 with the USB interface of the electronic device 301. The USB interface cable 404 may be an EMCA (Electronically Marked Cable Assembly).

電子機器301は上述した外部装置としての電力供給装置401から有線で電力の受電が可能な装置である。CPU304は電子機器301の制御を司るプロセッサ、ワークエリアとして使用されるRAM(Random Access Memory)、処理手順を記憶しているROM(Read Only Memory)を内包する。CPU304の主機能は外部からの電圧入力VDDIN_CPUを受け動作する。CPU304のUSB機能であるUSB_PHYは外部からの電圧入力VBUSIN_Bを受けて主機能とは別に動作可能である。CPU304のUSB機能は主機能動作時よりも低い電力で動作できるものとし、接続機器検出とUSB信号処理機能を備える。接続機器検出とは、VBUS、D+、D−、CC信号の論理検出および通信により、電子機器301に接続された外部装置が対応している規格を検出する機能である。本実施形態の接続機器検出では、電力供給装置401の種別がUSB2.0、USB3.0、USB3.1、USB BC、USB PD、USB Type−Cのいずれであるかが判定される。 The electronic device 301 is a device capable of receiving electric power by wire from the power supply device 401 as the external device described above. The CPU 304 includes a processor that controls the electronic device 301, a RAM (Random Access Memory) used as a work area, and a ROM (Read Only Memory) that stores a processing procedure. The main function of the CPU 304 operates by receiving an external voltage input VDDIN_CPU. USB_PHY, which is a USB function of the CPU 304, can operate separately from the main function by receiving a voltage input VBUSIN_B from the outside. The USB function of the CPU 304 is assumed to be able to operate with a lower power than when the main function is operated, and has a connected device detection and a USB signal processing function. The connected device detection is a function of detecting a standard supported by an external device connected to the electronic device 301 by logical detection and communication of VBUS, D +, D-, and CC signals. In the connection device detection of the present embodiment, it is determined whether the type of the power supply device 401 is USB2.0, USB3.0, USB3.1, USB BC, USB PD, or USB Type-C.

CPU304は、D+B、D−B信号を用いて電子機器301に接続された電力供給装置401とエニュメレーション処理を行うことが可能である。CPU304は、エニュメレーション処理に成功すると、電子機器301に接続されている電力供給装置401がUSB2.0、USB3.0、USB3.1のいずれかの規格に対応していると判定する。CPU304は、D+B、D−B信号を用いて電力供給装置401の接続機器検出処理とエニュメレーション処理の実行を指示するENUMERATION_TRY信号を入力するENUMERATION_TRY_INを有する。CPU304は、ENUMERATION_TRY信号がHの場合に電力供給装置401の接続機器検出処理とエニュメレーション処理を実行する。また、CPU304は、ENUMERATION_TRY信号がLの場合は、接続機器検出処理とエニュメレーション処理を実行しない。なお、本明細書においてHは論理的にHighの状態を示す表記であり、Lは論理的にLowの状態を示す表記である。 The CPU 304 can perform enumeration processing with the power supply device 401 connected to the electronic device 301 by using the D + B and DB signals. When the CPU 304 succeeds in the enumeration process, the CPU 304 determines that the power supply device 401 connected to the electronic device 301 corresponds to any of the standards of USB2.0, USB3.0, and USB3.1. The CPU 304 has an ENUMERATION_TRY_IN that inputs an ENUMERATION_TRY signal instructing the execution of the connected device detection process and the enumeration process of the power supply device 401 using the D + B and DB signals. When the ENUMERIATION_TRY signal is H, the CPU 304 executes the connection device detection process and the enumeration process of the power supply device 401. Further, when the ENUMERIATION_TRY signal is L, the CPU 304 does not execute the connected device detection process and the enumeration process. In the present specification, H is a notation that logically indicates the state of High, and L is a notation that logically indicates the state of Low.

また、CPU304は、電子機器301に接続された電力供給装置401の接続機器検出処理とエニュメレーション処理が正しく行えた状態を示すLEGACY_HOST_DET1信号出力するLEGACY_HOST_DET1_OUTを有する。CPU304は、電子機器301に接続された相手装置の接続機器検出処理とエニュメレーション処理とを正しく行えた場合にはLEGACY_HOST_DET1信号をHとする。またCPU304は、接続機器検出処理とエニュメレーション処理を正しく行えなかった場合にはLEGACY_HOST_DET1信号にLとする。CPU304がLEGACY_HOST_DET1信号をHとする場合、電子機器301に接続されている電力供給装置401は非Type−C装置(Legacy USB HOST)である。 Further, the CPU 304 has a LEGACY_HOST_DET1_OUT that outputs a LEGACY_HOST_DET1 signal indicating a state in which the connected device detection process and the enumeration process of the power supply device 401 connected to the electronic device 301 are correctly performed. The CPU 304 sets the LEGACY_HOST_DET1 signal to H when the connected device detection process and the enumeration process of the other device connected to the electronic device 301 can be performed correctly. Further, when the connected device detection process and the enumeration process cannot be performed correctly, the CPU 304 sets L to the LEGACY_HOST_DET1 signal. When the CPU 304 sets the LEGACY_HOST_DET1 signal to H, the power supply device 401 connected to the electronic device 301 is a non-Type-C device (Legacy USB HOST).

CHGIC302は、電池パック320の二次電池セル321の充電制御を行う充電ICである。CHGIC302は外部からの電圧入力VBUSIN_Aを受けて電池パック320を充電する。また、このような充電機能の他に、CHGIC302は、電圧入力VBUSIN_Aを定電圧出力VOUT_PWRに変換し、電源IC_D312へ出力する機能も備える。さらに、CHGIC302は、外部からの電圧入力VBUSIN_Aがない場合に電池パック320の入力を受け、他の回路たとえば電源IC_D312へ電池パック320の電圧をVOUT_PWRとして出力する機能も備える。さらに、CHGIC302は、CPU304と同様の接続機器検出機能を備える。 The CHGIC 302 is a charging IC that controls charging of the secondary battery cell 321 of the battery pack 320. The CHGIC 302 receives a voltage input VBUSIN_A from the outside to charge the battery pack 320. In addition to such a charging function, the CHGIC 302 also has a function of converting the voltage input VBUSIN_A into a constant voltage output VOUT_PWR and outputting it to the power supply IC_D312. Further, the CHGIC 302 also has a function of receiving the input of the battery pack 320 when there is no voltage input VBUSIN_A from the outside and outputting the voltage of the battery pack 320 to another circuit, for example, the power supply IC_D312 as VOUT_PWR. Further, the CHGIC 302 has a connected device detection function similar to that of the CPU 304.

CHGIC302は、接続機器検出を正しく行えた状態を示すCTYP_DET信号を出力するCTYP_DET_OUT、接続機器検出の実行を指示するCTYP_TRY信号を入力するCTYP_TRY_INを備える。CHGIC302は、接続機器検出を正しく行えた場合はCTYP_DET信号をHとし、接続機器検出が未検出または正しく行えなかった場合はCTYP_DET信号をLとする。CHGIC302は、CTYP_TRY信号がHの場合に接続機器検出を実行し、CTYP_TRY信号がLの場合は接続機器検出を実行しない。 The CHGIC 302 includes a CTYP_DET_OUT that outputs a CTYP_DET signal indicating that the connected device detection has been performed correctly, and a CTYP_TRY_IN that inputs a CTYP_TRY signal instructing the execution of the connected device detection. The CHGIC 302 sets the CTYP_DET signal to H when the connected device detection can be performed correctly, and sets the CTYP_DET signal to L when the connected device detection is not detected or cannot be performed correctly. The CHGIC 302 executes the connected device detection when the CTYP_TRY signal is H, and does not execute the connected device detection when the CTYP_TRY signal is L.

接続機器検出では、電力供給装置401が非Type−C装置(Legacy USB HOST)か否かが検出される。CHGIC302は、電子機器301に接続された電力供給装置401の接続機器検出を行った結果を示すLEGACY_HOST_DET2信号を出力するためのLEGACY_HOST_DET2_OUTを有する。接続機器検出により非Type−C装置であることを検出する場合とは、たとえば電子機器301に接続された相手装置のD+、D−信号が200Ω以下の抵抗値でショートされている、USB BCの場合などが考えられる。CHGIC302は、電子機器301に接続された電力供給装置401の接続機器検出を行って、非Type−C装置と判定した場合はLEGACY_HOST_DET2信号をHにする。またCHGIC302は、非Type−C装置と判定されなかった場合には、LEGACY_HOST_DET2信号をLとする。 In the connected device detection, it is detected whether or not the power supply device 401 is a non-Type-C device (Legacy USB HOST). The CHGIC 302 has a LEGACY_HOST_DET2_OUT for outputting a LEGACY_HOST_DET2 signal indicating the result of detecting the connected device of the power supply device 401 connected to the electronic device 301. When detecting that the device is a non-Type-C device by detecting the connected device, for example, the D + and D- signals of the partner device connected to the electronic device 301 are short-circuited with a resistance value of 200Ω or less, and the USB BC There are cases. The CHGIC 302 detects the connected device of the power supply device 401 connected to the electronic device 301, and sets the LEGACY_HOST_DET2 signal to H when it is determined that the device is a non-Type-C device. Further, when the CHGIC 302 is not determined to be a non-Type-C device, the LEGACY_HOST_DET2 signal is set to L.

また、CHGIC302は、充電をイネーブルに制御するためのCHG_EN信号を入力するCHG_EN_INを有する。さらに、CHGIC302は、SUSPEND状態を示すSUSPEND信号を出力するSUSPEND_OUT、PD通信中を示すPD_BUSY信号を出力するPD_BUSY_OUTを有する。CHGIC302は、CHG_EN信号がHの場合に電池パック320を充電することができ、CHG_EN信号がLの場合には電池パック320の充電を禁止する。CHGIC302は、電圧入力VBUSIN_Aからの電流入力をSUSPEND電流である2.5mA以下に制限するSUSPEND状態の場合にSUSPEND信号をHとし、SUSPEND状態でない場合にSUSPEND信号をLにする。CHGIC302は、PD通信中の場合にPD_BUSY信号をHとし、PD通信中でない場合にPD_BUSY信号をLとする。なお、CHGIC302はCPU304とBUSで接続しており、BUSを用いた通信を介してCPU304からCHGIC302の状態の取得およびCHGIC302の制御が可能である。 Further, the CHGIC 302 has a CHG_EN_IN for inputting a CHG_EN signal for enabling and controlling charging. Further, the CHGIC 302 has a SUSPEND_OUT that outputs a SUSPEND signal indicating a SUSPEND state, and a PD_BUSY_OUT that outputs a PD_BUSY signal indicating that PD communication is in progress. The CHGIC 302 can charge the battery pack 320 when the CHG_EN signal is H, and prohibits charging of the battery pack 320 when the CHG_EN signal is L. The CHGIC 302 sets the SUSPEND signal to H in the SUSPEND state that limits the current input from the voltage input VBUSIN_A to 2.5 mA or less, which is the SUSPEND current, and sets the SUSPEND signal to L if it is not in the SUSPEND state. The CHGIC 302 sets the PD_BUSY signal to H when PD communication is in progress, and sets the PD_BUSY signal to L when PD communication is not in progress. The CHGIC 302 is connected to the CPU 304 by a BUS, and the state of the CHGIC 302 can be acquired from the CPU 304 and the CHGIC 302 can be controlled via communication using the BUS.

電池パック320は、電子機器301との着脱が可能である。電池パック320は、リチウムイオン二次電池セル321と、サーミスタ322を備える。二次電池セル321の出力をVBATTと記載する。サーミスタ322はたとえばNTC(Negative Temperature Coefficient)の特性を有する。電池パック320は、二次電池セル321の電圧出力端子TM_VBATT、サーミスタ322の端子TM_THM、グラウンド端子TM_GNDの3つの端子で電子機器301と係合する。サーミスタ端子TM_THMはCHGIC302のTHM端子に接続される。また、PU抵抗373は、サーミスタ端子TM_THMをCHGIC302の電圧出力VREFOUTへプルアップするための抵抗である。 The battery pack 320 can be attached to and detached from the electronic device 301. The battery pack 320 includes a lithium ion secondary battery cell 321 and a thermistor 322. The output of the secondary battery cell 321 is referred to as VBATT. Thermistor 322 has, for example, the characteristics of NTC (Negative Temperature Coefficient). The battery pack 320 engages with the electronic device 301 at three terminals, the voltage output terminal TM_VBATT of the secondary battery cell 321, the terminal TM_THM of the thermistor 322, and the ground terminal TM_GND. The thermistor terminal TM_THM is connected to the THM terminal of CHGIC 302. Further, the PU resistor 373 is a resistor for pulling up the thermistor terminal TM_THM to the voltage output VREFOUT of the CHGIC 302.

電源IC_C311は、外部からの電圧入力VIN_Cを定電圧出力VOUT_Cに変換し、CPU304へ出力する電源ICである。電源IC_C311は、外部からの制御信号EN_Cによって出力VOUT_CのONとOFFを制御する。電源IC_D312は、外部からの電圧入力VIN_Dを定電圧出力VOUT_Dに変換し、CPU304へ出力する電源ICである。電源IC_D312は、外部からの制御信号EN_Dによって出力VOUT_Dの出力ONとOFFを制御する。 The power supply IC_C311 is a power supply IC that converts an external voltage input VIN_C into a constant voltage output VOUT_C and outputs it to the CPU 304. The power supply IC_C311 controls ON and OFF of the output VOUT_C by a control signal EN_C from the outside. The power supply IC_D312 is a power supply IC that converts an external voltage input VIN_D into a constant voltage output VOUT_D and outputs it to the CPU 304. The power supply IC_D312 controls the output ON and OFF of the output VOUT_D by the control signal EN_D from the outside.

SELSW_E313は、接続機器検出に用いる信号の接続をCPU304側かCHGIC302側かに切り替えるセレクタスイッチである。SELSW_E313は、BUSSEL_IN信号で接続を切り替え可能である。SELSW_E313の初期状態では、接続機器検出に用いる信号はCHGIC302側に接続されておりCHGIC302で接続機器検出が行われる。なお、実施形態1に係る接続機器検出はCPU304でも可能であるので、SELSW_313の初期状態で、接続機器検出に用いる信号をCPU304側に接続し、CPU304で接続機器検出を行う構成であってもよい。 The SELSW_E313 is a selector switch that switches the connection of the signal used for detecting the connected device to the CPU 304 side or the CHGIC 302 side. The SELSW_E313 can switch the connection with the BUSSEL_IN signal. In the initial state of SELSW_E313, the signal used for detecting the connected device is connected to the CHGIC 302 side, and the connected device is detected by the CHGIC 302. Since the connected device detection according to the first embodiment can also be performed by the CPU 304, the signal used for the connected device detection may be connected to the CPU 304 side in the initial state of SELSW_313, and the connected device detection may be performed by the CPU 304. ..

USBコネクタ380は、USB Type−C規格に対応したコネクタである。電子機器301側のUSBインターフェースの各信号のうち、実施形態1に係る説明に不要な信号は省略する。FUNCTION_A315は、たとえばレンズおよびその駆動系で構成される光学ユニットと撮像素子と撮像素子で撮像された映像をデジタルデータに変換する撮像処置部などで構成される電子機器301の撮像機能部である。FUNCTION_B316は、たとえばデジタルデータの書き込みおよび読み込みを行うことができるフラッシュメモリーカードを装着可能な外部装置記憶機能部である。FUNCTION_C317は、たとえば電子機器301の操作情報や映像を表示することのできるLCD(Liquid Crystal Display:液晶表示器)で構成する表示機能部である。ただし、FUNCTION_A315〜FUNCTION_C317の機能はこれらに限定されるものではないし、3つの機能部に限定されるものでもない。 The USB connector 380 is a connector corresponding to the USB Type-C standard. Of the signals of the USB interface on the electronic device 301 side, signals unnecessary for the description according to the first embodiment are omitted. FUNCTION_A315 is an image pickup function unit of an electronic device 301 composed of, for example, an optical unit composed of a lens and a drive system thereof, an image pickup element, and an image pickup treatment unit for converting an image captured by the image pickup element into digital data. FUNCTION_B316 is an external device storage function unit capable of mounting a flash memory card capable of writing and reading digital data, for example. The FUNCTION_C317 is a display function unit composed of, for example, an LCD (Liquid Crystal Display) capable of displaying operation information and images of an electronic device 301. However, the functions of FUNCTION_A315 to FUNCTION_C317 are not limited to these, nor are they limited to the three functional parts.

ボタンスイッチ318は、電子機器301の電源IC_D312をONし、電子機器301のCPU304の主機能を動作させるための電源スイッチである。ボタンスイッチ318の押下によりVBATT信号とPWR_SW信号が導通する。すなわち、ボタンスイッチ318の押下によりボタンスイッチ318は他の回路へPWR_SW信号を出力する。PWR_SW信号と、CPU304のVDDEN_OUTから出力されるVDDEN信号と、タイミング検出部303aからのVDDEN2信号とは、OR319でOR接続される。したがって、PWR_SW信号、VDDEN信号、VDDEN2信号のいずれかの入力で電源IC_D312をONすることができる。 The button switch 318 is a power switch for turning on the power supply IC_D312 of the electronic device 301 and operating the main function of the CPU 304 of the electronic device 301. By pressing the button switch 318, the VBATT signal and the PWR_SW signal are conducted. That is, when the button switch 318 is pressed, the button switch 318 outputs a PWR_SW signal to another circuit. The PWR_SW signal, the VDDEN signal output from VDDEN_OUT of the CPU 304, and the VDDEN2 signal from the timing detection unit 303a are OR-connected by OR319. Therefore, the power supply IC_D312 can be turned on by any of the inputs of the PWR_SW signal, the VDDEN signal, and the VDDEN2 signal.

LED(Light Emitting Diode)372のアノードは、抵抗371を介してCHGIC302のVOUT_PWRと接続し、LED372のカソードはCHGICのLED_OUT端子と接続している。実施形態1では、CHGIC302のLED_OUT端子はオープンコレクタまたはオープンドレイン出力であり、CHGIC302のLED_OUT信号の出力によってLED372の点灯、消灯が制御される。LED372は電子機器301の充電動作状態を示す表示として使用され、CHGIC302による電池パック320の二次電池セル321の充電が行われている間LED372は点灯状態となり、充電が行われていない間LED372は消灯状態となる。 The anode of the LED (Light Emitting Diode) 372 is connected to the VOUT_PWR of the CHGIC 302 via the resistor 371, and the cathode of the LED 372 is connected to the LED_OUT terminal of the CHGIC. In the first embodiment, the LED_OUT terminal of the CHGIC 302 is an open collector or an open drain output, and the ON / OFF of the LED 372 is controlled by the output of the LED_OUT signal of the CHGIC 302. The LED 372 is used as a display indicating the charging operation state of the electronic device 301, the LED 372 is lit while the secondary battery cell 321 of the battery pack 320 is being charged by the CHGIC 302, and the LED 372 is in the lighting state while the charging is not being performed. It goes out.

図3Bは、電子機器301のタイミング検出部303aの構成を示す。タイミング検出部303aは、USBインターフェースのVBUS端子電圧とCC端子電圧とを検出し、それらの検出タイミングに基づいて電子機器301による接続機器判定の制御の一部を行う。 FIG. 3B shows the configuration of the timing detection unit 303a of the electronic device 301. The timing detection unit 303a detects the VBUS terminal voltage and the CC terminal voltage of the USB interface, and performs a part of the control of the connection device determination by the electronic device 301 based on the detection timings.

電源ブロック331はUSBコネクタ380のVBUS端子とCC1端子とCC2端子とをダイオードOR332でORした電圧を入力し、タイミング検出部303a全体の動作電圧を生成する。電源ブロック331はVBUS端子とCC1端子とCC2端子とのいずれかの入力が存在する場合にタイミング検出部303a全体の動作電圧を生成することが可能である。VBUS検出部333は、USBコネクタ380からのVBUS端子の電圧を検出し、タイミング制御部335へその検出結果を伝える。CC検出部334は、USBコネクタ380のCC1端子およびCC2端子の電圧を検出し、タイミング制御部335へその検出結果を伝える。VBUS検出部333、CC検出部334は、たとえばコンパレータで構成される。 The power supply block 331 inputs a voltage obtained by ORing the VBUS terminal, the CC1 terminal, and the CC2 terminal of the USB connector 380 with the diode OR332, and generates the operating voltage of the entire timing detection unit 303a. The power supply block 331 can generate the operating voltage of the entire timing detection unit 303a when any of the inputs of the VBUS terminal, the CC1 terminal, and the CC2 terminal is present. The VBUS detection unit 333 detects the voltage of the VBUS terminal from the USB connector 380 and transmits the detection result to the timing control unit 335. The CC detection unit 334 detects the voltage of the CC1 terminal and the CC2 terminal of the USB connector 380, and transmits the detection result to the timing control unit 335. The VBUS detection unit 333 and the CC detection unit 334 are composed of, for example, a comparator.

タイミング制御部335は、電子機器301による接続機器判定の制御の一部を行う。タイミング制御部335が電子機器301による接続機器判定の一部の制御と、電力供給装置401からの受電の可/不可とを制御する真理値表および制御タイミングは後述する。 The timing control unit 335 performs a part of the control of the connection device determination by the electronic device 301. The truth table and control timing in which the timing control unit 335 controls a part of the determination of the connected device by the electronic device 301 and whether or not the power can be received from the power supply device 401 will be described later.

タイミング制御部335は、CHGIC302による接続機器検出の実行を指示するCTYP_TRY信号を出力するCTYP_TRY_OUTを備える。また、タイミング制御部335は、CPU304による接続機器検出処理とエニュメレーション処理の実行を指示するENUMERATION_TRY信号を出力するENUMERATION_TRY_OUTを備える。タイミング制御部335は、CPU304による接続機器検出処理結果およびエニュメレーション処理結果を示すLEGACY_HOST_DET1信号を入力するLEGACY_HOST_DET1_INを備える。タイミング制御部335は、CHGIC302による接続機器検出処理結果を示すLEGACY_HOST_DET2信号を入力するLEGACY_HOST_DET2_INを備える。また、タイミング制御部335は、CHGIC302による接続機器検出が正しく行えた状態を示すCTYP_DET信号を入力するCTYP_DET_INを備える。 The timing control unit 335 includes a CTYP_TRY_OUT that outputs a CTYP_TRY signal instructing execution of connection device detection by the CHGIC 302. Further, the timing control unit 335 includes an ENUMERATION_TRY_OUT that outputs an ENUMERATION_TRY signal instructing the execution of the connected device detection process and the enumeration process by the CPU 304. The timing control unit 335 includes a LEGACY_HOST_DET1_IN that inputs a LEGACY_HOST_DET1 signal indicating a connected device detection processing result and an enumeration processing result by the CPU 304. The timing control unit 335 includes a LEGACY_HOST_DET2_IN for inputting a LEGACY_HOST_DET2 signal indicating a connection device detection processing result by the CHGIC 302. Further, the timing control unit 335 includes a CTYP_DET_IN for inputting a CTYP_DET signal indicating a state in which the connected device is correctly detected by the CHGIC 302.

また、タイミング制御部335は、CHGIC302のPD通信中を示すPD_BUSY信号を入力するPD_BUSY_INを備える。タイミング制御部335は、CHGIC302がPD通信中でPD_BUSY信号がHの場合にはCHG_EN信号出力をHにしない排他制御を行う。タイミング制御部335は、電源IC_D312をONするためのVDDEN2信号を出力するVDDEN2_OUTを備える。これにより、たとえばボタンスイッチ318を押下しなくてもCPU304へ定電圧出力VOUT_Dを供給してCPU304をONすることが可能となる。以上、図3A、図3Bに示される電子機器301のブロック図の説明を行った。 Further, the timing control unit 335 includes PD_BUSY_IN for inputting a PD_BUSY signal indicating that PD communication of CHGIC 302 is in progress. The timing control unit 335 performs exclusive control that does not set the CHG_EN signal output to H when the CHGIC 302 is in PD communication and the PD_BUSY signal is H. The timing control unit 335 includes VDDEN2_OUT that outputs a VDDEN2 signal for turning on the power supply IC_D312. This makes it possible to supply the constant voltage output VOUT_D to the CPU 304 and turn on the CPU 304 without pressing the button switch 318, for example. The block diagram of the electronic device 301 shown in FIGS. 3A and 3B has been described above.

図1A、図1Bは、実施形態1に係る電子機器301がUSBインターフェースのVBUS端子の電圧検出とCC端子の電圧検出のタイミングに基づく電力供給装置401の接続機器判定を行って、受電制御条件を決定する手順を示すフローチャートである。なお、図1A、図1Bのフローチャートに示される処理は、タイミング検出部303aにより実行される。ただし、図1A、図1Bのフローチャートにおいては線で示された処理は、タイミング検出部303a以外が行う処理である。 In FIGS. 1A and 1B, the electronic device 301 according to the first embodiment determines the connected device of the power supply device 401 based on the timing of the voltage detection of the VBUS terminal of the USB interface and the voltage detection of the CC terminal, and determines the power receiving control condition. It is a flowchart which shows the procedure to decide. The process shown in the flowcharts of FIGS. 1A and 1B is executed by the timing detection unit 303a. However, in the flowcharts of FIGS. 1A and 1B, the processing indicated by the line is a processing performed by a process other than the timing detection unit 303a.

電子機器301のUSBコネクタ380にUSBインターフェースケーブル404を介して電力供給装置401が接続されると、タイミング検出部303aは図1A、図1Bのフローチャートに示される処理を開始する。 When the power supply device 401 is connected to the USB connector 380 of the electronic device 301 via the USB interface cable 404, the timing detection unit 303a starts the process shown in the flowcharts of FIGS. 1A and 1B.

S101で、タイミング制御部335は、VBUS検出部333によりUSBコネクタ380のVBUS端子の電圧が検出されているか否かを判定する。タイミング制御部335は、VBUS端子の電圧を検出したと判定すると(S101でYES)、S102においてタイマをスタートさせるとともにVBUS端子の電圧を検出した時間Tv(現在の時間)をたとえばワークメモリであるRAMに記憶する。 In S101, the timing control unit 335 determines whether or not the voltage of the VBUS terminal of the USB connector 380 is detected by the VBUS detection unit 333. When the timing control unit 335 determines that the voltage of the VBUS terminal has been detected (YES in S101), the timer is started in S102 and the time Tv (current time) when the voltage of the VBUS terminal is detected is set to, for example, a RAM which is a work memory. Remember in.

次に、S103において、タイミング制御部335は、CC検出部334によりUSBコネクタ380からのCC1端子および/またはCC2端子の電圧が検出されているか否かを判定する。このCC端子の電圧の検出は時間Tvより所定の期間にわたって実行される。タイミング制御部335はCC端子の電圧が検出されていると判定すると(S103でYES)、S104においてCC端子の電圧を検出した時間TcをたとえばワークメモリであるRAMに記憶する。S104の処理は、S103でCC端子の電圧が検出されたと判定されると直ちに実行される。S103で所定の期間が経過してもCC端子の電圧が検出されない場合はS121以降の処理が実行される。S121以降の処理については後述する。 Next, in S103, the timing control unit 335 determines whether or not the voltage of the CC1 terminal and / or the CC2 terminal from the USB connector 380 is detected by the CC detection unit 334. The voltage detection of the CC terminal is executed for a predetermined period from time Tv. When the timing control unit 335 determines that the voltage of the CC terminal is detected (YES in S103), the timing control unit 335 stores the time Tc when the voltage of the CC terminal is detected in S104 in, for example, a RAM which is a work memory. The process of S104 is executed as soon as it is determined that the voltage of the CC terminal is detected in S103. If the voltage of the CC terminal is not detected even after the lapse of a predetermined period in S103, the processing after S121 is executed. The processing after S121 will be described later.

S101でVBUS端子の電圧を検出していないと判定された場合、S105において、タイミング制御部335は、CC検出部334によりUSBコネクタ380からのCC1端子および/またはCC2端子の電圧が検出されているか否かを判定する。S105では、S103と同様に、所定の期間にわたってCC端子の電圧の検出の判定が実行される。S105でCC端子の電圧を検出したと判定された場合、S106において、タイミング制御部335はタイマをスタートしCC端子の電圧を検出した時間TcをたとえばワークメモリであるRAMに記憶する。 When it is determined in S101 that the voltage of the VBUS terminal is not detected, in S105, does the timing control unit 335 detect the voltage of the CC1 terminal and / or the CC2 terminal from the USB connector 380 by the CC detection unit 334? Judge whether or not. In S105, similarly to S103, the determination of the voltage detection of the CC terminal is executed for a predetermined period. When it is determined in S105 that the voltage of the CC terminal is detected, in S106, the timing control unit 335 starts the timer and stores the time Tc when the voltage of the CC terminal is detected in, for example, a RAM which is a work memory.

S105でCC端子の電圧を検出していないと判定された場合、タイミング制御部335は処理を終える。S133において、CHGIC302は電子機器301の接続機器の電力供給装置401が何れのUSB規格に対応していないと判定しSUSPEND状態になる。S101からS105を経てS133へ進む場合としては、たとえばVBUS端子電圧が不足していて、VBUS検出部333で正常にVBUS端子の電圧を検出できなかった場合などが考えられる。実施形態1では、S133のSUSPEND状態をSUSPENDモードと称する。 When it is determined in S105 that the voltage of the CC terminal is not detected, the timing control unit 335 ends the process. In S133, the CHGIC 302 determines that the power supply device 401 of the connected device of the electronic device 301 does not correspond to any USB standard, and enters the SUSPEND state. As a case of proceeding from S101 to S135 to S133, for example, it is conceivable that the VBUS terminal voltage is insufficient and the VBUS detection unit 333 cannot normally detect the voltage of the VBUS terminal. In the first embodiment, the SUSPEND state of S133 is referred to as a SUSPEND mode.

S107で、タイミング制御部335は、VBUS検出部333によりUSBコネクタ380からのVBUS端子の電圧が検出されているかを判定する。VBUS端子の電圧を検出したと判定された場合、S108において、タイミング制御部335はVBUS端子の電圧を検出した時間Tvを記憶する。なお、S107のVBUS端子の電圧の検出も所定の期間にわたって行われる。S107でVBUS端子の電圧が検出されないと判定された場合、タイミング制御部335は、処理を終える。この場合も、S133においてCHGIC302が、電力供給装置401からの受電をSUSPEND状態とする。S103、S105、S107において検出を待つ所定の期間は、同じであってもよいしそれぞれ異なってもよい。 In S107, the timing control unit 335 determines whether the voltage of the VBUS terminal from the USB connector 380 is detected by the VBUS detection unit 333. When it is determined that the voltage of the VBUS terminal has been detected, the timing control unit 335 stores the time Tv at which the voltage of the VBUS terminal is detected in S108. The voltage of the VBUS terminal of S107 is also detected over a predetermined period. When it is determined in S107 that the voltage of the VBUS terminal is not detected, the timing control unit 335 ends the process. Also in this case, in S133, the CHGIC 302 sets the power received from the power supply device 401 to the SUSPEND state. The predetermined period for waiting for detection in S103, S105, and S107 may be the same or different.

S110において、タイミング制御部335は、CC端子の電圧を検出した時間TcとVBUS端子の電圧を検出した時間Tvとの時間差の絶対値が所定値以下であるか(本実施形態では閾値Tcv以下であるか)を判定する。ここで、閾値Tcvとは、CC端子の電圧を検出した時間Tcを基準とした場合のVBUS端子の電圧を検出した時間Tvの進みまたは遅れを判定する閾値である。 In S110, whether the absolute value of the time difference between the time Tc when the voltage of the CC terminal is detected and the time Tv when the voltage of the VBUS terminal is detected is equal to or less than a predetermined value in the timing control unit 335 (in the present embodiment, the threshold value Tcv or less Is there?) Is determined. Here, the threshold Tcv is a threshold for determining the advance or lag of the time Tv at which the voltage at the VBUS terminal is detected when the time Tc at which the voltage at the CC terminal is detected is used as a reference.

CC端子の電圧を検出した時間TcとVBUS端子の電圧を検出した時間Tvとの時間差の絶対値が閾値Tcv以下である場合、下記に列挙する要因(1)から(3)によってVBUSの検出タイミングが正確でない場合が考えられる。
(1)電力供給装置401はType−C装置であるが、VBUS電圧出力タイミングが早すぎる。
(2)電力供給装置401はType−C装置であるが、USB Type−CケーブルのCC端子がVBUS電圧に抵抗でプルアップされていて電子機器301におけるVBUS電圧の検出タイミングが早くなっている。
(3)電力供給装置401は非Type−C装置であるが、電力供給装置401及び電子機器301のVBUS出力容量、VBUS入力容量によって、CC端子より前に検出されるべきVBUS電圧の検出タイミングが遅くなっている。
When the absolute value of the time difference between the time Tc at which the voltage at the CC terminal is detected and the time Tv at which the voltage at the VBUS terminal is detected is less than or equal to the threshold value Tcv, the VBUS detection timing is due to the factors (1) to (3) listed below. May not be accurate.
(1) The power supply device 401 is a Type-C device, but the VBUS voltage output timing is too early.
(2) The power supply device 401 is a Type-C device, but the CC terminal of the USB Type-C cable is pulled up to the VBUS voltage by a resistor, and the detection timing of the VBUS voltage in the electronic device 301 is earlier.
(3) The power supply device 401 is a non-Type-C device, but the detection timing of the VBUS voltage that should be detected before the CC terminal depends on the VBUS output capacity and VBUS input capacity of the power supply device 401 and the electronic device 301. It's late.

なお、閾値Tcvは任意の値であり、次のようにして決定される。たとえば、上述の要因(3)に関して、電力供給装置401のVBUS出力容量150μF、電子機器301のVBUS入力容量10μF、USBコネクタ403からUSBコネクタ380へ至る系のインピーダンスを1Ωと仮定する。上述の仮定の場合、時間差の閾値Tcvは電力供給装置401及びUFP装置のVBUS出力容量およびVBUS入力容量に電荷を蓄積する時間やタイマの精度などを考慮して、たとえば5msとする。 The threshold value Tcv is an arbitrary value and is determined as follows. For example, regarding the above factor (3), it is assumed that the VBUS output capacity of the power supply device 401 is 150 μF, the VBUS input capacity of the electronic device 301 is 10 μF, and the impedance of the system from the USB connector 403 to the USB connector 380 is 1 Ω. In the case of the above assumption, the threshold value Tcv of the time difference is set to, for example, 5 ms in consideration of the time for accumulating charges in the VBUS output capacitance and the VBUS input capacitance of the power supply device 401 and the UFP device, the accuracy of the timer, and the like.

時間Tcと時間Tvとの時間差がTcv以下の場合、上述のような3つの要因によりCC端子およびVBUS端子の電圧の検出タイミングに基づく接続機器検出は信頼性が低い。そこで、時間Tcと時間Tvとの時間差の絶対値が閾値Tcv以下であると判定された場合(S110でYES)、S111以降の処理により接続機器検出とエニュメレーション処理(第1の接続機器検出)が行われる。一方、時間Tcと時間Tvとの時間差の絶対値が所定値より大きい(閾値Tcv以下でない)と判定された場合(S110でNO)は、S121以降の処理により第2の接続機器家検出が行われる。第2の接続機器検出では、VBUS端子とCC端子の電圧検出のタイミング(後先の関係)を考慮した接続機器検出が行われる。 When the time difference between the time Tc and the time Tv is Tcv or less, the reliability of the connected device detection based on the voltage detection timing of the CC terminal and the VBUS terminal is low due to the above-mentioned three factors. Therefore, when it is determined that the absolute value of the time difference between the time Tc and the time Tv is equal to or less than the threshold value Tcv (YES in S110), the connected device detection and the enumeration process (first connected device detection) are performed by the processing after S111. ) Is performed. On the other hand, when it is determined that the absolute value of the time difference between the time Tc and the time Tv is larger than the predetermined value (not less than or equal to the threshold value Tcv) (NO in S110), the second connected device house detection is performed by the processing after S121. Will be. In the second connection device detection, the connection device detection is performed in consideration of the voltage detection timing (relationship between the VBUS terminal and the CC terminal) of the VBUS terminal and the CC terminal.

S111で、タイミング制御部335はVDDEN2_OUTから出力されるVDDEN2信号をHとし、電源IC_D312をONさせて、CPU304を起動する。そして、S112で、タイミング制御部335はENUMERATION_TRY_OUTから出力されるENUMERATION_TRY信号をHとする。CPU304は、ENUMERATION_TRY信号がHになったことに応じてSELSW_E313による信号の接続先をCPU304側に切り換え、エニュメレーション処理を実行する。S113で、タイミング制御部335は、CPU304による接続機器検出処理とエニュメレーション処理とが終了するのに要する期間を待つ。 In S111, the timing control unit 335 sets the VDDEN2 signal output from VDDEN2_OUT to H, turns on the power supply IC_D312, and starts the CPU 304. Then, in S112, the timing control unit 335 sets the ENUMERATION_TRY signal output from the ENUMERIATION_TRY_OUT to H. The CPU 304 switches the connection destination of the signal by SELSW_E313 to the CPU 304 side in response to the ENUMERIATION_TRY signal becoming H, and executes the enumeration process. In S113, the timing control unit 335 waits for a period required for the connection device detection process and the enumeration process by the CPU 304 to be completed.

S114で、起動されたCPU304は電子機器301に接続された電力供給装置401の接続機器検出処理とエニュメレーション処理とを行い、処理結果をLEGACY_HOST_DET1信号に出力する。エニュメレーション処理では、CPU304はたとえばコンフィギュレーションディスクリプタのMaxPower宣言を500mAとする。接続機器検出、エニュメレーション処理が正常に終了した場合、CPU304はLEGACY_HOST_DET1信号をHにする。なお、S114でのエニュメレーション処理におけるコンフィギュレーションディスクリプタのMaxPower宣言は500mAに限ったものでなく、900mAなどでもよい。コンフィギュレーションディスクリプタのMaxPower宣言はUSB規格の範囲内であれば任意に設定可能である。 In S114, the activated CPU 304 performs connection device detection processing and enumeration processing of the power supply device 401 connected to the electronic device 301, and outputs the processing result to the LEGACY_HOST_DET1 signal. In the enumeration process, the CPU 304 sets the MaxPower declaration of the configuration descriptor to 500 mA, for example. When the connected device detection and enumeration processing are normally completed, the CPU 304 sets the LEGACY_HOST_DET1 signal to H. The MaxPower declaration of the configuration descriptor in the enumeration process in S114 is not limited to 500 mA, but may be 900 mA or the like. The MaxPower declaration of the configuration descriptor can be set arbitrarily as long as it is within the range of the USB standard.

S115で、タイミング制御部335は電子機器301に接続されている電力供給装置401が非Type−C装置(Legacy USB HOST)であるかを判定する。タイミング制御部335は、LEGACY_HOST_DET1_INに入力されるLEGACY_HOST_DET1信号がHである場合、電子機器301に接続された電力供給装置401は非Type−C装置であると判定する。そして、S116で、タイミング制御部335はCHG_EN_OUTから出力されるCHG_EN信号をHとし、CHGIC302による充電動作を許可する。なお、CHG_EN信号とは、CHGIC302による電池パック320への充電機能を有効にする信号である。S131で、CHGIC302は非Type−C規格に準拠した受電条件で受電制御を開始する。たとえば、電力供給装置401から受電する電流を上記エニュメレーション処理でのコンフィギュレーションディスクリプタで宣言した電流値以下に制限する。そして、図1A、図1Bのフローチャートの処理を終了する。 In S115, the timing control unit 335 determines whether the power supply device 401 connected to the electronic device 301 is a non-Type-C device (Legacy USB HOST). When the LEGACY_HOST_DET1 signal input to the LEGACY_HOST_DET1_IN is H, the timing control unit 335 determines that the power supply device 401 connected to the electronic device 301 is a non-Type-C device. Then, in S116, the timing control unit 335 sets the CHG_EN signal output from CHG_EN_OUT to H, and permits the charging operation by the CHGIC 302. The CHG_EN signal is a signal that enables the charging function of the battery pack 320 by the CHGIC 302. In S131, CHGIC 302 starts power receiving control under power receiving conditions conforming to the non-Type-C standard. For example, the current received from the power supply device 401 is limited to the current value declared in the configuration descriptor in the enumeration process. Then, the processing of the flowcharts of FIGS. 1A and 1B is completed.

S115で、LEGACY_HOST_DET1信号がLである場合は(S115でNO)、電子機器301に接続された電力供給装置401が非Type−C装置であると確定できない場合であり、S121以降の処理が実行される。なお、S115の判定処理の結果S122が実行される場合、CPU304はSELSW_E313をCHGIC302側に切り替えるものとする。 In S115, when the LEGACY_HOST_DET1 signal is L (NO in S115), it means that the power supply device 401 connected to the electronic device 301 cannot be determined to be a non-Type-C device, and the processing after S121 is executed. To. When S122 is executed as a result of the determination process of S115, the CPU 304 switches the SELSW_E313 to the CHGIC 302 side.

S121で、タイミング制御部335はCTYP_TRY信号へHを出力し、S122へ進む。CTYP_TRY信号とは、CHGIC302に接続機器検出を実行させるための信号である。したがって、CHGIC302はCTYP_TRY信号に応じて接続機器検出を実行する。S122で、タイミング制御部335は電子機器301に接続された電力供給装置401が非Type−C装置であるかを判定する。タイミング制御部335はLEGACY_HOST_DET2_INに入力されるLEGACY_HOST_DET2信号がHである場合に、電力供給装置401が非Type−C装置であると判定する。S122で非Type−C装置であると判定された場合は、上述したS116以降の処理が実行される。 In S121, the timing control unit 335 outputs H to the CTYP_TRY signal and proceeds to S122. The CTYP_TRY signal is a signal for causing CHGIC 302 to perform connection device detection. Therefore, the CHGIC 302 executes the connected device detection in response to the CTYP_TRY signal. In S122, the timing control unit 335 determines whether the power supply device 401 connected to the electronic device 301 is a non-Type-C device. The timing control unit 335 determines that the power supply device 401 is a non-Type-C device when the LEGACY_HOST_DET2 signal input to the LEGACY_HOST_DET2_IN is H. If it is determined in S122 that the device is a non-Type-C device, the above-mentioned processes after S116 are executed.

S122で、LEGACY_HOST_DET2信号の入力がLである場合、電力供給装置401は非Type−C機器でないと判定される。この場合、S123で、タイミング制御部335は、CHGIC302からCTYP_DET_INに入力されるCTYP_DET信号がHかLかを判定する。CTYP_DET信号とは、CHGIC302の接続機器検出機能で電子機器301に接続された相手装置の種別が正しく検出できた場合にHとなる信号である。S123で、タイミング制御部335はCTYP_DET信号がHである場合にはCHGIC302による接続機器検出を正しく行えたと判定し、CTYP_DET信号がLである場合にはCHGIC302による接続機器検出を正しく行えなかったと判定する。 In S122, when the input of the LEGACY_HOST_DET2 signal is L, it is determined that the power supply device 401 is not a non-Type-C device. In this case, in S123, the timing control unit 335 determines whether the CTYP_DET signal input from the CHGIC 302 to the CTYP_DET_IN is H or L. The CTYP_DET signal is a signal that becomes H when the type of the partner device connected to the electronic device 301 can be correctly detected by the connected device detection function of the CHGIC 302. In S123, the timing control unit 335 determines that the connected device detection by the CHGIC 302 has been performed correctly when the CTYP_DET signal is H, and determines that the connected device detection by the CHGIC 302 has not been performed correctly when the CTYP_DET signal is L. ..

S123で接続機器検出を正しく行えなかったと判定された場合は、S133においてCHGIC302は受電条件をSUSPEND状態とする。S133の処理は先に述べたので省略する。図1Bにおいて、S123を経てS133へ進む場合は、電子機器301に接続された相手装置が何れのUSB規格にも対応していないことであるので、接続機器種別をOtherと称する。 If it is determined in S123 that the connected device cannot be detected correctly, the CHGIC 302 sets the power receiving condition to the SUSPEND state in S133. Since the process of S133 has been described above, it will be omitted. In FIG. 1B, when proceeding to S133 via S123, the other device connected to the electronic device 301 does not correspond to any USB standard, so the connected device type is referred to as Other.

S123で接続機器検出が正しく行われたと判定された場合、S124で、タイミング制御部335はPD通信中を示すPD_BUSY信号入力がLであるかを判定する。タイミング制御部335はPD_BUSY信号がLになるのを待ち(S124)、PD_BUSY信号がLになると、S125で、CHG_EN信号へHを出力する。CHG_EN信号とは、CHGIC302による電池パック320への充電機能を有効にする信号である。S132で、CHGIC302は電力供給装置401がType−C装置であるとして、Type−C規格に準拠した電力で受電制御を開始する。そして、図1A、図1Bのフローチャートで示される処理を終了する。 When it is determined in S123 that the connected device detection has been performed correctly, in S124, the timing control unit 335 determines whether the PD_BUSY signal input indicating that PD communication is in progress is L. The timing control unit 335 waits for the PD_BUSY signal to become L (S124), and when the PD_BUSY signal becomes L, outputs H to the CHG_EN signal in S125. The CHG_EN signal is a signal that enables the charging function of the battery pack 320 by the CHGIC 302. In S132, the CHGIC 302 starts the power receiving control with the power conforming to the Type-C standard, assuming that the power supply device 401 is a Type-C device. Then, the process shown in the flowcharts of FIGS. 1A and 1B is completed.

以上のように、CC端子の電圧を検出した時間(Tc)とVBUS電圧を検出した時間(Tv)の差がTvc(たとえば5ms)以下である場合、CPU304は接続された相手装置の接続機器検出処理とエニュメレーション処理とを行う。この接続機器検出処理とエニュメレーション処理とによって相手装置が非Type−C装置であると判定できた場合、電子機器301は非Type−C規格に準拠した電力で受電制御を開始する。また、接続機器検出処理とエニュメレーション処理とによって相手装置が非Type−C装置であると判定できなかった場合、CHGIC302の接続機器検出機能によって相手装置の接続機器検出処理が行われる。そして、CHGIC302の接続機器検出機能によって相手装置がType−C装置であると判定できた場合、電子機器301はType−C規格に準拠した電力で受電制御を開始する。 As described above, when the difference between the time when the voltage of the CC terminal is detected (Tc) and the time when the VBUS voltage is detected (Tv) is Tvc (for example, 5 ms) or less, the CPU 304 detects the connected device of the connected partner device. Performs processing and enumeration processing. When it can be determined that the other device is a non-Type-C device by the connected device detection process and the enumeration process, the electronic device 301 starts the power receiving control with the power conforming to the non-Type-C standard. If the other device cannot be determined to be a non-Type-C device by the connected device detection process and the enumeration process, the connected device detection function of the CHGIC 302 performs the connected device detection process of the other device. Then, when the other device can be determined to be the Type-C device by the connected device detection function of the CHGIC 302, the electronic device 301 starts the power receiving control with the power conforming to the Type-C standard.

図1A、図1Bのフローチャートに従って動作した場合の電子機器301の接続機器検出による種別、受電制御モード、電圧と電流条件の真理値表を図2に示す。図2の真理値表において、接続機器種別が非Type−Cとは、図1A、図1BのフローチャートのS115またはS122で電子機器301に接続された相手装置が非Type−C装置であると判定された場合の結果に相当する。接続機器種別が非Type−C装置の場合は、電力供給装置401がUSB2.0、USB3.0、USB3.1、USB BCいずれかの規格であるので、いずれかの規格に適した非Type−C受電制御モードとなる。電圧、電流条件は5V、1.5A以下である。 FIG. 2 shows a truth table of the type of the electronic device 301 by detecting the connected device, the power receiving control mode, and the voltage and current conditions when the electronic device 301 operates according to the flowcharts of FIGS. 1A and 1B. In the truth table of FIG. 2, when the connected device type is non-Type-C, it is determined that the other device connected to the electronic device 301 in S115 or S122 of the flowchart of FIGS. 1A and 1B is a non-Type-C device. Corresponds to the result when it is done. When the connected device type is a non-Type-C device, the power supply device 401 has one of the standards of USB2.0, USB3.0, USB3.1, and USB BC, so the non-Type-C device suitable for any of the standards is used. C Power reception control mode is set. The voltage and current conditions are 5V and 1.5A or less.

図2の真理値表において、接続機器種別がType−Cとは、図1のフローチャートのS122とS123を経てS124へ進んだ場合の結果に相当する。接続機器種別がType−Cの場合は、電力供給装置401がType−C装置であるので、Type−Cの規格に適したType−C受電制御モードとなる。電圧、電流条件は20V以下、5A以下である。 In the truth table of FIG. 2, the connected device type Type-C corresponds to the result when the process proceeds to S124 via S122 and S123 in the flowchart of FIG. When the connected device type is Type-C, since the power supply device 401 is a Type-C device, the Type-C power receiving control mode suitable for the Type-C standard is set. The voltage and current conditions are 20 V or less and 5 A or less.

図2の真理値表において、接続機器種別がOtherとは、図1のフローチャートのS101、S105、S107でVBUS端子電圧検出とCC端子電圧検出とが行われなかった場合の結果に相当する。また、接続機器種別がOtherとは、S123で接続機器検出を正しく行えなかったと判定した場合も含む。接続機器種別がOtherの場合は、電力供給装置401が何れのUSB規格に対応していないので、SUSPENDモードとなる。電圧、電流条件は5V、2.5mA以下である。 In the truth table of FIG. 2, the connected device type Other corresponds to the result when the VBUS terminal voltage detection and the CC terminal voltage detection are not performed in S101, S105, and S107 of the flowchart of FIG. Further, the case where the connected device type is Other includes the case where it is determined in S123 that the connected device cannot be detected correctly. When the connected device type is Other, the power supply device 401 does not support any USB standard, so the SUSPEND mode is set. The voltage and current conditions are 5V and 2.5mA or less.

図4A〜図4Eは、電力供給装置401の電力供給能力の判定と、その判定に基づく電力条件での受電動作の開始における信号制御手順の例を示すタイミングチャートである。 4A to 4E are timing charts showing an example of a signal control procedure for determining the power supply capacity of the power supply device 401 and starting the power receiving operation under the power condition based on the determination.

図4Aは、電力供給装置401がType−C装置であり、CC端子の電圧が検出された後、時間Tcv以上経過後にVBUS端子の電圧が検出された場合のタイミングチャートである。タイミング制御部335はCTYP_TRY信号をHにする(S110でNO→S121)。CHGIC302は、CTYP_TRY信号がHになると、電力供給装置401の接続機器検出を行う。電力供給装置401がType−Cであるため、すなわち、非Type−Cと判定できないため、CHGIC302はLEGACY_HOST_DET2信号をLにする。この例では、CC端子の電圧検出から275ms以内にVBUS端子の電圧が検出されているため、CHGIC302は接続機器検出を正しく行うことができており、CTYP_DET信号にHを出力する。タイミング制御部335は、LEGACY_HOST_DET2信号がL,CTYP_DET信号がH、PD_BUSY信号がLであるため、CHG_EN信号へHを出力する(S122でNO→S123でYES→S124でYES→S125)。CHG_EN信号がHになったことに応じて、CHGIC302はType−C規格による受電を開始する。 FIG. 4A is a timing chart when the power supply device 401 is a Type-C device and the voltage of the VBUS terminal is detected after a lapse of time Tcv or more after the voltage of the CC terminal is detected. The timing control unit 335 sets the CTYP_TRY signal to H (NO → S121 in S110). When the CTYP_TRY signal becomes H, the CHGIC 302 detects the connected device of the power supply device 401. Since the power supply device 401 is Type-C, that is, it cannot be determined that it is non-Type-C, CHGIC 302 sets the LEGACY_HOST_DET2 signal to L. In this example, since the voltage of the VBUS terminal is detected within 275 ms from the voltage detection of the CC terminal, the CHGIC 302 can correctly detect the connected device and outputs H to the CTYP_DET signal. Since the LEGACY_HOST_DET2 signal is L, the CTYP_DET signal is H, and the PD_BUSY signal is L, the timing control unit 335 outputs H to the CHG_EN signal (NO in S122 → YES in S123 → YES → S125 in S124). When the CHG_EN signal becomes H, the CHGIC 302 starts receiving power according to the Type-C standard.

図4Bは、電力供給装置401がUSB Type−C装置であり、CC端子の電圧が検出された後、時間Tcv以内にVBUS端子の電圧が検出される場合のタイミングチャートである。タイミング制御部335はENUMERATION_TRY信号にHを出力し、CPU304による電力供給装置401の接続機器検出処理とエニュメレーション処理とが終了するのを待つため、所定期間Waitする(S110でYES→S111〜S113)。CPU304は、ENUMERATION_TRY信号のHに応じて電力供給装置401の接続機器検出処理とエニュメレーション処理とを行う(S114)。 FIG. 4B is a timing chart when the power supply device 401 is a USB Type-C device and the voltage of the VBUS terminal is detected within the time Tcv after the voltage of the CC terminal is detected. The timing control unit 335 outputs H to the ENUMERIATION_TRY signal and waits for a predetermined period to wait for the CPU 304 to complete the connection device detection process and the enumeration process of the power supply device 401 (YES in S110 → S111 to S113). ). The CPU 304 performs connection device detection processing and enumeration processing of the power supply device 401 in response to H of the ENUMERIATION_TRY signal (S114).

電力供給装置401はType−C装置であるため、CPU304は、LEGACY_HOST_DET1信号にLを出力する。タイミング制御部335はLEGACY_HOST_DET1信号がLであるため、CTYP_TRY信号へHを出力する(S115でNO→S121)。CHGIC302は、CTYP_TRY信号のHに応じて電子機器301に接続された電力供給装置401の接続機器検出を行う。電力供給装置401がType−C装置であるため、CHGIC302はLEGACY_HOST_DET2信号にLを出力する。CHGIC302は、CC端子の電圧の検出の後にVBUS端子の電圧が検出さていることから接続機器検出は正しく行えているためCTYP_DET信号にHを出力する。タイミング制御部335は、LEGACY_HOST_DET2信号がL,CTYP_DET信号がH、PD_BUSY信号がLであるため、CHG_EN信号へHを出力する(S122でNO→S123でYES→S124でYES→S125)。CHG_EN信号がHになったことに応じて、CHGIC302はType−C規格による受電を開始する。 Since the power supply device 401 is a Type-C device, the CPU 304 outputs L to the LEGACY_HOST_DET1 signal. Since the LEGACY_HOST_DET1 signal is L, the timing control unit 335 outputs H to the CTYP_TRY signal (NO → S121 in S115). The CHGIC 302 detects the connected device of the power supply device 401 connected to the electronic device 301 according to the H of the CTYP_TRY signal. Since the power supply device 401 is a Type-C device, the CHGIC 302 outputs L to the LEGACY_HOST_DET2 signal. Since the voltage of the VBUS terminal is detected after the voltage of the CC terminal is detected, the CHGIC 302 outputs H to the CTYP_DET signal because the connected device is detected correctly. Since the LEGACY_HOST_DET2 signal is L, the CTYP_DET signal is H, and the PD_BUSY signal is L, the timing control unit 335 outputs H to the CHG_EN signal (NO in S122 → YES in S123 → YES → S125 in S124). When the CHG_EN signal becomes H, the CHGIC 302 starts receiving power according to the Type-C standard.

図4Cは、電力供給装置401が非Type−C装置であり、CC端子電圧検出の後、時間Tcv以内にVBUS端子電圧検出が行われた場合のタイミングチャートである。タイミング制御部335はENUMERATION_TRY信号にHを出力し、CPU304による電力供給装置401の接続機器検出処理とエニュメレーション処理とが終了する期間Waitする(S110でYES→S111〜S113)。CPU304は、ENUMERATION_TRY信号のHに応じて電力供給装置401の接続機器検出処理とエニュメレーション処理とを行う(S114)。 FIG. 4C is a timing chart when the power supply device 401 is a non-Type-C device and the VBUS terminal voltage is detected within the time Tcv after the CC terminal voltage is detected. The timing control unit 335 outputs H to the ENUMERIATION_TRY signal, and waits for a period during which the connection device detection process and the enumeration process of the power supply device 401 by the CPU 304 are completed (YES in S110 → S111 to S113). The CPU 304 performs connection device detection processing and enumeration processing of the power supply device 401 in response to H of the ENUMERIATION_TRY signal (S114).

電力供給装置401が非Type−C装置であるため、LEGACY_HOST_DET1信号にHを出力する。タイミング制御部335はLEGACY_HOST_DET1信号がHであるため、CTYP_TRY信号をHとはせず、CHG_EN信号をHとする(S115でYES→S116)。CHGIC302は、非Type−C装置の受電条件での受電を開始する。こうして、CHGIC302は、CC端子の電圧の検出の後にVBUS端子の電圧が検出されているにもかかわらず、接続されている電力供給装置401が非Type−C装置であると正しく認識することができる。 Since the power supply device 401 is a non-Type-C device, H is output to the LEGACY_HOST_DET1 signal. Since the LEGACY_HOST_DET1 signal is H, the timing control unit 335 does not set the CTYP_TRY signal to H, but sets the CHG_EN signal to H (YES → S116 in S115). The CHGIC 302 starts receiving power under the power receiving conditions of the non-Type-C device. In this way, the CHGIC 302 can correctly recognize that the connected power supply device 401 is a non-Type-C device even though the voltage of the VBUS terminal is detected after the voltage of the CC terminal is detected. ..

図4Dは、図4Aと同様に、電力供給装置401がType−C装置であり、CC端子の電圧が検出された後、時間Tcv以上が経過した後にVBUS端子の電圧が検出された場合のタイミングチャートである。図4Dではさらに、電子機器301と電力供給装置401との間でCC端子によるUSB PDの通信が行われ、VBUS端子電圧が変更される場合が示されている。 FIG. 4D shows the timing when the power supply device 401 is a Type-C device and the voltage of the VBUS terminal is detected after the time Tcv or more has elapsed after the voltage of the CC terminal is detected, as in the case of FIG. 4A. It is a chart. FIG. 4D further shows a case where USB PD communication is performed by the CC terminal between the electronic device 301 and the power supply device 401, and the VBUS terminal voltage is changed.

タイミング制御部335はCTYP_TRY信号へHを出力する(S110でNO→S121)。CHGIC302は、CTYP_TRY信号がHになったことに応じて電子機器301に接続された電力供給装置401の接続機器検出を行う。電力供給装置401がType−C装置であるためCHGIC302はLEGACY_HOST_DET2信号にLを出力する。CHGIC302は電子機器301に接続された電力供給装置401とCC端子によるUSB PDの通信を行う。USB PD通信中、PD_BUSY信号はHである。CHGIC302は、接続機器検出とUSB PDの通信が正しく行えたのでCTYP_DET信号にHを出力する。 The timing control unit 335 outputs H to the CTYP_TRY signal (NO → S121 in S110). The CHGIC 302 detects the connected device of the power supply device 401 connected to the electronic device 301 in response to the CTYP_TRY signal becoming H. Since the power supply device 401 is a Type-C device, the CHGIC 302 outputs L to the LEGACY_HOST_DET2 signal. The CHGIC 302 communicates with the power supply device 401 connected to the electronic device 301 via the CC terminal via USB PD. During USB PD communication, the PD_BUSY signal is H. The CHGIC 302 outputs H to the CTYP_DET signal because the connected device detection and the USB PD communication can be performed correctly.

CHGIC302は電力供給装置401とCC端子によるUSB PDの通信を行い、VBUS端子電圧の変更が行われた後、さらにCHGIC302は電力供給装置401とCC端子によるUSB PDの通信を継続して行う。USB PD通信が終了したら、PD_BUSY信号はLとなる。タイミング制御部335はCTYP_DET信号がH、PD_BUSY信号がLになると、CHG_EN信号をHとする(S123でYES→S124でYES→S125)。 The CHGIC 302 communicates the USB PD between the power supply device 401 and the CC terminal, and after the VBUS terminal voltage is changed, the CHGIC 302 continues the USB PD communication between the power supply device 401 and the CC terminal. When the USB PD communication is completed, the PD_BUSY signal becomes L. When the CTYP_DET signal becomes H and the PD_BUSY signal becomes L, the timing control unit 335 sets the CHG_EN signal to H (YES in S123 → YES → S125 in S124).

図4Eは、図4Bと同様に、電力供給装置がType−C装置であり、CC端子の電圧が検出された後、時間Tcv以内にVBUS端子の電圧が検出された場合のタイミングチャートである。図4Eではさらに、電子機器301と電力供給装置401との間でCC端子によるUSB PDの通信とVBUS端子電圧の変更が行われた場合が示されている。 FIG. 4E is a timing chart when the power supply device is a Type-C device and the voltage of the VBUS terminal is detected within the time Tcv after the voltage of the CC terminal is detected, as in FIG. 4B. FIG. 4E further shows a case where the USB PD communication by the CC terminal and the change of the VBUS terminal voltage are performed between the electronic device 301 and the power supply device 401.

タイミング制御部335はENUMERATION_TRY信号にHを出力し、CPU304による電力供給装置401の接続機器検出処理とエニュメレーション処理とが終了する期間Waitする(S110でNO→S111〜S113)。CPU304は、ENUMERATION_TRY信号がHになると電力供給装置401の接続機器検出処理とエニュメレーション処理を行う(S114)。CPU304は、電力供給装置401がType−C装置であるためLEGACY_HOST_DET1信号にLを出力する。 The timing control unit 335 outputs H to the ENUMERIATION_TRY signal, and waits for a period during which the connection device detection process and the enumeration process of the power supply device 401 by the CPU 304 are completed (NO → S111 to S113 in S110). When the ENUMERIATION_TRY signal becomes H, the CPU 304 performs connection device detection processing and enumeration processing of the power supply device 401 (S114). Since the power supply device 401 is a Type-C device, the CPU 304 outputs L to the LEGACY_HOST_DET1 signal.

タイミング制御部335はLEGACY_HOST_DET1信号がLであるため、CTYP_TRY信号へHを出力する(S115でNO→S121)。CHGIC302は、CTYP_TRY信号がHになると電子機器301に接続された電力供給装置401の接続機器検出を行う。電力供給装置401がType−C装置であるためCHGIC302はLEGACY_HOST_DET2信号にLを出力する。続いてCHGIC302は電子機器301に接続された電力供給装置401とCC端子によるUSB PDの通信を行う。USB PD通信中、PD_BUSY信号はHである。CHGIC302は、接続機器検出とUSB PDの通信が正しく行えたのでCTYP_DET信号にHを出力する。CHGIC302は電力供給装置401とCC端子によるUSB PDの通信を行い、VBUS端子電圧の変更が行われた後、さらにCHGIC302は電力供給装置401とCC端子によるUSB PDの通信を行う。USB PD通信が終了したら、PD_BUSY信号はLとなる。タイミング制御部335はCTYP_DET信号入力がH、PD_BUSY信号入力がLであるため、CHG_EN信号へHを出力する(S122でNO→S123でYES→S124でYES→S125)。 Since the LEGACY_HOST_DET1 signal is L, the timing control unit 335 outputs H to the CTYP_TRY signal (NO → S121 in S115). When the CTYP_TRY signal becomes H, the CHGIC 302 detects the connected device of the power supply device 401 connected to the electronic device 301. Since the power supply device 401 is a Type-C device, the CHGIC 302 outputs L to the LEGACY_HOST_DET2 signal. Subsequently, the CHGIC 302 communicates the USB PD with the power supply device 401 connected to the electronic device 301 by the CC terminal. During USB PD communication, the PD_BUSY signal is H. The CHGIC 302 outputs H to the CTYP_DET signal because the connected device detection and the USB PD communication can be performed correctly. The CHGIC 302 communicates with the power supply device 401 via the CC terminal for USB PD, and after the VBUS terminal voltage is changed, the CHGIC 302 further communicates with the power supply device 401 via the CC terminal for USB PD. When the USB PD communication is completed, the PD_BUSY signal becomes L. Since the CTYP_DET signal input is H and the PD_BUSY signal input is L, the timing control unit 335 outputs H to the CHG_EN signal (NO in S122 → YES in S123 → YES → S125 in S124).

以上のように、実施形態1によれば、受電装置である電子機器301は、CC端子の電圧を検出した後、時間Tcv以内にVBUS端子の電圧が検出された場合には、電力供給装置401が非Type−C装置であるかを判定する。よって、電子機器301はCC端子の電圧検出とVBUS端子の電圧検出の時間にずれが生じたとしても、誤判定の可能性が低減される。このため、たとえば接続相手装置を不明と判定してSUSPEND状態に移行したり、非Type−C装置の規格を超える電力受電動作を行ったりすることがない。電子機器301は、電力供給装置401が非Type−C装置でなく、Type−C装置である場合には、Type−C規格の電力供給能力に従った受電動作を行うことが可能である。また、電子機器301は、電力供給装置401が非Type−C装置である場合は、非Type−C規格の電力供給能力に従って受電動作を行うことが可能である。 As described above, according to the first embodiment, the electronic device 301, which is the power receiving device, detects the voltage of the CC terminal and then detects the voltage of the VBUS terminal within the time Tcv, the power supply device 401. Is a non-Type-C device. Therefore, even if there is a time lag between the voltage detection of the CC terminal and the voltage detection of the VBUS terminal in the electronic device 301, the possibility of erroneous determination is reduced. Therefore, for example, it is not possible to determine that the connection partner device is unknown and shift to the SUSPEND state, or to perform a power receiving operation exceeding the standard of the non-Type-C device. When the power supply device 401 is not a non-Type-C device but a Type-C device, the electronic device 301 can perform a power receiving operation according to the power supply capacity of the Type-C standard. Further, when the power supply device 401 is a non-Type-C device, the electronic device 301 can perform the power receiving operation according to the power supply capacity of the non-Type-C standard.

[実施形態2]
実施形態1では、タイミング検出部303aの動作はハードウェア制御で行うことを例として説明した。実施形態2では、タイミング検出部303aの動作の一部をCPU304とは異なるCPUによるソフトウェア制御で行うことを説明する。
[Embodiment 2]
In the first embodiment, the operation of the timing detection unit 303a has been described as an example of performing the operation by hardware control. In the second embodiment, it will be described that a part of the operation of the timing detection unit 303a is performed by software control by a CPU different from the CPU 304.

図5は実施形態2に係る電子機器301の構成例を示すブロック図である。実施形態2の説明に使用するブロック図は、実施形態2の説明に不要なブロックへの電源接続は省略している。また、実施形態2の説明に不要なブロックと動作の詳細な説明は省略している。 FIG. 5 is a block diagram showing a configuration example of the electronic device 301 according to the second embodiment. In the block diagram used in the description of the second embodiment, the power supply connection to the block unnecessary for the description of the second embodiment is omitted. Further, detailed explanations of blocks and operations that are unnecessary for the explanation of the second embodiment are omitted.

図5において、タイミング検出部303bは、実施形態1の図3で説明したタイミング検出部303aの一部をSUB−CPU504に置き換えたものである。SUB−CPU504は、タイミング検出部303aで行っていたハードウェア制御の一部をソフトウェア制御として互換動作するために配置したCPU304とは異なるCPUである。 In FIG. 5, the timing detection unit 303b replaces a part of the timing detection unit 303a described with reference to FIG. 3 of the first embodiment with the SUB-CPU 504. The SUB-CPU 504 is a CPU different from the CPU 304 arranged so that a part of the hardware control performed by the timing detection unit 303a is compatiblely operated as software control.

実施形態2の電子機器301のタイミング検出部303bと、実施形態1の電子機器301のタイミング検出部303aの構成は、CPU304およびCHGIC302から見て同様の動作をする構成とする。よって、実施形態2の電子機器301が電力供給装置401の電力供給能力に基づく電力条件で動作を開始するフローチャートは、実施形態1の図1のフローチャートが適用可能である。図1のフローチャートが適用される場合、実施形態2のタイミング検出部303bでの信号制御手順の例と動作条件の例は、図2の真理値表および図4A〜図4Eのタイミングチャートが適用される。 The configuration of the timing detection unit 303b of the electronic device 301 of the second embodiment and the timing detection unit 303a of the electronic device 301 of the first embodiment are configured to operate in the same manner as viewed from the CPU 304 and the CHGIC 302. Therefore, the flowchart of FIG. 1 of the first embodiment can be applied to the flowchart in which the electronic device 301 of the second embodiment starts the operation under the power condition based on the power supply capacity of the power supply device 401. When the flowchart of FIG. 1 is applied, the truth table of FIG. 2 and the timing charts of FIGS. 4A to 4E are applied to the example of the signal control procedure and the example of the operating conditions in the timing detection unit 303b of the second embodiment. To.

実施形態2によれば、電子機器のタイミング検出部がハードウェア制御でなくソフトウェア制御であっても、電力供給装置の電力供給能力に基づく電力条件で動作を開始することが可能である。 According to the second embodiment, even if the timing detection unit of the electronic device is software-controlled instead of hardware-controlled, it is possible to start the operation under the power condition based on the power supply capacity of the power supply device.

[実施形態3]
実施形態1および実施形態2では、電子機器の電池電圧に関わらず、USBインターフェースのVBUS電圧検出とCC端子電圧検出のタイミングに基づいて接続機器判定を行った。実施形態3では、電子機器の電池電圧が所定電圧以上である場合にUSBインターフェースのVBUS電圧検出とCC端子電圧検出のタイミングに基づく接続機器判定を行う方法を説明する。
[Embodiment 3]
In the first and second embodiments, the connected device is determined based on the timing of the VBUS voltage detection and the CC terminal voltage detection of the USB interface regardless of the battery voltage of the electronic device. In the third embodiment, a method of determining a connected device based on the timing of VBUS voltage detection and CC terminal voltage detection of the USB interface when the battery voltage of the electronic device is equal to or higher than a predetermined voltage will be described.

実施形態3では、電子機器301のタイミング検出部303aがハードウェア制御とソフトウェア制御とのどちらであっても適用可能である。したがって、実施形態3では、実施形態1で説明した電子機器301の動作を用いて説明を行うが、実施形態2の電子機器301を用いた場合もその動作は同様である。 In the third embodiment, the timing detection unit 303a of the electronic device 301 can be applied to either hardware control or software control. Therefore, in the third embodiment, the operation of the electronic device 301 described in the first embodiment is used, but the operation is the same when the electronic device 301 of the second embodiment is used.

実施形態3では、電子機器301のCPU304は電池パック320の電圧が所定電圧以上でなければ、電子機器301に接続された相手装置とエニュメレーション処理を行うことができない制限があるものとする。また、実施形態3では、図示しないがタイミング検出部303aのタイミング制御部335で電池パック320の電圧を検出する構成を備える。また、実施形態3では、CHGIC302は電池パック320の電圧が所定電圧以上となって接続機器検出を開始するまでは、電力供給装置401からの受電電流を、たとえば100mA以下に制限する。 In the third embodiment, it is assumed that the CPU 304 of the electronic device 301 cannot perform enumeration processing with the other device connected to the electronic device 301 unless the voltage of the battery pack 320 is equal to or higher than a predetermined voltage. Further, although not shown, the third embodiment includes a configuration in which the timing control unit 335 of the timing detection unit 303a detects the voltage of the battery pack 320. Further, in the third embodiment, the CHGIC 302 limits the received current from the power supply device 401 to, for example, 100 mA or less until the voltage of the battery pack 320 becomes equal to or higher than a predetermined voltage and the detection of the connected device is started.

図6は、実施形態3に係る電子機器301がUSBインターフェースのVBUS電圧検出とCC端子電圧検出のタイミングに基づく接続機器判定を行って電力供給装置401からの受電制御条件を決定する手順を示すフローチャートである。図6のフローチャートにおいて実施形態1(図1A)と同じ処理については同一の参照番号を付してある。以下、主として図1Aの処理との差を説明する。 FIG. 6 is a flowchart showing a procedure in which the electronic device 301 according to the third embodiment determines the connected device based on the timing of the VBUS voltage detection and the CC terminal voltage detection of the USB interface to determine the power receiving control condition from the power supply device 401. Is. In the flowchart of FIG. 6, the same reference numbers are assigned to the same processes as those of the first embodiment (FIG. 1A). Hereinafter, the difference from the processing of FIG. 1A will be mainly described.

実施形態1で説明したように、S110でCC端子の電圧を検出した時間TcとVBUS端子の電圧を検出した時間Tvとの時間差の絶対値が閾値Tcv以下の場合には、CPU304によるエニュメレーションが実行される。実施形態3では、この際に、CPU304がエニュメレーションを実行するのに必要な電圧が電池パック320から供給されているかが判定され、必要に応じて電池パック320の充電が行われる(S511〜S514)。 As described in the first embodiment, when the absolute value of the time difference between the time Tc at which the voltage of the CC terminal is detected in S110 and the time Tv at which the voltage of the VBUS terminal is detected is equal to or less than the threshold value Tcv, enumeration by the CPU 304 is performed. Is executed. In the third embodiment, at this time, it is determined whether or not the voltage required for the CPU 304 to execute the enumeration is supplied from the battery pack 320, and the battery pack 320 is charged if necessary (S511-). S514).

まず、S511で、CHGIC302は電力供給装置401からの受電電流を100mA以下に制限する。S512で、タイミング制御部335はCHG_EN信号へHを出力し、CHGIC302による二次電池セル321への充電を行う。CHG_EN信号とは、CHGIC302による電池パック320への充電機能を有効にする信号である。S513で、タイミング制御部335は電池パック320の電圧が所定電圧Vt以上であるかを判定する。S513で電池パック320の電圧が所定電圧Vt以上であると判定されるまで、充電が継続される(S513でNO)。こうして、CPU304によるエニュメレーション処理が実行可能な電圧を電池パック320が供給開始するまで、電力供給装置401から受電する電流値を所定値(100mA)に制限して電池パック320が充電される。 First, in S511, the CHGIC 302 limits the current received from the power supply device 401 to 100 mA or less. In S512, the timing control unit 335 outputs H to the CHG_EN signal, and charges the secondary battery cell 321 with the CHGIC 302. The CHG_EN signal is a signal that enables the charging function of the battery pack 320 by the CHGIC 302. In S513, the timing control unit 335 determines whether the voltage of the battery pack 320 is equal to or higher than the predetermined voltage Vt. Charging is continued until it is determined in S513 that the voltage of the battery pack 320 is equal to or higher than the predetermined voltage Vt (NO in S513). In this way, the battery pack 320 is charged by limiting the current value received from the power supply device 401 to a predetermined value (100 mA) until the battery pack 320 starts supplying the voltage at which the enumeration process by the CPU 304 can be executed.

S513で、電池パック320の電圧が所定電圧Vt以上であると判定されると、S514で、タイミング制御部335はCHG_EN信号へLを出力し、CHGIC302による二次電池セル321への充電を停止させる。S111以降の処理は実施形態1と同様である。 When it is determined in S513 that the voltage of the battery pack 320 is equal to or higher than the predetermined voltage Vt, in S514, the timing control unit 335 outputs L to the CHG_EN signal and stops the charging of the secondary battery cell 321 by the CHGIC 302. .. The processing after S111 is the same as that of the first embodiment.

以上のように、実施形態3によれば、電子機器の電池電圧が所定電圧未満でCPUによる相手装置とのエニュメレーション処理を行うことができない場合であっても、非Type−C装置の電力供給能力を超えることなく電池を充電することができる。その後、電子機器301の電池電圧が所定電圧以上になった段階でCPU304による相手装置とのエニュメレーション処理を行ってUSBインターフェースのVBUS電圧検出とCC端子電圧検出のタイミングに基づく接続機器判定を行うことが可能となる。 As described above, according to the third embodiment, even when the battery voltage of the electronic device is less than a predetermined voltage and the CPU cannot perform the enumeration process with the other device, the power of the non-Type-C device is used. The battery can be charged without exceeding the supply capacity. After that, when the battery voltage of the electronic device 301 exceeds a predetermined voltage, the CPU 304 performs enumeration processing with the other device to determine the connected device based on the timing of VBUS voltage detection and CC terminal voltage detection of the USB interface. It becomes possible.

[他の実施形態]
実施形態1から実施形態3では、電子機器が電力供給装置から受電した電力で電池パックの充電を行うことを例として説明を行ったがこれに限られるものではない。たとえば、電子機器301が電力供給装置401から受電した電力で電池パック320の充電を行わず、受電した電力が電子機器301の撮像機能部、外部装置記憶機能部、表示機能部を動作する電力として用いられてもよい。
[Other Embodiments]
In the first to third embodiments, the battery pack is charged by the electric power received from the electric power supply device by the electronic device, but the present invention is not limited to this. For example, the power received from the power supply device 401 by the electronic device 301 does not charge the battery pack 320, and the received power is used as the power to operate the image pickup function unit, the external device storage function unit, and the display function unit of the electronic device 301. It may be used.

また、実施形態1から実施形態3では、電子機器301はCC端子の電圧を検出した時間TcとVBUS端子の電圧を検出した時間Tvとの差の絶対値が閾値Tcv以下であるか否かを判定してフローチャートの分岐を行った。ここで、閾値Tcvとして5msを用いたが、これに限られるものではなく、5ms以外の時間を閾値Tcvとして適用してもよいことは言うまでもない。 Further, in the first to third embodiments, the electronic device 301 determines whether or not the absolute value of the difference between the time Tc at which the voltage at the CC terminal is detected and the time Tv at which the voltage at the VBUS terminal is detected is equal to or less than the threshold value Tcv. Judgment was made and the flowchart was branched. Here, 5 ms is used as the threshold value Tcv, but the present invention is not limited to this, and it goes without saying that a time other than 5 ms may be applied as the threshold value Tcv.

実施形態1から実施形態3では、CHGICとタイミング検出部間の信号伝達をパラレル信号で行うことを例として説明を行ったがこれに限られるものではない。たとえば、CHGIC302とタイミング検出部303aとの間の信号伝達をシリアル信号で行う構成としてもよい。その場合、シリアル信号として2線、3線などの汎用シリアル通信規格を用いるとよい。 In the first to third embodiments, the signal transmission between the CHGIC and the timing detection unit is performed by a parallel signal as an example, but the present invention is not limited to this. For example, the signal transmission between the CHGIC 302 and the timing detection unit 303a may be performed by a serial signal. In that case, it is preferable to use a general-purpose serial communication standard such as 2-wire or 3-wire as the serial signal.

また、実施形態1から実施形態3では、CHGIC302とタイミング検出部303a,303bとが別体に構成されていることを例として説明を行ったがこれに限られるものではない。たとえば、CHGIC302内にタイミング検出部303a、303bの機能が含まれ、一体に構成されてもよい。その場合、別体のCHGIC302とタイミング検出部303a,303bとの間で用いていた信号は、一体に構成されたCHGIC内部の信号として適宜論理合成して用いられてもよい。 Further, in the first to third embodiments, the description has been made by taking as an example that the CHGIC 302 and the timing detection units 303a and 303b are separately configured, but the present invention is not limited to this. For example, the CHGIC 302 may include the functions of the timing detection units 303a and 303b and may be integrally configured. In that case, the signals used between the separate CHGIC 302 and the timing detection units 303a and 303b may be appropriately logically synthesized and used as signals inside the CHGIC integrally configured.

実施形態1では、タイミング検出部303aの一部をタイミング制御部335で構成することを例として説明し、実施形態2では、タイミング検出部303bの一部をSUB−CPU504で構成することを例として説明した。しかしながらこれらに限られるものではない。たとえば、タイミング検出部303aがPLD(Programmable Logic Device)などのように再構成可能なICが用いられて実現されもよい。また、タイミング検出部303aがASIC(Application Specific Integrated Circuit)などのICが用いられて実現されてもよい。 In the first embodiment, a part of the timing detection unit 303a is configured by the timing control unit 335 as an example, and in the second embodiment, a part of the timing detection unit 303b is configured by the SUB-CPU 504 as an example. explained. However, it is not limited to these. For example, the timing detection unit 303a may be realized by using a reconfigurable IC such as a PLD (Programmable Logic Device). Further, the timing detection unit 303a may be realized by using an IC such as an ASIC (Application Specific Integrated Circuit).

実施形態3では、電子機器のCHGICは電池パックの電圧が所定電圧以上となって接続機器検出を開始するまでは、電力供給装置401からの受電電流を100mA以下に制限することを例として説明したがこれに限られるものではない。たとえば、電力供給装置401からの受電電流の制限を500mA以下にするように構成してもよい。 In the third embodiment, the CHGIC of the electronic device has been described as an example of limiting the received current from the power supply device 401 to 100 mA or less until the voltage of the battery pack becomes equal to or higher than a predetermined voltage and the detection of the connected device is started. Is not limited to this. For example, the limit of the received current from the power supply device 401 may be set to 500 mA or less.

他の実施形態
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
Other Embodiments The present invention supplies a program that implements 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. It can also be realized by the process of reading and executing the program. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

301:電子機器、302:CHGIC、303a、303b:タイミング検出部、304:CPU、333:VBUS検出部、334:CC検出部、335:タイミング制御部、380:USBコネクタ、401:電力供給装置、402:VBUS電源、501:電子機器、504:SUB−CPU 301: Electronic equipment, 302: CHGIC, 303a, 303b: Timing detection unit, 304: CPU, 333: VBUS detection unit, 334: CC detection unit, 335: Timing control unit, 380: USB connector, 401: Power supply device, 402: VBUS power supply, 501: Electronic equipment, 504: SUB-CPU

Claims (11)

インターフェースを介して接続された外部装置から電力を受電可能な電子機器であって、
前記インターフェースに含まれる第1の端子と第2の端子からの所定の電圧の検出の時間差が所定値以下か否かを判定する判定手段と、
前記時間差が前記所定値以下の場合には、第1の接続機器検出を実行し、前記時間差が前記所定値より大きい場合には、前記第1の接続機器検出とは異なる第2の接続機器検出を実行することにより前記外部装置の種別を判定する実行手段と、
前記実行手段による前記外部装置の種別の判定の結果に基づいて受電制御を行う制御手段と、を備えることを特徴とする電子機器。
An electronic device that can receive power from an external device connected via an interface.
A determination means for determining whether or not the time difference in detecting a predetermined voltage from the first terminal and the second terminal included in the interface is equal to or less than a predetermined value.
When the time difference is equal to or less than the predetermined value, the first connected device detection is executed, and when the time difference is larger than the predetermined value, the second connected device detection different from the first connected device detection is executed. An execution means for determining the type of the external device by executing
An electronic device comprising: a control means for performing power reception control based on a result of determination of a type of the external device by the execution means.
前記実行手段は、前記第1の接続機器検出により前記外部装置の種別が決定されない場合に前記第2の接続機器検出を実行する、ことを特徴とする請求項1に記載の電子機器。 The electronic device according to claim 1, wherein the executing means executes the second connected device detection when the type of the external device is not determined by the first connected device detection. 前記第2の接続機器検出は、前記第1の端子からの所定の電圧の検出のタイミングと前記第2の端子からの所定の電圧の検出のタイミングの後先の関係を用いた検出を含むことを特徴とする請求項1または2に記載の電子機器。 The second connected device detection includes detection using the relationship between the timing of detecting a predetermined voltage from the first terminal and the timing of detecting a predetermined voltage from the second terminal. The electronic device according to claim 1 or 2. 前記インターフェースはUSBであり、前記第1の端子はVBUS端子であり、前記第2の端子はCC端子であることを特徴とする請求項1乃至3のいずれか1項に記載の電子機器。 The electronic device according to any one of claims 1 to 3, wherein the interface is a USB, the first terminal is a VBUS terminal, and the second terminal is a CC terminal. 前記第1の接続機器検出では、前記外部装置とのエニュメレーション処理を実行し、
前記制御手段は、前記エニュメレーション処理の結果に従う電力で前記外部装置から受電を行うよう制御することを特徴とする請求項4に記載の電子機器。
In the first connected device detection, an enumeration process with the external device is executed.
The electronic device according to claim 4, wherein the control means controls to receive electric power from the external device with electric power according to the result of the enumeration process.
前記制御手段は、前記エニュメレーション処理が正常に終了した場合は、前記外部装置から受電する電流を前記エニュメレーション処理でのコンフィギュレーションディスクリプタで宣言した電流値以下に制限することを特徴とする請求項5に記載の電子機器。 The control means is characterized in that, when the enumeration process is normally completed, the current received from the external device is limited to the current value declared in the configuration descriptor in the enumeration process or less. The electronic device according to claim 5. 前記第2の接続機器検出では、前記CC端子で所定の電圧が検出された後に前記VBUS端子で所定の電圧が検出された場合に、前記外部装置がType−C装置であると判定することを特徴とする請求項4乃至6のいずれか1項に記載の電子機器。 In the second connection device detection, when a predetermined voltage is detected at the CC terminal and then a predetermined voltage is detected at the VBUS terminal, it is determined that the external device is a Type-C device. The electronic device according to any one of claims 4 to 6, wherein the electronic device is characterized. 前記制御手段は、前記第1の接続機器検出と前記第2の接続機器検出により前記外部装置の種別を判定できなかった場合に、前記外部装置からの受電をSUSPEND状態とすることを特徴とする請求項4乃至7のいずれか1項に記載の電子機器。 The control means is characterized in that when the type of the external device cannot be determined by the detection of the first connected device and the detection of the second connected device, the power received from the external device is set to the SUSPEND state. The electronic device according to any one of claims 4 to 7. 前記SUSPEND状態において、前記外部装置から受電される電流がSUSPEND電流である2.5mA以下に制限されることを特徴とする請求項8に記載の電子機器。 The electronic device according to claim 8, wherein in the SUSPEND state, the current received from the external device is limited to 2.5 mA or less, which is the SUSPEND current. 前記第1の接続機器検出を実行可能になるまで、前記外部装置から受電する電流値を所定値に制限して電池を充電することを特徴とする請求項1乃至9のいずれか1項に記載の電子機器。 The invention according to any one of claims 1 to 9, wherein the current value received from the external device is limited to a predetermined value to charge the battery until the first connected device detection can be executed. Electronic equipment. 前記所定値は100mAまたは500mAであることを特徴とする請求項10に記載の電子機器。 The electronic device according to claim 10, wherein the predetermined value is 100 mA or 500 mA.
JP2017107065A 2017-05-30 2017-05-30 Electronics Active JP6884039B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2017107065A JP6884039B2 (en) 2017-05-30 2017-05-30 Electronics
US15/985,812 US10673251B2 (en) 2017-05-30 2018-05-22 Electronic apparatus and control method thereof
CN201810536878.5A CN109066827B (en) 2017-05-30 2018-05-30 Electronic device, control method thereof, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017107065A JP6884039B2 (en) 2017-05-30 2017-05-30 Electronics

Publications (2)

Publication Number Publication Date
JP2018205837A JP2018205837A (en) 2018-12-27
JP6884039B2 true JP6884039B2 (en) 2021-06-09

Family

ID=64957086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017107065A Active JP6884039B2 (en) 2017-05-30 2017-05-30 Electronics

Country Status (1)

Country Link
JP (1) JP6884039B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020166106A1 (en) * 2019-02-15 2020-08-20 パナソニックIpマネジメント株式会社 Image-capturing device
JP7427385B2 (en) 2019-07-31 2024-02-05 キヤノン株式会社 Electronic equipment and its control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012205366A (en) * 2011-03-24 2012-10-22 Semiconductor Components Industries Llc Input/output circuit
EP2849023A4 (en) * 2012-05-11 2015-09-02 Fujitsu Ltd Electronic device and control method therefor
JP6792389B2 (en) * 2016-09-16 2020-11-25 キヤノン株式会社 Electronic devices and control methods for electronic devices

Also Published As

Publication number Publication date
JP2018205837A (en) 2018-12-27

Similar Documents

Publication Publication Date Title
CN109066827B (en) Electronic device, control method thereof, and storage medium
US9483093B2 (en) Electronic device and method for controlling a setting of a maximum consumption current
US8487583B2 (en) Connection to a USB device dependent on detected battery criterion
JP5717005B2 (en) Method and terminal for selecting an internal circuit according to the status of a USB interface
US10372568B2 (en) Electronic device being connectable to external device, and method of controlling electronic device being connectable to extenal device
JP6884000B2 (en) Electronic devices and their control methods
TW201234184A (en) Adaptive USB charging method and system
US20180062218A1 (en) Electronic device, control method therefor and non-transitory computer-readable storage medium
JP6792389B2 (en) Electronic devices and control methods for electronic devices
CN111602313B (en) System and method for wireless charging and wired data transmission
CN112448435A (en) Terminal equipment charging method and device and storage medium
JP2018032221A (en) Electronic device and control method of the same
EP3771987A1 (en) Electronic device for preventing damage of usb device and operating method thereof
JP6884039B2 (en) Electronics
US20200265001A1 (en) Communication method using input/output interface, and apparatus therefor
CN107658916A (en) Cue circuit and electronic equipment
JP2018013932A (en) Electronic apparatus
US11428753B2 (en) Method for detecting water in connection terminal of electronic device and electronic device supporting the same
JP6884038B2 (en) Electronic devices and their control methods
EP3629428B1 (en) Method and apparatus for changing impedance of terminal included in connector
US9748779B1 (en) Conditionally delayed charging of a barcode reader's rechargeable battery
US11322970B2 (en) Device with power-off charging capability
JP2018133977A (en) Electronic device and control method
US11714770B2 (en) Relay device and method of controlling relay device
JP2018102073A (en) Electronic apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200514

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210215

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210310

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: 20210412

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210511

R151 Written notification of patent or utility model registration

Ref document number: 6884039

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151