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

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

Info

Publication number
CN113792005A
CN113792005A CN202110925833.9A CN202110925833A CN113792005A CN 113792005 A CN113792005 A CN 113792005A CN 202110925833 A CN202110925833 A CN 202110925833A CN 113792005 A CN113792005 A CN 113792005A
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.)
Granted
Application number
CN202110925833.9A
Other languages
Chinese (zh)
Other versions
CN113792005B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Communication Control (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a TYPE-C interface communication circuit, a 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 sending 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 sending states of the interface circuit, the communication control circuit controls the interface circuit to complete the receiving and sending of the communication signals according to the reference signals and the signal processing mode, so that the corresponding signal processing mode is set according to the receiving and sending states of the interface circuit and the corresponding reference signals are output, the communication control circuit can be used for receiving the communication signals and sending the communication signals, and the communication signals can be received and sent by adjusting the corresponding reference signals, the required hardware devices are reduced, the cost is effectively reduced, the circuit area is reduced, and the flexibility of the circuit can be improved.

Description

TYPE-C interface communication circuit, method, integrated circuit and electronic equipment
Technical Field
The present disclosure 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 standardization organization) association introduced the USB-PD (USB Power Delivery protocol) protocol, USB-PD products, such as PC (Personal Computer), HUB (transponder), charger, mobile Power supply, PD adaptor product, etc., have become more and more popular under the push of various manufacturers.
The cost of the USB-PD protocol products on the market is always high, and under the condition that the USB-PD products are increasingly competitive, cost control is a very critical factor. And the USB-PD protocol is more complicated than other quick charging protocols, and BMC coding and decoding, 485B coding and decoding, CRC check and the like are required. In the related art, the above processing needs to be implemented by setting up a multi-gate logic circuit and adding a plurality of reference devices and comparators in the circuit, 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 upgrades, because the hardware device can't carry on the corresponding upgrade, and can't lead to discerning the communication signal, the flexibility is bad.
Disclosure of Invention
In view of the above problems, the present invention provides a TYPE-C interface communication circuit, a method, an integrated circuit, and an electronic device to improve the above problems.
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. 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 sending states of the interface circuit. The communication control circuit controls the interface circuit to complete the transceiving of the communication signal according to the reference signal 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 of the first aspect.
In a third aspect, an embodiment of the present application further provides an electronic device. 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 of 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 states of the interface circuit. And controlling the interface circuit to complete the transceiving of the communication signal according to the reference signal and the signal processing mode.
The technical scheme provided by the invention is that 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 sending 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 sending states of the interface circuit, the communication control circuit controls the interface circuit to complete the receiving and sending of the communication signals according to the reference signals and the signal processing mode, so that the corresponding signal processing mode is set according to the receiving and sending states of the interface circuit and the corresponding reference signals are output, the communication control circuit can be used for receiving the communication signals and sending the communication signals, and the communication signals can be received and sent by adjusting the corresponding reference signals, the required hardware devices are reduced, the cost is effectively reduced, the circuit area is reduced, and the flexibility of the circuit can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in 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, not all embodiments, of the present application. All other embodiments and drawings obtained by a person skilled in the art based on the embodiments of the present application without any inventive step are within the scope of the present invention.
Fig. 1 shows a schematic structural diagram of a TYPE-C interface communication circuit according to an embodiment of the present application.
Fig. 2 shows a schematic structural diagram of a TYPE-C interface communication circuit according to another embodiment of the present application.
Fig. 3 shows a schematic structural diagram of a TYPE-C interface communication circuit according to another embodiment of the present application.
Fig. 4 shows a schematic structural diagram of a TYPE-C interface communication circuit according to still another embodiment of the present application.
Fig. 5 shows a schematic structural diagram of a TYPE-C interface communication circuit according to still another embodiment of the present application.
Fig. 6 shows a schematic structural diagram of an integrated circuit according to an embodiment of the present application.
Fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is a flowchart illustrating a TYPE-C interface communication method according to an embodiment of the present application.
Fig. 9 shows a schematic flowchart of step S120 in fig. 8.
Fig. 10 shows a schematic flowchart of step S110 in fig. 8.
Fig. 11 is a flowchart illustrating 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
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Since the USB-IF (USB standardization organization) association introduced the USB-PD (USB Power Delivery protocol) protocol, USB-PD products, such as PC (Personal Computer), HUB (transponder), charger, mobile Power supply, PD adaptor product, etc., have become more and more popular under the push of various manufacturers.
The cost of the USB-PD protocol products on the market is always high, and under the condition that the USB-PD products are increasingly competitive, cost control is a very critical factor. In the related art, the USB-PD protocol product adopts different hardware devices for receiving and transmitting communication signals, the number of the hardware devices is large, the occupied area is large, and the cost is high, so that the cost of the USB-PD product is difficult to reduce.
In order to solve the above problems, the inventor has made a long-term study and proposed a TYPE-C interface communication circuit, a method, an integrated circuit, and an electronic device in the embodiments of the present application, where the TYPE-C interface circuit includes an interface circuit and a communication control circuit, where the interface circuit is used for transmitting a communication signal, 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 a transceiving 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 transceiving state of the interface circuit, the communication control circuit completes transceiving of the communication signal according to the reference signal and the signal processing mode, so as to adjust to the corresponding signal processing mode according to the transceiving state of the interface circuit and output the corresponding reference signal, so that the communication control circuit can be used for both receiving the communication signal, the method can be used for sending communication signals, and the communication signals can be sent and received by adjusting the corresponding reference signals, so that the required hardware devices are reduced, the cost is effectively reduced, the circuit area is reduced, and the flexibility of the circuit can be 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 receiving state, the reference circuit 210 may output a corresponding reference signal according to the receiving state of the interface circuit 100, and the communication signal processing circuit 220 may set itself to be in the signal receiving mode according to the receiving state of the interface circuit 100, so that the communication control circuit 200 may control the interface circuit 100 to complete receiving of the communication signal according to the corresponding reference signal in the signal receiving mode.
In some embodiments, the TYPE-C interface communication circuit 1000 transmits a communication signal through the interface circuit 100, that is, a communication signal transmitted by an external device connected thereto may be received by the interface circuit 100, or a communication signal may be transmitted to an external device connected thereto through the 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 and the like, 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 sending states of the interface circuit, and further controls the interface circuit to complete the receiving and sending of the communication signal, so that the communication control circuit can be used for receiving the communication signal and sending the communication signal, and the communication signal can be received and sent by adjusting the corresponding reference signal, therefore, 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 correspondingly connected with the at least two interfaces one by one to acquire interface information of each interface, so that a target interface which is currently used for receiving and transmitting data is determined from the at least two interfaces according to the interface information.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a TYPE-C interface communication circuit according to another embodiment of the present application. The interface circuit 100 includes two interfaces 120, two interface detection terminals 110, and a fourth switch 130. 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 terminal 111 is used for connecting the first interface 121 to obtain first interface information of the first interface 121. The second interface detection terminal 112 is used for connecting the second interface 122 to obtain second interface information of the second interface 122. The interface circuit 100 determines a target interface available for transmission of a communication signal 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 the communication signal through the target interface. For example, 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, and the second interface information of the second interface 121 may represent no device access information, so that the first interface 121 may be selected as the target interface. It is understood that the number of the interface detection terminals 110 and the number of the interfaces 120 may be set according to the actual use requirement, and the application is not limited thereto.
In some embodiments, the interface circuit 100 may further include at least one comparator to determine, according to the interface information, the interface 120 corresponding to the interface information as the target interface.
As an embodiment, the interface circuit 100 may include a comparator, and the obtained 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, it is determined that the first interface information is in a communication state, and the first interface 121 is used 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, a reference signal for determining an interface is input to a positive input terminal of the first comparator, the negative input terminal of the first comparator obtains the first interface information through the first interface detection terminal 111, and if the first comparator outputs a high level, it is determined that the first interface corresponding to the first interface information is in a communication state, and the first interface 121 is used as a target interface. The positive input end of the second comparator inputs the reference signal for determining the interface, the acquired second interface information is input to the negative input end of the second comparator, and 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 used as a target interface.
In some embodiments, after the target interface is determined, 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 transceiving of the communication signal through the target interface. A first end of the fourth switch 130 is connected to the communication control circuit 200, and the other end of the fourth switch 130 is connected to at least two interfaces, respectively, as an example, a second end of the fourth switch 130 is connected to the first interface 121, and a third end of the fourth switch 130 is connected to the second interface 122. When the first interface 121 is the target interface, the first end and the second end of the fourth switch 130 are controlled to communicate, so as to communicate the path between the communication control circuit 200 and the first interface 121. When the second interface 122 is the target interface, the first terminal and the third terminal of the fourth switch 130 are controlled to communicate, so as to communicate the 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, the 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 the interface information according to the interface detection information. The interface detection information may be, for example, a voltage signal, a current signal, or the like of the interface 120. The analog-to-digital converter has wider range of detectable signals, and the interface information is confirmed by adopting the analog-to-digital converter, so that 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 the transceiving 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 state 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 mode.
The signal processing mode may be a signal reception mode. In the signal reception mode, the communication control circuit 200 receives a communication signal. The signal processing mode may also be a signaling 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 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 with 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 terminals of the second switch 222 are respectively connected to the first input terminal and the output terminal of the comparator.
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, that is, a communication signal transmitted by the interface circuit in a receiving state. The second communication signal is a communication signal required to be sent by the TYPE-C interface communication circuit, that is, 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 terminal 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 a second input of the comparator 223 and the first communication signal is input to a 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 less 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 an emitter 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 comparator 223 now behaves as a follower, the signal at the second input of comparator 223 is provided by reference circuit 210. Therefore, the comparator 223 can output the second communication signal to be transmitted by controlling the reference signal output by the reference circuit 200. It is understood that the second communication signal may be a square wave signal including high and low levels, and when it is required to output a high level, the reference circuit 210 may be caused to output a reference signal of a high level. When it is necessary to output a low level, the reference circuit 210 may be caused to output a reference signal of a low level.
In some embodiments, the reference circuit 210 is configured to output a corresponding reference signal according to a transceiving state of the interface circuit 100. Referring to fig. 4, fig. 4 is a schematic structural diagram illustrating 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 terminal 212, a second reference terminal 213, and a third reference terminal 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 a first reference signal through the first reference terminal 212, may output a second reference signal through the second reference terminal 213, and may output a 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 the signal receiving mode, that is, the first input terminal of the comparator 223 inputs the first communication signal. The comparator 223 further compares the first communication signal with a 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 less than the first communication signal, the output of the comparator 223 outputs a low level. As an example, the second reference signal may be 0.6V, that is, if the first communication signal is at a low level, the first communication signal is less than 0.6V, and the comparator 223 outputs a high level. If the first communication signal is at a high level, the first communication signal is greater than 0.6V, and the comparator 223 outputs a 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 a transmit state. Specifically, one end of the third switch 211 is connected to the first reference terminal 212 or the third reference terminal 214 according to the level of the second communication signal to be output; or switched between connection 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 to be transmitted 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 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 according to 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, that is, the second communication signal is formed by alternately 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 it is required to output a low level, one end of the third switch 211 is switched to the first reference terminal 212, that is, one end of the third switch 211 is connected to the first reference terminal 212, 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 a low level signal according to the first reference signal output by the first reference terminal 212. Illustratively, the first reference signal may be a ground signal.
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 a high level signal according to the third reference signal output by the third reference terminal 214. Illustratively, the third reference signal may be a 1.2V signal.
In some embodiments, the reference module may be a digital-to-analog converter. The digital-to-analog converter may generate a first reference signal, a second reference signal, and a third reference signal, respectively, according to the corresponding input code value. The digital-to-analog converter can provide a wider range of reference signals, and thus can adapt to more application scenarios.
In some embodiments, referring to fig. 5, fig. 5 is a schematic structural diagram of a TYPE-C interface communication circuit according to a further 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 the signal receiving mode when the first switch 221 is turned on and the second switch 222 is turned 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 obtain the high level signal of the first communication signal at the time of the 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 acquires the low level signal of the first communication signal at the rising edge, that is, the interrupt unit 2241 generates the second interrupt signal when the first communication signal is converted 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 from the interrupt signal. For example, the interrupt unit 2241 generates a 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 counting the duration of the high level. After time t1, when the interrupt unit 2241 switches from high to low in the first communication signal, it generates a second interrupt signal to the timer 2242, and the timer 2242 finishes the timing of the high duration, i.e. the high duration is t 1. And at the same time, the timer 2242 starts counting the duration of the low level.
Further, the communication-signal processing unit 224 acquires the interrupt signal of the interrupt unit 2241 and the counted time of the timer 2242, thereby determining the first communication signal according to the time of the high-low level and the duration of the high-low level. Thus, the first communication signal may be further processed by the communication signal processing unit.
Compared with other quick charging protocols, the USB-PD protocol is complex and needs BMC coding and decoding, 485B coding and decoding, CRC check and the like. In the related art, the above processing needs to be implemented by setting up a multi-gate logic circuit and adding a plurality of reference devices and comparators in the circuit, 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 upgrades, because the hardware device can't carry on the corresponding upgrade, and can't lead to discerning the communication signal, the flexibility is bad.
Whereas 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, 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 greatly changed, the USB-PD protocol can be flexibly adapted.
In some embodiments, the communication signal processing unit 2241 may further perform encoding and checking 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 illustrates 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. The integrated circuit 3000 is provided in the device body 3100.
In this embodiment, the electronic device 3000 may be a mobile phone or smart phone (e.g., an iPhone (TM) based phone), a Portable game device (e.g., Nintendo DS (TM), PlayStation Portable (TM), game Advance (TM), iPhone (TM)), a laptop, a PDA (Personal Digital Assistant (PDA)), a Portable internet device, a music player, and a data storage device, other handheld devices, and wearable devices such as a watch, a headset, a pendant, etc., 5000300 may also be other wearable devices (e.g., a Head Mounted Device (HMD) such as electronic glasses, electronic clothing, an electronic bracelet, an electronic necklace, an electronic tattoo, or a smart watch).
The electronic device 3000 may also be any of a 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, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving Picture experts group (MPEG-1 or MPEG-2) Audio layer 3(MP3) 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 is to generate a corresponding reference signal according to the transmission/reception state of the interface circuit.
Step S120, setting a corresponding signal processing mode according to the receiving and sending states of the interface circuit.
And step S130, controlling the interface circuit to complete the transceiving of the communication signal according to the reference signal and the signal processing mode.
In some embodiments, the communication signal includes 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.
And step S121, when the interface circuit is in a receiving state, turning on the first switch and turning off the second switch so as to connect the output end of the comparator and the communication signal processing module through the first switch, thereby entering a signal receiving mode.
And step S122, when the interface circuit is in a sending state, disconnecting the first switch, and connecting the second switch to connect the first input end of the comparator and the output end of the comparator through the second switch so as to enter a signal sending 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.
And step S111, when the interface circuit is in a receiving state, connecting one end of the third switch and the second reference end so that the comparison 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 a first reference end; or one end of the third switch is connected with the third reference end, so that the comparator generates the 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 increased.
In some embodiments, a 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.
Step S140 is to generate a comparison signal based on the reference signal and the received communication signal when the first switch is turned on and the second switch is turned off.
And step S150, generating an interrupt signal according to the comparison signal.
And step S160, determining the duration of the interrupt signal.
And step S170, generating a decoding signal according to the interrupt signal and the duration of the interrupt signal.
In some embodiments, prior to step S110, the method may further include the following steps.
First, interface information is acquired.
Then, a target interface is determined according to the interface information, so that the communication signal is transmitted and received through the target interface.
Further, the interface circuit comprises at least two interfaces, at least two interface detection ends 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.
Then, 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 present application provides a TYPE-C interface communication circuit, a method, an integrated circuit and an electronic device, the TYPE-C interface circuit includes an interface circuit and a communication control circuit, wherein the interface circuit is used for transmitting a communication signal, 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 a transceiving 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 transceiving state of the interface circuit, the communication control circuit controls the interface circuit to complete transceiving of the communication signal according to the reference signal and the signal processing mode, thereby setting the corresponding signal processing mode according to the transceiving state of the interface circuit and outputting the corresponding reference signal, so that the communication control circuit can be used for receiving the communication signal, the method can be used for sending communication signals, and the communication signals can be sent and received by adjusting the corresponding reference signals, so that the required hardware devices are reduced, the cost is effectively reduced, the circuit area is reduced, and the flexibility of the circuit can be improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

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 sending states of the interface circuit; and the communication control circuit controls the interface circuit to complete the transceiving of the communication signal according to the reference signal and the signal processing mode.
2. The circuit of claim 1, wherein the communication signal comprises a first communication signal and a second communication signal, and wherein the communication signal processing circuit comprises a first switch, a second switch, a comparator, and a communication signal processing module;
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 sending 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 sending mode and sends a second communication signal to the interface circuit.
3. The circuit of claim 2, wherein the reference circuit comprises a third switch and a reference block, the reference block 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.
4. The circuit of claim 3, wherein the reference circuit further comprises a digital-to-analog converter configured to generate the first reference signal, the second reference signal, and the third reference signal.
5. The circuit according to any one of claims 2-4, wherein the communication signal processing module comprises an interrupt unit, a timer, and a communication signal processing unit;
when the first switch is turned on and the second switch is turned off, the comparator is used for generating a comparison signal according to the reference signal and the first communication signal; 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.
6. The circuit of claim 1, wherein the interface circuit is further configured to obtain interface information and determine a target interface according to the interface information, so that the communication control circuit transmits and receives the communication signal through the target interface.
7. The circuit of claim 6, 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 so as to obtain 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 receives and transmits the communication signal through the target interface.
8. The circuit of claim 7, 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.
9. An integrated circuit comprising the TYPE-C interface communication circuit of any of claims 1 to 9.
10. An electronic device comprising a device body and the integrated circuit of claim 9 disposed in the device body.
11. A TYPE-C interface communication method applied to the TYPE-C interface communication circuit according to any one of claims 1 to 8, the method 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 transceiving of the communication signal according to the reference signal 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 true CN113792005A (en) 2021-12-14
CN113792005B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114779915A (en) * 2022-04-06 2022-07-22 上海艾为电子技术股份有限公司 Interface detection module and method, power management chip and electronic equipment
WO2023016458A1 (en) * 2021-08-12 2023-02-16 芯海科技(深圳)股份有限公司 Type-c interface communication circuit and method, integrated circuit, and electronic device

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 (10)

* 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
US20200278945A1 (en) * 2017-10-31 2020-09-03 Huawei Technologies Co., Ltd. Electronic device having usb type-c interface, control method, and readable storage
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

Cited By (3)

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

Also Published As

Publication number Publication date
CN113792005B (en) 2024-04-19
WO2023016458A1 (en) 2023-02-16

Similar Documents

Publication Publication Date Title
WO2023016458A1 (en) Type-c interface communication circuit and method, integrated circuit, and electronic device
US9484759B2 (en) Method for detecting a type of charger coupled to an input-output circuit and input-output circuit therefor
US7130184B2 (en) Portable terminal with multipurpose earjack
US10389153B2 (en) Charging control method and mobile terminal
US9077195B2 (en) Input-output circuit
US8749221B2 (en) Input-output circuit
CN108347719B (en) Bluetooth device connection method, device, storage medium, mobile terminal and server
CN107613126B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN107770759B (en) Bluetooth voice link establishing method and device, storage medium and mobile terminal
US9223727B2 (en) Input-output circuit
CN102483728A (en) Device-dependent selection between modes for asymmetric serial protocols
CN109495871B (en) Bluetooth connection control method, electronic device and computer readable storage medium
KR102614447B1 (en) Electronic device for adjusting peak voltage of uwb transmitting signal based on a length of frame of data and method for the same
US20140273832A1 (en) Apparatus and method for connecting antenna for nearfield communication in portable terminal
US20210120608A1 (en) Method for establishing communication connection and related products
US11903054B2 (en) Method for establishing communication connection and related products
US20220417645A1 (en) Electronic device for audio, and method for managing power in electronic device for audio
KR20210002822A (en) Electronic device for performing ranging and method thereof
WO2023134341A1 (en) Wireless charging device
CN111338905A (en) Application node data processing method and device
KR100651204B1 (en) System and Method for interfacing with external device in portable terminal
CN115631738A (en) Audio data processing method and device, electronic equipment and storage medium
US7885676B2 (en) Wireless communication device and marginal transmission power determining method
US20050102541A1 (en) System controller for controlling an output state
CN104468942A (en) Information processing method, device and electronic equipment

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