Semiconductor systems and semiconductor devices
By introducing a state machine and timer into the USB Type-C port controller, the connection status is directly managed, and the problem of increasing communication time of I2C bus in the prior art is solved, and a more efficient USB port connection processing is achieved.
Patent Information
- Application Number
- CN202010469522.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-05-29
- Filing Date
- 2020-05-28
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-05-28
AI Technical Summary
In the existing USB Type-C port connection processing, the I2C bus communication time between the port manager and the port controller may increase, resulting in an extended connection processing time, especially difficult to effectively manage when the number of ports increases.
A semiconductor system was designed. By introducing a state machine and controller in the port controller, using a timer to measure the duration of the connection confirmation state, directly converting the connection state in the port controller, reducing dependence on the port manager, thereby Reduce I2C bus communication time.
It effectively reduces the USB port connection processing time, suppresses the increase in processing time when the number of ports increases, and improves the system's connection efficiency.
Smart Images

Figure CN112015682B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] Japanese Patent Application No. 2019-099978 filed on May 29, 2019, including specification, drawings and abstract, is incorporated herein by reference in its entirety. Background Art
[0003] The present invention relates to a semiconductor system and a semiconductor device, for example, the present invention relates to a semiconductor system and a semiconductor device for controlling a universal serial bus port.
[0004] There are the following public technologies.
[0005] [Non-Patent Document 1] Universal Serial Bus Type-C Cable and Connector Specification Version 1.4, released on March 29, 2019.
[0006] [Non-patent document 2] Universal Serial Bus Type-CTM Port Controller Interface Specification, Revision 2.0, Version 1.0, October 2017.
[0007] Recently, a USB port compliant with the USB Type-C (registered trademark) specification (Non-Patent Document 1) has been adopted. Here, in the specification according to Non-Patent Document 1, one power delivery controller is required for each port.
[0008] Here, as a specification for the controller of Type-C, there is the Type-C Port Controller Interface (TCPCI) specification (non-patent document 2). The specification of non-patent document 2 specifies a port manager (Type-C port manager; TCPM) and a port controller (Type-C port controller; TCPC). In the specification of non-patent document 2, a system can be constructed with one port manager and one or more port controllers for each port. Summary of the invention
[0009] However, in the technology according to non-patent document 2, as described below, there is a possibility that the processing time in the process of connecting to the USB port may increase. In the system of non-patent document 2 described above, the port manager and the port controller are connected through an I2C (Inter-Integrated Circuit) bus. In the system of non-patent document 2, the port manager and the port controller communicate in the process of connecting to the USB port. Therefore, in the connection process with the USB port, the communication time between the port manager and the port controller via the I2C bus may become a bottleneck. Therefore, as the number of ports increases, the communication time may increase.
[0010] Other objects and novel features will become apparent from the description of this specification and the accompanying drawings.
[0011] According to one embodiment, a semiconductor system includes: a port controller, which is configured to control a USB (Universal Serial Bus) port; and a port manager, which is configured to control the port controller and is connected to the port controller via an I2C bus, wherein the port controller includes: a state machine, which is configured to implement a transition of a connection state in a USB port; and a controller, which is configured to control a transition in the state machine and output a connected state transition notification when the connection state is changed to a connected state, which is a state in a connection state of an electrically stable connection, wherein the port manager includes a connection detection unit, which is configured to receive the connected state transition notification and detect the connection of the USB port, and wherein the port manager performs processing according to the connection detected by the connection detection unit.
[0012] According to one embodiment, a semiconductor device includes: an interface configured to connect to a port controller that controls a USB (Universal Serial Bus) port via a bus; and a connection detector configured to receive a notification of a transmission from the port controller and detect a connection of the USB port, and wherein the semiconductor device performs processing according to the connection detected by the connection detector.
[0013] According to the embodiments, a semiconductor system and a semiconductor device capable of reducing a processing time when connecting a USB port can be provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a diagram showing a configuration of a semiconductor system according to a first embodiment.
[0015] Figure 2 is a diagram illustrating a state transition diagram implemented in a semiconductor system according to the first embodiment.
[0016] Figure 3is a diagram illustrating a state transition diagram implemented in a semiconductor system according to the first embodiment.
[0017] Figure 4 is a sequence diagram showing processing performed by the semiconductor system according to the first embodiment.
[0018] Figure 5 is a sequence diagram showing processing performed by the semiconductor system according to the first embodiment.
[0019] Figure 6 is a diagram showing a configuration of a semiconductor system according to a comparative example.
[0020] Figure 7 is a sequence diagram showing a process performed by a semiconductor system according to a comparative example.
[0021] Figure 8 is a sequence diagram showing a process performed by a semiconductor system according to a comparative example.
[0022] Fig. 9 is another example diagram showing a state transition diagram implemented in the semiconductor system according to the first embodiment.
[0023] Fig.10 is another example diagram showing a state transition diagram implemented in the semiconductor system according to the first embodiment.
[0024] Fig.11 is another example diagram showing a state transition diagram implemented in the semiconductor system according to the first embodiment.
[0025] Fig.12 is another example diagram showing a state transition diagram implemented in the semiconductor system according to the first embodiment.
[0026] Fig.13 is a diagram showing a configuration of a semiconductor system according to a second embodiment.
[0027] Fig.14 is a diagram showing a configuration of a semiconductor system according to a third embodiment.
[0028] Fig.15 is a flowchart showing a control method executed by a control unit according to the third embodiment. DETAILED DESCRIPTION
[0029] The embodiments will be described below with reference to the accompanying drawings. For the sake of clarity, the following description and drawings are appropriately omitted and simplified. In the drawings, the same elements are represented by the same reference numerals, and repeated descriptions thereof are omitted as needed.
[0030] In the following embodiments, if necessary, for convenience, the description is made by dividing it into chapters or embodiments. However, unless otherwise explicitly stated, these chapters or embodiments are not independent of each other, and one of them is in the context of some or all of other modified examples, applications, detailed descriptions, supplementary descriptions, etc. In the following embodiments, except for the case where the number of elements is particularly specified and the case where the number of elements is obviously limited to a specific number in principle, references to the number of elements, etc. (including quantity, value, amount, range, etc.) are not limited to identification numbers. That is, the number of elements can be greater than or equal to a specific number.
[0031] Furthermore, in the following embodiments, except for the cases clearly specified and the cases considered to be obviously necessary in principle, the constituent elements (including the operation steps, etc.) are not necessarily necessary. Similarly, in the following embodiments, when the shapes, positional relationships, etc. of the components, etc. are mentioned, except for the cases clearly specified and the cases considered to be obvious in principle, etc., the shapes, etc. are assumed to be substantially similar or similar to the shapes, etc. This also applies to the numbers, etc. mentioned above, including the numbers, values, quantities, ranges, etc.
[0032] In addition, in terms of hardware, the elements described in the drawings as functional blocks for performing various processes may be configured by a CPU (central processing unit), a memory, and other circuits. In addition, each of the elements described above is implemented in software by a program loaded into a memory, etc. Therefore, it should be understood by those skilled in the art that these functional blocks may be implemented in various forms by hardware alone, software alone, or a combination of hardware and software, and the present invention is not limited to any one of them.
[0033] In addition, various types of non-transient computer-readable media can be used to store the program described above and provide it to the computer. Non-transient computer-readable media include various types of tangible storage media. Examples of non-transient computer-readable media include magnetic recording media (e.g., floppy disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (read-only memories), CD-Rs, CD-R / Ws, solid-state memories (e.g., mask ROMs, PROMs (programmable ROMs), EPROMs (erasable PROMs, flash ROMs, RAMs (random access memories)). Programs can also be provided to computers via various types of transient computer-readable media. Examples of transient computer-readable media include electrical signals, optical signals, and electromagnetic waves. Transient computer-readable media can provide programs to computers via wired or wireless communication paths such as wires and optical fibers.
[0034] (First embodiment) Figure 11 is a configuration diagram showing a semiconductor system 1 according to a first embodiment. The semiconductor system 1 is installed on a device having a USB port, such as a personal computer and a smart phone. The semiconductor system 1 according to the first embodiment has a TCPM10 (port manager) and a TCPC100 (port controller). TCPM10 and TCPC100 are communicatively connected via an I2C bus 2 (inter-integrated circuit bus). TCPM10 can be implemented by, for example, a microcomputer. TCPC100 can be installed on an integrated circuit separated from TCPM10. In other words, TCPM10 and TCPC100 are semiconductor devices. TCPC100 controls a USB port. TCPM10 controls TCPC100.
[0035] TCPC100 connects to a USB port (Type-C connector) ( Figure 1 (not shown). TCPC100 is provided for each USB port. Therefore, for example, if there are two USB ports, two TCPC100 can be provided in the semiconductor system 1. Figure 1 In the embodiment, although the semiconductor system 1 has one TCPC 100, the number of TCPC 100 is not limited to one. On the other hand, one TCPM 10 may be provided in the semiconductor system 1. Incidentally, if a device has several USB ports (eg, 10 ports), two or more TCPMs 10 may be provided for the device.
[0036] The TCPM10 includes an interface 12 and a connection detection unit 14. The TCPC100 has a CC logic 102, a VBUS voltage detector 104, an interface 106, and a controller 110. The controller 110 has a timer 112. The TCPM10 may have components related to power delivery (PD) (e.g., a policy engine). Similarly, the TCPC100 may have components related to power supply, such as a physical layer. In addition, the interface 12, the CC logic 102, the VBUS voltage detector 104, and the interface 106 are not necessary components in the semiconductor system 1 according to the present embodiment.
[0037] The interface 12 serves as an I2C master device. The interface 106 serves as an I2C slave device. The VBUS voltage detector 104 detects the voltage of the VBUS line (bus voltage line) of the corresponding USB port. When the VBUS voltage detector 104 detects the voltage of the VBUS line, it outputs a voltage detection signal to the controller 110.
[0038] The CC logic 102 corresponds to the Type-CCC logic in the TCPCI specification (non-patent document 2). The CC logic 102 implements a state machine. Here, the state machine transitions the state (connection state) in the USB port. Specifically, the CC logic 102 according to the present embodiment at least performs processing for transitioning between the "unconnected state", "connection confirmation state" and "connected state".
[0039] Here, the "unconnected state" is a state in which there is no connection with the relative device (via the Type-C cable) relative to the USB port. The "connection confirmation state" is a state in which it is confirmed whether the USB port is electrically and stably connected to the relative device. The "connected state" is a state in which an electrically stable connection can be established with the USB port. In addition, as indicated in the Type-C specification, the USB port can act as a sink (SNK) or a source (SRC) according to the relative device. Each connection state then has different states depending on whether the USB port is used as a sink or as a source.
[0040] Note that the "unconnected state" may correspond to the "unattached" state ("Unattached.SNK" state and "Unattached.SRC" state) in the Type-C specification (non-patent document 1). The "unconnected state" may correspond to the "apply Rd" and "apply Rp" states in the TCPCI specification. Hereinafter, the "apply Rd" and "apply Rp" states may be collectively referred to as the "apply" state.
[0041] In addition, the "connection confirmation state" may correspond to the "AttachWait" state ("AttachWait.SNK" state and "AttachWait.SRC" state) in the Type-C specification. The "connection confirmation state" may correspond to the "Potential_Connect_As_Snk" and "Potential_Connect_As_Src" states in the TCPCI specification. Thereafter, the Potential_Connect_As_Snk state and the Potential_Connect_As_Src state are sometimes collectively referred to as the Potential_Connect state.
[0042] In addition, the "connected state" may correspond to the "attached" state ("Attached.SNK" state and "Attached.SRC" state) in the Type-C specification. In addition, the "connected state" may correspond to the "attached" state ("Attached.Snk" and "Attached.Src" state) in the TCPCI specification.
[0043] More specifically, the CC logic 102 controls the CC (configuration channel) signal of the Type-C connector (USB port) according to the Type-C specification. Then, the CC logic 102 detects the state (connection state) of the USB port. According to the Type-C specification, the CC logic 102 controls two CC signals (CC1 signal and CC2 signal), Rp (pull-up resistor) connection or Rd (pull-down resistor) connection.
[0044] At this time, it is assumed that the relative device (consumer) with a sink function controls the CC signal to be Rd connected (i.e., on the sink side). In this case, when the CC logic 102 controls the CC signal to be Rd connected, the voltage of the resistor Rd drops to the ground level (a state without voltage division by the resistor Rp and the resistor Rd). At this time, the CC logic 102 does not detect the connected relative device. On the other hand, when the CC logic 102 controls the CC signal to be Rp connected, the potential in the CC signal is a state of voltage division by the resistor Rp and the resistor Rd. At this time, the CC logic 102 detects that the relative device is connected. In other words, the connection state of the USB port changes from the "unconnected state" to the "connection confirmation state". Then, the CC logic 102 outputs a detection signal indicating the state in which the relative device is connected (i.e., the "connection confirmation state" is detected) to the controller 110.
[0045] It is also assumed that the relative device (provider) with a source function controls the CC signal to Rp connection (i.e., on the source side). In this case, when the CC logic 102 controls the CC signal to Rp connection, the voltage of the resistor Rp becomes a high state (a state without voltage division by the resistor Rp and the resistor Rd). At this time, the CC logic 102 does not detect the connected relative device. On the other hand, when the CC logic 102 controls the CC signal to Rd connection, the potential in the CC signal is a state of voltage division by the resistor Rp and the resistor Rd. At this time, the CC logic 102 detects that the relative device is connected. In other words, the connection state of the USB port changes from "unconnected state" to "connection confirmation state". Then, the CC logic 102 outputs a detection signal indicating the state that the relative device is connected (i.e., the "connection confirmation state" is detected) to the controller 110.
[0046] The controller 110 controls the transition of the connection state in the USB port. That is, the controller 110 controls the transition in the state machine. The controller 110 outputs a connected state transition notification (attached state transition notification) when the connection state transitions to the connected state (attached state). The connected state transition notification is transmitted to the connection detection unit 14 via the interface 106, the I2C bus 2, and the interface 12. The connected state transition notification can indicate whether the USB port is used as a sink or a source.
[0047] Specifically, the controller 110 uses the timer 112 to measure the duration of the connection confirmation state when it receives a state detection signal indicating that the "connection confirmation state" has been detected from the CC logic 102. That is, when the connection state changes from the unconnected state to the connection confirmation state, the timer 112 measures the time from then on. Then, when the connection confirmation state has passed a predetermined time period (i.e., a first time period), the controller 110 changes the connection state to the connected state. At this time, the controller 110 outputs a connected state transition notification. Incidentally, when the duration of the connection confirmation state has passed the first time, and when a voltage detection signal is received, the controller 110 may change the connection state to the connected state. On the other hand, when the connection with the USB port is released before the duration of the connection confirmation state passes a predetermined time period (i.e., the first time period), the controller 110 may change the connection state to the unconnected state.
[0048] The connection detection unit 14 receives the connected state transition notification and detects the connection of the USB port. That is, the connection detection unit 14 detects that the USB port and the relative device are electrically and stably connected to each other. In addition, the connection detection unit 14 detects whether the USB port is used as a sink or a source. At this time, TCPM10 performs a process corresponding to the connection detected by the connection detection unit 14, for example, a process related to at least one of power reception and power supply. Specifically, TCPM10 controls the power supply circuit or performs power delivery processing. Therefore, if the USB port is used as a sink, power will be supplied to the device on which the semiconductor system 1 is installed via the USB port. In addition, when the USB port is used as a source, the device on which the semiconductor system 1 is installed supplies power to the relative device connected to the USB port.
[0049] Figure 2 and Figure 3 is a diagram illustrating a state transition diagram implemented in the semiconductor system 1 according to the first embodiment. Figure 2 and Figure 3 The figure shows the state transition diagram of the dual-role power device according to the TCPCI specification. Figure 2 and Figure 3 In the state transition diagram shown in , descriptions of states and transitions not related to the present embodiment are appropriately omitted.
[0050] Figure 2A state transition diagram is shown until the connection state is changed to the connected state. First, the state machine (connected state) alternately changes between the "apply Rd" state St101 (unconnected state) and the "apply Rp" state St102 (unconnected state) at regular intervals. That is, the state machine switches the state between the "apply Rd" state St101 and the "apply Rp" state St102 at regular intervals. Note that the "apply Rd" state St101 is a state in which the CC signal of the CC signal itself is controlled to be connected to the Rd signal. The "apply Rp" state St102 is a state in which the CC signal of the CC signal itself is controlled to be connected to the Rp signal.
[0051] When the state machine is in the "Apply Rd" state St101, it is assumed that a relative device with a source function is connected to the USB port, and the potential of the CC signal is divided as described above. Then, as described above, the state machine transitions to the "Potential_Connect_As_Snk" state St111. In this state, when the relative device with a source function is removed from the USB port, the state machine enters the "Apply Rp" state St102. On the other hand, when the state in which the potential of the CC signal is divided continues for the first time (tCCDebounce) and the voltage of the VBUS line is detected, the state machine transitions to the "Attached.Snk" state St121.
[0052] On the other hand, it is assumed that when the state machine is in the "Apply Rp" state St102, a relative device with a synchronization function is connected to the USB port, and the potential of the CC signal is divided as described above. As described above, the state machine then changes to the "Potential_Connect_As_Src" state St112. In this state, if the relative device with a synchronization function is removed from the USB port, the state machine enters the "Apply Rd" state St101. On the other hand, if the state in which the potential of the CC signal is divided is maintained for the first time (tCCDebounce) and the voltage of the VBUS line is vSafe0V, the state machine changes to the "Attached.Src" state St122.
[0053] Figure 3 A state transition diagram from a connected state to an unconnected state is shown. It is assumed that when the state machine is in the "Attached.Snk" state St121, the voltage of the VBUS line is not detected, and it is detected that the relative device with the source function is not connected. The state machine then transitions to the "Disconnected_As_Snk" state St131. The state machine then unconditionally transitions to the "Apply Rd" state St101.
[0054] It is also assumed that when the state machine is in the "Attached.Src" state St122, a change in the state of the CC signal is detected, and it is detected that the CC signal is not connected to the relative device having the synchronization function. The state machine then transitions to the "Disconnected_As_Src" state St132. The state machine then unconditionally transitions to the "Apply Rd" state St101.
[0055] Figure 4 and Figure 5 1 is a sequence diagram showing the processing performed by the semiconductor system 1 according to the first embodiment. First, the TCPM 10 is initialized and the state machine starts (step S102). The state machine then switches between the "Apply Rp" and "Apply Rd" states.
[0056] Then, when the opposite device is connected to the USB port, the state machine changes to the "Potential_Connect_As_Snk" state or the "Potential_Connect_As_Src" state. At this time, the controller 110 of the TCPC100 determines whether the connection confirmation state has continued for the first time (step S104). If the connection confirmation state has not continued for the first time ("No" in S104), the controller 110 controls the state machine to change to the "Apply Rp" state or the "Apply Rd" state (step S105).
[0057] On the other hand, when the connection confirmation state continues for the first time ("Yes" in S104), the controller 110 controls the state machine so that the state is changed to the connected state. Therefore, the state machine is changed to the "Attached.Snk" state or the "Attached.Src" state. In step S106, the controller 110 transmits a notification indicating that the connection state has been changed to the connected state to TCPM10. When the connection detection unit 14 receives the notification, TCPM10 performs processing in the "Attached.Snk" state or the "Attached.Src" state (step S108).
[0058] Assume that when the state machine is in the "Attached.Snk" or "Attached.Src" state, the USB port is not connected to the relative device. In this case, the state machine changes to the "Disconnected_As_Snk" or "Disconnected_As_Src" state. At this time, TCPC100 notifies TCPM10 of the detection of VbusSinkDisconnected or the change of the CC signal state (step S112). TCPC100 then disconnects VBUS and releases VBUS (step S114). The state machine then changes to the "Apply Rd" state, and then switches between the "Apply Rp" and "Apply Rd" states.
[0059] (Comparison example)
[0060] The effects of this embodiment will be described below by comparing this embodiment with a comparative example. Figure 6 is a diagram showing a configuration of a semiconductor system 80 according to a comparative example. The semiconductor system 80 includes a TCPM 90 (port manager) and a TCPC 82 (port controller). The TCPM 90 and the TCPC 82 are communicatively connected via an I2C bus 2. The comparative example corresponds to a system conforming to the TCPCI specification.
[0061] The TCPM90 includes an interface 12 and a TCPC state controller 92. The TCPC82 includes a CC logic 102, a VBUS detector 104, and an interface 106. The TCPC82 according to the comparative embodiment is different from the TCPC100 according to the first embodiment in that the TCPC82 does not have a controller 110. The TCPM90 according to the comparative embodiment is different from the TCPM10 according to the first embodiment in that the TCPM90 does not have a connection detection unit 14, but has a TCPC state controller 92. Other components are substantially the same as those associated with the first embodiment.
[0062] Figure 7 and Figure 8 is a sequence diagram showing the processing performed by the semiconductor system 80 according to the comparative embodiment. First, the TCPM 90 sets the time to zero and the state machine starts (step S902). The state machine then switches between the "Apply Rp" and "Apply Rd" states.
[0063] Then, when the relative device is connected to the USB port, the state machine changes to the "Potential_Connect_As_Snk" state or the "Potential_Connect_As_Src" state. At this time, TCPC82 notifies TCPM90 of the change in the CC signal state (CC state). At this time, the TCPC state controller 92 of TCPM90 reads the CC state for the tCCDebounce period via the I2C bus 2 (step S906). Specifically, the TCPC state controller 92 accesses the CC state register of TCPC82 to read the CC state.
[0064] Then, in step S908, the TCPC state controller 92 determines whether the connection confirmation state continues for the tCCDebounce period. When the connection confirmation state does not continue for the tCCDebounce period ("No" in S908), the TCPC state controller 92 transmits an instruction to TCPC82 to change to the "Apply Rp" state or the "Apply Rd" state (step S909). The state machine then passes the "Maintain State" ( Figure 3 ) is changed to the "Applying Rp" or "Applying Rd" state. On the other hand, when the connection confirmation state continues for tCCDebounce time ("Yes" in S908), the TCPC state controller 92 transmits an instruction to TCPC82 to change to the connected state (step S910). Specifically, the TCPC state controller 92 accesses the CC state register of TCPC82 to write the control content. This causes the state machine to change to the "Attached.Snk" state or the "Attached.Src" state through "MAINTAIN_STATE" ( Figure 3 ). TCPM90 performs operations in the "Attached.Snk" or "Attached.Src" state (step S912).
[0065] Assume that when the state machine is in the "Attached.Snk" or "Attached.Src" state, the USB port is not connected to the relative device. In this case, the state machine changes to the "Disconnected_As_Snk" or "Disconnected_As_Src" state. At this time, TCPC82 notifies TCPM90 of the detection of VbusSinkDisconnected or the change of the CC signal state (step S914). TCPC82 then disconnects VBUS and releases VBUS (step S916). TCPM90 (TCPC state controller 92) receives the notification and transmits an instruction to TCPC82 to change the state to "Apply Rd" (step S918). This causes the state machine to pass the "Maintain State" ( Figure 3) transitions to the "Apply Rd" state. The state machine then switches between the "Apply Rp" and "Apply Rd" states.
[0066] As the comparative example mentioned above, in the TCPCI specification, TCPM90 (TCPC state controller 92) accesses the TCPC82 register through the I2C bus 2, thereby converting the state machine to the connected state. At this time, by performing communication between TCPC82 and TCPM90 via the I2C bus 2, the communication time can be increased. Therefore, since the communication time further increases with the increase in the number of ports, it is difficult to increase the number of ports in the system according to the comparative example. On the other hand, in the AC adapter for the Type-A connector, there are many products with more than four ports. Therefore, even in the Type-C product, it is expected to increase the number of ports.
[0067] On the other hand, the present embodiment is configured as described above so that TCPC100 can change the state machine to the connected state in the process of connecting the USB port. In other words, the present embodiment allows the state machine to be changed to the connected state without TCPM10 intervening in the connection process of the USB port. This makes it possible to reduce the communication time through the I2C bus 2. Accordingly, in the connection process of the USB port, the present embodiment can reduce the amount of time spent on the connection process of the USB port. Therefore, even if the number of ports increases, the increase in processing time can be suppressed.
[0068] The controller 110 of the first embodiment measures the duration of the connection confirmation state of the USB port connected to the USB port using the timer 112. Then, when the duration has passed a predetermined first time period (tCCDebounce period), the controller 110 changes the connection state to the connected state. This allows TCPC 100 to efficiently change the state machine to the connected state without TCPM 10 intervention.
[0069] When the connection with the USB port is disconnected before the duration of the connection confirmation state has passed the first time, the controller 110 of the first embodiment changes the connection state to the unconnected state. This allows the state machine to enter the unconnected state without the intervention of TCPM10. Therefore, even when the state machine is transferred to the unconnected state, the communication time through the I2C bus 2 can be reduced.
[0070] (Examples of other state machines according to the present embodiment)
[0071] Figures 9 to 12 is another example diagram showing a state transition diagram implemented in the semiconductor system 1 according to the first embodiment. Figures 9 to 12In the state transition diagram illustrated in , descriptions of states and transitions not related to the present embodiment are omitted as appropriate.
[0072] Fig. 9 The state transition diagram of a DRP device that complies with the Type-C specification is illustrated. The state machine (connected state) alternately transitions between the "Unattached.SNK" state St201 and the "Unattached.SRC" state St202 at regular intervals. That is, the state machine switches states between the "Unattached.SNK" state St201 and the "Unattached.SRC" state St202 at regular intervals. The "Unattached.SNK" state and the "Unattached.SRC" state correspond to the "unconnected state" described above. The "Unattached.SNK" state St201 is a state in which the CC signal of the CC signal itself is controlled to be connected to the Rd signal. In the "Unattached.SRC" state St202, its own CC signal is controlled to be connected to the Rp signal.
[0073] Assume that when the state machine is in the "Unattached.SNK" state St201, the relative device with the source function is connected to the USB port, and the potential of the CC signal is divided as described above. In this case, as described above, the state machine changes to the "AttachWait.SNK" state St211. The "AttachWait.SNK" state corresponds to the "connection confirmation state" described above. At this time, as described above, the controller 110 measures the time after the transition to the "AttachWait.SNK" state St211 by using the timer 112. In this state, when the relative device with the source function is separated from the USB port, the state machine changes to the "Unattached.SRC" state St202 under the control of the controller 110. On the other hand, when the potential of the CC signal is in a divided state for a first time (tCCDebounce), the voltage of the VBUS line is detected. In this case, under the control of the controller 110, the state machine changes to the "Attached.SNK" state St221. The "Attached.SNK" state corresponds to the "connected state" described above. In addition, in this state, when the voltage of the VBUS line is not detected and it is detected that there is no connection with the opposite device having the source function, the state machine transitions to the “Unattached.SNK” state St201 .
[0074] On the other hand, it is assumed that when the state machine is in the "Unattached.SRC" state St202, a relative device with a sink function is connected to the USB port, and the potential of the CC signal is divided as described above. In this case, as described above, the state machine changes to the "AttachWait.SRC" state St212. The "AttachWait.SRC" state corresponds to the "connection confirmation state" described above. At this time, as described above, the controller 110 measures the time after the transition to the "AttachWait.SNK" state St211 by using the timer 112. In this state, when the relative device with a synchronization function is removed from the USB port, the state machine changes to the "Unattached.SNK" state St201 under the control of the controller 110. On the other hand, the potential of the CC signal is in a divided state for a first time (tCCDebounce), assuming that the voltage of the VBUS line is vSafe0V. In this case, under the control of the controller 110, the state machine changes to the "Attached.SRC" state St222. The "Attached.SRC" state corresponds to the "connected state" described above. In this case, when the release of the connection with the opposite device having the synchronization function is detected, the state machine transitions to the “Unattached.SNK” state St201.
[0075] Figure 10 to Figure 11 The figure shows the state transition diagram of the Try.SRC device corresponding to the TCPCI specification. Fig.10 1 shows a state transition diagram until the Connecting state changes to the Connected state. Here, the Try.SRC device is a DRP device that acts as a source when connecting to other DRP devices. Fig.10 and Fig.11 An example of a Try.SRC device is shown in , but the same applies to a Try.SNK device. Here, a Try.SNK device is a DRP device that acts as a sink when connected to other DRP devices.
[0076] Notice, Fig.10 The "apply Rd" state St301 and the "apply Rp" state St302 shown in FIG. Figure 2 St101 and St102 shown in are basically the same. Fig.10 The "Potential_Connect_As_Snk" state St311 shown in Figure 2 The St111 shown in is basically the same. In addition, Fig.10 The "Potential_Connect_As_Src" state St312 shown in Figure 2 The St112 shown in is basically the same. Fig.10 The "Attached.Snk" status shown in St321 is the same as Figure 2 The St121 shown in is basically the same. Fig.10 The "Attached.Src" status shown in St322 is the same as Figure 2 The St122 shown in is basically the same.
[0077] also, Fig.10 The transition between St301 and St302 shown in Figure 2 The transition between St101 and St102 shown in FIG. 1 is basically similar. Fig.10 The transition from St301 to St311 shown in Figure 2 The transition from St102 to St112 shown in is essentially the same. Fig.10 The transition from St302 to St312 shown in Figure 2 The transition from St102 to St112 shown in is essentially the same.
[0078] Fig.10 The transition from St311 to St302 shown in Figure 2 The transition from St111 to St102 shown in is essentially the same. Fig.10 The transition from St312 to St301 shown in Figure 2 The transition from St112 to St101 shown in is essentially the same. Fig.10 The transition from St312 to St322 shown in Figure 2 The transition from St112 to St122 shown in is essentially the same.
[0079] Assume that when the state machine is in the "Potential_Connect_As_Snk" state St311, the potential of the CC signal is in a divided voltage state for a period of tCCDebounce, and the voltage of the VBUS line is detected. At this time, under the control of the controller 110, the state machine changes to the "Try.SRC" state St316. In this St316, TCPC100 will check whether the relative device connected to the USB port has a sink function. In addition, in this St316, the device connects the resistor Rp to the CC signal, and the state machine confirms whether the relative device has established an Rd connection. That is, the controller 110 determines whether the voltage of the VBUS line is detected when it is St311 (the potential of the CC signal is in a divided voltage state for a period of tCCDebounce). Then, the potential of the CC signal is in a divided voltage state for a period of tCCDebounce, and when the voltage of the VBUS line is detected, the controller 110 changes the connection state to the relative device confirmation state (St316).
[0080] When the state machine is in the "Try.SRC" state St316, the CC signal of the relative device is connected to Rd during the tTryCCDebounce period to divide the potential and detect the sink. At this time, under the control of the controller 110, the state machine changes to the "Attached.Src" state St322. That is, at St316, when the controller 110 detects that the relative device has a power receiving function (specific function; first function) for a period of tTryCCDebounce (second time), the connection state is changed to the connected state.
[0081] On the other hand, when the state machine is in the "Try.SRC" state St316, it is assumed that no sink is detected after the tDRPTry period has passed and the voltage of the VBUS line is vSafe0V. At this time, under the control of the controller 110, the state machine changes to the "TryWait.SNK" state St318. In this St318, the state machine waits for the USB port to be connected as a sink. That is, at St316, when the controller 110 does not detect that the relative device side has a power receiving function after the tDRPTry time (the third time), the connection state changes to "TryWait.SNK". In other words, at St316, when the controller 110 does not detect that the relative device side has a specific function after the third time, the connection state changes to the "specific function standby state". The "specific function standby state" is a state in which the USB port waits for a specific function.
[0082] In this St318, the device connects the CC signal to the resistor Rd, and the state machine determines whether the relative device has established an Rp connection. In this St318, in the tCCDebounce period, it is assumed that the CC signal of the relative device is connected as an Rp connection, the potential is in a voltage division state, the source is continuously detected, and then the voltage of the VBUS line is detected. At this time, under the control of the controller 110, the state machine changes to the "Attached.Snk" state St321. On the other hand, in St318, when no source is detected during the tPDDebounce period, the state machine changes to the "Apply Rd" state St301 under the control of the controller 110. In other words, at St318, the controller 110 changes the connection state to the "connected state" when it detects that the relative device side has a power supply function for a period of tCCDebounce. On the other hand, at St318, the controller 110 changes the connection state to the "unconnected state" when it does not detect that the relative device side has a power receiving function for a period of tPDDebounce (the fourth time).
[0083] Fig.11 A state transition diagram from a connected state to an unconnected state is shown. Fig.11 The "Disconnected_As_Snk" state shown in St331 is the same as Figure 3 The St131 shown in is basically the same. Fig.11 The "Disconnected_As_Src" state shown in St332 is the same as Figure 3 The St132 shown in is basically the same.
[0084] Fig.11 The transition from St321 to St331 shown in Figure 2 The transition from St121 to St131 shown in is essentially the same. Fig.11 The transition from St322 to St332 shown in Figure 2 The transition from St122 to St132 shown in is essentially the same. Fig.11 The transition from St331 to St301 shown in Figure 2 The transition from St131 to St101 shown in is basically the same.When the state machine transitions to the "Disconnected_As_Src" state St332, it unconditionally transitions to the "TryWait.SNK" state St318.
[0085] Fig.12 The diagram shows the state transition diagram of the Try.SRC device corresponding to the Type-C specification. Note that Fig.12 The "Unattached.SNK" state St401 and the "Unattached.SRC" state St402 shown in FIG. Fig. 9 St201 and St202 shown in are basically the same. Fig.12 The "AttachWait.SNK" status shown in St411 is the same as Fig. 9 The St211 shown in is basically the same. Fig.12 The "AttachWait.SRC" status shown in St412 is the same as Fig. 9 The St212 shown in is basically the same. Fig.12 The "Attached.SNK" status shown in St421 is the same as Fig. 9 The St221 shown in is basically the same. Fig.12 The "Attached.SRC" status shown in St422 is the same as Fig. 9 The St222 shown in is basically the same.
[0086] Fig.12 The transition between St401 and St402 shown in Fig. 9The transitions between St201 and St202 shown in FIG. 1 are substantially the same. Fig.12 The transition from St401 to St411 shown in Fig. 9 The transition from St201 to St211 shown in is essentially the same. Fig.12 The transition from St402 to St412 shown in Fig. 9 The transition from St202 to St212 shown in is essentially the same.
[0087] Fig.12 The transition from St411 to St402 shown in Fig. 9 The transition from St211 to St202 shown in is essentially the same. Fig.12 The transition from St412 to St401 shown in Fig. 9 The transition from St212 to St201 shown in is essentially the same. Fig.12 The transition from St412 to St422 shown in Fig. 9 The transition from St212 to St222 shown in is essentially the same. Fig.12 The transition from St421 to St401 shown in Fig. 9 The transition from St221 to St201 shown in is essentially the same.
[0088] Assume that when the state machine is in the "AttachWait.SNK" state St411, the potential of the CC signal continues for the tCCDebounce period, and the voltage of the VBUS line is detected. At this time, under the control of the controller 110, the state machine changes to the "Try.SRC" state St416. In this St416, TCPC100 will check whether the relative device connected to the USB port has a sink function.
[0089] When the state machine is in the "Try.SRC" state St416, the CC signal of the opposite device is connected to Rd during the tTryCCDebounce period to divide the potential and detect the sink. At this time, under the control of the controller 110, the state machine transitions to the "Attached.SRC" state St422.
[0090] On the other hand, when the state machine is in the "Try.SRC" state St416, no sink is detected in the tDRPTry period, and the voltage of the VBUS line is vSafe0 V. At this time, under the control of the controller 110, the state machine transitions to the "TryWait.SNK" state St418. In this St418, the state machine waits for the USB port to be connected as a sink.
[0091] In this St418, during the tCCDebounce period, the CC signal of the relative device is in the Rp connection state, and the source is continuously detected under the voltage division, and the voltage of the VBUS line is detected. At this time, under the control of the controller 110, the state machine changes to the "Attached.SNK" state St421. On the other hand, in St418, when no source is detected during the tPDDebounce period, the state machine changes to the "Unattached.SNK" state St401 under the control of the controller 110.
[0092] Therefore, by providing the controller 110 in the TCPC100, the state transition in any state machine can be performed by the TCPC100 without the intervention of the TCPM10. This makes it possible to reduce the communication time through the I2C bus 2. Accordingly, for the semiconductor system 1 with respect to any state machine, the present embodiment can reduce the processing time for the connection processing to the USB port during the connection processing to the USB port. Therefore, even if the number of ports increases, the processing time applied to the image can be suppressed.
[0093] In the case of a Try.SNK device, the specific function (first function) described above may be a power supply function. Then, the controller 110 performs processing for the "Try.SNK" state instead of the processing for the "Try.SRC" state described above. Similarly, the controller 110 performs processing for the "TryWait.SRC" state instead of the processing for the "TryWait.SNK" state described above.
[0094] (Second embodiment)
[0095] Next, the second embodiment will be described. The semiconductor system in the second embodiment is different from the semiconductor system in the first embodiment in that the TCPC 100 controls the power supply circuit system. The rest of the configuration is substantially the same as that according to the first embodiment.
[0096] Fig.13 1 is a configuration diagram showing a semiconductor system 1 according to a second embodiment. The semiconductor system 1 according to the second embodiment includes a TCPM10 and a port IC20. The TCPM10 and the port IC20 are communicatively connected via an I2C bus 2. The configuration of the TCPM10 used for the second embodiment is substantially the same as the configuration of the TCPM10 used for the first embodiment. The port IC20 is provided for each USB port. The port IC20 processes the corresponding USB port.
[0097] The port IC 20 includes a TCPC 100 and a power supply circuit 22. The configuration of the TCPC 100 according to the second embodiment is substantially the same as the configuration of the TCPC 100 according to the first embodiment. The power supply circuit 22 performs at least one of receiving power and supplying power. When the connection state is changed to the connected state, the controller 110 of the TCPC 100 controls the power supply circuit 22. In the present embodiment, the controller 110 changes the connection state to the connected state so that the controller 110 can directly control the power supply circuit 22 instead of the TCPM 10 circuit.
[0098] Specifically, when the connection state changes to the "Attached.SNK" state, the controller 110 controls the power supply circuit 22 so as to perform power receiving processing on the power supply circuit 22. In this case, the power supply circuit 22 turns on the switch of the VBUS power receiving circuit under the control of the controller 110 to enable the VBUS power receiving circuit. Therefore, the device on which the semiconductor system 1 is mounted is supplied with power from the opposite device.
[0099] Further, when the connection state changes to the "Attached.SRC" state, the controller 110 controls the power supply circuit 22 so as to supply power to the power supply circuit 22. In this case, the power supply circuit 22 outputs VBUS to the opposite device under the control of the controller 110. In addition, when VCONN is supported, the power supply circuit system 22 outputs VCONN to the cable.
[0100] exist Fig.13 , an example in which the power supply circuit 22 is incorporated into the port IC 20 is shown, but the present embodiment is not limited to this configuration. The power supply circuit 22 may not be built into the port IC 20, but may be outside the port IC 20. In this case, the power supply circuit 22 may be connected to the port IC 20 (TCPC100) via a gate control signal line or the like. When the connection state is changed to the connected state, the controller 110 transmits a control signal to the power supply circuit 22 via the bus. The power supply circuit 22 receives the control signal and performs a power receiving process or a power supply process according to the control signal.
[0101] Similar to the semiconductor system 1 according to the first embodiment, the semiconductor system 1 according to the second embodiment can transition the state machine to the connected state without involving the TCPM 10 in the connection processing to the USB port. This makes it possible to reduce the communication time through the I2C bus 2. Therefore, the semiconductor system 1 of the second embodiment can have substantially the same effects as those of the first embodiment.
[0102] Further, according to the semiconductor system 1 of the second embodiment, as described above, the controller 110 provided on the TCPC100 controls the power supply circuit 22. In other words, in the semiconductor system 1 according to the second embodiment, the TCPC100 can directly control the power supply circuit 22 without involving the TCPM10. Therefore, the power supply circuit 22 can be efficiently controlled compared to when the TCPM10 controls the power supply circuit 22. In other words, compared to when the TCPM10 controls the power supply circuit system 22, the power receiving process or the power supply process can be efficiently performed.
[0103] (Third Embodiment)
[0104] Next, the third embodiment will be described. The third embodiment is different from the other embodiments in that an update of the Type-C specification or the TCPCI specification (hereinafter referred to as the "Type-C specification" etc.) is considered. In other words, the Type-C specification etc. can be updated after the semiconductor system 1 according to the present embodiment is mounted on the semiconductor system 1. In this case, addition of states in the state machine, change of transition conditions, etc. can be performed. The semiconductor system 1 according to the third embodiment is configured to be able to handle this situation.
[0105] Fig.14 1 is a diagram showing a configuration of a semiconductor system 1 according to a third embodiment. Similar to the semiconductor system 1 related to the first embodiment, the semiconductor system 1 related to the third embodiment has a TCPM 10 and a TCPC 100. The TCPM 10 includes an interface 12, a connection detection unit 14, and a state controller 16. The TCPM 10 required for the third embodiment is different from the TCPM 10 of the other embodiments in that the TCPM 10 has a state controller 16. The other configurations of the TCPM 10 according to the third embodiment are substantially the same as the configurations of the TCPM 10 according to the other embodiments. The state controller 16 performs substantially the same processing as the TCPC state controller 92 when receiving a notification from the TCPC 100. The details will be described later.
[0106] The TCPC 100 has a CC logic 102, a VBUS voltage detector 104, an interface 106, and a controller 110. The controller 110 includes a timer 112 and a register 114. The TCPC 100 required for the third embodiment is different from the TCPC 100 of other embodiments in that the controller 110 has a register 114. The other configurations of the TCPC 100 according to the third embodiment are substantially the same as the configurations of the TCPC 100 according to other embodiments. The register 114 sets a predetermined state (first state) in the state machine. When the Type-C specification is updated, etc., the first state (set state) set in the register 114 corresponds to a state related to a state or transition condition after the change in the state machine. The details will be described later.
[0107] Fig.15 1 is a flow chart showing a control method performed by the controller 110 according to the third embodiment. The controller 110 sets a predetermined state in the register 114 (step S300). Here, if a state is added in the state machine, the set state may be a state transitioned from the added state. In addition, in the state machine, when a transition condition from one state to another state is changed, the set state may be a state that is a transition source of the changed transition condition.
[0108] The controller 110 determines whether the connected state (state machine) has been transferred to the setting state (step S302). When the state is transferred to the setting state ("yes" in S302), the controller 110 stops the state machine (step S304). That is, when the connection state is transferred to the first state, the controller 110 has the function of stopping the state machine.
[0109] In step S306, the controller 110 transmits a notification indicating that the state machine has stopped to the outside. That is, the controller 110 has a function of notifying the outside that the state machine has stopped. When the TCPM 10 receives the notification via the I2C bus 2, the processing in the TCPM 10 starts. Specifically, the state controller 16 controls the changed state or transition condition in the updated Type-C specification, etc.
[0110] In step S308, the controller 110 determines whether the above-mentioned processing in the TCPM 10 is completed. When the processing in the TCPM 10 is completed ("Yes" in S308), the controller 110 restarts the state machine according to the state of the transition destination of the state or transition condition controlled by the state controller 16 (step S310). Therefore, the controller 110 can perform control related to the state or transition condition that has not changed in the same manner as the above-mentioned embodiment.
[0111] A specific example will be described. For example, in Fig.10In the state transition diagram (state machine) shown in , it is assumed that a state is newly added between the "Try.SRC" state St316 and the "TryWait.SNK" state St318. In this case, the controller 110 sets the "Try.SRC" state St316 in the register 114 to the set state (S300). When the connection state transitions to the "Try.SRC" state St316 ("Yes" in S302), the controller 110 stops the state machine (S304). In this case, in S306, when TCPM 10 receives a notification of transmission from the controller 110, the state controller 16 performs control related to the newly added state. When the processing in TCPM 10 is completed ("Yes" in S308), the controller 110 restarts the state machine according to the state of the added state transition (S310). That is, the controller 110 restarts the state machine according to the "TryWait.SNK" state St318.
[0112] In addition, for example, Fig.10 In the state transition diagram (state machine) shown in , it is assumed that the transition condition for transitioning from the "TryWait.SNK" state St318 to the "Apply Rd" state St301 is changed. In this case, the controller 110 sets the "TryWait.SNK" state St318 in the register 114 to the set state (S300). When the connection state is changed to the "TryWait.SNK" state St318 ("Yes" in S302), the controller 110 stops the state machine (S304). In this case, in S306, when the TCPM 10 receives the notification of the transmission from the controller 110, the state controller 16 performs the processing for determining the changed transition condition. When the processing in the TCPM 10 is completed ("Yes" in S308), the controller 110 restarts the state machine according to the state in which the transition condition is changed (S310). That is, the controller 110 restarts the state machine according to the "Apply Rd" state St301.
[0113] Similar to the semiconductor system 1 according to the first embodiment, the semiconductor system 1 according to the third embodiment can transition the state machine to the connected state without involving the TCPM 10 in the connection process in the USB port. This makes it possible to reduce the communication time through the I2C bus 2. Therefore, the semiconductor system 1 of the third embodiment can have substantially the same effects as those associated with the first embodiment.
[0114] As described above, in the third embodiment, when the connection state is changed to the setting state (first state), the controller 110 stops the state machine and transmits a notification that the state machine has stopped to the outside. Therefore, when the Type-C specification is updated, TCPM10 can control the changed state or transition condition. Therefore, even if the Type-C specification is updated, there is no need to re-implement the hardware controller 110 installed on TCPC 100.
[0115] As described above, in the third embodiment, when the processing in TCPM 10 is completed, the controller 110 restarts the state machine according to the state (connected state) controlled by the state controller 16, or the state of the transition destination of the transition condition. Therefore, TCPC100 can continue to process the state or transition condition that has not changed. Therefore, even when the Type-C specification is updated, the semiconductor system 1 according to the third embodiment can exhibit the effect of the semiconductor system 1 according to the first embodiment.
[0116] As described above, the controller 110 according to the third embodiment includes a register 114 for setting the setting state. Therefore, when the Type-C specification is updated, the original state of the changed part can be arbitrarily set. Therefore, the semiconductor system 1 according to the present embodiment can be flexibly applied to any update (such as the Type-C specification).
[0117] (Modified example)
[0118] For example, in Figure 2 , Figure 3 as well as Figures 9 to 12 An example of a state machine implemented in the TCPC 100 according to the present embodiment is shown in FIG. However, the state machine implemented by the TCPC 100 according to the present embodiment is not limited to Figure 2 , Figure 3 as well as Figures 9 to 12 The state machine shown in Figure .
[0119] Although the invention made by the present inventors has been specifically described based on the embodiments, the present invention is not limited to the embodiments that have been described, and it goes without saying that various modifications can be made without departing from the gist of the present invention.
Claims
1. A semiconductor system comprising: A port controller configured to control a universal serial bus (USB) port; as well as a port manager configured to control the port controller via a bus, the port manager configured to control the port controller, Wherein, the port controller comprises: a state machine configured to implement a transition of a connection state in the USB port, wherein the connection state in the USB port transitions between: 1) a connection confirmation state for confirming whether a counterpart device connected to the USB port is electrically connected, 2) a connected state for confirming that the counterpart device connected to the USB port is electrically and stably connected, and 3) a disconnected state for confirming that the counterpart device is disconnected from the USB port; and The controller is configured as: When a peer device is connected to the USB port, the state machine is controlled to change the connection state in the USB port into a connection confirmation state, determining whether the connection confirmation state in the USB port has continued for a first predetermined period of time; and When the controller of the port controller determines that the connection confirmation state has continued for the first predetermined period of time, (i) controlling the state machine to change the connection state in the USB port from the connection confirmation state to the connected state without receiving an instruction to change the connection state in the USB port to the connected state from the port manager, and (ii) outputting a connected state transition notification to the port manager notifying that the connection state of the USB port has been transitioned to the connected state, wherein the port manager includes a connection detection unit configured to receive the connected state transition notification and detect the connection of the USB port based on the connected state transition notification received from the port controller, and The port manager performs processing according to the connection of the USB port detected by the connection detection unit.
2. The semiconductor system according to claim 1, wherein: The bus is an Inter-Integrated Circuit I2C bus.
3. The semiconductor system according to claim 1, in, The controller further includes a timer, and The controller uses the timer to measure the first predetermined period of time as a duration of the connection confirmation state.
4. The semiconductor system according to claim 3, wherein: When the connection with the USB port is released before the duration of the connection confirmation state elapses the first predetermined period, the controller of the port controller transitions the connection state of the USB port to an unconnected state in which the connection with the USB port is not established.
5. The semiconductor system according to claim 3, in, When the duration of the first predetermined period of time passes, the controller of the port controller changes the connection state of the USB port to a relative device confirmation state for confirming whether the relative device connected to the USB port has a predetermined first function, and when the relative device confirmation state lasts for a second predetermined period of time, the controller of the port controller changes the connection state of the USB port to the connected state.
6. The semiconductor system according to claim 1, wherein: When the connection state of the USB port transitions to the connected state, the controller of the port controller controls a power supply circuit configured to perform at least one of power reception and power supply.
7. The semiconductor system according to claim 1, wherein: The controller of the port controller stops the state machine when the connection state of the USB port transitions to a predetermined first state, and transmits a notification indicating that the state machine has stopped to the outside.
8. The semiconductor system according to claim 7, wherein: After the controller of the port controller transmits the notification to the outside, the controller of the port controller restarts the state machine according to the connection state of the transition destination of the connection state controlled by the port manager, or the connection state of the transition destination of the transition condition controlled by the port manager.
9. The semiconductor system according to claim 7, wherein: The controller of the port controller further includes a register for setting the first state.
10. A semiconductor device comprising: A state machine configured to implement a transition of a connection state in a universal serial bus (USB) port, wherein the connection state in the USB port transitions between: 1) a connection confirmation state in which it is confirmed whether a counterpart device connected to the USB port is electrically connected, 2) a connected state in which it is confirmed that the counterpart device connected to the USB port is electrically and stably connected, and 3) a disconnected state in which it is confirmed that the counterpart device is disconnected from the USB port; as well as The controller is configured as: When a peer device is connected to the USB port, the state machine is controlled to change the connection state in the USB port into a connection confirmation state, determining whether the connection confirmation state in the USB port has continued for a first predetermined period of time; as well as When the controller determines that the connection confirmation state has continued for the first predetermined period of time, (i) the controller controls the state machine to change the connection state in the USB port from the connection confirmation state to the connected state without receiving an instruction to change the connection state in the USB port to the connected state from the port manager, and (ii) outputs a connected state transition notification to the port manager to notify that the connection state of the USB port has been changed to the connected state.
11. The semiconductor device according to claim 10, in, The controller further includes a timer, and The controller measures the first predetermined period of time as a duration of the connection confirmation state using the timer.
12. The semiconductor device according to claim 11, Wherein when the connection with the USB port is released before the duration of the connection confirmation state elapses the first predetermined period, the controller changes the connection state to an unconnected state in which the connection with the USB port is not established.
13. The semiconductor device according to claim 11, When the duration of the first predetermined period of time passes, the controller changes the connection state to a relative device confirmation state, wherein the relative device confirmation state is used to confirm whether the relative device connected to the USB port has a predetermined first function, and when the relative device confirmation state lasts for a second predetermined period of time, the controller changes the connection state to the connected state.
14. The semiconductor device according to claim 11, wherein When the connection state transitions to the connected state, the controller controls a power supply circuit configured to perform at least one of power reception and power supply.
15. The semiconductor device according to claim 10, wherein The controller stops the state machine when the connection state transitions to a predetermined first state, and transmits a notification indicating that the state machine has stopped to the outside.
16. The semiconductor device according to claim 15, wherein: After the controller transmits the notification to the outside, The controller restarts the state machine according to the connection state of the transition destination of the connection state controlled by the port manager connected to the semiconductor device via a bus or the connection state of the transition destination of the transition condition controlled by the port manager.
17. The semiconductor device according to claim 16, wherein: The bus is an Inter-Integrated Circuit I2C bus.
18. The semiconductor device according to claim 15, wherein: The controller further includes a register for setting the first state.
Citation Information
Patent Citations
Warm pants
JP2019099978A