Signal line level conversion device, system and method
By using the control module, the measurement module, the switch module and the signal line to be tested in the signal line level conversion device, efficient signal line level conversion is achieved while reducing the number of connecting lines, solving the signal line voltage problem in the existing technology. It solves the problem of poor flat conversion effect and meets the multi-functional needs of electronic equipment.
Patent Information
- Application Number
- CN202410805460.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-27
AI Technical Summary
The existing signal line level conversion effect is poor, especially when the number of connecting lines is reduced, it is difficult to meet the needs of signal lines with different voltages or amplitudes, which affects the size reduction and function realization of electronic equipment.
Design a signal line level conversion device, including a control module, a measurement module, a switch module and a signal line to be tested. The control module issues a level conversion control instruction. The switch module outputs a corresponding level signal, and the signal line to be tested is According to the instructions, the loop to the reference ground is connected or disconnected, and the measurement module measures the level signal to complete the conversion.
While reducing the number of connecting lines, it achieves effective transformation of signal line levels to meet different level requirements, and improves the compatibility of functional implementation and size reduction of electronic equipment.
Smart Images

Figure CN118713653A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of hardware circuit detection, and in particular to a signal line level conversion device, system and method. Background Art
[0002] Nowadays, in order to meet the needs of consumers for portability, the size of various electronic devices is constantly shrinking. For electronic devices with multiple circuit boards inside and the circuit boards connected by wiring harnesses, reducing the size of the circuit boards or the number of connecting wires is a good choice. As for the latter, since current electronic devices have many functions, they need to be implemented through power lines of different voltages or signal lines of different amplitudes, which is contradictory to reducing the size by reducing the number of connecting wires. Moreover, after reducing the number of connecting wires, the electrical-frequency conversion effect of the signal line is poor. Summary of the invention
[0003] The main purpose of the present application is to provide a signal line level conversion device, system and method, aiming to solve the technical problem that the existing signal line level conversion effect is poor.
[0004] To achieve the above-mentioned purpose, the present application proposes a signal line level conversion device, the signal line level conversion device comprising: a control module, a measuring module, a switch module and a signal line to be tested, the measuring module is respectively connected to the control module, the switch module and the signal line to be tested, the switch module is respectively connected to the input end of the signal line to be tested and the control module, and the output end of the signal line to be tested is connected to a reference ground;
[0005] The control module is used to issue a level conversion control instruction to the switch module and the signal line to be tested;
[0006] The switch module is used to output a corresponding level signal to the signal line to be tested according to the level conversion control instruction;
[0007] The signal line to be tested is used to connect or disconnect the loop between the signal line and the reference ground according to the level conversion control instruction;
[0008] The measuring module is used to measure the level signal output by the switch module and the level signal output by the signal line to be tested, so as to complete the signal line level conversion.
[0009] In one embodiment, the signal line level conversion device further comprises: an activation module, the activation module is arranged between the signal line to be tested and the reference ground, and the activation module is also connected to the control module;
[0010] The activation module is used to receive the level conversion control instruction sent by the control module, and connect or disconnect the loop between the signal line to be tested and the reference ground according to the level conversion control instruction.
[0011] In one embodiment, the signal line to be tested includes a first signal line to be tested and a second signal line to be tested, and the activation module includes: a first activation unit and a second activation unit, the first activation unit is provided on a loop between the first signal line to be tested and the reference ground, and the second activation unit is provided on a loop between the second signal line to be tested and the reference ground;
[0012] The first activation unit and the second activation unit are used to connect the loop between the first signal line to be tested and the reference ground and the loop between the second signal line to be tested and the reference ground when the level conversion control instruction sent by the control module is not received.
[0013] In one embodiment, the first activation unit is further configured to maintain the loop connection between the first signal line to be tested and the reference ground when receiving the level conversion control instruction sent by the control module;
[0014] The second activation unit is further configured to disconnect the loop between the second signal line to be tested and the reference ground and send a feedback signal to the control module when receiving the level conversion control instruction sent by the control module;
[0015] The control module is further configured to send the level conversion control instruction to the switch module according to the feedback signal;
[0016] The switch module is further used to output corresponding control signals to the first signal line to be tested and the second signal line to be tested according to the level conversion control instruction;
[0017] The measuring module is further used to measure the level signals output by the first signal line to be tested and the second signal line to be tested and the control signal output by the switch module.
[0018] In one embodiment, the control module is further configured to generate a connection signal to the second activation unit after the switch module outputs the corresponding control signal to the first signal line to be tested and the second signal line to be tested;
[0019] The second activation unit is used to connect the loop between the second signal line to be tested and the reference ground according to the connection signal;
[0020] The measuring module is further used to measure the level signal output by the second signal line to be tested.
[0021] In one embodiment, the switch module includes: a first switch unit and a second switch unit, an enable end of the first switch unit and an enable end of the second switch unit are both connected to the control module, an input end of the first switch unit and an input end of the second switch unit are both connected to a power supply, an output end of the first switch unit is connected to an input end of the first signal line to be tested, and an output end of the second switch unit is connected to an input end of the second signal line to be tested;
[0022] The first switch unit is used to disconnect the circuit loop between the first signal line to be tested when the level conversion control instruction sent by the control module is not received;
[0023] The second switch unit is used to disconnect the circuit loop between the second signal line to be tested when the level conversion control instruction sent by the control module is not received.
[0024] In one embodiment, the first switch unit is further used to connect the circuit loop between the first signal line to be tested and output a high-level control signal to the first signal line to be tested when receiving the level conversion control instruction sent by the control module;
[0025] The second switch unit is further configured to connect the circuit loop between the second signal line to be tested and output a low-level control signal to the second signal line to be tested when receiving the level conversion control instruction sent by the control module.
[0026] In addition, to achieve the above-mentioned purpose, the present application also proposes a signal line level conversion system, the signal line level conversion system comprising: a terminal, a switching device, a communication device, a power supply, and the signal line level conversion device described above, the terminal, the communication device, the signal line level conversion device, and the power supply are connected in sequence, and the switching device is connected to the signal line to be tested in the signal line level conversion device;
[0027] The terminal is used to issue a control instruction and transmit the control instruction to the control module in the signal line level conversion device through the communication device;
[0028] The adapter is used to provide a conversion interface for the signal line to be tested, so that the measuring module in the signal line level conversion device measures the level signal output by the signal line to be tested based on the conversion interface;
[0029] The power supply is used to provide power to the switch module in the signal line level conversion device.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a signal line level conversion method, which is applied to the signal line level conversion device described above, and the method includes:
[0031] The control module sends a level conversion control instruction to the switch module and the signal line to be tested;
[0032] The switch module outputs a corresponding level signal to the signal line to be tested according to the level conversion control instruction;
[0033] The signal line to be tested is connected or disconnected from the loop between the signal line and the reference ground according to the level conversion control instruction;
[0034] The measuring module measures the level signal output by the switch module and the level signal output by the signal line to be tested to complete the signal line level conversion.
[0035] In one embodiment, after the step of measuring the level signal output by the switch module and the level signal output by the signal line to be tested to complete the signal line level conversion, the method further includes:
[0036] Generate a level signal change diagram according to the level signal output by the switch module and the level signal output by the signal line to be tested;
[0037] The level conversion control instruction is adjusted based on the level signal change diagram.
[0038] One or more technical solutions proposed in this application have at least the following technical effects:
[0039] A control module, a measuring module, a switch module and a signal line to be tested are arranged in a signal line level conversion device, wherein the measuring module is respectively connected to the control module, the switch module and the signal line to be tested, the switch module is respectively connected to the input end of the signal line to be tested and the control module, and the output end of the signal line to be tested is connected to a reference ground; the switch module is used to output a corresponding level signal to the signal line to be tested according to a level conversion control instruction; the signal line to be tested is used to connect or disconnect the loop with the reference ground according to the level conversion control instruction; the measuring module is used to measure the level signal output by the switch module and the level signal output by the signal line to be tested, so as to complete the signal line level conversion. The level can be specified according to the actual output on the signal line to be tested to meet the requirement of reducing the connecting wires, and the effect of the level conversion is not affected when the connecting wires are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A schematic diagram of the structure of the first embodiment of the signal line level conversion device of the present application;
[0043] Figure 2 A structural diagram of the second embodiment of the signal line level conversion device of the present application;
[0044] Figure 3 This is a schematic diagram of controlling the loop between the signal line to be tested and the reference ground by the first activation unit and the second activation unit in one embodiment of the signal line level conversion device of the present application;
[0045] Figure 4 A schematic diagram of the structure of the third embodiment of the signal line level conversion device of the present application;
[0046] Figure 5 This is a schematic diagram of a waveform measured by a measuring module in an embodiment of a signal line level conversion device of the present application;
[0047] Figure 6 This is a structural diagram of the signal line level conversion system of the present application;
[0048] Figure 7 This is a flow chart of the first embodiment of the signal line level conversion method of the present application.
[0049] Description of Figure Numbers:
[0050] Signal line level conversion device 1; control module 10; measurement module 11; switch module 12; first switch unit 121; second switch unit 122; signal line to be tested 13; first signal line to be tested 131; second signal line to be tested 132; activation module 14;
[0051] Power supply 2;
[0052] Terminal 3;
[0053] Switching device 4;
[0054] Communication device 5.
[0055] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0056] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0057] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0058] The main solution of the embodiment of the present application is: by setting a signal line level conversion device, the signal line level conversion device includes: a control module, a measuring module, a switch module and a signal line to be tested, the measuring module is respectively connected to the control module, the switch module and the signal line to be tested, the switch module is respectively connected to the input end of the signal line to be tested and the control module, and the output end of the signal line to be tested is connected to the reference ground; the control module is used to issue a level conversion control instruction to the switch module and the signal line to be tested; the switch module is used to output a corresponding level signal to the signal line to be tested according to the level conversion control instruction; the signal line to be tested is used to connect or disconnect the loop between the reference ground according to the level conversion control instruction; the measuring module is used to measure the level signal output by the switch module and the level signal output by the signal line to be tested to complete the signal line level conversion.
[0059] Since electronic devices in the prior art have many functions, they need to be implemented through power lines with different voltages or signal lines with different amplitudes. If the number of connecting lines of the power lines is reduced, the needs of different level conversions cannot be met.
[0060] The present application provides a solution that can specify the level on the differential signal line according to the actual output to meet the demand for reducing the connection lines.
[0061] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a signal line level conversion device, etc. The following takes the signal line level conversion device as an example to illustrate this embodiment and the following embodiments.
[0062] Based on this, the embodiment of the present application provides a signal line level conversion device, referring to Figure 1 , Figure 1 This is a structural diagram of the first embodiment of the signal line level conversion device of the present application.
[0063] In this embodiment, the signal line level conversion device 1 includes: a control module 10, a measuring module 11, a switch module 12 and a signal line to be tested 13, the measuring module 11 is respectively connected to the control module 10, the switch module 12 and the signal line to be tested 13, the switch module 12 is respectively connected to the input end of the signal line to be tested 13 and the control module 10, and the output end of the signal line to be tested 13 is connected to the reference ground.
[0064] It should be noted that the signal line level conversion device 1 may be an electronic device. When the electronic device is in use, level conversion may be performed. Therefore, it is necessary to set a circuit structure inside the electronic device so as to achieve signal line level conversion.
[0065] In a specific implementation, the control module 10 is located inside the signal line level conversion device 1. The control module 10 can be a microprocessor composed of a single-chip microcomputer or other devices. The control module 10 is mainly used to receive instructions from an external device and generate corresponding control instructions to other modules inside the signal line level conversion device 1 for control.
[0066] It can be understood that the measuring module 11 is respectively connected to the control module 10, the switch module 12 and the signal line 13 to be tested. The measuring module 11 can receive instructions from the control module 10, and can measure the output signal of the switch module 12 and the output signal of the signal line 13 to be tested, so as to determine whether the level conversion of the signal line meets the requirements.
[0067] The control module 10 controls the switch module 12 and the measuring module 11 respectively. The output end of the switch module 12 is connected to the signal line 13 to be tested, and can output a high level or low level control signal to the signal line 13 to be tested.
[0068] In this embodiment, the control module 10 is used to issue a level conversion control instruction to the switch module 12 and the signal line to be tested 13 .
[0069] It can be understood that the level conversion control instruction can be generated by the control module 10 itself, or it can be an instruction received from other external devices. The level conversion control instruction can be converted from a high-level control signal to a low-level control signal, or from a low-level control signal to a high-level control signal, or it can be continuously converted between a low-level control signal and a high-level control signal. This embodiment does not limit this and can be set according to specific conversion requirements to generate corresponding level conversion control instructions.
[0070] The control module 10 sends the level conversion control instruction to the switch module 12 and the signal line to be tested 13 respectively, so as to control the level signal output by the switch module 12 and the level signal output by the signal line to be tested 13 according to the level conversion control instruction.
[0071] In this embodiment, the switch module 12 is used to output a corresponding level signal to the signal line 13 to be tested according to the level conversion control instruction.
[0072] It can be understood that after receiving the level conversion control instruction, the switch module 12 can output a corresponding level signal to the signal line to be tested 13, and the level signal can be a high level signal or a low level signal.
[0073] The signal line to be tested 13 is used to connect or disconnect the loop between the signal line and the reference ground according to the level conversion control instruction.
[0074] It should be noted that the signal line 13 to be tested can be a differential signal line, the number of the signal lines 13 to be tested can be set to multiple, the output end of the signal line 13 to be tested is connected to the reference ground, and the signal line 13 to be tested can connect or disconnect the loop with the reference ground according to the level conversion control instruction, thereby realizing the high and low level conversion.
[0075] In this embodiment, the measuring module 11 is used to measure the level signal output by the switch module 12 and the level signal output by the signal line to be tested 13 to complete the signal line level conversion.
[0076] It should be noted that the measuring module 11 can be an analog signal measuring module or a digital signal measuring module. The measuring module 11 can read and record the level signal output from the switch module 12 and the signal line 13 to be tested, which may include information such as the level, frequency, and waveform.
[0077] In a specific implementation, the signal line level conversion device 1 includes: a control module 10, a measuring module 11, a switch module 12 and a signal line to be tested 13, wherein the measuring module 11 is respectively connected to the control module 10, the switch module 12 and the signal line to be tested 13, the switch module 12 is respectively connected to the input end of the signal line to be tested 13 and the control module 10, and the output end of the signal line to be tested 13 is connected to the reference ground; the control module 10 is used to issue a level conversion control instruction to the switch module 12 and the signal line to be tested 13; the switch module 12 is used to output a corresponding level signal to the signal line to be tested 13 according to the level conversion control instruction; the signal line to be tested 13 is used to connect or disconnect the loop between the reference ground and the signal line to be tested according to the level conversion control instruction; the measuring module 11 is used to measure the level signal output by the switch module 12 and the level signal output by the signal line to be tested 13 to complete the signal line level conversion. The level can be specified on the signal line 13 to be tested according to the actual output to meet the requirement of reducing the connection lines. When the connection lines are reduced, the effect of the level conversion is not affected.
[0078] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 The signal line level conversion device 1 further includes: an activation module 14 , which is disposed between the signal line to be tested 13 and a reference ground, and is also connected to the control module 10 .
[0079] It should be noted that the number of activation modules 14 can be set according to the number of signal lines to be tested 13. For example, if the number of signal lines to be tested 13 is 2, the number of activation modules 14 is also set to 2. The activation module 14 is arranged between the signal line to be tested 13 and the reference ground, so that when connection or disconnection is required, the loop between the signal line to be tested 13 and the reference ground can be controlled by directly controlling the on and off of the activation module 14.
[0080] In this embodiment, the activation module 14 is used to receive the level conversion control instruction sent by the control module 10, and connect or disconnect the loop between the signal line to be tested 13 and the reference ground according to the level conversion control instruction.
[0081] It should be understood that the activation module 14 is also connected to the control module 10, so that it can receive the level conversion control instruction sent by the control module 10. After the activation module 14 receives the level conversion control instruction, it can control the loop between the signal line 13 to be tested and the reference ground according to the level conversion control instruction, for example, disconnecting the loop between the signal line 13 to be tested and the reference ground or connecting the loop between the signal line 13 to be tested and the reference ground.
[0082] The activation module 14 controls the on-off of the loop between the signal line 13 to be tested and the reference ground, thereby realizing the conversion of the level signal output by the signal line 13 to be tested.
[0083] In a feasible implementation, the signal line to be tested 13 includes a first signal line to be tested 131 and a second signal line to be tested 132, and the activation module 14 includes: a first activation unit 141 and a second activation unit 142, the first activation unit 141 is arranged on the loop between the first signal line to be tested 131 and the reference ground, and the second activation unit 142 is arranged on the loop between the second signal line to be tested 132 and the reference ground.
[0084] In a specific implementation, in order to achieve level conversion of the output of the signal line to be tested, the number of the signal lines to be tested 13 can be set. For example, the number of the signal lines to be tested 13 is set to 2, namely the first signal line to be tested 131 and the second signal line to be tested 132, so that the signal lines to be tested 13 are controlled separately to achieve level conversion of the signal lines to be tested 13.
[0085] Since the activation module 14 is arranged corresponding to the signal line to be tested 13, when the signal line to be tested 13 includes the first signal line to be tested 131 and the second signal line to be tested 132, the activation module 14 includes the first activation unit 141 and the second activation unit 142, the first activation unit 141 is arranged corresponding to the first signal line to be tested 131, and the second activation unit 142 is arranged corresponding to the second signal line to be tested 132. Therefore, the first activation unit 141 is arranged on the loop between the first signal line to be tested 131 and the reference ground, so that the loop between the first signal line to be tested 131 and the reference ground can be controlled by the first activation unit 141, and the second activation unit 142 is arranged on the loop between the second signal line to be tested 132 and the reference ground, so that the loop between the second signal line to be tested 132 and the reference ground can be controlled by the second activation unit 142.
[0086] The first activation unit 141 and the second activation unit 142 are used to connect the loop between the first signal line 131 to be tested and the reference ground and the loop between the second signal line 132 to be tested and the reference ground when the level conversion control instruction sent by the control module 10 is not received.
[0087] It can be understood that when the first activation unit 141 and the second activation unit 142 are working, one end of the first activation unit 141 is connected to the first signal line to be tested 131, and the other end of the first activation unit 141 is connected to the reference ground; one end of the second activation unit 142 is connected to the second signal line to be tested 132, and the other end of the second activation unit 142 is connected to the reference ground.
[0088] It should be noted that when the first activation unit 141 and the second activation unit 142 both receive the level conversion control instruction sent by the control module 10, the connection loop between the signal line to be tested 13 and the reference ground is not changed, that is, the loop connection between the first signal line to be tested 131 and the reference ground and the loop connection between the second signal line to be tested 132 and the reference ground are maintained.
[0089] In this embodiment, the first activation unit 141 is further used to keep the loop between the first signal line to be tested 131 and the reference ground connected when receiving the level conversion control instruction sent by the control module 10;
[0090] The second activation unit 142 is further configured to disconnect the loop between the second signal line to be tested 132 and the reference ground and send a feedback signal to the control module 10 when receiving a level conversion control instruction sent by the control module 10 .
[0091] It should be noted that, in this embodiment, the first activation unit 141 is arranged between the first signal line to be tested 131 and the reference ground, and the second activation unit 142 is arranged between the second signal line to be tested 132 and the reference ground. When both the first activation unit 141 and the second activation unit 142 receive the level conversion control instruction sent by the control module 10, it is stipulated that the first activation unit 141 keeps the loop between the first signal line to be tested 131 and the reference ground connected, and at the same time, the second activation unit 142 disconnects the loop between the second signal line to be tested 132 and the reference ground, so as to respond to the level conversion control instruction sent by the control module 10. After the second activation unit 142 disconnects the loop between the second signal line to be tested 132 and the reference ground, a feedback signal can be generated to the control module 10, thereby informing the control module 10 that the loop between the second signal line to be tested 132 and the reference ground has been disconnected at this time.
[0092] In a specific implementation, the first activation unit 141 and the second activation unit 142 are equivalent to the function of a switch. Therefore, the first activation unit 142 and the second activation unit 142 can be switching devices, such as mechanical switching devices or electronic switches, such as toggle switches, transistors, field effect transistors, relays and other devices with switching functions.
[0093] In this embodiment, the control module 10 is further used to send the level conversion control instruction to the switch module 12 according to the feedback signal; the switch module 12 is further used to output corresponding control signals to the first signal line to be tested 131 and the second signal line to be tested 132 according to the level conversion control instruction.
[0094] It can be understood that after receiving the feedback signal, the control module 10 completes the first judgment condition and can send a level conversion control instruction to the switch module 12 through the GPIO port. At this time, the switch module 12 can output corresponding control signals to the first signal line 131 to be tested and the second signal line 132 to be tested according to the level conversion control instruction. The control signal output by the switch module 12 can be a high-level control signal or a low-level control signal.
[0095] In this embodiment, the measuring module 11 is further used to measure the level signals output by the first signal line 131 to be tested and the second signal line 132 to be tested and the control signal output by the switch module 12 .
[0096] After the switch module 12 outputs the control signal to the first signal line 131 and the second signal line 132 , the measuring module 11 can respectively measure the control signal output by the switch module 12 , the control signal output by the first signal line 131 , and the control signal output by the second signal line 132 .
[0097] In a specific implementation, the measuring module 11 can capture the signal waveform output by the switch module 12, the signal waveform output by the first signal line to be tested 131, and the signal waveform output by the second signal line to be tested 132, so as to determine whether the requirements are met. If the requirements are met, the control module 10 can send the corresponding instruction again. The control module 10 is also used to generate a connection signal to the second activation unit 142 after the switch module 12 outputs the corresponding control signal to the first signal line to be tested 131 and the second signal line to be tested 132; the second activation unit 142 is used to connect the loop between the second signal line to be tested 132 and the reference ground according to the connection signal.
[0098] It should be noted that after the switch module 12 outputs the corresponding control signal to the first signal line to be tested 131 and the second signal line to be tested 132, the control module 10 can generate a connection signal to the second activation unit 142, thereby controlling the second activation unit 142 to reconnect the circuit loop between the second signal line to be tested 132 and the reference ground, thereby completing the second judgment condition.
[0099] In this embodiment, the measuring module 11 is further used to measure the level signal output by the second signal line 142 to be tested.
[0100] It is understandable that the measuring module 11 can also measure the level signal output by the second signal line 142 after the second signal line 142 is connected to the reference ground. Since the first activation unit 141 is located on the first signal line 131, the first signal line 131 outputs a high level at this time, and the second signal line 132 maintains a low level.
[0101] like Figure 3 As shown, Figure 3The schematic diagram of controlling the loop between the signal line 13 to be tested and the reference ground by the first activation unit 141 and the second activation unit 142 is as follows: Step 1: One end of the first activation unit 141 is connected to the first signal line 131 to be tested, and the other end is connected to the reference signal line; one end of the second activation unit 142 is connected to the second signal line 132 to be tested, and the other end is connected to the reference signal line. After completing step 1, the control module 10 sends a level conversion control instruction to the first activation unit 141 and the second activation unit 142, maintains the connection between the first activation unit 141 and the first signal line 131 to be tested and the reference ground, and disconnects the connection between the second activation unit 142 and the second signal line 132 to be tested and the reference ground, in response to the level conversion control instruction. At this time, the control module 10 controls the enable end of the switch module 12 to output a high level, completes the first judgment condition, reconnects the loop between the second activation unit 142 and the second signal line 132 to be tested and the reference ground, and completes the second judgment condition. Since the first activation unit 141 is located on the first signal line to be tested 131 , the first signal line to be tested 131 outputs a high level at this time, and the second signal line to be tested 132 maintains a low level.
[0102] The signal line level conversion device 1 of the present embodiment further includes: an activation module 14, wherein the activation module 14 is arranged between the signal line to be tested 13 and the reference ground, and the activation module 14 is also connected to the control module 10; the activation module 14 is used to receive a level conversion control instruction sent by the control module 10, and connect or disconnect the loop between the signal line to be tested 13 and the reference ground according to the level conversion control instruction, and the activation module 14 is used to control the on-off of the loop between the signal line to be tested 13 and the reference ground, thereby changing the level signal output by the signal line to be tested 13 to complete the signal line level conversion.
[0103] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first and second embodiments above can be referred to the above introduction, and will not be described in detail later. Figure 4 The switch module 12 includes: a first switch unit 121 and a second switch unit 122, the enable end of the first switch unit 121 and the enable end of the second switch unit 122 are both connected to the control module 10, the input end of the first switch unit 121 and the input end of the second switch unit 122 are both connected to the power supply 2, the output end of the first switch unit 121 is connected to the input end of the first signal line 131 to be tested, and the output end of the second switch unit 122 is connected to the input end of the second signal line 132 to be tested.
[0104] It should be noted that since the signal line to be tested 13 includes a first signal line to be tested 131 and a second signal line to be tested 132, in order to improve the signal output of the signal line to be tested 13, a switch module 12 corresponding to the signal line to be tested 13 can be set, so the switch module 12 includes a first switch unit 121 and a second switch unit 122.
[0105] The input terminal input1 of the first switch unit 121 and the input terminal input2 of the second switch unit 122 are both connected to the power supply 2, and the power supply 2 provides power for the first switch unit 121 and the second switch unit 122. The enable terminal EN1 of the first switch unit 121 and the enable terminal EN2 of the second switch unit 122 are both connected to the control module 10, so as to receive the control signal corresponding to the control module 10. The control module 10 controls the enable terminal EN1 of the first switch unit 121 and the enable terminal EN2 of the second switch unit 122 through the GPIO port, so that the first switch unit 121 and the second switch unit 122 use the level of the enable terminal as the first judgment condition to control whether the switch module 12 outputs a high level.
[0106] The output end of the first switch unit 121 is connected to the input end of the first signal line 131 to be tested, and the output end of the second switch unit 122 is connected to the input end of the second signal line 132 to be tested, so that the corresponding control signal can be output to the corresponding signal line 13 to be tested.
[0107] In this embodiment, the first switch unit 121 is used to disconnect the circuit loop between the first signal line to be tested 131 when the level conversion control instruction sent by the control module 10 is not received; the second switch unit 122 is used to disconnect the circuit loop between the second signal line to be tested 132 when the level conversion control instruction sent by the control module 10 is not received.
[0108] It can be understood that when the first switch unit 121 does not receive the level conversion control instruction sent by the control module 10, the circuit loop between the first signal line to be tested 131 is disconnected. At the same time, when the second switch unit 122 does not receive the level conversion control instruction sent by the control module 10, the circuit loop between the second signal line to be tested 132 is disconnected.
[0109] The first switch unit 121 and the second switch unit 122 may be transistors, such as MOS tubes, or other switch tubes capable of controlling the on / off of a circuit. This embodiment is not limited to this. This embodiment is described by taking MOS tubes as an example.
[0110] The MOS tube can open or close the loop between the corresponding signal line 13 to be tested according to the level conversion control instruction sent by the control module 10.
[0111] In a feasible embodiment, the first switch unit 121 is also used to connect the circuit loop between the first signal line to be tested 131 and output a high-level control signal to the first signal line to be tested 131 when receiving a level conversion control instruction sent by the control module 10; the second switch unit 122 is also used to connect the circuit loop between the second signal line to be tested 132 and output a low-level control signal to the second signal line to be tested 132 when receiving a level conversion control instruction sent by the control module 10.
[0112] It should be noted that, when the first switch unit 121 and the second switch unit 122 receive the level conversion control instruction sent by the control module 10, the circuit loop between the first switch unit 121 and the first signal line to be tested 131 and the circuit loop between the second switch unit 122 and the second signal line to be tested 132 are connected. After the circuit is connected, the first switch unit 121 outputs a high-level control signal to the first signal line to be tested 131, and the second switch unit 122 outputs a low-level control signal to the second signal line to be tested 132.
[0113] like Figure 5 As shown, Figure 5 These are waveforms output by the first switch unit 121, the first signal line to be tested 131, the second switch unit 122, and the second signal line to be tested 132 measured by the measuring module 11, wherein the yellow waveform is the output of the first signal line to be tested 131, the blue waveform is the output of the first switch unit 121, the green waveform is the output of the second signal line to be tested 132, and the red waveform is the output of the second switch unit 121.
[0114] The switch module 12 of this embodiment includes: a first switch unit 121 and a second switch unit 122, wherein the enable end of the first switch unit 121 and the enable end of the second switch unit 122 are both connected to the control module 10, the input end of the first switch unit 121 and the input end of the second switch unit 122 are both connected to the power supply 2, the output end of the first switch unit 121 is connected to the input end of the first signal line 131 to be tested, and the output end of the second switch unit 122 is connected to the input end of the second signal line 132 to be tested; the first switch unit 121 , used for disconnecting the circuit loop between the first signal line to be tested 131 when the level conversion control instruction sent by the control module 10 is not received; the second switch unit 122, used for disconnecting the circuit loop between the second signal line to be tested 132 when the level conversion control instruction sent by the control module 10 is not received, and the first switch unit 121 and the second switch unit 122 can respectively control the on-off of the circuit loop between the first signal line to be tested 131 and the second signal line to be tested 132 and the power supply 2, thereby realizing level conversion of different signal lines to be tested.
[0115] The present application also provides a signal line level conversion system, such as Figure 6 As shown, the signal line level conversion system includes a terminal 3, a switching device 4, a communication device 5, a power supply 2 and the signal line level conversion device 1 described above, wherein the terminal 3, the communication device 5, the signal line level conversion device 1 and the power supply 2 are connected in sequence, and the switching device 4 is connected to the signal line 13 to be tested in the signal line level conversion device 1;
[0116] The terminal 3 is used to issue a control instruction and transmit the control instruction to the control module 10 in the signal line level conversion device 1 through the communication device 5;
[0117] The adapter 4 is used to provide a conversion interface for the signal line 13 to be tested, so that the measuring module 11 in the signal line level conversion device 1 measures the level signal output by the signal line 13 to be tested based on the conversion interface;
[0118] The power supply 2 is used to provide power to the switch module 12 in the signal line level conversion device 1 .
[0119] It can be understood that the terminal 3 can be a computer or a mobile phone terminal. The terminal 3 has a command output function. The command sent by the terminal 3 can reach the control module 10 inside the signal line level conversion device 1 through the communication device 5. The control module 10 then controls the enable end of the switch module 12 through the GPIO port. The switch module can determine whether to output a high level to the signal line 13 to be tested according to the level of the enable end. The adapter 4 can provide a conversion interface, so that the signal line 13 to be tested in the signal line level conversion device 1 is brought out to facilitate the measurement by the measurement module 11. The power supply 2 is used to provide an external power supply to the switch module 12, thereby controlling the conduction or cutoff of the switch module 12, and transmitting the corresponding control signal to the corresponding signal line 13 to be tested for output.
[0120] The signal line level conversion system provided by the present application includes the signal line level conversion device in the above embodiment, which can solve the technical problem that the existing signal line level conversion effect is poor. Compared with the prior art, the beneficial effects of the signal line level conversion system provided by the present application are the same as the beneficial effects of the signal line level conversion system provided by the above embodiment, and other technical features of the signal line level conversion system are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0121] The present application also provides a signal line level conversion method, referring to Figure 7 , Figure 7 This is a flow chart of the first embodiment of the signal line level conversion method of the present application. The signal line level conversion method is applied to the signal line level conversion device described above. The method includes steps S10 to S40:
[0122] Step S10: the control module sends a level conversion control instruction to the switch module and the signal line to be tested.
[0123] In a specific implementation, the control module is located inside the signal line level conversion device. The control module can be a microprocessor composed of a single-chip microcomputer or other devices. The control module is mainly used to receive instructions from an external device and generate corresponding control instructions to other modules inside the signal line level conversion device for control.
[0124] It can be understood that the measuring module is respectively connected to the control module, the switch module and the signal line to be tested. The measuring module can receive instructions from the control module and measure the output signal of the switch module and the output signal of the signal line to be tested, so as to determine whether the level conversion of the signal line meets the requirements.
[0125] The control module controls the switch module and the measuring module respectively. The output end of the switch module is connected to the signal line to be measured, and can output a high level or low level control signal to the signal line to be measured.
[0126] It can be understood that the level conversion control instruction can be generated by the control module itself, or it can be an instruction received from other external devices. The level conversion control instruction can be converted from a high-level control signal to a low-level control signal, or from a low-level control signal to a high-level control signal, or it can be continuously converted between a low-level control signal and a high-level control signal. This embodiment does not limit this and can be set according to specific conversion requirements to generate corresponding level conversion control instructions.
[0127] The control module sends the level conversion control instruction to the switch module and the signal line to be tested respectively, so that the level signal output by the switch module and the level signal output by the signal line to be tested can be controlled according to the level conversion control instruction.
[0128] Step S20: the switch module outputs a corresponding level signal to the signal line to be tested according to the level conversion control instruction.
[0129] It can be understood that after receiving the level conversion control instruction, the switch module can output a corresponding level signal to the signal line to be tested, and the level signal can be a high level signal or a low level signal.
[0130] Step S30: the signal line to be tested is connected to or disconnected from the loop with the reference ground according to the level conversion control instruction.
[0131] It should be noted that the signal line to be tested can be a differential signal line, the number of signal lines to be tested can be set to multiple, the output end of the signal line to be tested is connected to the reference ground, and the signal line to be tested can connect or disconnect the loop with the reference ground according to the level conversion control instruction, thereby realizing the high and low level conversion.
[0132] Step S40: the measuring module measures the level signal output by the switch module and the level signal output by the signal line to be tested to complete the signal line level conversion.
[0133] It should be noted that the measurement module can be an analog signal measurement module or a digital signal measurement module. The measurement module can read and record the level signal output from the switch module and the signal line to be tested, which may include information such as the level, frequency, waveform, etc.
[0134] In a feasible implementation manner, after step S10, the method further includes: generating a level signal change diagram according to the level signal output by the switch module and the level signal output by the signal line to be tested; and adjusting the level conversion control instruction based on the level signal change diagram.
[0135] In a specific implementation, a level signal change diagram, such as a straight line diagram or a curve diagram, can be drawn according to the level signal output by the switch module and the level signal output by the signal line to be tested. Figure 5As shown, different colors are used to represent the level signal change diagram of the corresponding module output, so as to determine whether the output level meets the user's needs. If not, the level conversion control instruction can be adjusted. For example, the level conversion control instruction is adjusted from generating a high-level control signal to generating a low-level control signal, so as to continuously adjust the output level until the conversion requirement is met.
[0136] In this embodiment, the control module sends a level conversion control instruction to the switch module and the signal line to be tested; the switch module outputs a corresponding level signal to the signal line to be tested according to the level conversion control instruction; the signal line to be tested connects or disconnects the loop between the reference ground according to the level conversion control instruction; the measurement module measures the level signal output by the switch module and the level signal output by the signal line to be tested to complete the signal line level conversion, and the level can be specified on the signal line to be tested according to the actual output to meet the demand for reducing the connecting lines. When the connecting lines are reduced, the effect of the level conversion is not affected.
[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0138] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0139] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A signal line level conversion device, It is characterized in that The signal line level conversion device comprises: a control module, a measuring module, a switch module and a signal line to be tested, wherein the measuring module is respectively connected to the control module, the switch module and the signal line to be tested, the switch module is respectively connected to the input end of the signal line to be tested and the control module, and the output end of the signal line to be tested is connected to a reference ground; The control module is used to issue a level conversion control instruction to the switch module and the signal line to be tested; The switch module is used to output a corresponding level signal to the signal line to be tested according to the level conversion control instruction; The signal line to be tested is used to connect or disconnect the loop between the signal line and the reference ground according to the level conversion control instruction; The measuring module is used to measure the level signal output by the switch module and the level signal output by the signal line to be tested, so as to complete the signal line level conversion.
2. The signal line level conversion device according to claim 1, It is characterized in that The signal line level conversion device further comprises: an activation module, the activation module is arranged between the signal line to be tested and the reference ground, and the activation module is also connected to the control module; The activation module is used to receive the level conversion control instruction sent by the control module, and connect or disconnect the loop between the signal line to be tested and the reference ground according to the level conversion control instruction.
3. The signal line level conversion device according to claim 2, It is characterized in that The signal line to be tested includes a first signal line to be tested and a second signal line to be tested, and the activation module includes: a first activation unit and a second activation unit, the first activation unit is arranged on a loop between the first signal line to be tested and the reference ground, and the second activation unit is arranged on a loop between the second signal line to be tested and the reference ground; The first activation unit and the second activation unit are used to connect the loop between the first signal line to be tested and the reference ground and the loop between the second signal line to be tested and the reference ground when the level conversion control instruction sent by the control module is not received.
4. The signal line level conversion device according to claim 3, It is characterized in that The first activation unit is further configured to maintain the loop connection between the first signal line to be tested and the reference ground when receiving the level conversion control instruction sent by the control module; The second activation unit is further configured to disconnect the loop between the second signal line to be tested and the reference ground and send a feedback signal to the control module when receiving the level conversion control instruction sent by the control module; The control module is further configured to send the level conversion control instruction to the switch module according to the feedback signal; The switch module is further used to output corresponding control signals to the first signal line to be tested and the second signal line to be tested according to the level conversion control instruction; The measuring module is further used to measure the level signals output by the first signal line to be tested and the second signal line to be tested and the control signal output by the switch module.
5. The signal line level conversion device according to claim 4, It is characterized in that The control module is further configured to generate a connection signal to the second activation unit after the switch module outputs the corresponding control signal to the first signal line to be tested and the second signal line to be tested; The second activation unit is used to connect the loop between the second signal line to be tested and the reference ground according to the connection signal; The measuring module is further used to measure the level signal output by the second signal line to be tested.
6. The signal line level conversion device according to claim 3, It is characterized in that The switch module comprises: a first switch unit and a second switch unit, wherein an enable end of the first switch unit and an enable end of the second switch unit are both connected to the control module, an input end of the first switch unit and an input end of the second switch unit are both connected to a power supply, an output end of the first switch unit is connected to an input end of the first signal line to be tested, and an output end of the second switch unit is connected to an input end of the second signal line to be tested; The first switch unit is used to disconnect the circuit loop between the first signal line to be tested when the level conversion control instruction sent by the control module is not received; The second switch unit is used to disconnect the circuit loop between the second signal line to be tested when the level conversion control instruction sent by the control module is not received.
7. The signal line level conversion device according to claim 6, It is characterized in that The first switch unit is further configured to connect the circuit loop between the first signal line to be tested and output a high-level control signal to the first signal line to be tested when receiving the level conversion control instruction sent by the control module; The second switch unit is further configured to connect the circuit loop between the second signal line to be tested and output a low-level control signal to the second signal line to be tested when receiving the level conversion control instruction sent by the control module.
8. A signal line level conversion system, It is characterized in that The signal line level conversion system comprises: a terminal, a switching device, a communication device, a power supply, and the signal line level conversion device described in any one of claims 1 to 7, wherein the terminal, the communication device, the signal line level conversion device, and the power supply are connected in sequence, and the switching device is connected to the signal line to be tested in the signal line level conversion device; The terminal is used to issue a control instruction and transmit the control instruction to the control module in the signal line level conversion device through the communication device; The adapter is used to provide a conversion interface for the signal line to be tested, so that the measuring module in the signal line level conversion device measures the level signal output by the signal line to be tested based on the conversion interface; The power supply is used to provide power to the switch module in the signal line level conversion device.
9. A signal line level conversion method, It is characterized in that The signal line level conversion method is applied to the signal line level conversion device described in any one of claims 1 to 7, and the method comprises: The control module sends a level conversion control instruction to the switch module and the signal line to be tested; The switch module outputs a corresponding level signal to the signal line to be tested according to the level conversion control instruction; The signal line to be tested is connected or disconnected from the loop between the signal line and the reference ground according to the level conversion control instruction; The measuring module measures the level signal output by the switch module and the level signal output by the signal line to be tested to complete the signal line level conversion.
10. The signal line level conversion method according to claim 9, It is characterized in that After the step of the measuring module measuring the level signal output by the switch module and the level signal output by the signal line to be tested to complete the signal line level conversion, the method further includes: Generate a level signal change diagram according to the level signal output by the switch module and the level signal output by the signal line to be tested; The level conversion control instruction is adjusted based on the level signal change diagram.
