CN111654329A - Infrared receiving circuit with gain control, device and receiving method - Google Patents

Infrared receiving circuit with gain control, device and receiving method Download PDF

Info

Publication number
CN111654329A
CN111654329A CN202010589992.1A CN202010589992A CN111654329A CN 111654329 A CN111654329 A CN 111654329A CN 202010589992 A CN202010589992 A CN 202010589992A CN 111654329 A CN111654329 A CN 111654329A
Authority
CN
China
Prior art keywords
gain
module
gain setting
control
infrared receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010589992.1A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Minhe Optoelectronic Technology Co ltd
Original Assignee
Hangzhou Minhe Optoelectronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Minhe Optoelectronic Technology Co ltd filed Critical Hangzhou Minhe Optoelectronic Technology Co ltd
Priority to CN202010589992.1A priority Critical patent/CN111654329A/en
Publication of CN111654329A publication Critical patent/CN111654329A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/60Receivers
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Optical Communication System (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses an infrared receiving circuit with gain control, which comprises a variable gain amplification module, a control module and a gain setting module, wherein the variable gain amplification module is used for amplifying a signal; the control module is used for receiving a gain setting mode instruction or a signal amplification mode instruction sent by the upper computer, determining a gain setting value if the gain setting mode instruction is the gain setting mode instruction, and transmitting the gain setting value to the gain setting module; the gain setting module is connected with the control module and used for receiving the gain setting value transmitted by the control module and setting the gain of the variable gain amplification module when the gain setting module is in a gain setting mode; when in a signal amplification mode, maintaining the gain of the determined variable gain amplification module unchanged; the variable gain amplifying module is connected with the gain setting module and used for receiving the current signal output by the photosensitive diode, converting the current signal into a voltage signal according to the gain set by the gain setting module and amplifying and outputting the voltage signal.

Description

Infrared receiving circuit with gain control, device and receiving method
Technical Field
The invention relates to the technical field of infrared detection, in particular to an infrared receiving circuit with gain control, an infrared receiving device and an infrared receiving method.
Background
The infrared photosensitive diode is widely used as an infrared detection unit due to the characteristics of large receiving angle, high response speed and the like; meanwhile, the dynamic range of photocurrent signals generated by the photodiode is large, and the photocurrent signals can be from pA level to mA level, and an amplifier with adjustable gain is often required to meet the signal amplification requirement.
The gain adjusting method of the adjustable gain amplifier is different in different application occasions, for example, the adjustable gain amplifier in the infrared detection unit of the infrared touch screen needs to define the working condition in advance and measure the required gain value, and the corresponding gain value which is measured in advance is called according to the working condition to set the gain of the adjustable gain amplifier when in use.
The infrared detection system of the infrared touch screen comprises a plurality of paths of infrared transmitting units consisting of infrared transmitting tubes and driving circuits thereof and infrared receiving units consisting of infrared photosensitive diodes and amplifying circuits thereof, wherein the infrared transmitting units and the infrared receiving units are arranged around the touch screen to form an infrared transmitting-receiving pair consisting of one path of infrared transmitting units and one path of infrared receiving units which form transmitting-receiving relation; each path of infrared receiving unit receives the optical signals transmitted by the corresponding multiple paths of infrared transmitting units in a time-sharing manner, namely, the optical signals and the multiple paths of infrared transmitting units form a plurality of infrared transmitting-receiving pairs, and the infrared transmitting-receiving pairs work in a certain sequence. The infrared touch screen system needs the output amplitude of the infrared receiving unit of each infrared transmitting-receiving pair to be consistent, but the distance, angle and the like from the infrared transmitting tube of different infrared transmitting-receiving pairs to the infrared photosensitive diode are different, so the photocurrent obtained on the infrared photosensitive diode is also different, and the gain of the amplifying circuit of the infrared receiving unit needs to be adjusted; meanwhile, the distance, angle and the like between the infrared transmitting tube and the infrared photosensitive diode in each infrared transmitting-receiving pair are fixed, namely the infrared photosensitive diode receives an optical signal with preset light intensity, so that a required gain value of a set amplitude value output by an amplifying circuit of each infrared transmitting-receiving pair can be measured in advance and stored, the gain value stored in advance is called to set the gain of the amplifying circuit when the infrared transmitting-receiving pair works, the output of the amplifying circuit can reach the set amplitude value, and the response speed of each infrared transmitting-receiving pair is greatly accelerated.
The existing scheme of the infrared detection system of the infrared touch screen comprises an infrared transmitting tube, a driving circuit, an infrared photosensitive diode, a triode, a voltage amplifier, a digital potentiometer, a resistor, a capacitor, a memory and an upper computer MCU (microprogrammed control Unit), wherein the infrared photosensitive diode and the triode form a transimpedance amplifier, and the gain of the voltage amplifier is adjustable. The upper computer MCU pre-measures the gain value needed by the output of the amplifying circuit of a certain infrared transmitting-receiving pair to be the set amplitude value, and stores the gain value in the memory, when the voltage amplifier works normally, the pre-stored gain value is called to set the high-speed digital potentiometer serving as the feedback resistance of the voltage amplifier to complete the gain setting of the voltage amplifier, and the output of the amplifying circuit can reach the set amplitude value.
The existing scheme has more components and parts and higher control complexity and cost; the trans-impedance amplifier composed of the infrared photosensitive diode and the triode has the advantages that the amplitude of an output voltage signal is small, and the voltage amplifier is provided with longer wiring, so that the problem of low signal-to-noise ratio is caused.
For example, patent publication No. CN203984363U discloses a control gain adjustment amplifier and an infrared true multi-touch device, the control gain adjustment amplifier includes: the infrared receiving module, the amplifying module, the gain control module, the gain adjusting module and the secondary amplifying module are sequentially connected, and the gain adjusting module is connected with the primary amplifying module and the secondary amplifying module. The utility model replaces the related module for realizing the infrared true multi-point touch function in the existing infrared true multi-point touch screen with the control gain adjusting amplifier, and performs amplification gain adjustment on the infrared touch screen according to the input infrared signal so as to keep the consistency of the infrared signal and be beneficial to the signal transmission of the whole circuit; the infrared true multi-point touch module has the advantages that the application field and market competitiveness of the infrared true multi-point touch module are greatly promoted, the modern intelligent control is realized, the cost is reduced, and the cost performance is high. Although the gain can be adjusted according to the input infrared signal, the gain value can not be measured in advance, and the problem of calling in use exists, so that the whole response is slow, and great limitation is brought to application.
Disclosure of Invention
The invention aims to provide an infrared receiving circuit with gain control, an infrared receiving device and an infrared receiving method aiming at the defects of the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
an infrared receiving circuit with gain control comprises a variable gain amplification module, a control module and a gain setting module;
the control module is used for receiving a gain setting mode instruction or a signal amplification mode instruction sent by the upper computer, determining a gain setting value if the gain setting mode instruction is the gain setting mode instruction, and transmitting the gain setting value to the gain setting module;
the gain setting module is connected with the control module and used for receiving the gain setting value transmitted by the control module and setting the gain of the variable gain amplification module when the gain setting module is in a gain setting mode; when in a signal amplification mode, maintaining the gain of the determined variable gain amplification module unchanged;
the variable gain amplifying module is connected with the gain setting module and used for receiving the current signal output by the photosensitive diode, converting the current signal into a voltage signal according to the gain set by the gain setting module and amplifying and outputting the voltage signal.
Further, the control module further comprises a comparator, an input end of the comparator is connected with an output end of the variable gain amplification module, and the comparator is used for receiving the signal output by the variable gain amplification module and comparing the received signal with a preset reference potential or a preset reference voltage range to obtain a comparison result; and the control module generates a gain setting value after performing signal processing according to the comparison result.
Furthermore, the control module further comprises a communication interface and a circuit corresponding to the communication interface, and the circuit is used for communicating with the upper computer and receiving the gain setting value set by the upper computer.
The device further comprises a storage module, a control module and a control module, wherein the storage module is used for storing one or more gain setting values determined by the control module; the storage mode of the storage module is to store one or more gain setting values according to a certain addressing mode.
Furthermore, the control module is further configured to call the gain setting value stored in the storage module according to a certain addressing mode.
Further, the digital-to-analog converter further comprises an analog-to-digital conversion module, which is used for converting the analog output signal of the variable gain amplification module into a digital output signal.
And the infrared receiving circuit is used for receiving control information of the upper computer and outputting a high-resistance state or an output signal of the variable gain amplification module.
Further, the variable gain amplification module is a first-stage transimpedance variable gain amplifier or a variable gain amplifier formed by cascading a first-stage transimpedance amplifier and a first-stage/multi-stage voltage amplifier.
Correspondingly, an infrared receiving device with gain control is also provided, which comprises the infrared receiving circuit with gain control as claimed in any one of claims 1-8.
Correspondingly, an infrared receiving method with gain control is also provided, which comprises the following steps:
s1, a control module receives a gain setting mode instruction or an amplification mode instruction sent by an upper computer, if the gain setting mode instruction is the gain setting mode instruction, a gain setting value is determined, the gain setting value is transmitted to a gain setting module, and the step S2 is executed; if the command is the zoom-in mode, go to step S3;
s2, a gain setting module receives the gain setting value transmitted by the control module and sets the gain of the variable gain amplification module;
s3, according to the amplification mode instruction, the gain setting module maintains the set gain of the variable gain amplification module unchanged;
and S4, the variable gain amplification module receives a current signal output by the photosensitive diode, converts the current signal into a voltage signal according to the gain set by the gain setting module, and amplifies and outputs the voltage signal.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention integrates the main components of the infrared receiving unit in the infrared detection system into a special integrated circuit, in particular to a variable gain amplifying circuit; the invention can be matched with an upper computer to complete the gain setting of the special integrated circuit, thereby reducing the control difficulty, shortening the wiring length of small signals and being beneficial to improving the signal-to-noise ratio;
2. the invention can store one or more gain setting values, and the storage and calling of the gain setting values and the gain setting of the variable gain amplifier are carried out in the chip of the invention, thereby reducing the dependence on an upper computer, effectively reducing the complexity of system design and lowering the system cost;
3. the invention can automatically generate and store one or more gain setting values, complete the pre-measurement, storage and calling of the gain setting values and the gain setting of the variable gain amplifier, further reduce the dependence on an upper computer, reduce the complexity of system design and reduce the system cost;
4. the gain value can be measured in advance, the adjustable gain amplifier which measures the gain value in advance is called when in use, and the fixed amplitude value is taken as an output target when the gain value is measured in advance; the application field of the invention is the occasion of an amplifier which needs to adjust the gain to keep the output as a fixed amplitude value;
5. the gain setting value determined by the control module of the invention is from a storage module set by an upper computer or self-tested or called by the control module, and the circuit is more flexible to determine the gain setting value by setting three different modes.
Drawings
FIG. 1 is a schematic block diagram of a prior art mid-infrared touch screen provided in the first embodiment;
FIG. 2 is a schematic block diagram of an infrared receiving dedicated circuit with gain control according to an embodiment;
FIG. 3 is a schematic block diagram of a variable gain amplifier and gain setting module according to one embodiment;
FIG. 4 is a schematic block diagram of a variable gain amplifier and a gain setting module according to a second embodiment;
fig. 5 is a schematic block diagram of an infrared receiving dedicated circuit with gain control according to a third embodiment;
FIG. 6 is a flowchart illustrating the operation of a gain setting value generation process according to the third embodiment;
fig. 7 is a schematic block diagram of an infrared receiving dedicated circuit with gain control according to a fourth embodiment;
fig. 8 is a schematic block diagram of an infrared receiving dedicated circuit with gain control according to the fifth embodiment;
fig. 9 is a schematic block diagram of an infrared touch screen according to a sixth embodiment;
fig. 10 is a schematic block diagram of an infrared receiving dedicated circuit with gain control according to a seventh embodiment;
11, a first voltage amplifier; 12. a second voltage amplifier; 13. a third voltage amplifier; 51. a photodiode; 52. a variable gain amplification module; 53. a control module; 54. a gain setting module; 55. a comparator; 56. a storage module; 57. an enabling module; 58. an analog-to-digital converter; 71. a first operational amplifier; 72. a first voltage controlled amplifier; 73. a second voltage controlled amplifier; a kbit register; 75. a decoder; 76. a digital-to-analog converter; 80. a micro control unit; 81. a first decoder; 82. and a second decoder.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
The invention aims to provide an infrared receiving circuit with gain control, an infrared receiving device and an infrared receiving method aiming at the defects of the prior art.
Example one
The embodiment provides an infrared receiving circuit with gain control, which comprises a variable gain amplification module, a control module and a gain setting module;
the control module is used for receiving a gain setting mode instruction or a signal amplification mode instruction sent by the upper computer, determining a gain setting value if the gain setting mode instruction is the gain setting mode instruction, and transmitting the gain setting value to the gain setting module;
the gain setting module is connected with the control module and used for receiving the gain setting value transmitted by the control module and setting the gain of the variable gain amplification module when the gain setting module is in a gain setting mode; when in a signal amplification mode, maintaining the gain of the determined variable gain amplification module unchanged;
the variable gain amplifying module is connected with the gain setting module and used for receiving the current signal output by the photosensitive diode, converting the current signal into a voltage signal according to the gain set by the gain setting module and amplifying and outputting the voltage signal.
Fig. 1 is a schematic block diagram of an infrared touch screen in the prior art, which generates a primary voltage signal V1 … … of a first infrared receiving and amplifying circuit through a photodiode PD1, an NPN tube TR1, and a resistor R1, and generates a primary voltage signal Vn of an nth infrared receiving and amplifying circuit through a photodiode PDn, an NPN tube TRn, and a resistor Rn; the three-stage voltage amplifier is composed of three general operational amplifiers, a resistor, a capacitor and other discrete devices, and sequentially comprises a first voltage amplifier 11, a second voltage amplifier 12 and a third voltage amplifier 13. The high-speed analog switches K1 to Kn are sequentially turned on, and the high-speed analog switches V1 to Vn are sequentially sent to the three-level voltage amplifier for amplification, so that the output amplitude of the signal is increased. The infrared pair tube detection system shown in fig. 1 has many components and complex system lines, which also results in high system cost, especially long routing path of small signals, resulting in low signal-to-noise ratio and reduced system performance.
As shown in fig. 2, an infrared receiving circuit with gain control of this embodiment includes: a variable gain amplification module 52, a control module 53, and a gain setting module 54.
It should be noted that the dedicated circuit described in this embodiment is an infrared receiving circuit with gain control.
The variable gain amplification module 52 receives a current signal generated by receiving the light signal by the photodiode 51, converts the current signal into a voltage signal, and finally amplifies the voltage signal according to a set gain; the variable gain amplifier module 52 may be a first-stage variable gain amplifier or a variable gain amplifier composed of a first-stage transimpedance amplifier and a first-stage/multi-stage voltage amplifier in cascade connection;
control module 53, comprising I2C bus interface and corresponding lines, and is I2Each special circuit of the embodiment on the C bus is provided with different addresses; when the control module 53 responds to the upper computer passing I2After the addressing signal sent by the C bus, the gain setting mode is entered, and the control module 53 passes through I2A C bus interface that receives the gain setting value and writes it into the gain setting module 54;
the gain setting module 54 receives the gain setting value set by the control module and sets the gain of the variable gain amplification module 52.
When the control module 53 receives the upper computer passing I2After the termination signal sent by the C bus, the dedicated circuit of this embodiment enters a signal amplification mode, at this time, the gain of the variable gain amplification module 52 does not change any more, and receives the current signal output by the photodiode 51, converts the current signal into a voltage signal, and amplifies and outputs the voltage signal according to the set gain.
Fig. 3 is a schematic block diagram of an embodiment of the variable gain amplification module 52 and the gain setting module 54 in the ir receiving dedicated circuit according to this embodiment. In this embodiment, the photodiode 51 is connected to the negative input terminal of the operational amplifier OP and to one end of the resistor R01, the resistor R01 to the resistor R (2)k) 2k resistors are connected in series in sequence, and the resistor R (2)k) The other end of the second switch is connected with the output end of the OP; the drain of an NMOS tube is connected between every two adjacent resistors from N1 to N (2)k-1) The NMOS transistors are 2k-1 in total, the source ends of all the NMOS transistors are connected to the output end of the operational amplifier OP, and the positive input end of the operational amplifier OP is connected to an internal reference potential Vref. The gain setting module 54 comprises a decoder 75 and a kbit register 74, and the kbit register 74 receives the gain setting value transmitted by the control module; the decoder 75 reads the data of the kbit register 74,and controls N1 to N (2)k-1) All off or have 1 of them on. When all NMOS transistors are turned off, the transimpedance gain of the variable gain amplification module 52 is maximum, which is about Gv ═ R01+ R02+ … + R (2)k) (ii) a When N1 is turned on, the transimpedance gain of the variable gain amplification module 52 is minimum, which is approximately Gv — R01; as can be seen from the above, the variable gain amplification module 52 has 2k gain stages for setting.
In the embodiment, main components of an infrared receiving unit in an infrared detection system are integrated in a special integrated circuit, in particular to a variable gain amplifying circuit; the embodiment can be matched with an upper computer to complete the gain setting of the special integrated circuit, thereby reducing the control difficulty, reducing the wiring length of small signals, being beneficial to improving the signal-to-noise ratio and reducing the cost. In addition, the invention obtains a gain setting value from an upper computer to complete the gain setting process; after the setting is finished, the amplifier is used as a normal amplifier, and in practical application, the gain setting and the amplification are processed in two stages.
Example two
The difference between the infrared receiving circuit with gain control provided in this embodiment and the first embodiment is that:
fig. 4 is a schematic block diagram of another specific embodiment of the variable gain amplifier 52 and the gain setting module 54 in the ir receiving dedicated circuit according to this embodiment. In the present embodiment, the variable gain amplifier 52 is composed of a one-stage transimpedance amplifier stage and a two-stage voltage-controlled amplifier cascade, where the one-stage transimpedance amplifier stage is a fixed-gain transimpedance amplifier composed of the first operational amplifier 71 and the resistor R61; the two-stage voltage controlled amplifier cascade is a two-stage variable gain voltage amplifier consisting of a first voltage controlled amplifier 72 and a second voltage controlled amplifier 73. The gains of the first voltage controlled amplifier 72 and the second voltage controlled amplifier 73 are controlled by the voltage generated by the digital to analog converter 76. The gain setting module 54 comprises a kbit digital-to-analog converter 76 and a kbit register 74, and the kbit register 74 receives the gain setting value transmitted by the control module; the digital-to-analog converter 76 reads the data of the kbit register 74 and can generate 2k voltages; thereby causing the variable gain amplification module 52 to generate 2k gain steps.
EXAMPLE III
The difference between the infrared receiving circuit with gain control provided by this embodiment and the first embodiment is that:
fig. 5 shows a circuit dedicated for infrared reception with gain control according to this embodiment, which includes a variable gain amplification module 52, a control module 53, a gain setting module 54, and a comparator 55.
Compared with the dedicated infrared receiving circuit shown in fig. 2 in the first embodiment, the variable gain amplifying module 52 and the gain setting module 54 are the same, and are not described herein again.
The control module 53 further includes a mode pin, and the upper computer inputs a high level or a low level through the mode pin to enable the integrated circuit of this embodiment to be in a gain setting mode or in a signal amplification mode.
The control module 53 also includes a comparator 55; when in the gain setting mode, the comparator 55 receives the output of the variable gain amplifying block 52, compares it with a reference potential Vt and outputs a comparison value of high level or low level, and the control block 53 receives the output comparison value, generates a gain setting value after signal processing, and writes it into the gain setting block 54. The present embodiment sets the reference potential Vt appropriately, that is, satisfies the requirement that the output amplitude of the variable gain amplifier is the set amplitude.
The gain setting module comprises a kbit register 74 for receiving a gain setting value; the generation manner of the gain setting value is shown in fig. 6, and specifically includes:
1. the infrared emission source emits a signal that is,
2. the control module 53 writes the first bit, namely the most significant bit, of the kbit register 74 into 1, and writes the rest bits into 0; the gain setting module 54 sets the gain for the variable gain amplification module 52; the variable gain amplification module 52 amplifies the signal according to the set gain and outputs the signal;
3. the comparator 55 performs a first comparison, and if the output amplitude of the variable gain amplification module 52 is greater than the reference potential Vt, the control module 53 writes the first bit of the kbit register 74 into 0; if the output amplitude of the variable gain amplification module 52 is smaller than the reference potential Vt, the control module 53 writes the first bit of the kbit register 74 into 1; thereby completing the setting of the head;
4. the control module 53 writes the second bit of the kbit register 74 into 1, the gain setting module 54 sets the reset gain for the variable gain amplifying module 52, and the variable gain amplifying module 52 amplifies the signal again according to the set gain and outputs the signal;
5. the comparator 55 performs a second comparison, and if the output amplitude of the variable gain amplifying module 52 is greater than the reference potential Vt, the control module 53 writes the second bit of the kbit register 74 into 0; if the output amplitude of the variable gain amplification module 52 is smaller than the reference potential Vt, the control module 53 writes the first bit of the kbit register 74 into 1; thereby completing the setting of the second bit;
6. by analogy, after the kth comparison, the kth bit setting of the kbit register 74 is completed, resulting in a final gain setting value.
The gain setting values for this example were from an autonomous assay, set after the assay; the method can reduce the workload of the upper computer.
Example four
The difference between the infrared receiving circuit with gain control provided in this embodiment and the first embodiment is that:
as shown in fig. 7, the circuit with gain control dedicated to infrared reception of this embodiment includes: a variable gain amplification module 52, a control module 53, a gain setting module 54, and a storage module 56; wherein the storage module 56 may store one or more gain setting values;
compared with the dedicated infrared receiving circuit with gain control shown in fig. 2, the variable gain amplifier 52 and the gain setting module 54 of the present embodiment are the same, and are not described herein again.
The control module 53 includes I2C bus interface and corresponding circuit for receiving upper computer passing I2C bus issues command and gain setting value of I2Each dedicated circuit of this embodiment on the C bus sets a different address. The present embodiment further comprises a counter for recording the number of values of the stored gain setting value; the embodiment also includesA timing pin for setting whether it is in a gain setting mode or in a signal amplification mode; the control module 53 is controlled by the upper computer, obtains a gain setting value and then transmits the gain setting value to the storage module 56 according to a certain sequence; or in turn, call the gain setting values stored in the memory block 56 to the gain setting block 54.
When the control module 53 responds to the upper computer passing I2After the addressing signal sent by the C bus, the control module passes through I2The C bus receives the gain setting values, which are transmitted to the memory module 56 in sequence from the first memory location; until receiving the upper computer passing I2C termination signal from bus.
The counter starts at 0 and counts up by 1 each time a gain setting is stored until a termination signal is received, thereby recording the number of gain settings stored.
After receiving the termination signal, the control module 53 enters a gain setting mode, and the control module 53 controls the storage module 56 to write the gain setting value of the first address location into the gain setting module 54; when the timing pin receives the rising edge of a pulse, the signal amplification mode is entered, the gain of the variable gain amplifier 52 is unchangeable, and the current signal output by the photodiode 51 is received, converted into a voltage signal and amplified and output according to the set gain; when the timing pin receives the falling edge of the pulse, the gain setting mode is re-entered, and the control module 53 controls the storage module 56 to write the gain setting value of the second position into the gain setting module 54; and analogizing in turn, when the timing pin receives the rising edge and the falling edge of one pulse, the control module 53 controls to respectively enter a signal amplification mode and a gain setting mode; each time the gain setting mode is entered, the gain setting value of the next address position in the storage module 56 is sequentially called to the gain setting module 54; and calling from the first address position after the number of the gain setting values is reached.
In the embodiment, the storage module is arranged to improve the capability of processing the gain setting value, and multiple groups of gain setting values are stored simultaneously and called step by step. The method specifically comprises two conditions, wherein one condition is that a plurality of groups of gain setting values are directly obtained from an upper computer and stored locally and are controlled and called by the upper computer; a local post-assay storage.
EXAMPLE five
The difference between the infrared receiving circuit with gain control provided in this embodiment and the first embodiment is that:
as shown in fig. 8, the infrared receiving dedicated circuit with gain control of this embodiment includes: the variable gain amplifier comprises a variable gain amplifying module 52, a control module 53, a gain setting module 54, a storage module 56 and a switch module 57.
Compared with the dedicated infrared receiving circuit with gain control shown in fig. 2, the variable gain amplifier 52 and the gain setting module 54 of the present embodiment are the same, and are not described herein again.
The control module 53 includes a comparator 55 for receiving the output of the variable gain amplifier 52, comparing it with a reference potential Vt and outputting a comparison value of high level or low level, and the control module 53 receives the output comparison value and generates a gain setting value after signal processing (as shown in fig. 6); after obtaining the gain setting value, the control module 53 sequentially transmits the gain setting value to the storage module 56 according to the instruction; or in turn, call the gain setting values stored in the memory block 56 to the gain setting block 54. The present embodiment further comprises a counter for recording the stored values of the gain setting values; the embodiment further comprises a timing pin for setting a gain setting mode or a signal amplification mode.
The control module 53 further includes a control pin, when the input of the control pin is low level, the upper computer controls the infrared emission units corresponding to the dedicated circuit of this embodiment to sequentially emit light, the control module 53 executes the generation manner of the gain setting values as shown in fig. 6 for each infrared emission unit, and writes the gain setting values into the storage module 56 in sequence from the first storage location; until the input to the control pin is high.
The counter counts up by 1 each time a gain setting is stored, starting with 0, until the input to the control pin is high, thereby recording the number of gain settings stored.
When the input of the control pin is high level, the gain setting mode is entered, and the control module 53 controls the storage module 56 to write the gain setting value of the first position into the gain setting module 54; the following operation is the same as that of the circuit with gain control dedicated for infrared reception shown in fig. 7, and will not be described herein.
In addition, the integrated circuit of this embodiment further includes a switch module 57 including an EN pin, and the upper computer enables the special circuit of this embodiment to be in an enable mode or a high impedance mode by inputting a high level or a low level at the EN pin; when the circuit is in the enable mode, the output pin of the special circuit of the embodiment outputs the output signal of the variable gain amplification module; when in the high impedance mode, the output pin of the dedicated circuit of this embodiment outputs a high impedance state, and the control module 53 does not respond to the input signals of the control pin and the timing pin.
EXAMPLE six
The difference between the infrared receiving circuit with gain control provided in this embodiment and the first embodiment is that:
fig. 9 is a schematic block diagram of an infrared touch screen using the infrared receiving and amplifying circuit of the present embodiment.
W1 to Wn are n infrared receiving modules formed by connecting the photodiode 51 and the infrared receiving dedicated circuit according to the embodiment of fig. 8; LEDs 1 to LEDm are m infrared emitting tubes; the control pins of each infrared receiving module are connected together and respectively connected to the micro control unit 80; the timing pins of each infrared receiving module are connected together and respectively connected to the micro control unit 80; the EN pin of each infrared receiving module is respectively connected to the second decoder 82, and the second decoder 82 is connected to the micro control unit 80; LEDs 1 to LEDm are m infrared emitting tubes; whether each infrared emission tube emits light or not is controlled by a first decoder 81.
When the micro control unit 80 sets the control line to be at a low level, and the micro control unit 80 controls the infrared receiving module W1 to be in the enabling mode through the second decoder 82, and meanwhile, the other infrared receiving modules are in the high impedance mode; the micro control unit 80 controls the corresponding infrared transmitting tubes to sequentially transmit optical signals through the first decoder 81; the infrared receiving module W1 generates a gain setting value for each corresponding infrared transmitting tube in turn and stores the gain in turn; the micro control unit 80 controls the infrared receiving module to be in the high impedance mode through the second decoder 82, and enables the next infrared receiving module to be in the enabling mode; repeating the process, each infrared receiving module enters and exits the enabling mode in sequence, and setting and storing the gain setting value for each corresponding infrared emitting source in sequence.
The micro control unit 80 sets the control line to be at a high level, and after the micro control unit 80 controls the infrared receiving module W1 to be in the enabling mode through the second decoder 82, the other infrared receiving modules are in the high impedance mode at the same time; the micro control unit 80 controls the corresponding infrared emission tubes to emit light signals in sequence through the first decoder 81, and the emission sequence is the same as that of the infrared emission tubes in the gain setting mode; while the infrared transmitting tube transmits the optical signal, the micro control unit 80 generates a pulse on the timing line, wherein the width of the pulse is the same as the time of the infrared transmitting tube transmitting the optical signal; under the control of the timing line, the infrared receiving module W1 sequentially reads the gain setting value stored in the storage module for each transmitting unit, sets the gain for the variable gain amplifier in the module, receives the current signal generated by the photodiode, amplifies the current signal, and outputs the amplified current signal to the micro control unit 80 for signal processing;
at any one time, under the control of the second decoder 82, at most one infrared receiving module is in the enabling mode, while other infrared receiving modules are in the high-impedance mode, and the output pins are in the high-impedance state, so that although all the output pins of the infrared receiving modules are connected together and connected to the micro control unit 80, the output signals of the infrared receiving modules are not influenced to be read by the micro control unit 80; meanwhile, in the high-impedance mode, the infrared receiving module does not generate correspondence to signals of the control line and the time sequence line, so that the storage and the calling of the gain setting value of the storage module of the infrared receiving module are not influenced.
EXAMPLE seven
The difference between the infrared receiving circuit with gain control provided in this embodiment and the first embodiment is that:
as shown in fig. 10, the infrared receiving dedicated circuit with gain control provided in this embodiment includes: a variable gain amplifier 52, a control module 53, a gain control module 54, and an analog-to-digital converter 58.
The analog-to-digital converter 58 is used to convert the analog output signal of the variable gain amplifier 52 into a digital output signal, and output the digital output signal according to a certain data transmission mode.
Compared with the embodiment shown in fig. 3, the embodiment adds the analog-to-digital converter 58 to implement the function of digital output, and other working modes are basically the same, which is not described herein.
The embodiment can effectively reduce the number of components used by the infrared receiving and amplifying circuit applied to the infrared geminate transistor detection system, reduce the design difficulty of an application system and reduce the cost.
Example eight
The present embodiment provides an infrared receiving device with gain control, including an infrared receiving circuit with gain control according to any one of the first to seventh embodiments, where the infrared receiving circuit and the PD are packaged in a same product to form the infrared receiving device.
It should be noted that how the circuit and the PD are packaged in the same product in this embodiment is not the protection of the present invention, and can be implemented according to the prior art.
Example nine
The embodiment provides an infrared receiving method with gain control, which includes:
s1, a control module receives a gain setting mode instruction or an amplification mode instruction sent by an upper computer, if the gain setting mode instruction is the gain setting mode instruction, a gain setting value is determined, the gain setting value is transmitted to a gain setting module, and the step S2 is executed; if the command is the zoom-in mode, go to step S3;
s2, a gain setting module receives the gain setting value transmitted by the control module and sets the gain of the variable gain amplification module;
s3, according to the amplification mode instruction, the gain setting module maintains the set gain of the variable gain amplification module unchanged;
and S4, the variable gain amplification module receives a current signal output by the photosensitive diode, converts the current signal into a voltage signal according to the gain set by the gain setting module, and amplifies and outputs the voltage signal.
It should be noted that the infrared receiving method with gain control in this embodiment is similar to the first to seventh embodiments, and details are not repeated here.
Compared with the prior art, the invention has the beneficial effects that:
1. in the embodiment, main components of an infrared receiving unit in an infrared detection system are integrated in a special integrated circuit, in particular to a variable gain amplifying circuit; the invention can be matched with an upper computer to complete the gain setting of the special integrated circuit, thereby reducing the control difficulty, shortening the wiring length of small signals and being beneficial to improving the signal-to-noise ratio;
2. the embodiment can store one or more gain setting values, and the storage and calling of the gain setting values and the gain setting of the variable gain amplifier are carried out in the chip, so that the dependence on an upper computer is reduced, the complexity of system design is effectively reduced, and the system cost is reduced;
3. the embodiment can automatically generate and store one or more gain setting values, complete the pre-measurement, storage and calling of the gain setting values and the gain setting of the variable gain amplifier, further reduce the dependence on an upper computer, reduce the complexity of system design and reduce the system cost;
4. the embodiment comprises an adjustable gain amplifier which can pre-measure a gain value and call the pre-measured gain value when in use, wherein a fixed amplitude value is taken as an output target when the gain value is pre-measured; the application field of the invention is the occasion of an amplifier which needs to adjust the gain to keep the output as a fixed amplitude value;
5. the gain setting value determined by the control module of the embodiment is from a storage module set by an upper computer or self-tested or called by the control module, and the circuit is more flexible in determination of the gain setting value by setting three different modes.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An infrared receiving circuit with gain control is characterized by comprising a variable gain amplification module, a control module and a gain setting module;
the control module is used for receiving a gain setting mode instruction or a signal amplification mode instruction sent by the upper computer, determining a gain setting value if the gain setting mode instruction is the gain setting mode instruction, and transmitting the gain setting value to the gain setting module;
the gain setting module is connected with the control module and used for receiving the gain setting value transmitted by the control module and setting the gain of the variable gain amplification module when the gain setting module is in a gain setting mode; when in a signal amplification mode, maintaining the gain of the determined variable gain amplification module unchanged;
the variable gain amplifying module is connected with the gain setting module and used for receiving the current signal output by the photosensitive diode, converting the current signal into a voltage signal according to the gain set by the gain setting module and amplifying and outputting the voltage signal.
2. The infrared receiving circuit with gain control of claim 1, wherein the control module further comprises a comparator, an input end of the comparator is connected to an output end of the variable gain amplification module, and the comparator is configured to receive the signal output by the variable gain amplification module and compare the received signal with a preset reference potential or a preset reference voltage range to obtain a comparison result; and the control module generates a gain setting value after performing signal processing according to the comparison result.
3. The infrared receiving circuit with gain control as claimed in claim 1, wherein the control module further comprises a communication interface and a circuit corresponding to the communication interface, for communicating with the upper computer and receiving the gain setting value set by the upper computer.
4. The infrared receiving circuit with gain control as set forth in claim 1, further comprising a storage module for storing the one or more gain setting values determined by the control module; the storage mode of the storage module is to store one or more gain setting values according to a certain addressing mode.
5. The infrared receiving circuit with gain control as set forth in claim 4, wherein said control module is further configured to invoke the gain setting value stored in the storage module according to a certain addressing mode.
6. The infrared receiving circuit with gain control as claimed in claim 1, further comprising an analog-to-digital conversion module for converting an analog output signal of said variable gain amplification module into a digital output signal.
7. The infrared receiving circuit with gain control of claim 1, further comprising a switch module for receiving control information of an upper computer to enable the infrared receiving circuit to output a high impedance state or output an output signal of the variable gain amplification module.
8. The infrared receiving circuit with gain control of claim 1, wherein the variable gain amplifying module is a one-stage transimpedance variable gain amplifier or a variable gain amplifier composed of a one-stage transimpedance amplifier and a one-stage/multi-stage voltage amplifier in cascade connection.
9. An infrared receiving apparatus with gain control, comprising the infrared receiving circuit with gain control of any one of claims 1 to 8.
10. An infrared receiving method with gain control is characterized by comprising the following steps:
s1, a control module receives a gain setting mode instruction or an amplification mode instruction sent by an upper computer, if the gain setting mode instruction is the gain setting mode instruction, a gain setting value is determined, the gain setting value is transmitted to a gain setting module, and the step S2 is executed; if the command is the zoom-in mode, go to step S3;
s2, a gain setting module receives the gain setting value transmitted by the control module and sets the gain of the variable gain amplification module;
s3, according to the amplification mode instruction, the gain setting module maintains the set gain of the variable gain amplification module unchanged;
and S4, the variable gain amplification module receives a current signal output by the photosensitive diode, converts the current signal into a voltage signal according to the gain set by the gain setting module, and amplifies and outputs the voltage signal.
CN202010589992.1A 2020-06-24 2020-06-24 Infrared receiving circuit with gain control, device and receiving method Pending CN111654329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010589992.1A CN111654329A (en) 2020-06-24 2020-06-24 Infrared receiving circuit with gain control, device and receiving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010589992.1A CN111654329A (en) 2020-06-24 2020-06-24 Infrared receiving circuit with gain control, device and receiving method

Publications (1)

Publication Number Publication Date
CN111654329A true CN111654329A (en) 2020-09-11

Family

ID=72345843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010589992.1A Pending CN111654329A (en) 2020-06-24 2020-06-24 Infrared receiving circuit with gain control, device and receiving method

Country Status (1)

Country Link
CN (1) CN111654329A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901048A (en) * 2020-07-31 2020-11-06 深圳市西迪特科技有限公司 Gain adjusting method of optical receiver

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901048A (en) * 2020-07-31 2020-11-06 深圳市西迪特科技有限公司 Gain adjusting method of optical receiver
CN111901048B (en) * 2020-07-31 2021-06-25 深圳市西迪特科技有限公司 Gain adjusting method of optical receiver

Similar Documents

Publication Publication Date Title
US5113090A (en) Voltage comparator
US20230333248A1 (en) Lidar signal receiving circuits, lidar signal gain control methods, and lidars using the same
KR100541557B1 (en) Memory module and impedance calibration method thereof
KR100396010B1 (en) Carrier detection circuit and infrared ray remote control receiver
US20180275823A1 (en) Touch device and signal processing circuit as well as operating method thereof
EP0641474A4 (en) Pointing device having improved automatic gain control and information reporting.
CN212969660U (en) Infrared receiving circuit and device with gain control
US8238395B2 (en) Automatic power control (APC) loop for adjusting the bias current of a laser diode
CN111654329A (en) Infrared receiving circuit with gain control, device and receiving method
US6950610B2 (en) Optical communication interface module for universal serial bus
CN110830066A (en) Multichannel bandwidth and gain adjustable signal processing system and method
JP6054434B2 (en) Amplifier circuit
CN114333657B (en) Current sampling system, adjustable voltage source and image signal generator
CN117330805A (en) Automatic gear shifting circuit for current detection and current detection device
CN112332791A (en) Variable gain amplifier
CN108768164B (en) One-drive multi-charge and discharge circuit
JP2007159020A (en) Current/voltage-converting circuit
US5917380A (en) Digitally gain-controlled amplifier, and camera using such an amplifier
US7010283B2 (en) Signal waveform detection circuit
US7760211B2 (en) System and method for light control
US10219215B2 (en) Network driving circuit and method of driving network device
WO2019153303A1 (en) Integrated circuit and system for measuring distance
WO2024125531A1 (en) Signal processing circuit for lidar, chip and lidar
CN111384849B (en) Circuit structure and method for realizing dead time self-adaption function of D-type power amplifier
US20240106197A1 (en) Laser automatic compensation control device, laser processing system and laser automatic compensation control method using the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination