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

文档序号:1963668 发布日期:2021-12-14 浏览:10次 中文

阅读说明:本技术 Type-c接口通信电路、方法、集成电路以及电子设备 (TYPE-C interface communication circuit, method, integrated circuit and electronic equipment ) 是由 赖奕佳 杨乐 于 2021-08-12 设计创作,主要内容包括:本申请公开了一种TYPE-C接口通信电路、方法、集成电路以及电子设备,其中,接口电路用于传输通信信号,通信控制电路包括基准电路和通信信号处理电路,基准电路用于根据接口电路的收发状态输出对应的基准信号,通信信号处理电路用于根据接口电路的收发状态设置通信信号处理电路至对应的信号处理模式,通信控制电路根据基准信号和信号处理模式,控制接口电路完成对通信信号的收发,从而根据接口电路的收发状态设置对应的信号处理模式和输出对应的基准信号,使通信控制电路既可以用于通信信号的接收,也可以用于通信信号的发送,通过调整对应的基准信号可以实现对通信信号进行收发,所需硬件器件减少,有效降低成本,减少电路面积,可提高电路的灵活性。(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.)

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.

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.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:具有高速缓存一致性的设备间处理系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!