CN113792005B - TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment - Google Patents

TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment Download PDF

Info

Publication number
CN113792005B
CN113792005B CN202110925833.9A CN202110925833A CN113792005B CN 113792005 B CN113792005 B CN 113792005B CN 202110925833 A CN202110925833 A CN 202110925833A CN 113792005 B CN113792005 B CN 113792005B
Authority
CN
China
Prior art keywords
circuit
interface
communication
signal
switch
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
CN202110925833.9A
Other languages
Chinese (zh)
Other versions
CN113792005A (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.)
Chipsea Technologies Shenzhen Co Ltd
Original Assignee
Chipsea Technologies Shenzhen Co Ltd
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 Chipsea Technologies Shenzhen Co Ltd filed Critical Chipsea Technologies Shenzhen Co Ltd
Priority to CN202110925833.9A priority Critical patent/CN113792005B/en
Publication of CN113792005A publication Critical patent/CN113792005A/en
Priority to PCT/CN2022/111178 priority patent/WO2023016458A1/en
Application granted granted Critical
Publication of CN113792005B publication Critical patent/CN113792005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure

Abstract

The application discloses a TYPE-C interface communication circuit, a TYPE-C interface communication method, an integrated circuit and an electronic device, wherein the interface circuit is used for transmitting communication signals, the communication control circuit comprises a reference circuit and a communication signal processing circuit, the reference circuit is used for outputting corresponding reference signals according to the receiving and transmitting states of the interface circuit, the communication signal processing circuit is used for setting the communication signal processing circuit to a corresponding signal processing mode according to the receiving and transmitting states of the interface circuit, the communication control circuit controls the interface circuit to complete receiving and transmitting of the communication signals according to the reference signals and the signal processing mode, so that the communication control circuit can be used for receiving the communication signals and transmitting the communication signals according to the receiving and transmitting states of the interface circuit, the required hardware devices are reduced, the cost is effectively reduced, the circuit area is reduced, and the flexibility of the circuit is improved.

Description

TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a TYPE-C interface communication circuit, a method, an integrated circuit, and an electronic device.
Background
Since the USB-IF (USB Implementers Forum, USB standardization organization) association has introduced the USB-PD (USB Power Delivery, power transfer protocol) protocol, USB-PD products have become more popular under the push of various vendors, such as PC (Personal Computer ), HUB (transponder), chargers, mobile power supplies, PD adapter products, and the like.
The cost of the current commercial USB-PD protocol product is always high, and in the situation that the USB-PD product is increasingly competitive, cost control is a critical factor. And compared with other quick charge protocols, the USB-PD protocol is complex and needs BMC encoding and decoding, 485B encoding and decoding, CRC checking and the like. In the related art, the above-mentioned processing needs to be implemented by arranging tens of thousands of gate logic circuits in the circuit and adding a plurality of benchmarks and comparators, which results in high cost and large occupied area of related products of the USB-PD. And because the hardware device parameter is fixed, when the USB-PD protocol is upgraded, communication signals cannot be identified because the hardware device cannot be correspondingly upgraded, and the flexibility is poor.
Disclosure of Invention
In view of the above, the present invention proposes a TYPE-C interface communication circuit, a method, an integrated circuit, and an electronic device to improve the above.
In a first aspect, an embodiment of the present application provides a TYPE-C interface communication circuit, which includes an interface circuit and a communication control circuit. Wherein the interface circuit is used for transmitting communication signals. The communication control circuit includes a reference circuit and a communication signal processing circuit. The reference circuit is used for outputting a corresponding reference signal according to the receiving and transmitting state of the interface circuit. The communication signal processing circuit is used for setting the communication signal processing circuit to a corresponding signal processing mode according to the receiving and transmitting state of the interface circuit. The communication control circuit controls the interface circuit to complete the receiving and transmitting of the communication signals according to the reference signals and the signal processing mode.
In a second aspect, an embodiment of the present application further provides an integrated circuit, where the integrated circuit includes the TYPE-C interface communication circuit described in the first aspect.
In a third aspect, the embodiment of the application also provides electronic equipment. The electronic device comprises a device body and an integrated circuit as described in the second aspect above provided in the device body.
In a fourth aspect, an embodiment of the present application further provides a TYPE-C interface communication method, which is applied to the TYPE-C interface circuit in the first aspect. The method comprises the following steps: generating a corresponding reference signal according to the receiving and transmitting state of the interface circuit; and setting a corresponding signal processing mode according to the receiving and transmitting state of the interface circuit. And according to the reference signal and the signal processing mode, the control interface circuit finishes receiving and transmitting the communication signal.
According to the technical scheme, the TYPE-C interface circuit comprises an interface circuit and a communication control circuit, wherein the interface circuit is used for transmitting communication signals, the communication control circuit comprises a reference circuit and a communication signal processing circuit, the reference circuit is used for outputting corresponding reference signals according to the receiving and transmitting states of the interface circuit, the communication signal processing circuit is used for setting the communication signal processing circuit to a corresponding signal processing mode according to the receiving and transmitting states of the interface circuit, the communication control circuit controls the interface circuit to complete receiving and transmitting of the communication signals according to the reference signals and the signal processing mode, and accordingly the corresponding signal processing mode is set and the corresponding reference signals are output according to the receiving and transmitting states of the interface circuit, the communication control circuit can be used for receiving and transmitting the communication signals through adjusting the corresponding reference signals, required hardware devices are reduced, cost is effectively reduced, circuit area is reduced, and flexibility of the circuit is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments of the present application, not all embodiments. All other embodiments and figures obtained by a person skilled in the art without any inventive effort are within the scope of protection of the present application based on the embodiments of the present application.
Fig. 1 is a schematic structural diagram of a TYPE-C interface communication circuit according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a TYPE-C interface communication circuit according to another embodiment of the present application.
Fig. 3 is a schematic structural diagram of a TYPE-C interface communication circuit according to another embodiment of the present application.
Fig. 4 is a schematic structural diagram of a TYPE-C interface communication circuit according to still another embodiment of the present application.
Fig. 5 is a schematic structural diagram of a TYPE-C interface communication circuit according to still another embodiment of the present application.
Fig. 6 is a schematic structural diagram of an integrated circuit according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is a flow chart illustrating a TYPE-C interface communication method according to an embodiment of the present application.
Fig. 9 shows a schematic flow chart of step S120 in fig. 8.
Fig. 10 shows a schematic flow chart of step S110 in fig. 8.
Fig. 11 is a schematic flow chart of a TYPE-C interface communication method according to another embodiment of the present application.
Description of the drawings: 1000. TYPE-C interface circuit, 100, interface circuit, 110, interface detection terminal, 111, first interface detection terminal, 112, second interface detection terminal, 120, interface, 121, first interface, 122, second interface, 130, fourth switch, 200, communication control circuit, 210, reference circuit, 211, third switch, 212, first reference terminal, 213, second reference terminal, 214, third reference terminal, 220, communication signal processing circuit, 221, first switch, 222, second switch, 223, comparator, 224, communication signal processing module, 2241, interrupt unit, 2242, timer, 2243, communication signal processing unit, 2000, integrated circuit, 3000, electronic device.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present application and are not to be construed as limiting the present application.
In order to enable those skilled in the art to better understand the solution of the present application, the following description will make clear and complete descriptions of the technical solution of the present application in the embodiments of the present application with reference to the accompanying drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Since the USB-IF (USB Implementers Forum, USB standardization organization) association has introduced the USB-PD (USB Power Delivery, power transfer protocol) protocol, USB-PD products have become more popular under the push of various vendors, such as PC (Personal Computer ), HUB (transponder), chargers, mobile power supplies, PD adapter products, and the like.
The cost of the current commercial USB-PD protocol product is always high, and in the situation that the USB-PD product is increasingly competitive, cost control is a critical factor. In the related art, the communication signals of the USB-PD protocol product are transmitted and received by adopting different hardware devices, so that the number of the hardware devices is large, the occupied area is large, and the cost is high, thereby the cost of the USB-PD product is difficult to reduce.
In order to solve the above problems, the inventor has long studied and proposed TYPE-C interface communication circuit, method, integrated circuit and electronic device in the embodiment of the application, TYPE-C interface circuit includes interface circuit and communication control circuit, wherein, interface circuit is used for transmitting the communication signal, communication control circuit includes reference circuit and communication signal processing circuit, reference circuit is used for outputting the corresponding reference signal according to the state of receiving and dispatching of interface circuit, communication signal processing circuit is used for setting up the communication signal processing circuit to the corresponding signal processing mode according to the state of receiving and dispatching of interface circuit, communication control circuit is finished receiving and dispatching of the communication signal according to reference signal and signal processing mode, thus adjust to the corresponding signal processing mode and output the corresponding reference signal according to the state of receiving and dispatching of interface circuit, make communication control circuit can be used for both receiving and dispatching of communication signal, and can realize receiving and dispatching of communication signal through adjusting the corresponding reference signal, the required hardware device is reduced, effective cost is reduced, circuit area is improved.
Referring to fig. 1, fig. 1 illustrates a TYPE-C interface communication circuit 1000 according to an embodiment of the present application. The circuit 1000 includes an interface circuit 100 and a communication control circuit 200. The communication control circuit 200 further includes a reference circuit 210 and a communication signal processing circuit 220. The reference circuit 210 is configured to output a corresponding reference signal according to the transceiving state of the interface circuit 100; the communication signal processing circuit 220 is configured to set the communication signal processing circuit to a corresponding signal processing mode according to the transceiving state of the interface circuit, and the communication control circuit 200 may control the interface circuit 100 to complete transceiving of the communication signal according to the reference signal and the signal processing mode. For example, when the interface circuit 100 is in the reception state, the reference circuit 210 may output a corresponding reference signal according to the reception state of the interface circuit 100, and the communication signal processing circuit 220 may set itself to the signal reception mode according to the reception state of the interface circuit 100, so that the communication control circuit 200 may control the interface circuit 100 to complete reception of the communication signal according to the corresponding reference signal in the signal reception mode.
In some embodiments, TYPE-C interface communication circuit 1000 transmits communication signals through interface circuit 100, i.e., may receive communication signals transmitted by an external device connected thereto through interface circuit 100, or may transmit communication signals to an external device connected thereto through interface circuit 100.
In some embodiments, the interface circuit 100 may also be used to obtain interface information. The interface circuit 100 determines the state of the interface, such as a charging state, a transceiving state, etc., from the acquired interface information, wherein the transceiving state includes a receiving state and a transmitting state.
The TYPE-C interface circuit comprises an interface circuit and a communication control circuit, wherein the communication control circuit can set a corresponding signal processing mode and output a corresponding reference signal according to the receiving and transmitting state of the interface circuit, so that the interface circuit is controlled to complete receiving and transmitting of the communication signal, the communication control circuit can be used for receiving the communication signal and transmitting the communication signal, and the receiving and transmitting of the communication signal can be realized by adjusting the corresponding reference signal, so that required hardware devices are reduced, the cost is effectively reduced, the circuit area is reduced, and the flexibility of the circuit can be improved.
In some embodiments, the interface circuit 100 includes at least two interfaces, at least two interface detection terminals, and a fourth switch. The at least two interface detection ends are connected with the at least two interfaces in a one-to-one correspondence manner so as to acquire the interface information of each interface, thereby determining a target interface for receiving and transmitting data currently from the at least two interfaces according to the interface information.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a TYPE-C interface communication circuit according to another embodiment of the application. The interface circuit 100 includes two interfaces 120, two interface detection terminals 110, and a fourth switch 130. Wherein the two interfaces 120 are a first interface 121 and a second interface 122, respectively. The two interface detection terminals 110 are a first interface detection terminal 111 and a second interface detection terminal 112, respectively. The first interface detection end 111 is configured to connect to the first interface 121 to obtain first interface information of the first interface 121. The second interface detection end 112 is configured to connect to the second interface 122 to obtain second interface information of the second interface 122. The interface circuit 100 determines a target interface available for communication signal transmission in the first interface 121 and the second interface 122 based on the first interface information and the second interface information, so that the communication control circuit performs transmission and reception of communication signals through the target interface. Illustratively, when the first interface 121 has device access and the second interface 122 has no device access, the first interface information of the first interface 121 may be used to represent device access information, the second interface information of the second interface 121 may be represented as no device access information, and then the first interface 121 may be selected as a target interface. It is to be understood that the number of the interface detecting terminals 110 and the number of the interfaces 120 may be set according to actual use needs, which is not limited by the present application.
In some embodiments, the interface circuit 100 may further include at least one comparator to determine the interface 120 corresponding to the interface information as a target interface according to the interface information.
As an embodiment, the interface circuit 100 may include a comparator, and the acquired first interface information and the second interface information are respectively input to a positive input terminal and a negative input terminal of the comparator to determine the target interface. For example, the positive input terminal of the comparator obtains the first interface information through the first interface detection terminal 111, the negative input terminal of the comparator obtains the second interface information through the second interface detection terminal 112, and the output terminal of the comparator outputs a high level, so that the first interface information is determined to be in a communication state, and the first interface 121 is taken as a target interface.
As another embodiment, the interface circuit 100 may further include a plurality of comparators, such as a first comparator and a second comparator. As an example, the positive input terminal of the first comparator inputs a reference signal for determining an interface, the negative input terminal of the first comparator obtains first interface information through the first interface detection terminal 111, and if the first comparator outputs a high level, the first interface corresponding to the first interface information is determined to be in a communication state, and the first interface 121 is set as a target interface. The positive input end of the second comparator inputs a reference signal for determining an interface, the acquired second interface information is input to the negative input end of the second comparator, if the output end of the second comparator outputs a high level, the second interface information is determined to be in a communication state, and the second interface 122 is taken as a target interface.
In some embodiments, after determining the target interface, the fourth switch 130 may be controlled to connect the target interface and the communication control circuit, so that the communication control circuit 200 controls the interface circuit 100 to complete the transceiving of the communication signal through the target interface. The first end of the fourth switch 130 is connected to the communication control circuit 200, the other end of the fourth switch 130 is connected to at least two interfaces, and as an example, the second end of the fourth switch 130 is connected to the first interface 121, and the third end of the fourth switch 130 is connected to the second interface 122. When the first interface 121 is a target interface, the first terminal and the second terminal of the fourth switch 130 are controlled to communicate, thereby communicating a path between the communication control circuit 200 and the first interface 121. When the second interface 122 is a target interface, the first terminal of the fourth switch 130 is controlled to communicate with the third terminal, thereby communicating a path between the communication control circuit 200 and the second interface 122. The fourth switch 130 may be a single pole double throw switch or a MOSFET switch.
In some embodiments, interface circuit 100 may also include an analog-to-digital converter. The analog-to-digital converter is configured to obtain interface detection information corresponding to the at least two interfaces 120 through the at least two interface detection terminals 110, so as to determine interface information according to the interface detection information. The interface detection information may be, for example, a voltage signal, a current signal, etc. of the interface 120. The range of the signal which can be detected by the analog-to-digital converter is wider, the analog-to-digital converter is adopted for confirming the interface information, the detection range of the interface information can be enlarged, and the detection precision is improved.
In an embodiment of the present application, the communication control circuit 200 includes a reference circuit 210 and a communication signal processing circuit 220. The reference circuit 210 is configured to output a corresponding reference signal according to a transmission/reception state of the interface circuit. The communication signal processing circuit 220 is configured to adjust the communication signal processing circuit to a corresponding signal processing mode according to the transceiving status of the interface circuit 100. The communication control circuit 200 completes transmission and reception of the communication signal according to the reference signal and the signal processing mode. Wherein the reference signal matches the signal processing pattern.
The signal processing mode may be a signal receiving mode. In the signal reception mode, the communication control circuit 200 receives a communication signal. The signal processing mode may also be a signal transmission mode. In the signal transmission mode, the communication control circuit 200 transmits a communication signal.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a TYPE-C interface communication circuit according to still another embodiment of the present application. The communication signal processing circuit 220 includes a first switch 221, a second switch 222, a comparator 223, and a communication signal processing module 224. Wherein a first end of the first switch 221 is connected to the communication signal processing module 224. A second terminal of the first switch 221 is connected to an output terminal of the comparator 223, a first input terminal of the comparator is connected to the interface circuit 100, a second input terminal of the comparator is connected to the reference circuit 210, and two ends of the second switch 222 are connected to the first input terminal and the output terminal of the comparator, respectively.
In some embodiments, the communication signals may include a first communication signal and a second communication signal. The first communication signal is a communication signal required to be received by the TYPE-C interface communication circuit, namely, a communication signal transmitted by the interface circuit in a receiving state. The second communication signal is a communication signal to be transmitted by the TYPE-C interface communication circuit, i.e., a communication signal transmitted by the interface circuit in a receiving state.
In some embodiments, when the interface circuit is in the receiving state, the first switch 221 is turned on, the second switch 222 is turned off, and the output end of the comparator 223 is connected to the communication signal processing module 224 through the first switch 221, so that the communication signal processing circuit 220 enters the signal receiving mode to process the first communication signal acquired from the interface circuit 100. The reference signal output by the reference circuit 210 is input to the second input of the comparator 223 and the first communication signal is input to the first input of the comparator 223. The comparator 223 may compare the reference signal output from the reference circuit 210 with the first communication signal and output a corresponding signal according to the comparison result. If the voltage of the reference signal is greater than the voltage of the first communication signal, the output terminal of the comparator 223 outputs a high level to the communication signal processing module 224. If the voltage of the reference signal is smaller than the voltage of the first communication signal, the output terminal of the comparator 223 outputs a low level to the communication signal processing module 224. The first input terminal of the comparator 223 may be a negative input terminal, and the second input terminal may be a positive input terminal.
In some embodiments, when the interface circuit is in the transmitting state, the first switch 221 is turned off, the second switch 222 is turned on, and the first input terminal of the comparator 223 is connected to the output terminal of the comparator 223 through the second switch 222, where the comparator 223 is a follower. Thereby causing the communication signal processing circuit 220 to enter a signal transmission mode to transmit the second communication signal to the interface circuit 100. Specifically, since the comparator 223 is now equivalent to a follower, the signal at the second input of the comparator 223 is provided by the reference circuit 210. Accordingly, the comparator 223 can be caused to output the second communication signal to be transmitted by controlling the reference signal output from the reference circuit 200. It will be appreciated that the second communication signal may be a square wave signal including a high level and a low level, and that the reference circuit 210 may be caused to output a high level reference signal when the high level is required to be output. When the low level needs to be output, the reference circuit 210 may be caused to output a reference signal of the low level.
In some embodiments, the reference circuit 210 is configured to output a corresponding reference signal according to the transceiving status of the interface circuit 100. Referring to fig. 4, fig. 4 is a schematic structural diagram of a TYPE-C interface communication circuit according to still another embodiment of the present application. In an embodiment of the present application, the reference circuit 210 may include a third switch 211 and a reference module. The reference module includes a first reference end 212, a second reference end 213, and a third reference end 214. One end of the third switch is selectively connected to the first reference terminal 212, the second reference terminal 213 or the third reference terminal 214, and the other end is connected to the second input terminal of the comparator 223;
The reference circuit 210 may output the first reference signal through the first reference terminal 212, may output the second reference signal through the second reference terminal 213, and may output the third reference signal through the third reference terminal 214. The value of the first reference signal, the value of the second reference signal, and the value of the third reference signal are sequentially incremented.
In some embodiments, when the interface circuit 100 is in the receiving state, one end of the third switch 211 is connected to the second reference terminal 213, so that the comparator 223 processes the first communication signal according to the second reference signal output by the second reference terminal 213. The second reference signal is used as an input signal to the second input terminal of the comparator 223, and at this time, the communication signal processing circuit 220 is in a signal receiving mode, i.e., the first input terminal of the comparator 223 inputs the first communication signal. The comparator 223 further compares the first communication signal with the second reference signal, and if the first input terminal of the comparator is a positive input terminal and the second input terminal is a negative input terminal, the second reference signal is greater than the first communication signal, and the output terminal of the comparator 223 outputs a high level. If the second reference signal is smaller than the first communication signal, the output terminal of the comparator 223 outputs a low level. As an example, the second reference signal may be 0.6V, that is, the first communication signal is less than 0.6V if the first communication signal is low, and the comparator 223 outputs a high level. If the first communication signal is high, the first communication signal is greater than 0.6V, and the comparator 223 outputs low level.
In some embodiments, one end of the third switch 211 is connected to the first reference terminal 212 or the third reference terminal 214 when the interface circuit is in the transmitting state. Specifically, one end of the third switch 211 is connected to the first reference terminal 212 or to the third reference terminal 214 according to the level of the second communication signal that needs to be output; or is switchably connected to the first reference terminal 212 and the third reference terminal 214. When one end of the third switch 211 is connected to the first reference terminal 212, the comparator 223 generates a second communication signal sent to the interface circuit 100 according to the first reference signal output by the first reference terminal 212; when one end of the third switch 211 is connected to the third reference terminal 214, the comparator 223 generates a second communication signal sent to the interface circuit 110 according to the third reference signal output by the third reference terminal 214; when one end of the third switch 211 is switched between and connected to the first reference terminal 212 and the third reference terminal 214, the comparator 223 generates a second communication signal to be transmitted to the interface circuit 100 based on the first reference signal output from the first reference terminal 212 and the third reference signal output from the third reference terminal 214.
As an example, the second communication signal may be a square wave signal, i.e., the second communication signal is alternately formed of high and low levels, and in order to output the second communication signal, one end of the third switch 211 may be controlled to switch between the first reference terminal 212 and the third reference terminal 214 according to the level condition of the second communication signal.
When the low level needs to be output, one end of the third switch 211 is switched to the first reference end 212, that is, one end of the third switch 211 is connected to the first reference end 212, and the other end of the third switch is connected to the second input end of the comparator 223, so that the comparator 223 outputs the low level signal according to the first reference signal output by the first reference end 212. The first reference signal may be a ground signal, for example.
When the high level needs to be output, one end of the third switch 211 is switched to the third reference terminal 214, that is, one end of the first switch 211 is connected to the third reference terminal 214, and the other end of the third switch is connected to the second input terminal of the comparator 223, so that the comparator 223 outputs the high level signal according to the third reference signal output by the third reference terminal 214. The third reference signal may be a 1.2V signal, for example.
In some embodiments, the reference module may be a digital-to-analog converter. The digital-to-analog converter can respectively generate a first reference signal, a second reference signal and a third reference signal according to the corresponding input code value. The digital-to-analog converter can provide a wider range of reference signals, so that the digital-to-analog converter can adapt to more application scenes.
In some embodiments, referring to fig. 5, fig. 5 shows a schematic structural diagram of a TYPE-C interface communication circuit according to still another embodiment of the present application. The communication signal processing module 224 includes an interrupt unit 2241, a timer 2242, and a communication signal processing unit 2243.
In some embodiments, the communication signal processing circuit 220 enters a signal receiving mode when the first switch 221 is on and the second switch 222 is off. At this time, the comparator 223 generates a comparison signal from the reference signal and the first communication signal, and the interrupt unit 2241 generates an interrupt signal from the comparison signal. For example, when the comparison signal is a high level signal, the interrupt unit 2241 may acquire a high level signal of the first communication signal at a rising edge, that is, the interrupt unit 2241 may generate the first interrupt signal when the first communication signal transitions from a low level to a high level. When the comparison signal is a low level signal, the interrupt unit 2241 may acquire the low level signal of the first communication signal at the time of the rising edge, that is, the interrupt unit 2241 may generate the second interrupt signal when the first communication signal transitions from the high level to the low level.
Further, the interrupt unit 2241 transmits the generated interrupt signal to the timer 2242, and the timer 2242 may calculate the time of the high and low level signal according to the interrupt signal. For example, the interrupt unit 2241 generates the first interrupt signal to the timer 2242 when the first communication signal transitions from the low level to the high level, so that the timer 2242 starts to count the duration of the high level. After time t1, the interrupt unit 2241 generates a second interrupt signal to the timer 2242 when the first communication signal transitions from high level to low level, and the timer 2242 ends the timing of the high level duration, i.e. the high level duration is t1. And at the same time, the timer 2242 starts to count the duration of the low level.
Further, the communication signal processing unit 224 acquires the interrupt signal of the interrupt unit 2241 and the time counted by the timer 2242, thereby determining the first communication signal according to the time of the high and low level and the duration of the high and low level. Thus, the first communication signal may be further processed by the communication signal processing unit.
Compared with other quick charge protocols, the USB-PD protocol is complex, and BMC encoding and decoding, 485B encoding and decoding, CRC checking and the like are needed. In the related art, the above-mentioned processing needs to be implemented by arranging tens of thousands of gate logic circuits in the circuit and adding a plurality of benchmarks and comparators, which results in high cost and large occupied area of related products of the USB-PD. And because the hardware device parameter is fixed, when the USB-PD protocol is upgraded, communication signals cannot be identified because the hardware device cannot be correspondingly upgraded, and the flexibility is poor.
In the embodiment of the present application, the first communication signal is converted into a signal that can be processed by the communication signal processing unit 2241 through the processing of the comparator and the timing unit, and the communication signal processing unit 2243 may further perform decoding and verification processing on the first communication information to obtain the first communication information in the first communication signal. Therefore, even if the USB-PD protocol is upgraded, the processing logic of the communication signal processing unit 2241 can be updated to adapt to the upgraded USB-PD protocol, and even if the USB-PD protocol is changed greatly, the USB-PD protocol can be flexibly adapted.
In some embodiments, the communication signal processing unit 2241 may further perform encoding and verification processing on the second communication information to be transmitted to generate a second communication signal for transmission, and generate the second communication signal through the comparator 223 and the reference circuit 210 and transmit the second communication signal to the target interface through the interface circuit 100.
Referring to fig. 6, fig. 6 illustrates an integrated circuit 2000 according to an embodiment of the present application, where the integrated circuit 2000 includes the TYPE-C interface communication circuit 1000 described above.
In this embodiment, the integrated circuit 2000 may be, but is not limited to, a TYPE-C interface communication chip.
Referring to fig. 7, fig. 7 shows an electronic device 3000 according to an embodiment of the present application, where the electronic device 3000 includes a device body 3100 and the integrated circuit 3000 described above. The integrated circuit 3000 is provided in the device body 3100.
In this embodiment, the electronic device 3000 may be a mobile phone or a smart phone (e.g., an iPhone-based (TM) -based phone), a Portable game device (e.g., nintendo DS (TM) -based phone, playStation Portable (TM) -Gameboy ADVANCE TM, iPhone (TM)), a laptop, a PDA (Personal DIGITAL ASSISTANT) -based Personal palm, a Portable internet device, a music player, and a data storage device, other handheld devices, and devices such as watches, headphones, pendants, etc., 5000300 may also be other wearable devices (e.g., a head-mounted device (HMD) such as electronic glasses, electronic clothes, electronic bracelets, electronic necklaces, electronic tattoos, or smart watches).
The electronic device 3000 may also be any of a number of electronic devices 3000, the number of electronic devices 3000 including, but not limited to, cellular telephones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbooks, personal Digital Assistants (PDAs), portable Multimedia Players (PMPs), moving picture experts group (MPEG-1 or MPEG-2) audio layer 3 (MP 3) players, portable medical devices, and digital cameras, and combinations thereof.
Referring to fig. 8, an embodiment of the present application provides a TYPE interface communication method, which is applied to the TYPE-C interface communication circuit described in the first embodiment, and the method includes: step S110 to step S140.
Step S110, corresponding reference signals are generated according to the receiving and transmitting states of the interface circuits.
Step S120, setting a corresponding signal processing mode according to the receiving and transmitting state of the interface circuit.
And step 130, controlling the interface circuit to complete the receiving and transmitting of the communication signals according to the reference signals and the signal processing mode.
In some embodiments, the communication signals include a first communication signal and a second communication signal. The communication signal processing circuit comprises a first switch, a second switch, a comparator and a communication signal processing module. Specifically, step S120 may include: step S121 to step S122.
Step S121, when the interface circuit is in a receiving state, the first switch is turned on, and the second switch is turned off, so that the output end of the comparator is connected to the communication signal processing module through the first switch, and a signal receiving mode is entered.
Step S122, when the interface circuit is in a transmitting state, the first switch is turned off, and the second switch is turned on to connect the first input end of the comparator with the output end of the comparator through the second switch, so as to enter a signal transmitting mode.
In some embodiments, the reference circuit includes a third switch and a reference module including a first reference terminal, a second reference terminal, and a third reference terminal. The reference signals include a first reference signal, a second reference signal, and a third reference signal. Specifically, step S110 may include: step S111 to step S112.
Step S111, when the interface circuit is in the receiving state, one end of the third switch is connected to the second reference end, so that the comparing machine processes the first communication signal according to the second reference signal output by the second reference end.
Step S112, when the interface circuit is in a receiving state, connecting one end of the third switch with the first reference end; or one end of the third switch is connected with the third reference end, so that the comparator generates a second communication signal according to the first reference signal output by the first reference end or the third reference signal output by the third reference end.
Wherein the value of the first reference signal, the value of the second reference signal and the value of the third reference signal are sequentially incremented.
In some embodiments, the communication signal processing module includes an interrupt unit, a timer, and a communication signal processing unit. After step S130, the TYPE-C interface communication circuit according to the embodiment of the present application may further include: step S140 to step S170.
And step S140, when the first switch is turned on and the second switch is turned off, a comparison signal is generated according to the reference signal and the received communication signal.
Step S150, generating an interrupt signal according to the comparison signal.
Step S160, determining the duration of the interrupt signal.
Step S170, generating a decoding signal according to the interrupt signal and the duration of the interrupt signal.
In some embodiments, the method may further include the following steps before step S110.
First, interface information is acquired.
Then, a target interface is determined according to the interface information, so that communication signals are transmitted and received through the target interface.
Further, the interface circuit comprises at least two interfaces, at least two interface detection terminals and a fourth switch. The at least two interface detection ends are used for being correspondingly connected with the at least two interfaces. Specifically, the step of acquiring the interface information further includes the following steps.
First, interface information corresponding to an interface is acquired.
Next, the interface information is judged to determine an interface corresponding to the interface information as a target interface.
Then, the target interface and the communication control circuit are connected through the fourth switch.
Further, the communication signal is transmitted and received through the target interface.
In summary, the TYPE-C interface communication circuit includes an interface circuit and a communication control circuit, where the interface circuit is configured to transmit a communication signal, the communication control circuit includes a reference circuit and a communication signal processing circuit, the reference circuit is configured to output a corresponding reference signal according to a transceiving state of the interface circuit, the communication signal processing circuit is configured to set the communication signal processing circuit to a corresponding signal processing mode according to the transceiving state of the interface circuit, and the communication control circuit is configured to control the interface circuit to complete transceiving of the communication signal according to the reference signal and the signal processing mode, so that the communication control circuit is configured to set the corresponding signal processing mode and output the corresponding reference signal according to the transceiving state of the interface circuit, so that the communication control circuit can be used for receiving the communication signal and transmitting the communication signal, and can realize transceiving of the communication signal by adjusting the corresponding reference signal.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A TYPE-C interface communication circuit, the circuit comprising:
an interface circuit for transmitting a communication signal;
A communication control circuit including a reference circuit and a communication signal processing circuit; the reference circuit is used for outputting a corresponding reference signal according to the receiving and transmitting state of the interface circuit; the communication signal processing circuit is used for setting the communication signal processing circuit to a corresponding signal processing mode according to the receiving and transmitting state of the interface circuit; the communication control circuit controls the interface circuit to complete the receiving and transmitting of the communication signals according to the reference signals and the signal processing mode;
The communication signal comprises a first communication signal and a second communication signal, and the communication signal processing circuit comprises a first switch, a second switch, a comparator and a communication signal processing module; the first end of the first switch is connected with the communication signal processing module, the second end of the first switch is connected with the output end of the comparator, the first input end of the comparator is connected with the interface circuit, the second input end of the comparator is connected with the reference circuit, and the two ends of the second switch are respectively connected with the first input end and the output end of the comparator;
when the interface circuit is in a receiving state, the first switch is turned on, the second switch is turned off, and the output end of the comparator is connected to the communication signal processing module through the first switch so that the communication signal processing circuit enters a signal receiving mode to process a first communication signal acquired from the interface circuit;
When the interface circuit is in a transmitting state, the first switch is turned off, the second switch is turned on, and the first input end of the comparator is connected with the output end of the comparator through the second switch, so that the communication signal processing circuit enters a signal transmitting mode and transmits a second communication signal to the interface circuit.
2. The circuit of claim 1, wherein the reference circuit comprises a third switch and a reference module, the reference module comprising a first reference terminal, a second reference terminal, and a third reference terminal; one end of the third switch is selectively connected to the first reference end, the second reference end or the third reference end, and the other end of the third switch is connected to the second input end of the comparator;
When the interface circuit is in a receiving state, one end of the third switch is connected to the second reference end, so that the comparator processes the first communication signal according to a second reference signal output by the second reference end;
when the interface circuit is in a transmitting state, one end of the third switch is connected to the first reference end or the third reference end; so that the comparator generates the second communication signal according to the first reference signal output by the first reference terminal or the third reference signal output by the third reference terminal.
3. The circuit of claim 2, wherein the reference circuit further comprises a digital-to-analog converter for generating the first reference signal, the second reference signal, and the third reference signal.
4. A circuit according to any one of claims 1-3, wherein the communication signal processing module comprises an interrupt unit, a timer, and a communication signal processing unit;
The comparator is used for generating a comparison signal according to the reference signal and the first communication signal when the first switch is on and the second switch is off; the interrupt unit is used for generating an interrupt signal according to the comparison signal; the timer is used for determining the duration of the interrupt signal; the communication signal processing unit is used for generating a decoding signal according to the interrupt signal and the duration of the interrupt signal.
5. The circuit of claim 1, wherein the interface circuit is further configured to obtain interface information and determine a target interface based on the interface information, such that the communication control circuit transmits and receives the communication signal via the target interface.
6. The circuit of claim 5, wherein the interface circuit comprises at least two interfaces, at least two interface detection terminals, and a fourth switch;
The at least two interface detection ends are used for being correspondingly connected with the at least two interfaces to acquire the interface information corresponding to the interfaces;
the interface circuit is used for determining the interface corresponding to the interface information as the target interface according to the interface information;
The fourth switch is used for connecting the target interface and the communication control circuit so that the communication control circuit can transmit and receive the communication signals through the target interface.
7. The circuit of claim 6, wherein the interface circuit further comprises an analog-to-digital converter;
the analog-to-digital converter is used for acquiring the interface information from at least two interface detection ends and determining the target interface according to the interface information.
8. An integrated circuit comprising the TYPE-C interface communication circuit of any one of claims 1 to 7.
9. An electronic device comprising a device body and an integrated circuit as claimed in claim 8 provided in the device body.
10. A TYPE-C interface communication method, applied to the TYPE-C interface communication circuit of any one of claims 1 to 7, comprising:
Generating a corresponding reference signal according to the receiving and transmitting state of the interface circuit;
setting a corresponding signal processing mode according to the receiving and transmitting state of the interface circuit;
And controlling the interface circuit to complete the receiving and transmitting of the communication signals according to the reference signals and the signal processing mode.
CN202110925833.9A 2021-08-12 2021-08-12 TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment Active CN113792005B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110925833.9A CN113792005B (en) 2021-08-12 2021-08-12 TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment
PCT/CN2022/111178 WO2023016458A1 (en) 2021-08-12 2022-08-09 Type-c interface communication circuit and method, integrated circuit, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110925833.9A CN113792005B (en) 2021-08-12 2021-08-12 TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment

Publications (2)

Publication Number Publication Date
CN113792005A CN113792005A (en) 2021-12-14
CN113792005B true CN113792005B (en) 2024-04-19

Family

ID=78875955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110925833.9A Active CN113792005B (en) 2021-08-12 2021-08-12 TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment

Country Status (2)

Country Link
CN (1) CN113792005B (en)
WO (1) WO2023016458A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113792005B (en) * 2021-08-12 2024-04-19 芯海科技(深圳)股份有限公司 TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment
CN114779915B (en) * 2022-04-06 2024-02-02 上海艾为电子技术股份有限公司 Interface detection module and method, power management chip and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949703A (en) * 2005-10-14 2007-04-18 株式会社瑞萨科技 Transmitting/receiving device and communication system using the same
CN105867593A (en) * 2016-05-17 2016-08-17 深圳慧能泰半导体科技有限公司 USB Type-C interface circuit and control device thereof
CN109344108A (en) * 2018-09-10 2019-02-15 普联技术有限公司 A kind of Type-C interface equipment, communication means and communication system
CN109522260A (en) * 2018-12-20 2019-03-26 苏州路之遥科技股份有限公司 A kind of monobus communication signal repeat circuit
CN110520854A (en) * 2017-10-31 2019-11-29 华为技术有限公司 A kind of electronic equipment, control method and the readable storage medium storing program for executing of USB Type C interface
CN110569208A (en) * 2019-08-02 2019-12-13 武汉精立电子技术有限公司 Control circuit, signal control device, signal control method and system
CN111045883A (en) * 2019-12-11 2020-04-21 紫光展讯通信(惠州)有限公司 Debugging circuit, method and terminal
CN111881072A (en) * 2020-07-30 2020-11-03 武汉精立电子技术有限公司 High-speed USB TYPE-C interface device supporting bidirectional transmission and graphic signal generator
CN212364819U (en) * 2020-06-30 2021-01-15 湖南长城计算机系统有限公司 Function expanding circuit, device and all-in-one computer based on TYPE _ C interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113792005B (en) * 2021-08-12 2024-04-19 芯海科技(深圳)股份有限公司 TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949703A (en) * 2005-10-14 2007-04-18 株式会社瑞萨科技 Transmitting/receiving device and communication system using the same
CN105867593A (en) * 2016-05-17 2016-08-17 深圳慧能泰半导体科技有限公司 USB Type-C interface circuit and control device thereof
CN110520854A (en) * 2017-10-31 2019-11-29 华为技术有限公司 A kind of electronic equipment, control method and the readable storage medium storing program for executing of USB Type C interface
CN109344108A (en) * 2018-09-10 2019-02-15 普联技术有限公司 A kind of Type-C interface equipment, communication means and communication system
CN109522260A (en) * 2018-12-20 2019-03-26 苏州路之遥科技股份有限公司 A kind of monobus communication signal repeat circuit
CN110569208A (en) * 2019-08-02 2019-12-13 武汉精立电子技术有限公司 Control circuit, signal control device, signal control method and system
CN111045883A (en) * 2019-12-11 2020-04-21 紫光展讯通信(惠州)有限公司 Debugging circuit, method and terminal
CN212364819U (en) * 2020-06-30 2021-01-15 湖南长城计算机系统有限公司 Function expanding circuit, device and all-in-one computer based on TYPE _ C interface
CN111881072A (en) * 2020-07-30 2020-11-03 武汉精立电子技术有限公司 High-speed USB TYPE-C interface device supporting bidirectional transmission and graphic signal generator

Also Published As

Publication number Publication date
CN113792005A (en) 2021-12-14
WO2023016458A1 (en) 2023-02-16

Similar Documents

Publication Publication Date Title
CN113792005B (en) TYPE-C interface communication circuit, TYPE-C interface communication method, integrated circuit and electronic equipment
US9484759B2 (en) Method for detecting a type of charger coupled to an input-output circuit and input-output circuit therefor
US8145935B2 (en) Clock signal generator for generating stable clock signal, semiconductor memory device including the same, and methods of operating
US9092233B2 (en) Accessory booting over USB
US9077195B2 (en) Input-output circuit
US20230300875A1 (en) Electronic device for managing coexistence of multiple communication schemes and operating method thereof
US8749221B2 (en) Input-output circuit
CN107613126B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
US9223727B2 (en) Input-output circuit
US20140273832A1 (en) Apparatus and method for connecting antenna for nearfield communication in portable terminal
CN106533488A (en) Device including multi-mode input pad
US10212576B2 (en) Near field communication device
EP3570404B1 (en) Power supply control method and apparatus, storage medium, and electronic device
CN113949409A (en) Radio frequency circuit and electronic device
CN112311029B (en) Charging method, electronic device and storage medium
WO2023134341A1 (en) Wireless charging device
CN110797985B (en) Coil switching method and device, storage medium and electronic equipment
US7885676B2 (en) Wireless communication device and marginal transmission power determining method
US20120204047A1 (en) Apparatus and methods for processor power supply voltage control using processor feedback
WO2010102897A1 (en) Method for controlling a data transfer on a serial transmission data transfer bus
US20230131325A1 (en) Electronic device and method of protecting battery in the electronic device
US11546014B2 (en) Electronic device and method for supporting heterogeneous communication techniques sharing frequency band
CN110704021B (en) Asynchronous first-in first-out data processing method, device, electronic device and computer readable storage medium
EP4287699A1 (en) Electronic device for transmitting/receiving data during uwb ranging, and method therefor
EP4187750A1 (en) Fast charging method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant