A receiving end, electronic equipment, system and common mode level adjustment method
By using analog-to-digital conversion and comparator adaptively adjusting the common mode level at the receiver end of the Type-C interface, the signal inaccuracy caused by the difference in common mode level between the transmitter and receiver ends is solved, and the accurate signal transmission and correct information interaction are achieved.
Patent Information
- Application Number
- CN202510565851.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2045-04-30
AI Technical Summary
In the fast charging technology of the Type-C interface, the common mode level difference between the transmitter and receiver is large, resulting in inaccurate reception of CC signals and affecting communication quality.
The analog voltage of the preamble is converted into a digital voltage through an analog-to-digital conversion circuit. The processor sets the reference voltage of the comparator according to the digital voltage, and the filtering circuit filters out the noise signal, and adaptively adjusts the common mode level of the receiver to match the common mode level of the transmitting terminal.
It improves the accuracy of CC signals, ensures the correctness of information interaction, makes up for the level losses caused by cables, ESD devices and connectors, and improves the signal quality of the communication system.
Smart Images

Figure CN120086168B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a receiving end, an electronic device, a system, and a common-mode level adjustment method. Background Art
[0002] Many electronic devices use Type-C interfaces for communication and charging. The Type-C interface adopts a symmetrical upper and lower side design, and the socket is a flat rectangular shape.
[0003] With the adoption of the Type-C interface, Power Delivery (PD) communication within fast charging technology is becoming increasingly important. However, as PD power increases, Type-C cable losses also increase, potentially leading to significant differences in ground levels between the transmitting and receiving PD devices. During PD communication, the common-mode voltage levels on the Configuration Channel (CC) line differ significantly between the transmitting and receiving ends, affecting CC signal reception. Summary of the Invention
[0004] In view of this, embodiments of the present application provide a receiving end, an electronic device, a system, and a common-mode level adjustment method, which can adaptively adjust the common-mode level to improve the accuracy of the CC signal transmitted between the transmitting end and the receiving end.
[0005] The embodiment of the present application provides a receiving end, comprising: an analog-to-digital conversion circuit, a comparator, and a processor;
[0006] The configuration channel of the receiving end is used to connect to the sending end; the interface corresponding to the configuration channel is located on the Type-C interface;
[0007] The analog-to-digital conversion circuit is configured to sample the preamble code sent by the transmitting end and received by the configuration channel, convert the analog voltage corresponding to the preamble code into a digital voltage, and send the digital voltage to the processor;
[0008] The processor sets a reference voltage of a first input terminal of the comparator according to the digital voltage, a second input terminal of the comparator is used to connect to the configuration channel, and an output terminal of the comparator is used to connect to a configuration channel decoding module.
[0009] A possible implementation method further includes: a filtering circuit;
[0010] The input end of the filter circuit is connected to the output end of the analog-to-digital conversion circuit, and the output end of the filter circuit is connected to the processor;
[0011] The filtering circuit is used to filter out noise signals in the digital voltage.
[0012] In one possible implementation, the processor is used to set the reference voltage of the first input terminal of the comparator according to M high levels in the digital voltage, and the preamble code includes N groups of alternating high and low level data; the M is less than the N, and both M and N are integers.
[0013] In a possible implementation, M is greater than or equal to N / 2.
[0014] In a possible implementation, the processor is configured to record a maximum value of the digital voltage within a preset period, and obtain M maximum values within M preset periods as M high levels.
[0015] In a possible implementation, the processor is configured to obtain an average value of the M high levels, and obtain the reference voltage according to a difference between half of a standard amplitude of the signal of the configuration channel and the average value.
[0016] An embodiment of the present application also provides an electronic device, including the receiving end introduced above.
[0017] An embodiment of the present application also provides a communication system, including the electronic device described above, and also including a transmitting end; the transmitting end is connected to the configuration channel of the receiving end; the transmitting end and the receiving end communicate through the configuration channel.
[0018] In a possible implementation, the transmitting end is further used to charge the receiving end through the Type-C interface.
[0019] An embodiment of the present application also provides a common-mode level adjustment method, including: receiving a preamble code sent by a transmitting end, converting an analog voltage corresponding to the preamble code into a digital voltage; setting a reference voltage of a first input end of a comparator according to the digital voltage, the second input end of the comparator is used to connect to a configuration channel, and the output end of the comparator is used to connect to a configuration channel decoding module.
[0020] It can be seen that the embodiments of the present application have the following beneficial effects:
[0021] The receiving end provided in the embodiment of the present application adjusts the reference voltage of the internal comparator according to the voltage of the signal in the received preamble code, thereby adapting the common mode level of the transmitting end so that the common mode level of the receiving end matches the common mode level of the transmitting end. In this way, the accuracy of the signal from the transmitting end received by the configuration channel CC of the receiving end can be guaranteed, thereby ensuring the correctness of information exchange. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of a receiving end provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of another receiving end provided in an embodiment of the present application;
[0024] Figure 3 A schematic diagram of an electronic device provided in an embodiment of the present application;
[0025] Figure 4 A schematic diagram of a communication system provided in an embodiment of the present application;
[0026] Figure 5 A flowchart of a common-mode level adjustment method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0028] The interface corresponding to the configuration channel CC is located on the Type-C interface.
[0029] The receiving end provided in the embodiments of this application is not specifically applicable to existing scenarios, and can be located in any electronic device using a Type-C interface. Because the transmitting end exchanges information with the receiving end, if the common-mode voltage levels of the transmitting end and the receiving end differ significantly, the signals communicated by the transmitting end and the receiving end may be misinterpreted by the other end, for example, misinterpreting a 1 as a 0 or a 0 as a 1.
[0030] The sending end can be a charger or other device with a Type-C interface.
[0031] See also Figure 1 , which is a schematic diagram of a receiving end provided in an embodiment of the present application.
[0032] The receiving end 100 provided in the embodiment of the present application includes: an analog-to-digital conversion circuit 10, a comparator 20 and a processor 30; the present application does not specifically limit the form of the processor 30, for example, it can be a single-chip microcomputer, a microprocessor, etc.
[0033] The configuration channel CC of the receiving end is used to connect to the transmitting end 200; the interface corresponding to the configuration channel CC is located on the Type-C interface.
[0034] The analog-to-digital conversion circuit 10 is used to sample the preamble code sent by the transmitter 200 and received by the configured channel, convert the analog voltage corresponding to the preamble code into a digital voltage and send it to the processor 30 .
[0035] When the transmitter 200 and receiver 100 are connected via a Type-C cable, the configuration channel (CC) enters the Attach state. When the transmitter, such as a charger, initiates communication on the configuration channel (CC), the CC link goes from the Idle state to the Busy state. Receiver 100 first receives a preamble, which can be, for example, 32 groups of alternating 0s and 1s.
[0036] It should be understood that the voltage of the preamble represents the size of the common-mode level of the transmitter. Therefore, the receiver can judge the size of the common-mode level of the transmitter based on the voltage of the signal in the preamble, and then adjust the size of its own common-mode level to match the common-mode level of the receiver with that of the transmitter.
[0037] The processor 30 sets a reference voltage of the first input terminal of the comparator 20 according to the digital voltage. The second input terminal of the comparator 20 is used to connect to the configuration channel CC. The output terminal of the comparator 20 is used to connect to the configuration channel decoding module.
[0038] Since the comparator 20 receives the signal from the configuration channel CC, compares the signal from the configuration channel CC with the reference voltage, and outputs the comparison result to the configuration channel decoding module, according to the working principle of the comparator 20, the magnitude of the reference voltage directly determines whether the output comparison result is 1 or 0.
[0039] The receiving end provided in the embodiment of the present application adjusts the reference voltage of the internal comparator according to the voltage of the signal in the received preamble code, thereby adapting the common mode level of the transmitting end so that the common mode level of the receiving end matches the common mode level of the transmitting end. In this way, the accuracy of the signal from the transmitting end received by the configuration channel CC of the receiving end can be guaranteed, thereby ensuring the correctness of information exchange.
[0040] The embodiment of the present application does not specifically limit the direction of the signal after the transmitter and the receiver officially start communicating, which can be bidirectional, but the receiver will automatically adapt to the common mode level of the transmitter, thereby ensuring the accuracy of communication between the two parties.
[0041] See also Figure 2 , this figure is a schematic diagram of another receiving end provided in an embodiment of the present application.
[0042] The receiving end provided in the embodiment of the present application further includes: a filtering circuit 40;
[0043] The input end of the filter circuit 40 is connected to the output end of the analog-to-digital conversion circuit 10 , and the output end of the filter circuit 40 is connected to the processor 30 ;
[0044] The filter circuit 40 is used to filter out noise signals in the digital voltage.
[0045] The filter circuit 40 is mainly used to filter out high-frequency signals and periodic fluctuation signals.
[0046] It should be understood that when the receiving end is actually working, glitches, level overshoots, or abnormal drop signals may occur, causing signal instability. Therefore, in order to accurately identify the common-mode level of the transmitting end, the embodiment of the present application uses a filtering circuit to filter out noise signals and only sends the digital voltage after the noise signal is filtered out to the processor 40. The digital voltage received by the processor 40 is a relatively accurate voltage signal that can accurately reflect the common-mode level of the transmitting end.
[0047] The receiving end provided in the embodiment of the present application does not specifically limit the specific form in which the processor obtains the reference voltage based on the preamble. For example, in one possible implementation, the processor obtains the reference voltage only based on the high level in the preamble. In order to better characterize the common-mode voltage of the transmitting end, the processor can obtain the reference voltage by obtaining the average value of multiple high levels in the preamble. Specifically, the processor is used to set the reference voltage of the first input terminal of the comparator based on M high levels in the digital voltage, where the preamble includes N groups of alternating high and low levels; M is less than N, and both M and N are integers. For example, if N is 32, M can generally be an integer greater than or equal to 2 and less than N.
[0048] In one possible implementation, to accurately represent the common-mode level at the transmitter, M is generally greater than or equal to N / 2. For example, when N is 32, M can be greater than or equal to 16, that is, greater than or equal to half of N. A value greater than 16 is preferred to more accurately represent the common-mode level at the transmitter.
[0049] In actual operation, the voltage corresponding to a 1 in the preamble varies due to the varying magnitudes of the high level. For example, the voltage corresponding to the high level sampled by the analog-to-digital conversion circuit may be 0.7V, 0.8V, 0.9V, or 1.0V. To facilitate processing, the data is streamlined. The processor can use only the highest digital voltage value within a period to calculate the average value, discarding the remaining digital voltages. Specifically, the processor is configured to record the highest digital voltage value within a preset period, obtaining the M highest values within M preset periods as the M high levels. For example, the analog-to-digital conversion circuit sends five digital voltages to the processor within a preset period, but the processor only records the highest of the five digital voltages. If M is 16, the processor records the 16 highest values within 16 preset periods, averages these 16 highest values, and uses the average value to set the reference voltage of the comparator. For example, if the M highest values are V1, V2, and VM, the average value Vh is (V1 + V2 + V3 + ... + VM) / M.
[0050] In a specific implementation, the processor is configured to obtain an average value of M high levels and obtain a reference voltage according to a difference between half of a standard amplitude of a signal of a configuration channel and the average value.
[0051] According to the PD protocol specification, the voltage corresponding to the amplitude of the signal sent by the configuration channel CC is generally between 1.1V and 1.2V. For example, if the standard amplitude of the signal for the configuration channel CC is 1.1V, half of 1.1V is 0.55V, which corresponds to an average standard of 0.55V. Therefore, it can be inferred that the common-mode level of the current configuration channel CC should be at the maximum level (Vh-0.55). In other words, (Vh-0.55) is set as the reference voltage of the comparator.
[0052] The receiving end provided in the embodiment of the present application can automatically detect the preamble code sent by the transmitting end to identify the common-mode level of the transmitting end, thereby adaptively adjusting the common-mode level of the receiving end so that the sampling level of the configuration channel CC is adapted to the transmitting end, thereby being able to adaptively receive any level data sent by the transmitting end and compensate for the level loss caused by cable loss, ESD devices, common-mode inductors or connectors, etc.
[0053] Based on a receiving end provided in the above embodiment, an embodiment of the present application further provides an electronic device, which is described in detail below with reference to the accompanying drawings.
[0054] See also Figure 3 , which is a schematic diagram of an electronic device provided in an embodiment of the present application.
[0055] The electronic device 1000 provided in the embodiments of the present application includes the receiving end 100 described in the above embodiments. The electronic device can be a terminal device such as a computer, mobile phone, tablet, or display, and the embodiments of the present application do not specifically limit the specific type of electronic device. The electronic device may also include a battery, that is, the transmitting end can charge the electronic device.
[0056] Since the electronic device provided in the embodiment of the present application can adapt to the common mode level of the transmitting end, the signal quality of communication with the transmitting end can be improved, and the defect of signal recognition error caused by the mismatch of the common mode levels at both ends can be compensated.
[0057] Based on a receiving end and an electronic device provided in the above embodiments, an embodiment of the present application further provides a communication system, which is described in detail below with reference to the accompanying drawings.
[0058] See also Figure 4 , which is a schematic diagram of a communication system provided in an embodiment of the present application.
[0059] The communication system provided in the embodiment of the present application includes the electronic device 1000 introduced in the above embodiment, and also includes a transmitting end 200.
[0060] The sending end 200 is connected to the configuration channel of the receiving end 100; the sending end 200 and the receiving end 100 communicate through the configuration channel.
[0061] Due to the communication system provided by the embodiment of the present application, the receiving end can adapt to the common mode level of the transmitting end, thereby improving the signal quality of communication between the receiving end and the transmitting end, and compensating for the defect of signal recognition error caused by the mismatch of the common mode levels at both ends.
[0062] In the communication system provided in the embodiment of the present application, the transmitting end is also used to charge the receiving end through the Type-C interface.
[0063] Based on the receiving end, electronic device and communication information provided in the above embodiments, the embodiments of the present application further provide a common-mode level adjustment method, which is described in detail below with reference to the accompanying drawings.
[0064] See also Figure 5 , which is a flow chart of a common-mode level adjustment method provided in an embodiment of the present application.
[0065] The common-mode level adjustment method provided in the embodiment of the present application includes:
[0066] S501: Receive a preamble sent by a transmitting end, and convert an analog voltage corresponding to the preamble into a digital voltage;
[0067] S502: Setting a reference voltage at a first input terminal of a comparator according to a digital voltage, wherein a second input terminal of the comparator is connected to a configuration channel, and an output terminal of the comparator is connected to a configuration channel decoding module.
[0068] The common-mode level adjustment method provided in the embodiments of the present application can automatically detect the preamble sent by the transmitter to identify the common-mode level of the transmitter, thereby adaptively adjusting the common-mode level of the receiver to adapt the sampling level of the configuration channel CC to the transmitter. This allows the receiver to adaptively receive any level data sent by the transmitter, compensating for cable losses, and level losses caused by electrostatic discharge (ESD) devices, common-mode inductors, or connectors.
[0069] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.
[0070] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or plural.
[0071] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0072] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0073] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A receiving end, characterized in that: include: Analog-to-digital conversion circuits, comparators, and processors; The configuration channel of the receiving end is used to connect to the sending end; the interface corresponding to the configuration channel is located on the Type-C interface; The analog-to-digital conversion circuit is configured to sample the preamble code sent by the transmitting end and received by the configuration channel, convert the analog voltage corresponding to the preamble code into a digital voltage, and send the digital voltage to the processor; The processor sets a reference voltage of a first input terminal of the comparator according to the digital voltage, a second input terminal of the comparator is used to connect to the configuration channel, and an output terminal of the comparator is used to connect to a configuration channel decoding module; The processor is used to set the reference voltage of the first input terminal of the comparator according to M high levels in the digital voltage, and the preamble code includes N groups of alternating high and low level data; the M is less than the N, and M and N are both integers.
2. The receiving end according to claim 1, characterized in that Also includes: filter circuit; The input end of the filter circuit is connected to the output end of the analog-to-digital conversion circuit, and the output end of the filter circuit is connected to the processor; The filtering circuit is used to filter out noise signals in the digital voltage.
3. The receiving end according to claim 1, wherein: The M is greater than or equal to N / 2.
4. The receiving end according to claim 1, wherein: The processor is used to record the highest value of the digital voltage within a preset period, and obtain M highest values within M preset periods as M high levels.
5. The receiving end according to claim 4, characterized in that The processor is configured to obtain an average value of the M high levels, and obtain the reference voltage according to a difference between half of a standard amplitude of the signal of the configuration channel and the average value.
6. An electronic device, characterized in that: The invention comprises the receiving end described in any one of claims 1 to 5.
7. A communication system, characterized in that: The electronic device according to claim 6 further comprises a transmitting end; The sending end is connected to the configuration channel of the receiving end; the sending end and the receiving end communicate through the configuration channel.
8. The communication system according to claim 7, wherein: The transmitting end is also used to charge the receiving end through the Type-C interface.
9. A reference voltage adjustment method, characterized in that: Applied to a receiving end including a Type-C interface; the configuration channel of the Type-C interface is used to connect to a transmitting end; the method includes: receiving a preamble code sent by the transmitting end, and converting an analog voltage corresponding to the preamble code into a digital voltage; The processor sets a reference voltage of a first input terminal of a comparator according to M high levels in the digital voltage, the preamble code includes N groups of alternating high and low level data; the M is less than the N, and both M and N are integers, the second input terminal of the comparator is used to connect to the configuration channel, and the output terminal of the comparator is used to connect to a configuration channel decoding module.
Citation Information
Patent Citations
System and method for reception of noisy BMC data in USB PD communication
US20230010655A1