Complex band-pass filter and electronic equipment
By setting up a comparator and a collaborative controller in the complex bandpass filter, the calibration accuracy problem caused by the mutual influence between the filter circuits is solved, and the accuracy of the offset voltage of the complex bandpass filter is realized, which improves the calibration accuracy and The accuracy of the output signal.
Patent Information
- Application Number
- CN202411147689.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-12-20
AI Technical Summary
When the complex bandpass filter is calibrated for offset voltage, due to the mutual influence between the two low-pass filter circuits, the prior art is difficult to accurately adjust, resulting in poor calibration accuracy.
A complex bandpass filter is designed. By setting a comparator at the output end of each filter circuit, the attribute of the offset voltage value is detected, and the corresponding controllers are controlled to work together according to its attributes, so that the offset voltage of the two filter circuits is caused. The value meets the preset conditions at the same time, takes into account the mutual influence between the filter circuits, and accurately adjusts the offset voltage.
The offset voltage value of the complex bandpass filter is accurately adjusted, which improves calibration accuracy and ensures the accuracy of the filter output signal.
Smart Images

Figure CN119171873A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a complex bandpass filter and an electronic device. Background Art
[0002] A filter is a circuit structure that allows bandwidth signals of a specific frequency to pass through and filters out noise signals outside the frequency band. Among them, calibration of the offset voltage is an important means to ensure the normal operation of the filter.
[0003] At present, the structure of the complex bandpass filter is equivalent to the structure obtained by combining two low-pass filter circuits, and the offset voltage calibration of the complex bandpass filter can directly adopt the calibration strategy of a single low-pass filter.
[0004] However, in the current solution, when the complex bandpass filter is working, the two low-pass filter circuits it includes will affect each other. Directly using a single low-pass filter calibration strategy during offset voltage calibration will ignore the problems caused by this influence, resulting in poor calibration accuracy.
[0005] Application Contents
[0006] The embodiments of the present application provide a complex bandpass filter and an electronic device to solve the problems in the prior art.
[0007] In a first aspect, an embodiment of the present application provides a complex bandpass filter, the complex bandpass filter comprising:
[0008] A first filter circuit, a second filter circuit, a first controller connected to the first filter circuit, a second controller connected to the second filter circuit, and comparators respectively arranged at the output end of the first filter circuit and the output end of the second filter circuit;
[0009] The first controller is used to adjust the offset voltage value of the first filter circuit; the second controller is used to adjust the offset voltage value of the second filter circuit;
[0010] The comparator is used to detect the attribute of the offset voltage value generated at the output end, and control the first controller and the second controller to work according to the attribute of the offset voltage value, so that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet preset conditions; the attribute of the offset voltage value is positive or negative.
[0011] In a second aspect, an embodiment of the present application provides an electronic device, wherein the electronic device includes: a complex bandpass filter.
[0012] The embodiment of the present application can detect the properties of the offset voltage values generated at the output ends of the two filter circuits through a comparator, and control the first controller and the second controller to work together according to the combination of the properties of the two offset voltage values, so that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet the preset conditions. The embodiment of the present application does not only utilize the calibration strategy of a single low-pass filter, but takes into account the mutual influence between the two filter circuits, and allows the first controller and the second controller to work together based on the combination of the properties of the offset voltages of the two filter circuits, so that the embodiment of the present application can achieve the purpose of accurately adjusting the offset voltage value of the complex bandpass filter.
[0013] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1A is a structural block diagram of a complex bandpass filter provided in an embodiment of the present application;
[0015] Figure 1B is a specific structural block diagram of a complex bandpass filter provided in an embodiment of the present application;
[0016] Figure 2 is a structural diagram of a controller provided in an embodiment of the present application;
[0017] Figure 3 This is a schematic diagram of offset voltage adjustment provided by an embodiment of the present application;
[0018] Figure 4 is a structural block diagram of an electronic device provided in an embodiment of the present application;
[0019] Figure 5 It is a logic block diagram of an electronic device provided in an embodiment of the present application;
[0020] Figure 6 It is a logic block diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0022] In the embodiments of this application, refer to Figure 1A , which shows a structural block diagram of a complex bandpass filter, including: a first filtering circuit, a second filtering circuit, a first controller connected to the first filtering circuit and a second controller connected to the second filtering circuit, and comparators respectively arranged at the output end of the first filtering circuit and the output end of the second filtering circuit; the first controller is used to adjust the offset voltage value of the first filtering circuit; the second controller is used to adjust the offset voltage value of the second filtering circuit; the comparator is used to detect the attribute of the offset voltage value generated at the output end, and according to the attribute of the offset voltage value, control the first controller and the second controller to work, so that the offset voltage value of the first filtering circuit and the offset voltage value of the second filtering circuit meet the preset conditions at the same time; the attribute of the offset voltage value is positive or negative.
[0023] Offset voltage refers to the difference in DC voltage applied to the two input terminals of a differential amplifier or differential input operational amplifier in order to obtain a constant zero voltage output at the output terminal. The offset voltage will change with temperature. When equal input voltages are applied to the two input terminals of the differential amplifier, the differential output voltage is called the output offset voltage. The closer the offset voltage of the operational amplifier in the filter is to 0, the less the voltage value of the analog signal output by the operational amplifier of the filter will be affected, which can make the analog signal output by the filter more accurate. Therefore, the offset voltage of the operational amplifier of the filter is a very important indicator, and the smaller the value, the better.
[0024] Specifically, refer to Figure 1B The first filter circuit I and the second filter circuit Q are two low-pass filter structures, both of which include an input resistor R in , operational amplifier op1, operational amplifier op2 and other required resistors and capacitors in the filter circuit. The offset voltage value includes the input offset voltage value and the output offset voltage value. Taking the first filter circuit I as an example, its input voltage V IN_I and input voltage V IP_I The difference is the input offset voltage value, and the output voltage V OP_I and input voltage V ON_I The difference is the output offset voltage value, and the same is true for the second filter circuit Q. Generally speaking, the product of the input offset voltage value and the DC gain of the filter is the output offset voltage value.
[0025] The first controller DCOC_I and the second controller DCOC_Q are used to adjust the offset voltage values of the first filter circuit I and the second filter circuit Q respectively. Taking the first controller DCOC_I as an example, the specific adjustment means is to adjust the input resistance R of the first filter circuit I. IN The charging and discharging process is realized. During this process, the resistor R INAs a capacitor (element storing charge), charging and discharging can be realized. Specifically, for the charging process, when the resistor is connected to the power supply, the power supply applies voltage, the resistor starts to charge, and the voltage of the resistor gradually increases until it reaches about 63% of the power supply voltage; for the discharging process, when the resistor is disconnected from the power supply, the resistor starts to discharge, and the voltage of the resistor gradually decreases until it reaches 0 V. In addition, the attribute of the offset voltage value can be the numerical sign of the offset voltage value, such as + or -.
[0026] If it is detected that the current output offset voltage value of the first filter circuit I is negative, it can be determined that the current input offset voltage value is too small and needs to be increased. The first controller DCOC_I can adjust the input resistor R IN Charging (i.e. controlling the input voltage V IN_I and input voltage V IP_I To the connected R IN output voltage) to increase the input offset voltage value; if it is detected that the attribute of the current output offset voltage value of the first filter circuit I is positive, it can be determined that the current input offset voltage value is too large and needs to be reduced, and the first controller DCOC_I can adjust the input resistor R IN Discharge to reduce the input offset voltage.
[0027] The method of determining the attribute of the output offset voltage value is implemented by a comparator set at the output end. Taking the first filter circuit I as an example, when V OP_1 >V ON_1 When the output offset voltage value> 0; when V OP_1 <V ON_1 When , the output offset voltage value is <0.
[0028] For a single filter circuit, the offset voltage can be adjusted through the corresponding controller. For a complex bandpass filter, since it includes two connected filter circuits, the offset voltages between the two filter circuits will affect each other. When the offset voltage of one filter circuit is calibrated, the offset voltage of the other filter circuit will change accordingly, and the calibration situation will become complicated. If only the offset voltage of a single filter circuit is adjusted independently, the problems caused by the above-mentioned influence will be ignored, resulting in a decrease in adjustment accuracy.
[0029] In the embodiment of the present application, the comparator can detect the properties of the offset voltage value generated at the output terminal, and according to the properties of the offset voltage value, control the first controller and the second controller to work together, so that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet the preset conditions. That is, the embodiment of the present application takes into account the mutual influence between the two filter circuits, so that the first controller and the second controller work together based on the properties of the offset voltages of the two filter circuits, thereby more accurately calibrating the output offset voltage of the complex bandpass filter to a value close to 0.
[0030] Specifically, assuming the input offset voltage value is x and the output offset voltage value is y, there is the following relationship:
[0031]
[0032] If 1 represents the first filter circuit I and 2 represents the second filter circuit Q, the input and output relationship of the two filter circuits is as follows:
[0033]
[0034] The comparator determines when V OP_1 >V ON_1 When the output offset voltage value> 0; when V OP_1 <V ON_1 When y1>0, y2>0 (the output offset voltage values of the first filter circuit and the second filter circuit are both too large), x1>0 must exist at this time. In this case, the first controller can be controlled to reduce the input offset voltage value x1 of the first filter circuit through the first controller, thereby reducing y1 and y2 together, thereby achieving the purpose of reducing the output offset voltage values of the first filter circuit and the second filter circuit together.
[0035] Another mutual influence relationship is: when y1>0, y2<0 (the output offset voltage value of the first filter circuit is too large, and the output offset voltage value of the second filter circuit is too small), x2<0 must be true at this time. In this case, the second controller can be controlled to increase the input offset voltage value x2 of the second filter circuit through the second controller, thereby reducing the input offset voltage value y1 of the first filter circuit and increasing the input offset voltage value y2 of the second filter circuit.
[0036] It can be seen that the embodiment of the present application utilizes a comparator to determine the properties of the offset voltage values output by the first filter circuit and the second filter circuit, respectively, so that the first controller and the second controller can work together based on the combination of the properties of the offset voltages of the two filter circuits, thereby achieving the purpose of accurately adjusting the offset voltage value while taking into account the mutual influence between the two filter circuits.
[0037] The embodiment of the present application can detect the properties of the offset voltage values generated at the output ends of the two filter circuits through a comparator, and control the first controller and the second controller to work together according to the combination of the properties of the two offset voltage values, so that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet the preset conditions. The embodiment of the present application does not only utilize the calibration strategy of a single low-pass filter, but takes into account the mutual influence between the two filter circuits, and allows the first controller and the second controller to work together based on the combination of the properties of the offset voltages of the two filter circuits, so that the embodiment of the present application can achieve the purpose of accurately adjusting the offset voltage value of the complex bandpass filter.
[0038] Optional, see Figure 1B The input terminals corresponding to the first controller DCOC_I and the second controller DCOC_Q are used to generate input offset voltage values; the input terminals are provided with input resistors R IN ;reference Figure 2 , the first controller DCOC_I and the second controller DCOC_Q both include: two groups of current source groups; wherein the two groups of current source groups are connected by a switch group; the first current source group in the two groups of current source groups provides a positive current, and the other second current source group provides a negative current; each of the two groups of current source groups includes a plurality of current branches connected in parallel with each other, each current branch has a corresponding switch, each current branch includes at least one current source, and the number of current sources included in each of the multiple current branches increases uniformly in sequence.
[0039] In the embodiment of the present application, the input terminals corresponding to the first controller DCOC_I and the second controller DCOC_Q are respectively used to generate an input offset voltage value. Specifically, taking the first controller DCOC_I as an example, the first controller DCOC_I can provide an input resistor R IN Output current, superimposed on the input resistance R IN The current value on the resistor R IN The product of the resistance values is the input offset voltage value of the first filter circuit I. The adjustment of the second controller DCOC_Q is similar.
[0040] Specifically, the circuit structures of the first controller DCOC_I and the second controller DCOC_Q refer to Figure 2The controller circuit includes two current source groups of the same size and a control unit. Each current source group is used to provide a calibration current, and the calibration currents provided by the two current source groups are opposite, that is, the first current source group of the two current source groups provides a positive current I_dcoc_p, and the second current source group provides a negative current I_dcoc_n. When the input offset voltage value needs to be increased, the control unit can control the first current source group to provide a positive current I_dcoc_p; when the input offset voltage value needs to be reduced, the control unit can control the second current source group to provide a negative current I_dcoc_n.
[0041] Optionally, each group of the current source groups includes 7 current branches connected in parallel, the first current branch of the 7 current branches includes 1 current source, the second current branch includes 2 current sources, the third current branch includes 4 current sources, the fourth current branch includes 8 current sources, the fifth current branch includes 16 current sources, the sixth current branch includes 32 current sources, and the seventh current branch includes 64 current sources.
[0042] Furthermore, each current source group includes a plurality of current branches connected in parallel, each current branch has a corresponding switch, each current branch includes at least one current source, and the number of current sources included in each of the plurality of current branches increases uniformly in sequence. Figure 2 In the example, each current source group includes current branch X, current branch 2X, current branch 4X, current branch 8X, current branch 16X, current branch 32X, and current branch 64X, that is, from current branch X to current branch 64X, the number of current sources included in the current branch increases uniformly, that is, the current provided by the current branch increases in sequence. In addition, the control unit can turn on the switch corresponding to a circuit branch so that the current branch outputs current to the input end.
[0043] It should be noted that the embodiments of the present application do not specifically limit the number of current branches included in the current source group and the number of current sources included in the current branches. The number of current branches included in the current source group and the number of current sources included in the current branches can be increased or decreased according to actual needs.
[0044] Optionally, the first controller and the second controller are specifically used to adjust the offset voltage value by a dichotomy method.
[0045] Binary search is a search method that is very efficient when the amount of data is large. Figure 2The controller architecture of the present application has a binary division implementation logic that divides the total current that the current group can provide into multiple current branches that multiply in sequence. In the process of adjusting the offset voltage, the largest current branch is turned on first. If the current provided by it is insufficient, the current branch with the next largest current is turned on. If the total current provided by these two current branches is still insufficient, a smaller current branch is turned on. In the adjustment process, if the total current provided by the current branch that is turned on at a certain moment is too large, the previous current branch that is turned on is disconnected, and a smaller current branch is turned on, and so on, until the switch of the smallest current branch is completely controlled. At this time, the total current provided by all the current branches that are turned on can accurately adjust the offset voltage to a value close to 0.
[0046] Optionally, the first controller and the second controller are specifically used for:
[0047] When it is detected that the output offset voltage value generated at the output end is negative, based on the binary method, the input resistor is charged by sequentially controlling the switches corresponding to each current branch in the first current source group, thereby increasing the input offset voltage value and further increasing the output offset voltage value.
[0048] When it is detected that the output offset voltage value generated at the output end is positive, based on the binary method, the input resistor is discharged by sequentially controlling the switches corresponding to each current branch in the second current source group, thereby reducing the input offset voltage value and further reducing the output offset voltage value.
[0049] In the embodiment of the present application, the attribute of the output offset voltage value generated by the output end of the filter circuit can be used to reflect whether the current output offset voltage value is greater than 0 or less than 0 (a positive attribute indicates that the current output offset voltage value is greater than 0, and a negative attribute indicates that the current output offset voltage value is less than 0). The first controller and the second controller can specifically determine whether the input offset voltage should be increased or decreased according to the attribute of the output offset voltage value, that is, when the attribute of the output offset voltage value is positive, it is determined that the input resistor of the input end should be discharged by controlling the second current source group to reduce the input offset voltage value and make it close to 0; when the attribute of the output offset voltage value is negative, it is determined that the input resistor of the input end should be charged by controlling the first current source group to increase the input offset voltage value and make it close to 0.
[0050] In one example, referring to Figure 2 , assuming that the current input offset voltage value is negative, and set 7 current branches (X to 64X) corresponding to bit0 to bit6 respectively, when binary calibration is used:
[0051] The control unit first turns on bit 6 in the first current source group (setting bit 6 to 1 to turn on the switch corresponding to 64X), and sets bits 5 to 0 to perform the first calibration;
[0052] Then, determine whether the attribute of the calibrated input offset voltage value is still negative; if it is still negative, keep bit6 turned on and bits 4 to 0 turned off, set bit 5 to 1, and increase the output calibration current;
[0053] Then, determine whether the attribute of the calibrated input offset voltage value is still negative; if it is still negative, keep bit6 and bit5 turned on and bit3 to bit0 turned off, set bit4 to 1, and increase the output calibration current;
[0054] Then, determine whether the attribute of the calibrated input offset voltage value is still negative; if it is not negative (positive), keep the current bit6 and bit5 turned on and bit2 to bit0 turned off, set bit4 to 0, and set bit3 to 1 to reduce the output calibration current; if it is negative, keep the current bit6, bit5, bit4 turned on and bit2 to bit0 turned off, set bit3 to 1, and increase the output calibration current. And so on, until the switch corresponding to bit0 is controlled, and the offset voltage is calibrated.
[0055] Optionally, the input end of the first controller is used to generate a first input offset voltage value; the input end of the second controller is used to generate a second input offset voltage value; the comparator is specifically used to detect the properties of the first output offset voltage value generated by the output end of the first filter circuit, and the properties of the second output offset voltage value generated by the output end of the second filter circuit;
[0056] Comparators are specifically used for:
[0057] When the attribute of the first output offset voltage value is positive and the attribute of the second output offset voltage value is positive, determining that the attribute of the first input offset voltage value is positive, and controlling the first controller to reduce the first input offset voltage value, so that the first output offset voltage value and the second output offset voltage value are reduced;
[0058] When the attribute of the first output offset voltage value is negative and the attribute of the second output offset voltage value is negative, determining that the attribute of the first input offset voltage value is negative, and controlling the first controller to increase the first input offset voltage value, so that the first output offset voltage value and the second output offset voltage value increase;
[0059] When the attribute of the first output offset voltage value is positive and the attribute of the second output offset voltage value is negative, determining that the attribute of the second input offset voltage value is negative, and controlling the second controller to increase the second input offset voltage value, so that the first output offset voltage value decreases and the second output offset voltage value increases;
[0060] When the attribute of the first output offset voltage value is negative and the attribute of the second output offset voltage value is positive, it is determined that the attribute of the second input offset voltage value is positive, and the second controller is controlled to reduce the second input offset voltage value, so that the first output offset voltage value increases and the second output offset voltage value decreases.
[0061] In the embodiment of the present application, the offset voltages between the two filter circuits included in the complex bandpass filter will affect each other. When the offset voltage of one filter circuit is calibrated, the offset voltage of the other filter circuit will change accordingly, and the calibration situation will become complicated. The embodiment of the present application takes into account the mutual influence between the two filter circuits, so that the first controller and the second controller work together based on the properties of the offset voltages of the two filter circuits.
[0062] The comparator determines when V OP_1 >V ON_1 When the output offset voltage value> 0; when V OP_1 <V ON_1 When the output offset voltage value is <0, four mutual influence relationships of input / output offset voltage values can be summarized:
[0063] Rule 1: When y1>0, y2>0, then x1>0;
[0064] Rule 2: When y1<0, y2<0, then x1<0 must be true;
[0065] Rule 3: When y1>0, y2<0, then x2<0;
[0066] Rule 4: When y1<0, y2>0, then x2>0 must be true;
[0067] According to rule 1, the first controller can be controlled to work, and the input offset voltage value x1 of the first filter circuit can be reduced through the first controller, so that y1 and y2 can be reduced together, so as to achieve the purpose of reducing the output offset voltage values of the first filter circuit and the second filter circuit together.
[0068] According to rule 2, the first controller can be controlled to increase the input offset voltage value x1 of the first filter circuit through the first controller, thereby increasing y1 and y2 together, thereby achieving the purpose of increasing the output offset voltage values of the first filter circuit and the second filter circuit together.
[0069] According to rule 3, the second controller can be controlled to increase the input offset voltage value x2 of the second filter circuit, thereby reducing the input offset voltage value y1 of the first filter circuit and increasing the input offset voltage value y2 of the second filter circuit.
[0070] According to rule 4, the second controller can be controlled to reduce the input offset voltage value x2 of the second filter circuit, thereby increasing the input offset voltage value y1 of the first filter circuit and reducing the input offset voltage value y2 of the second filter circuit.
[0071] Specifically, the above rules show that the properties of the input offset voltage can be judged according to the properties of the output offset voltages of the I and Q filter circuits, and then the input offset voltage can be increased or decreased to change the value of the output offset voltage. Among them, the output offset voltages of the I and Q filter circuits: y1 and y2 can be XORed. If y1 and y2 are in the same direction (consistent properties), the XOR result is 0. At this time, the first controller of the I filter circuit is controlled, and x1 is increased or decreased according to the property of y2. If y2>0, x1 is decreased, and if y2<0, x1 is increased; if y1 and y2 are in opposite directions (inconsistent properties), the XOR result is 1. At this time, the second controller of the Q filter circuit is controlled, and x1 is increased or decreased according to the property of y2. If y2>0, x1 is decreased, and if y2<0, x1 is increased. The above calibration process is to calibrate one of the I and Q filter circuits first through the XOR result of y1 and y2, and then calibrate the other filter circuit. The embodiment of the present application can enable the first controller and the second controller to work together based on the combination of the properties of the offset voltages of the two filter circuits, thereby achieving the purpose of accurately adjusting the offset voltage value while taking into account the mutual influence between the two filter circuits.
[0072] Reference Figure 3 In the present embodiment, y1=1 and y2=1 are taken as an example in the initial state. Figure 3 I_out and Q_out are used to represent y1 and y2 respectively:
[0073] In the initial case, the result of I_out XOR Q_out is 0, and Q_out>0, so first reduce x1 to calibrate the I-way filter circuit, that is, discharge the I-way filter circuit. In the binary calibration process, the I-way filter circuit is continuously charged and discharged for the first few times, and the calibration result will jump back and forth between I_out=1, Q_out=1 and I_out=0, Q_out=0. When the input offset voltage x1 of the I-way filter circuit is calibrated to be relatively small, that is, near 0, the calibration result will be converted to I_out=1, Q_out=0 and I_out=0, Q_out=1. At this time, the Q-way filter circuit is charged and discharged to reduce the input offset voltage x2 of the Q-way filter circuit. When x2 is reduced to near 0, the output offset voltages of the I and Q filter circuits will approach 0 at the same time, and the calibration is completed.
[0074] Optionally, in one case, the comparator is specifically used to: when the difference between the offset voltage value of the first filter circuit and 0, and the difference between the offset voltage value of the second filter circuit and 0 are both smaller than the same preset threshold, determine that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet preset conditions, and control the first controller and the second controller to stop working.
[0075] In one implementation of the embodiment of the present application, a termination condition of the offset voltage adjustment process of the complex bandpass filter is that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously approach 0, that is, the difference between the offset voltage value of the first filter circuit and 0, and the difference between the offset voltage value of the second filter circuit and 0 are calculated, and when both differences are less than the same preset threshold value (the preset threshold value can be a value close to 0), it is determined that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet the termination condition, and the first controller and the second controller are controlled to stop working.
[0076] Optionally, in another case, the comparator is specifically used to: when completing the control of the switches corresponding to all current branches of the first controller and the switches corresponding to all current branches of the second controller, determine that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet preset conditions, and control the first controller and the second controller to stop working.
[0077] In another implementation of the embodiment of the present application, the termination condition of the offset voltage adjustment process of the complex bandpass filter is that the switches of the current branches respectively included in the first controller of the first filtering circuit and the second controller of the second filtering circuit have completed the control, that is, when the switches corresponding to all the current branches of the first controller and the switches corresponding to all the current branches of the second controller are completed (that is, Figure 2The switch corresponding to the middle current branch X is turned off / on), it is determined that the offset voltage value of the first filtering circuit and the offset voltage value of the second filtering circuit simultaneously meet the termination condition, and the first controller and the second controller are controlled to stop working.
[0078] Optional, see Figure 1B , the complex bandpass filter also includes: connecting resistor R fl ; Connect the resistor to the resistor R fl The two ends of are respectively connected to the first filter circuit I and the second filter circuit Q. In the embodiment of the present application, the first filter circuit I and the second filter circuit Q can be two low-pass filter structure circuits, which are connected by a resistor R fl connected to form a complex bandpass filter, resistor R fl The two ends are connected to the input and output ends of two-stage operational amplifiers: op1 and op2, the output of the I-way operational amplifier is connected in phase with the input of the Q-way operational amplifier, and the output of the Q-way operational amplifier is connected in anti-phase with the input of the I-way operational amplifier.
[0079] Reference Figure 4 An embodiment of the present application also provides an electronic device, which includes the complex bandpass filter.
[0080] The embodiment of the present application can detect the properties of the offset voltage values generated at the output ends of the two filter circuits through a comparator, and control the first controller and the second controller to work together according to the combination of the properties of the two offset voltage values, so that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet the preset conditions. The embodiment of the present application does not only utilize the calibration strategy of a single low-pass filter, but takes into account the mutual influence between the two filter circuits, and allows the first controller and the second controller to work together based on the combination of the properties of the offset voltages of the two filter circuits, so that the embodiment of the present application can achieve the purpose of accurately adjusting the offset voltage value of the complex bandpass filter.
[0081] Figure 5 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0082] Reference Figure 5 , the electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, a complex bandpass filter 615, and a communication component 616. The complex bandpass filter 615 is the above Figure 1B The device shown in the embodiment.
[0083] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0084] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0085] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0086] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0087] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0088] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0089] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0090] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0091] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to implement a method performed by a complex bandpass filter provided in an embodiment of the present application.
[0092] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0093] Figure 6 is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Figure 6 The electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each of which corresponds to a set of instructions. In addition, the processing component 722 is configured to execute instructions to execute the method performed by the complex bandpass filter provided in the embodiment of the present application. The electronic device 700 may also include a complex bandpass filter 742, wherein the complex bandpass filter 742 is the above-mentioned Figure 1B The device shown in the embodiment.
[0094] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
[0095] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the embodiment implemented by the above-mentioned complex bandpass filter are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0096] The embodiment of the present application also provides a computer program product, which is executed by a processor to implement various processes of the embodiment implemented by the complex bandpass filter as described above, and can achieve the same technical effect. To avoid repetition, it is not repeated here. The computer program product can be stored in a storage medium.
[0097] In summary, the complex bandpass filter provided in the embodiments of the present application may be a chip or a chip system.
[0098] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0099] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A complex bandpass filter, characterized in that: The complex bandpass filter comprises: A first filter circuit, a second filter circuit, a first controller connected to the first filter circuit, a second controller connected to the second filter circuit, and comparators respectively arranged at the output end of the first filter circuit and the output end of the second filter circuit; The first controller is used to adjust the offset voltage value of the first filter circuit; the second controller is used to adjust the offset voltage value of the second filter circuit; The comparator is used to detect the attribute of the offset voltage value generated at the output end, and control the first controller and the second controller to work according to the attribute of the offset voltage value, so that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet preset conditions; the attribute of the offset voltage value is positive or negative.
2. The complex bandpass filter according to claim 1, characterized in that The input terminals corresponding to the first controller and the second controller are respectively used to generate an input offset voltage value; the input terminals are provided with input resistors; The first controller and the second controller each include two current source groups; wherein the two current source groups are connected by a switch group; the first current source group of the two current source groups provides a positive current, and the second current source group provides a negative current; Each of the two current source groups includes a plurality of current branches connected in parallel, each of the current branches has a corresponding switch, each of the current branches includes at least one current source, and the number of current sources included in each of the plurality of current branches increases uniformly in sequence.
3. The complex bandpass filter according to claim 2, characterized in that The first controller and the second controller are specifically used to adjust the offset voltage value by a dichotomy method.
4. The complex bandpass filter according to claim 3, characterized in that: The first controller and the second controller are specifically used for: When it is detected that the output offset voltage value generated at the output terminal is negative, based on the dichotomy method, the input resistor is charged by sequentially controlling the switches corresponding to the respective current branches in the first current source group; When it is detected that the attribute of the output offset voltage value generated at the output terminal is positive, based on the dichotomy method, the input resistor is discharged by sequentially controlling the switches corresponding to the respective current branches in the second current source group.
5. The complex bandpass filter according to claim 2, characterized in that: Each current source group includes 7 current branches connected in parallel with each other, and the first current branch among the 7 current branches includes 1 current source, the second current branch includes 2 current sources, the third current branch includes 4 current sources, the fourth current branch includes 8 current sources, the fifth current branch includes 16 current sources, the sixth current branch includes 32 current sources, and the seventh current branch includes 64 current sources.
6. The complex bandpass filter according to claim 1, characterized in that: The input end of the first controller is used to generate a first input offset voltage value; the input end of the second controller is used to generate a second input offset voltage value; The comparator is specifically used to detect the property of the first output offset voltage value generated by the output end of the first filter circuit, and the property of the second output offset voltage value generated by the output end of the second filter circuit; The comparator is specifically used for: When the attribute of the first output offset voltage value is positive and the attribute of the second output offset voltage value is positive, determining that the attribute of the first input offset voltage value is positive, and controlling the first controller to reduce the first input offset voltage value; When the attribute of the first output offset voltage value is negative and the attribute of the second output offset voltage value is negative, determining that the attribute of the first input offset voltage value is negative, and controlling the first controller to increase the first input offset voltage value; When the attribute of the first output offset voltage value is positive and the attribute of the second output offset voltage value is negative, determining that the attribute of the second input offset voltage value is negative, and controlling the second controller to increase the second input offset voltage value; When the attribute of the first output offset voltage value is negative and the attribute of the second output offset voltage value is positive, it is determined that the attribute of the second input offset voltage value is positive, and the second controller is controlled to reduce the second input offset voltage value.
7. The complex bandpass filter according to claim 1, characterized in that: The comparator is specifically used for: When the difference between the offset voltage value of the first filter circuit and 0, and the difference between the offset voltage value of the second filter circuit and 0 are both smaller than a preset threshold, it is determined that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet preset conditions, and the first controller and the second controller are controlled to stop working.
8. The complex bandpass filter according to claim 2, characterized in that: The comparator is specifically used for: When the control of the switches corresponding to all current branches of the first controller and the switches corresponding to all current branches of the second controller is completed, it is determined that the offset voltage value of the first filter circuit and the offset voltage value of the second filter circuit simultaneously meet the preset conditions, and the first controller and the second controller are controlled to stop working.
9. The complex bandpass filter according to claim 1, characterized in that: The complex bandpass filter further comprises: Connect the resistor; Two ends of the connecting resistor are connected to the first filter circuit and the second filter circuit respectively.
10. An electronic device, characterized in that: The electronic device comprises: A complex bandpass filter as claimed in any one of claims 1 to 9.
