Signal communication circuit, electronic equipment and power supply signal detection method
By introducing a signal output circuit and a signal detection circuit into the signal communication circuit, it is realized that under the definition of a limited PIN pin, the high and low level signals are judged by outputting electrical signals with different attribute parameters, which solves the problem of low cost performance in the new function, and improves the fault tolerance and anti-interference ability.
Patent Information
- Application Number
- CN202411722832.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-11-28
AI Technical Summary
Under the limited PIN pin definition, if new functions are needed, all PIN pins in the power supply need to be redefined and planned, resulting in limited use range.
A signal communication circuit is provided, including a signal output circuit and a signal detection circuit. The signal output circuit outputs at least two electrical signals with different attribute parameters according to the current output requirements. The signal detection circuit determines the attribute parameters of the currently received electrical signal, and determines the output of a high level signal or a low level signal based on the attribute parameters.
Without increasing the output end of the circuit, the function of the circuit is added, the fault tolerance rate is improved, and the error rate in the high-frequency environment of electronic equipment is reduced.
Smart Images

Figure CN119557252A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment, and in particular to a signal communication circuit, electronic equipment and a power signal detection method. Background Art
[0002] In the internal system of electronic devices, as the devices develop, the power supply functions corresponding to the electronic devices become more and more powerful, and the electronic devices need to communicate more and more with the power supply modules.
[0003] In the design, all the PIN pins in the power supply of the electronic device have been defined, and the PIN pins are mainly enabled by using the IO port (Input / Output) to directly enable the output of high and low levels, thereby realizing the inherent communication function. In this case, one IO port can only define one PIN pin. Under the limited PIN pin definition, if new functions need to be added, all the PIN pins in the power supply need to be redefined and planned, that is, the newly added functions need to replace or remove the original functions. This method is too cumbersome, and when redefining all the PIN pins in the power supply, it is necessary to make trade-offs in the functions it implements, which limits the scope of use to a certain extent.
[0004] It can be seen that how to use one pin to realize multiple functions is a problem that needs to be solved by those skilled in the art. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a signal communication circuit, an electronic device and a power signal detection method, which can solve the problem in the prior art that, under limited PIN pin definitions, if new functions need to be added, all PIN pins in the power supply need to be redefined and planned, and the scope of use is limited to a certain extent.
[0006] To solve the above technical problems, on the one hand, an embodiment of the present invention provides a signal communication circuit, including: a signal output circuit and a signal detection circuit:
[0007] A signal output circuit, used for outputting at least two electrical signals with different attribute parameters according to current output requirements;
[0008] The input end of the signal detection circuit is connected to the output end of the signal output circuit, and is used to determine the attribute parameters of the currently received electrical signal, and determine to output a high level signal or a low level signal based on the attribute parameters corresponding to the electrical signal.
[0009] In some embodiments, the signal output circuit includes: a digital signal processor and a shaping isolation circuit;
[0010] The input end of the digital signal processor is connected to the signal end, and is used to obtain at least two initial electrical signals in the signal end, and adjust the attribute parameters of the initial electrical signals according to the output requirements to obtain at least two initial electrical signals with different attribute parameters;
[0011] The input end of the shaping isolation circuit is connected to the output end of the digital signal processor, and the output end of the shaping isolation circuit is connected to the input end of the signal detection circuit as the output end of the signal output circuit, which is used to obtain initial electrical signals with different attribute parameters and perform waveform conversion on the initial electrical signals according to output requirements to obtain at least two electrical signals with different attribute parameters.
[0012] In some embodiments, the signal output circuit further includes: a filter circuit and a drive amplifier circuit;
[0013] The input end of the filter circuit is connected to the output end of the shaping isolation circuit; it is used to filter at least two electrical signals with different attribute parameters;
[0014] The input end of the driving amplifier circuit is connected to the output end of the filtering circuit, and is used to perform gain amplification processing on the filtered electrical signal.
[0015] In some embodiments, there are two types of electrical signals, the attribute parameters include amplitude parameters and frequency parameters, and the signal detection circuit includes: a signal processing chip, a high voltage comparison circuit, and a low voltage comparison circuit;
[0016] The input end of the high-voltage comparison circuit is connected to the output end of the signal output circuit as the input end of the signal detection circuit, and the output end of the high-voltage comparison circuit is connected to the first input end of the signal processing chip, and is used to output a first comparison signal according to the attribute parameter corresponding to the electrical signal;
[0017] The input end of the low voltage comparison circuit is connected to the output end of the signal output circuit as the input end of the signal detection circuit, and the output end of the low voltage comparison circuit is connected to the second input end of the signal processing chip, for outputting a second comparison signal according to the attribute parameter corresponding to the electrical signal;
[0018] The signal processing chip is used to determine whether to output a high level signal or a low level signal according to the first comparison signal and the second comparison signal.
[0019] In some embodiments, the high voltage comparison circuit is a first comparator;
[0020] Wherein, the first input terminal of the first comparator is connected to the output terminal of the signal output circuit as the input terminal of the high voltage comparison circuit;
[0021] The second input terminal of the first comparator is connected to a first preset comparison voltage source;
[0022] The first pin of the first comparator is connected to a preset reference voltage source;
[0023] The output terminal of the first comparator is connected to the first input terminal of the signal processing chip as the output terminal of the high voltage comparison circuit.
[0024] In some embodiments, the low voltage comparison circuit includes: a second comparator, a voltage follower, a MOS tube, a first resistor, a voltage regulator tube and a first capacitor;
[0025] Wherein, the first input terminal of the second comparator is connected to the output terminal of the signal output circuit as the input terminal of the low voltage comparison circuit;
[0026] The second input terminal of the second comparator is connected to a second preset comparison voltage source;
[0027] The first pin of the second comparator is connected to a preset reference voltage source;
[0028] The output terminal of the second comparator is connected to the first input terminal of the voltage follower and the first terminal of the voltage regulator tube;
[0029] The second end of the voltage regulator tube is grounded;
[0030] The second input terminal of the voltage follower is connected to the first terminal of the first resistor;
[0031] The output end of the voltage follower is connected to the second end of the first resistor, the gate of the MOS tube and the first end of the first capacitor;
[0032] The source of the MOS tube is grounded;
[0033] The drain of the MOS tube is connected to the second end of the signal processing chip as the output end of the low voltage comparison circuit;
[0034] The second terminal of the first capacitor is grounded.
[0035] On the other hand, the present invention further provides an electronic device, comprising the above-mentioned signal communication circuit.
[0036] On the other hand, the present invention further provides a power signal detection method, which is applied to the above-mentioned signal communication circuit, comprising:
[0037] The signal output circuit is configured to output at least two electrical signals with different attribute parameters according to the current output requirement;
[0038] Determine the attribute parameters of the currently received electrical signal, and determine to output a high level signal or a low level signal based on the attribute parameters corresponding to the electrical signal.
[0039] In some embodiments, there are two types of electrical signals, and the attribute parameters include an amplitude parameter and a frequency parameter. The output of a high-level signal or a low-level signal is determined based on the attribute parameters corresponding to the electrical signal, including:
[0040] If the amplitude parameter represents that the amplitude of the current electrical signal is within the first amplitude interval, then the electrical signal is a low-level signal;
[0041] If the frequency parameter indicates that the frequency of the current electrical signal is within the first frequency interval, the electrical signal is a low-level signal.
[0042] In some embodiments, determining to output a high level signal or a low level signal based on the property parameter corresponding to the electrical signal further includes:
[0043] If the amplitude parameter represents that the amplitude of the current electrical signal is within the second amplitude interval, then the electrical signal is a high level signal;
[0044] If the frequency parameter represents that the frequency of the current electrical signal is within the second frequency interval, the electrical signal is a low-level signal.
[0045] On the other hand, the present invention also provides a power signal detection device, comprising:
[0046] Memory for storing computer programs;
[0047] A processor is used to execute the computer program to implement the steps of the above power signal detection method.
[0048] On the other hand, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned power signal detection method are implemented.
[0049] On the other hand, the present invention further provides a computer program product, comprising a computer program / instruction, which implements the steps of the above power signal detection method when executed by a processor.
[0050] It can be seen from the above technical scheme that the present invention provides a signal communication circuit, including: a signal output circuit and a signal detection circuit; wherein the signal output circuit is used to output at least two electrical signals with different attribute parameters according to the current output demand; the input end of the signal detection circuit is connected to the output end of the signal output circuit, and is used to determine the attribute parameters of the currently received electrical signal, and determine to output a high level signal or a low level signal based on the attribute parameters corresponding to the electrical signal. That is to say, in the present invention, the same circuit output channel outputs two signals, and by setting its attribute parameters as a carrier, it carries the high and low level judgment of the two signals, which increases the function of the circuit without increasing the output end of the circuit, and in the present invention, the attribute parameters of the signal are used as a carrier to judge the high and low levels of different signals, which has a higher fault tolerance rate and a lower error rate in the high-frequency environment of electronic equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A circuit diagram of a signal communication circuit provided by an embodiment of the present invention;
[0053] Figure 2 A structural diagram of a signal output circuit provided by an embodiment of the present invention;
[0054] Figure 3 A circuit diagram of a signal detection circuit provided by an embodiment of the present invention;
[0055] Figure 4 A first schematic diagram of high and low levels of an electrical signal provided by an embodiment of the present invention;
[0056] Figure 5 A second schematic diagram of high and low levels of an electrical signal provided by an embodiment of the present invention;
[0057] Figure 6 A structural diagram of a power signal detection device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0060] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0061] Next, a signal communication circuit provided by an embodiment of the present invention is described in detail. Figure 1 A circuit diagram of a signal communication circuit provided by an embodiment of the present invention, such as Figure 1 As shown, the signal communication circuit includes: a signal output circuit 1 and a signal detection circuit 2. The specific connection relationship of the internal circuit of the signal communication circuit is: the input end of the signal detection circuit 2 is connected to the output end of the signal output circuit 1. The principle of the circuit is:
[0062] In a specific embodiment, the signal output circuit 1 is mainly used to output at least two electrical signals with different attribute parameters according to the current output demand; wherein the current output demand can be configured by the operator at any time, or the current output demand is pre-set by the operator. The signal detection circuit 2 is used to determine the attribute parameters of the currently received electrical signal, and determine whether to output a high-level signal or a low-level signal based on the attribute parameters corresponding to the electrical signal. In other words, the signal detection circuit 2 obtains multiple electrical signals, and determines the attribute parameters of different electrical signals, and determines whether each signal is a high-level signal in combination with the output demand.
[0063] It should be noted that when the signal detection circuit 2 determines the high and low levels of the electrical signal, the specific steps are divided into three cases:
[0064] The first case: the signal detection circuit 2 first sets the judgment of different attribute parameters. When the electrical signal flows through the signal detection circuit 2, the attribute parameters are judged in turn. Then, in the judgment process, it is determined in turn whether different electrical signals are high-level signals.
[0065] The second situation: the signal detection circuit 2 obtains all the electrical signals, judges the attribute parameters of each electrical signal in turn, and then determines in turn whether each electrical signal is a high-level signal.
[0066] The third situation: the signal detection circuit 2 first obtains the first electrical signal, and then judges the attribute parameters thereof. After determining whether the first electrical signal is a high-level signal, the second electrical signal is obtained and judged, until the last electrical signal ends.
[0067] Take two signals as an example: the current output requirements are: electrical signal 1 is a sinusoidal signal, and its signal frequency of 5Hz represents that electrical signal 1 is currently in a high level state, and its signal frequency of 10Hz represents that electrical signal 1 is currently in a low level state; electrical signal 2 is also a sinusoidal signal, and its signal amplitude is 3V, which represents that electrical signal 2 is currently in a high level state, and its signal amplitude is 1V, which represents that electrical signal 2 is currently in a low level state.
[0068] In one case: the signal detection circuit 2 first sets the judgment of different attribute parameters, that is, the amplitude judgment and the frequency judgment are set in sequence; if the amplitude of the electrical signal detected in the amplitude judgment is 3V, it means that one of the electrical signals is a high-level signal, because it is determined in the configuration of the current output requirement that the signal amplitude is 3V, indicating that the signal 2 is currently in a high-level state, so the electrical signal 2 is determined to be in a high-level state in the amplitude judgment; when the signal frequency of the electrical signal is detected to be 5Hz during the frequency judgment process, it means that one of the electrical signals is a high-level signal, and it is determined in the configuration of the current output requirement that the signal frequency of 5Hz indicates that the electrical signal 1 is currently in a high-level state, so the electrical signal 1 is determined to be in a high-level state in the frequency judgment.
[0069] In the second case: signal detection circuit 2 obtains electrical signal 1 and electrical signal 2, and first judges the attribute parameters of electrical signal 1. If the signal frequency in the attribute parameters of electrical signal 1 is 5Hz, it means that electrical signal 1 is currently in a high level state; then the attribute parameters of electrical signal 2 are judged. If the signal amplitude in the attribute parameters of electrical signal 2 is 3V, it means that electrical signal 2 is currently in a high level state.
[0070] In the third case: the signal detection circuit 2 first obtains the electrical signal 1 and judges the attribute parameters of the electrical signal 1. If the signal frequency in the attribute parameters of the electrical signal 1 is 5Hz, it means that the electrical signal 1 is currently in a high level state; then the electrical signal 2 is obtained and the attribute parameters of the electrical signal 2 are judged. If the signal amplitude in the attribute parameters of the electrical signal 2 is 3V, it means that the electrical signal 2 is currently in a high level state.
[0071] It should be noted that the situation and examples provided in the present invention are only one possible implementation method, but are not limited to only this implementation method and can be set according to the needs of the user.
[0072] It can be seen from the above technical scheme that the present invention provides a signal communication circuit, including: a signal output circuit and a signal detection circuit; wherein the signal output circuit is used to output at least two electrical signals with different attribute parameters according to the current output demand; the input end of the signal detection circuit is connected to the output end of the signal output circuit, and is used to determine the attribute parameters of the currently received electrical signal, and determine to output a high level signal or a low level signal based on the attribute parameters corresponding to the electrical signal. That is to say, in the present invention, the same circuit output channel outputs two signals, and by setting its attribute parameters as a carrier, it carries the high and low level judgment of the two signals, which increases the function of the circuit without increasing the output end of the circuit, and in the present invention, the attribute parameters of the signal are used as a carrier to judge the high and low levels of different signals, which has a higher fault tolerance rate and a lower error rate in the high-frequency environment of electronic equipment.
[0073] In some embodiments, Figure 2 As shown, the signal output circuit 1 includes: a digital signal processor 11, a shaping isolation circuit 12, a filtering circuit 13 and a driving amplifier circuit 14. The connection relationship is: the input end of the digital signal processor 11 is connected to the signal end; the input end of the shaping isolation circuit 12 is connected to the output end of the digital signal processor 11; the input end of the filtering circuit 13 is connected to the output end of the shaping isolation circuit 12; the input end of the driving amplifier circuit 14 is connected to the output end of the filtering circuit.
[0074] In a specific embodiment, the function of the signal output circuit 1 is to output at least two electrical signals with different attribute parameters according to the current output requirements. Therefore, in the signal output circuit 1, it specifically includes four circuits, namely a digital signal processor 11, a shaping isolation circuit 12, a filtering circuit 13 and a driving amplifier circuit 14.
[0075] The input end of the digital signal processor 11 is connected to the signal end, and the output end of the digital signal processor 11 is connected to the input end of the shaping isolation circuit 12, which is used to obtain at least two initial electrical signals in the signal end, and adjust the attribute parameters of the initial electrical signals according to the output requirements to obtain at least two initial electrical signals with different attribute parameters, and send the at least two initial electrical signals with different attribute parameters to the shaping isolation circuit 12. Among them, the initial electrical signal obtained by the input end of the digital signal processor 11 from the signal end 3 is a square wave signal.
[0076] The input end of the shaping isolation circuit 12 is connected to the output end of the digital signal processor 11, and the output end of the shaping isolation circuit 12 is connected to the input end of the filtering circuit 13, which is used to obtain the initial electrical signal with different attribute parameters, and perform waveform conversion on the initial electrical signal according to the output requirements to obtain at least two electrical signals with different attribute parameters, and then send the electrical signal at this time to the filtering circuit 13. That is, the initial electrical signal (square wave signal) is waveform converted (sinusoidal signal). It should be noted that in addition to modifying the attribute parameters of the electrical signal, its output requirements also modify the waveform.
[0077] The input end of the filter circuit 13 is connected to the output end of the shaping isolation circuit 12, and the output end of the filter circuit 13 is connected to the input end of the driving amplifier circuit 14, which is used to filter at least two electrical signals with different attribute parameters to avoid filtering interference of the electrical signals during transmission.
[0078] The input end of the driving amplifier circuit 14 is connected to the output end of the filtering circuit 13, and the output end of the driving amplifier circuit 14 is connected to the input end of the signal detection circuit 2, which is used to perform gain amplification processing on the filtered electrical signal to ensure that the electrical signal enters the signal detection circuit 2 in a stable state so that the signal detection circuit can detect the electrical signal.
[0079] It should be noted that the embodiment provided by the present invention is only one possible implementation method, but is not limited to only this implementation method and can be set according to the needs of the user.
[0080] It should also be noted that the present invention does not limit the specific structures and models of the digital signal processor, shaping isolation circuit, filtering circuit and driving amplifier circuit, which can be set according to the needs of the user.
[0081] The present invention provides a specific structure of a signal output circuit, under which a square wave signal is converted into a sinusoidal signal, so that the electrical signal has a higher fault tolerance rate and a lower error rate in a high-frequency environment of a server. In addition, under this structure, the electrical signal will not be interfered by other filters during transmission and is more stable.
[0082] In some embodiments, Figure 3As shown, there are two types of electrical signals, and the attribute parameters include amplitude parameters and frequency parameters. The signal detection circuit 2 includes: a signal processing chip 3, a high-voltage comparison circuit 4, and a low-voltage comparison circuit 5. The connection relationship of the circuit is: the input end of the high-voltage comparison circuit 4 is connected to the output end of the signal output circuit 1 as the input end of the signal detection circuit 2, and the output end of the high-voltage comparison circuit 4 is connected to the first input end of the signal processing chip 3; the input end of the low-voltage comparison circuit 5 is connected to the output end of the signal output circuit 1 as the input end of the signal detection circuit 2, and the output end of the low-voltage comparison circuit 5 is connected to the second input end of the signal processing chip 3.
[0083] In a specific embodiment, when there are two types of electrical signals and the attribute parameters include amplitude parameters and frequency parameters, one of the electrical signals can be judged by comparison, and then the frequency parameters can be detected by chip detection and other methods to judge the other electrical signal. Therefore, the signal detection circuit 2 includes: a signal processing chip 3, a high-voltage comparison circuit 4 and a low-voltage comparison circuit 5, wherein the high-voltage comparison circuit 4 and the low-voltage comparison circuit 5 are used to perform amplitude parameter judgment on the attribute parameters of the electrical signal, and the signal processing chip 3 is used to perform frequency parameter judgment on the attribute parameters of the electrical signal.
[0084] The input end of the high-voltage comparison circuit 4 is connected to the output end of the signal output circuit 1 as the input end of the signal detection circuit 2, and the output end of the high-voltage comparison circuit 4 is connected to the first input end of the signal processing chip 3, which is used to output a first comparison signal according to the attribute parameters corresponding to the electrical signal; and the input end of the low-voltage comparison circuit 5 is connected to the output end of the signal output circuit 1 as the input end of the signal detection circuit 2, and the output end of the low-voltage comparison circuit 5 is connected to the second input end of the signal processing chip 3, which is used to output a second comparison signal according to the attribute parameters corresponding to the electrical signal; then the signal processing chip 3 is used to determine whether to output a high-level signal or a low-level signal according to the first comparison signal and the second comparison signal.
[0085] The high-voltage comparison circuit 4 is a first comparator U1. The first input terminal of the first comparator U1 is connected to the output terminal of the signal output circuit 1 as the input terminal of the high-voltage comparison circuit 4; the second input terminal of the first comparator U1 is connected to a first preset comparison voltage source (for example, comparison voltage 2V); the first pin terminal of the first comparator U1 is connected to a preset reference voltage source (for example, reference voltage 5V); the output terminal of the first comparator U1 is connected to the first input terminal of the signal processing chip 3 as the output terminal of the high-voltage comparison circuit 4.
[0086] The working principle of the high-voltage comparison circuit 4 is as follows: the input end of the high-voltage comparison circuit 4 obtains an electrical signal. If the amplitude parameter corresponding to the electrical signal is greater than a first preset comparison voltage source (for example, a comparison voltage of 2V), the high-voltage comparator outputs a corresponding first comparison signal. If the amplitude parameter corresponding to the electrical signal is not greater than the first preset comparison voltage source (for example, a comparison voltage of 2V), the high-voltage comparator does not output a signal.
[0087] Likewise, Figure 3 As shown, the low voltage comparison circuit 5 includes: a second comparator U2, a voltage follower U3, a MOS tube Q1, a first resistor R1, a voltage regulator tube D1 and a first capacitor C1. The connection relationship of the components is as follows: the first input end of the second comparator U2 is connected to the output end of the signal output circuit 1 as the input end of the low voltage comparison circuit 5; the second input end of the second comparator U2 is connected to the second preset comparison voltage source (comparison voltage 2V); the first pin end of the second comparator U2 is connected to the preset reference voltage source (reference voltage 5V); the output end of the second comparator U2 is connected to the first input end of the voltage follower U3 and the first end of the voltage regulator tube D1; the second end of the voltage regulator tube D1 is grounded; the second input end of the voltage follower U3 is connected to the first end of the first resistor R1; the output end of the voltage follower U3 is connected to the second end of the first resistor R1, the gate of the MOS tube Q1 and the first end of the first capacitor C1; the source of the MOS tube Q1 is grounded; the drain of the MOS tube Q1 is connected to the second end of the signal processing chip 3 as the output end of the low voltage comparison circuit 5; the second end of the first capacitor C1 is grounded.
[0088] The working principle of the low-voltage comparison circuit 5 is as follows: an electrical signal is input to the first input terminal of the second comparator U2, and the electrical signal can filter out high-voltage interference signals caused by startup or high-frequency interference through the voltage regulator D1. The filtered electrical signal is compared with the second preset comparison voltage source (comparison voltage 2V) in the second comparator U2, and the corresponding signal is output. The signal increases the driving capability through the voltage follower U3 and the first capacitor C1, drives the MOS tube Q1 at the back end to generate a PWM signal with a certain regular frequency, and sends it to the signal processing chip 3 for processing.
[0089] The signal detection circuit 2 provided by the present invention realizes the judgment of the high and low levels of multiple electrical signals. Compared with the traditional high and low level signal judgment of a single signal, it has a stronger ability to resist high-frequency interference through sinusoidal signal transmission. The main implementation method is that on the output side of the low-voltage comparison circuit 5, the final output voltage follower U3 is used to optimize and enhance the output electrical signal and increase the driving ability of the electrical signal. Through the MOS tube Q1 at the back end of the follower, a standard high and low level PWM waveform signal is obtained for the signal processing chip 3.
[0090] It also takes two signals as an example: electrical signal 1 is a sinusoidal signal, and its signal frequency of 5Hz represents that electrical signal 1 is currently in a high level state, and its signal frequency of 10Hz represents that electrical signal 1 is currently in a low level state; electrical signal 2 is also a sinusoidal signal, and its signal amplitude is 3V represents that electrical signal 2 is currently in a high level state, and its signal amplitude is 1V represents that electrical signal 2 is currently in a low level state.
[0091] In combination with the signal detection circuit 2 provided by the present invention, its overall detection process is as follows: the electrical signal (sinusoidal signal) output at the output end of the signal output circuit 1 needs to first pass through a high-pass and a low-pass comparator. If the amplitude parameter of the incoming electrical signal (sinusoidal signal) is at most 1V, the output of the above high-voltage comparison circuit 4 is 0, and there is no signal at the first input port of the signal processing chip 3, then it can be determined that one of the two electrical signals is a low-level signal; if the amplitude parameter of the transmitted electrical signal (sinusoidal signal) is greater than 2V, then both the high-voltage comparison circuit 4 and the low-voltage comparison circuit 5 have signal outputs, then one electrical signal level can be determined as a high-level signal. Because no matter what the amplitude parameter is, the electrical signal (sinusoidal signal) has its own frequency, and the low-voltage comparison circuit 5 shown in the present invention compares the input electrical signal (sinusoidal signal) through the low-voltage comparison output, and then outputs the PWM signal through the comparison output, and then drives the rear-end MOS tube Q1 through the rear-end voltage follower U3 to transmit the stable PWM signal (second comparison signal) to the second input terminal (AD port) of the signal processing chip 3. The signal processing chip 3 processes and determines the frequency of the electrical signal according to the port to determine the high and low levels of the second electrical signal.
[0092] In summary, the signal communication circuit provided by the present invention takes the PWM signal of the IO port of the power DSP main control chip as the output, and realizes the transmission of multiple signals in one channel by frequency modulation and width modulation to output an electrical signal (sinusoidal signal) with variable frequency and amplitude. The frequency and amplitude of the electrical signal can respectively carry the transmission of the high and low levels of a signal.
[0093] The current setting of the transmission of electrical signal 1 is a sine signal. When the frequency of the sine signal is 5Hz, it is a traditional high-level signal; when the frequency of the sine signal is 10Hz, it is a traditional low-level signal. When signal 1 needs to output a high-level signal, the frequency of the output sine signal is adjusted to 5Hz, otherwise it outputs a 10Hz frequency. Figure 4 As shown, series 1 indicates a frequency of 5 Hz, and series 2 indicates a frequency of 10 Hz, which respectively represent high level and low level outputs. One of the two is selected for output to realize the high and low level judgment of signal 1.
[0094] The current setting signal 2 is set to a sine signal. When the amplitude of the sine signal is 3V, it is a traditional high-level signal; when the amplitude of the sine signal is 1V, it is a traditional low-level signal. When signal 2 needs to output a high-level signal, the amplitude of the output sine signal is modulated to 3V, otherwise it outputs 1V. Figure 5 As shown, output series 1 is the low level output of signal 2, and output series 2 is the high level output of signal 2. One of the two is selected for output to realize the high and low level judgment of signal 2.
[0095] The amplitude and frequency output settings of the two signals are independent of each other and will not cause interference. Therefore, the high and low level outputs of the two signals can be achieved through these two different parameter quantities.
[0096] Among them, it should be noted that the present invention uses two electrical signals, as well as frequencies and amplitudes in the examples, which can respectively carry the transmission of high and low levels of a signal, but this is only one possible way of implementation, but it is not limited to only this implementation method and can be set according to user needs.
[0097] In addition, the signal communication circuit may also include a selection modulation circuit, which is connected to the signal output circuit. The main function of the modulation circuit is to pre-store the attribute parameters and output requirements corresponding to different numbers of electrical signals. The main reason is that when there are two types of electrical signals, the output can be judged as high level or low level by adjusting the specific values of frequency and amplitude. However, when there are more than two types of electrical signals, in the process of judging whether the output is high level or low level by adjusting the specific values of frequency and amplitude, it is easy to have the same parameters of the two electrical signals, or the same judgment results. Therefore, the attribute parameters and output requirements corresponding to different numbers of electrical signals can be pre-stored in the selection modulation circuit in advance. In this way, no matter how many electrical signals are output, the corresponding output requirements can be automatically determined by simply inputting the digital input into the selection modulation circuit, thereby controlling the signal output circuit to adjust the initial electrical signal.
[0098] It can be seen that in the present invention, the same circuit output channel outputs two signals, and by setting its attribute parameters as a carrier, it carries the high and low level judgment of the two signals. It increases the function of the circuit without increasing the output end of the circuit. In addition, in the present invention, the attribute parameters of the signal are used as a carrier to judge the high and low levels of different signals, which has a higher fault tolerance rate and a lower error rate in the high-frequency environment of electronic equipment.
[0099] On the other hand, the present invention provides an electronic device, comprising the above-mentioned signal communication circuit, which has the same beneficial effects.
[0100] Since the embodiments of the electronic device provided by the present invention correspond to the same embodiments as the above-mentioned signal communication circuit, the present invention will not be described in detail here.
[0101] On the other hand, the present invention further provides a power signal detection method, which is applied to the above-mentioned signal communication circuit, comprising:
[0102] The signal output circuit is configured to output at least two electrical signals with different attribute parameters according to the current output requirement;
[0103] Determine the attribute parameters of the currently received electrical signal, and determine to output a high level signal or a low level signal based on the attribute parameters corresponding to the electrical signal.
[0104] When there are two types of electrical signals and the attribute parameters include an amplitude parameter and a frequency parameter, determining whether to output a high-level signal or a low-level signal based on the attribute parameters corresponding to the electrical signal includes:
[0105] If the amplitude parameter represents that the amplitude of the current electrical signal is within the first amplitude interval, then the electrical signal is a low-level signal;
[0106] If the frequency parameter represents that the frequency of the current electrical signal is within the first frequency interval, then the electrical signal is a low-level signal;
[0107] If the amplitude parameter represents that the amplitude of the current electrical signal is within the second amplitude interval, then the electrical signal is a high level signal;
[0108] If the frequency parameter indicates that the frequency of the current electrical signal is within the second frequency interval, the electrical signal is a low-level signal.
[0109] The power signal detection method provided by the present invention is applied to the above-mentioned signal communication circuit, wherein the signal output circuit thereof is used to output at least two electrical signals with different attribute parameters according to the current output demand; the signal detection circuit is used to determine the attribute parameters of the currently received electrical signal, and determine to output a high-level signal or a low-level signal based on the attribute parameters corresponding to the electrical signal. When there are two types of electrical signals and the attribute parameters include an amplitude parameter and a frequency parameter, the judgment criterion is: if the amplitude parameter represents that the amplitude of the current electrical signal is within a first amplitude interval, then the electrical signal is a low-level signal; if the frequency parameter represents that the frequency of the current electrical signal is within the first frequency interval, then the electrical signal is a low-level signal; if the amplitude parameter represents that the amplitude of the current electrical signal is within a second amplitude interval, then the electrical signal is a high-level signal; if the frequency parameter represents that the frequency of the current electrical signal is within the second frequency interval, then the electrical signal is a low-level signal. That is to say, in the present invention, the same circuit output channel outputs two signals, and by setting its attribute parameters as a carrier, it carries the high and low level judgment of the two signals. It does not increase the output end of the circuit, and in the present invention, the attribute parameters of the signal are used as a carrier to judge the high and low levels of different signals, which has a higher fault tolerance rate and a lower error rate in the high-frequency environment of electronic equipment.
[0110] Figure 6 A structural diagram of a power signal detection device provided by an embodiment of the present invention, such as Figure 6 As shown, the power signal detection device includes: a memory 60 for storing a computer program;
[0111] The processor 61 is used to implement the steps of the power signal detection method in the above embodiment when executing the computer program.
[0112] The power signal detection device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0113] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0114] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of the power signal detection method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc.
[0115] In some embodiments, the power signal detection device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .
[0116] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the power signal detection device, and may include more or fewer components than those shown in the figure.
[0117] It is understandable that if the power signal detection method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.
[0118] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the power signal detection device method as described above are implemented.
[0119] The above is a detailed introduction to a power signal detection device provided by an embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0120] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0121] The above is a detailed introduction to a signal communication circuit, an electronic device and a power signal detection method provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A signal communication circuit, characterized in that: include: Signal output circuit and signal detection circuit; The signal output circuit is used to output at least two electrical signals with different attribute parameters according to the current output requirements; The input end of the signal detection circuit is connected to the output end of the signal output circuit, and is used to determine the attribute parameters of the currently received electrical signal, and determine to output a high level signal or a low level signal based on the attribute parameters corresponding to the electrical signal.
2. The signal communication circuit according to claim 1, characterized in that: The signal output circuit comprises: a digital signal processor and a shaping isolation circuit; The input end of the digital signal processor is connected to the signal end, and is used to obtain at least two initial electrical signals in the signal end, and adjust the attribute parameters of the initial electrical signals according to the output requirements to obtain at least two initial electrical signals with different attribute parameters; The input end of the shaping isolation circuit is connected to the output end of the digital signal processor, and the output end of the shaping isolation circuit is connected to the input end of the signal detection circuit as the output end of the signal output circuit, and is used to obtain the initial electrical signal with different attribute parameters, and perform waveform conversion on the initial electrical signal according to the output requirements to obtain at least two electrical signals with different attribute parameters.
3. The signal communication circuit according to claim 2, characterized in that: The signal output circuit also includes: a filter circuit and a drive amplifier circuit; The input end of the filter circuit is connected to the output end of the shaping isolation circuit; and is used to filter the electrical signals with at least two different attribute parameters; The input end of the driving amplifier circuit is connected to the output end of the filtering circuit, and is used to perform gain amplification processing on the filtered electrical signal.
4. The signal communication circuit according to any one of claims 1 to 3, characterized in that: There are two types of electrical signals, the attribute parameters include amplitude parameters and frequency parameters, and the signal detection circuit includes: a signal processing chip, a high-voltage comparison circuit and a low-voltage comparison circuit; The input end of the high-voltage comparison circuit is connected to the output end of the signal output circuit as the input end of the signal detection circuit, and the output end of the high-voltage comparison circuit is connected to the first input end of the signal processing chip, so as to output a first comparison signal according to the attribute parameter corresponding to the electrical signal; The input end of the low voltage comparison circuit is connected to the output end of the signal output circuit as the input end of the signal detection circuit, and the output end of the low voltage comparison circuit is connected to the second input end of the signal processing chip, and is used to output a second comparison signal according to the attribute parameter corresponding to the electrical signal; The signal processing chip is used to determine to output the high level signal or the low level signal according to the first comparison signal and the second comparison signal.
5. The signal communication circuit according to claim 4, characterized in that: The high voltage comparison circuit is a first comparator; Wherein, the first input terminal of the first comparator is connected to the output terminal of the signal output circuit as the input terminal of the high voltage comparison circuit; The second input terminal of the first comparator is connected to a first preset comparison voltage source; The first pin end of the first comparator is connected to a preset reference voltage source; The output end of the first comparator is connected to the first input end of the signal processing chip as the output end of the high-voltage comparison circuit.
6. The signal communication circuit according to claim 4, characterized in that: The low voltage comparison circuit comprises: a second comparator, a voltage follower, a MOS tube, a first resistor, a voltage regulator tube and a first capacitor; Wherein, the first input terminal of the second comparator is connected to the output terminal of the signal output circuit as the input terminal of the low voltage comparison circuit; The second input terminal of the second comparator is connected to a second preset comparison voltage source; The first pin end of the second comparator is connected to a preset reference voltage source; The output end of the second comparator is connected to the first input end of the voltage follower and the first end of the voltage regulator tube; The second end of the voltage regulator tube is grounded; The second input terminal of the voltage follower is connected to the first terminal of the first resistor; The output end of the voltage follower is connected to the second end of the first resistor, the gate of the MOS tube and the first end of the first capacitor; The source of the MOS tube is grounded; The drain of the MOS tube is connected to the second end of the signal processing chip as the output end of the low voltage comparison circuit; The second terminal of the first capacitor is grounded.
7. An electronic device, characterized in that: A signal communication circuit comprising any one of claims 1 to 6.
8. A power signal detection method, characterized in that: The signal communication circuit as claimed in claim 1, comprising: The signal output circuit is configured to output at least two electrical signals with different attribute parameters according to the current output requirement; Determine the attribute parameters of the currently received electrical signal, and determine to output a high level signal or a low level signal based on the attribute parameters corresponding to the electrical signal.
9. The power signal detection method according to claim 8, characterized in that: There are two types of electrical signals, and the attribute parameters include an amplitude parameter and a frequency parameter. The output of a high-level signal or a low-level signal is determined based on the attribute parameters corresponding to the electrical signal, including: If the amplitude parameter indicates that the current amplitude of the electrical signal is within the first amplitude interval, then the electrical signal is the low-level signal; If the frequency parameter indicates that the current frequency of the electrical signal is within the first frequency interval, then the electrical signal is the low-level signal.
10. The power signal detection method according to claim 9, characterized in that: Determining to output a high level signal or a low level signal based on the attribute parameter corresponding to the electrical signal, further comprising: If the amplitude parameter indicates that the current amplitude of the electrical signal is within the second amplitude range, then the electrical signal is the high level signal; If the frequency parameter indicates that the current frequency of the electrical signal is within the second frequency interval, then the electrical signal is the low-level signal.
Citation Information
Patent Citations
Superregenerative receiving device and method
CN101997556A
Signal parameter detection device and method
CN111398645A
Microwave / millimeter wave integrated circuit chip internal detection device
CN112415361A
Data analysis method and device and electronic equipment
CN114548247A
NFC chip with anomaly detection function
CN206147689U