Infrared touch circuit and scanning method thereof, infrared touch screen
By using a combination of column driver module, row driver module and control module in the infrared touch circuit, and using the clock signal multiplexing of the shift register and the tail column switch, the problem of the existing infrared touch circuit occupying the controller IO port resources is solved. , achieving resource saving and cost reduction.
Patent Information
- Application Number
- CN202410792839.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-19
AI Technical Summary
The existing infrared touch circuit has high requirements on the IO port resources of the controller, resulting in high performance requirements and high cost of the controller.
Using a combination of column driver module, row driver module and control module, the serial signal is converted into a parallel signal through a shift register, and the clock signal of the tail column switch is multiplexed to realize the scanning of the infrared touch circuit, reducing the load on the control module. Interface resource requirements.
It saves the interface resources of the control module, reduces the performance requirements and costs of the controller, and optimizes the PCB design to improve reliability.
Smart Images

Figure CN118363495B
Abstract
Description
Technical Field
[0001] The present application relates to the field of infrared touch technology, and in particular to an infrared touch circuit and a scanning method thereof, and an infrared touch screen. Background Art
[0002] Infrared touch screens are widely used in various fields due to their stable performance and high reliability. The infrared lamps of infrared touch screens are generally arranged in a row-column matrix to form an infrared touch circuit. Each row has a row switch and each column has a column switch. By using a controller to control the on and off of the row and column switches, each infrared lamp can be individually switched on and off.
[0003] In the related art, the infrared touch circuit control circuit usually combines a controller and a shift register to realize the control of the row switch and the column switch of the infrared touch circuit, but it occupies more controller interface resources and has relatively high performance requirements and costs of the controller. Summary of the invention
[0004] Based on this, it is necessary to provide an infrared touch circuit, a scanning method, an infrared touch screen and an electronic device to reduce the performance requirements and costs of the controller.
[0005] In a first aspect, the present application provides an infrared touch circuit, the infrared touch circuit comprising:
[0006] A column driving module, wherein the column driving module comprises a plurality of column switches, each of which is connected to the infrared lamp tubes of a corresponding column in the infrared lamp tube matrix, and is used to drive the infrared lamp tubes of the corresponding column;
[0007] A control module, connected to the control end of each column switch, for outputting a corresponding control signal to each column switch; the control module is also used to output a serial row switch control signal;
[0008] A row driving module, wherein the row driving module includes a shift register and a plurality of row switches, each of the row switches being connected to the infrared lamp tubes of a corresponding row in the infrared lamp tube matrix, and being used to drive the infrared lamp tubes of the corresponding row; the serial signal input port of the shift register is connected to the serial row switch control signal output by the control module, and the plurality of parallel signal output ports of the shift register are connected one-to-one with the control ends of the plurality of row switches, and being used to convert the serial row switch control signal output by the control module into a parallel row switch control signal corresponding to each row switch; the clock signal input port of the shift register is connected to the control signal corresponding to the tail column switch, and is used to shift the parallel row switch control signal according to the level change of the control signal corresponding to the tail column switch, and the tail column switch is a column switch corresponding to the last column of infrared lamp tubes determined based on the column scanning sequence pre-configured by the infrared touch circuit.
[0009] In one embodiment, the control module includes a microcontroller, which is connected to the serial signal input port of the shift register and the control end of each column switch through an IO port, and is used to output the serial row switch control signal to the shift register and output the corresponding control signal to each column switch.
[0010] In one embodiment, the control module includes a microcontroller and a decoder;
[0011] The microcontroller is connected to the shift register via an IO port, and is used to output the serial row switch control signal to the shift register;
[0012] The input end of the decoder is connected to the IO port of the microcontroller, and the output end is connected to the control end of each column switch. The decoder is used to decode the coded signal input by the microcontroller to output a control signal to the control end of the corresponding column switch.
[0013] In one embodiment, the control module further includes a first buffer, an input end of the first buffer is connected to an IO port of the microcontroller, and an output end of the first buffer is connected to a control end of each of the column switches, for outputting a corresponding control signal to each of the column switches.
[0014] In one embodiment, the control module further includes a second buffer, an input end of the second buffer is connected to an IO port of the microcontroller, and an output end of the second buffer is connected to a serial signal input port of the shift register, for outputting the serial row switch control signal to the shift register.
[0015] In one embodiment, the row switch includes an NPN transistor, the base of which is connected to the parallel signal output port of the shift register, the collector of which is connected to the cathode of the infrared lamp tube of the corresponding row in the infrared lamp tube matrix, and the emitter of which is used to connect to the current control circuit.
[0016] In one embodiment, the column switch includes a PNP transistor, the base of which is connected to the control signal output by the control module, the collector of which is connected to the anode of the corresponding column of infrared lamps in the infrared lamp matrix, and the emitter of which is used to connect to a power supply.
[0017] In a second aspect, the present application further provides an infrared touch screen, comprising the infrared touch circuit described in the first aspect.
[0018] In a third aspect, the present application further provides an electronic device, comprising the infrared touch screen described in the second aspect.
[0019] In a fourth aspect, the present application further provides a scanning method of an infrared touch circuit, which is applied to the infrared touch circuit described in the first aspect, and the method includes:
[0020] The control module outputs a control signal to the column driving module to control each of the column switches in the column driving module to be turned on one by one in sequence according to the column scanning sequence pre-configured by the infrared touch circuit;
[0021] The control module outputs a serial row switch control signal to the shift register, so that the shift register outputs a parallel switch control signal to control one row switch in the row driving module to be turned on and the other row switches to be turned off; when the tail column switch is turned on, the shift register responds to the level change of the clock signal input port, and the parallel row switch control signal output by the shift register shifts, so that the row switches in the row driving module are turned on one by one in sequence.
[0022] By applying the technical solution of the present application, the shift register converts the serial row switch control signal output by the control module into a parallel row switch control signal corresponding to each row switch, so that the shift register can control one of the row switches to be turned on and the other row switches to be turned off. At the same time, the control module outputs the corresponding control signal to each column switch, and the column switches can be turned on one by one in sequence according to the column scanning sequence pre-configured by the infrared touch circuit. When the tail column switch is turned on, the control signal corresponding to the tail column switch changes in level. Since the clock signal input port of the shift register reuses the control signal corresponding to the tail column switch, the shift register responds to the level change of the clock signal input port, and the output parallel row switch control signal will shift, so the row switches in the row drive module will also be turned on one by one in sequence, so that the infrared touch circuit is scanned. Since the clock signal input port of the shift register in this embodiment reuses the control signal corresponding to one of the column switches, the interface resources of the control module can be saved, the performance requirements and costs of the control module can be reduced, and a signal line can be reduced to optimize the PCB routing and improve the reliability of the PCB design. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings in the specification that constitute a part of the present application are used to provide a further understanding of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.
[0024] Figure 1is a circuit diagram of an infrared touch circuit in one embodiment;
[0025] Figure 2 is a circuit diagram of an infrared touch circuit in another embodiment;
[0026] Figure 3 is a circuit diagram of an infrared touch circuit in yet another embodiment;
[0027] Figure 4 This is a circuit diagram of a 4-row 4-column infrared touch circuit in an embodiment;
[0028] Figure 5 The figure is a flow chart of a scanning method of an infrared touch circuit in one embodiment. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0031] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
[0032] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0033] It can be understood that “at least one” means one or more, “plurality” means two or more, and “at least a portion of an element” means a part or all of an element.
[0034] When used herein, the singular forms of "one", "an" and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the existence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the existence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items. It should be understood that when an element (such as a layer, film, region or substrate) is described as being "on" another element, the element may be directly on the other element, or there may also be an intermediate element. Moreover, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element by a third element.
[0035] The basic principle of infrared touch screen to realize touch function is to use infrared lamp tube (i.e. infrared light emitting diode) to emit infrared light, and use infrared photosensitive diode to convert the received infrared light into electrical signal. The controller (such as MCU) collects and processes the electrical signal to determine whether the infrared light is blocked by the touch object, thereby realizing the touch function. Among them, infrared lamp tubes are generally arranged in a row and column matrix, with a row switch corresponding to each row of infrared lamp tubes and a column switch corresponding to each column of infrared lamp tubes. By using the controller to control the on and off of the row switch and the column switch, each infrared lamp tube can be individually switched on and off. By switching each infrared lamp tube on and off one by one, the infrared touch circuit can be scanned.
[0036] In traditional infrared touch circuits, the controller generally outputs a serial signal, which is then converted into a parallel control signal through a shift register to control the row switch. The controller and the shift register generally require at least two IO ports to connect, one of which is used to output the serial signal and the other is used to output the clock signal. The column switches of traditional infrared touch circuits are generally directly controlled by the controller through the IO port. Therefore, if the infrared touch circuit has N columns of infrared lamps, N IO ports are required to control the column switches. It can be seen that the traditional infrared touch circuit has relatively high requirements for the IO port resources of the controller. For example, an N-column infrared touch circuit requires at least (N+2) IO ports, and the performance requirements and costs of the controller are relatively high.
[0037] Based on this, the present application provides an infrared touch circuit, referring to Figure 1In one embodiment, the infrared touch circuit includes: a column driving module 10, a row driving module 20 and a control module 30. The column driving module 10 includes a plurality of column switches, each of which is connected to an infrared lamp tube of a corresponding column in the infrared lamp tube matrix 40, and is used to drive the infrared lamp tube of the corresponding column. Figure 1 Taking the 4-row and 4-column infrared touch circuit as an example, the column driving module 10 may include 4 column switches, namely column switch Q1, column switch Q2, column switch Q3 and column switch Q4, wherein the column switch Q1 is connected to the infrared lamp tubes in the 1st column of the infrared lamp tube matrix 40, and is used to drive the infrared lamp tubes in the 1st column; the column switch Q2 is connected to the infrared lamp tubes in the 2nd column of the infrared lamp tube matrix 40, and is used to drive the infrared lamp tubes in the 2nd column; the column switch Q3 is connected to the infrared lamp tubes in the 3rd column of the infrared lamp tube matrix 40, and is used to drive the infrared lamp tubes in the 3rd column; the column switch Q4 is connected to the infrared lamp tubes in the 4th column of the infrared lamp tube matrix 40, and is used to drive the infrared lamp tubes in the 4th column.
[0038] The control module 30 is connected to the control terminal of each column switch respectively, and is used to output a corresponding control signal to each column switch. The control module 30 is also used to output a serial row switch control signal. Figure 1 Taking the 4-row 4-column infrared touch circuit as an example, the control module 30 is respectively connected to the control ends of the column switch Q1, the column switch Q2, the column switch Q3 and the column switch Q4, outputs the control signal L1 to the column switch Q1, outputs the control signal L2 to the column switch Q2, outputs the control signal L3 to the column switch Q3 and outputs the control signal L4 to the column switch Q4.
[0039] The row driving module 20 includes a shift register 201 and a plurality of row switches, each row switch is connected to the infrared lamp tube of the corresponding row in the infrared lamp tube matrix 40, and is used to drive the infrared lamp tube of the corresponding row. The serial signal input port IN of the shift register 201 is connected to the serial row switch control signal output by the control module 30, and the plurality of parallel signal output ports of the shift register 201 are connected to the control terminals of the plurality of row switches in a one-to-one correspondence, and are used to convert the serial row switch control signal output by the control module 30 into a parallel row switch control signal corresponding to each row switch. Figure 1Taking the 4-row 4-column infrared touch circuit as an example, the row driving module 20 includes 4 row switches, namely row switch Q5, row switch Q6, row switch Q7 and row switch Q8, wherein the row switch Q5 is connected to the infrared lamp tubes in the first row of the infrared lamp tube matrix 40, and is used to drive the infrared lamp tubes in the first row; the row switch Q6 is connected to the infrared lamp tubes in the second row of the infrared lamp tube matrix 40, and is used to drive the infrared lamp tubes in the second row; the row switch Q7 is connected to the infrared lamp tubes in the third row of the infrared lamp tube matrix 40, and is used to drive the infrared lamp tubes in the third row; the row switch Q8 is connected to the infrared lamp tubes in the fourth row of the infrared lamp tube matrix 40, and is used to drive the infrared lamp tubes in the fourth row. The shift register 201 includes four parallel signal output ports, namely, parallel signal output port B1, parallel signal output port B2, parallel signal output port B3 and parallel signal output port B4. The four parallel signal output ports are connected to the control ends of the four row switches in a one-to-one correspondence, and convert the serial row switch control signal output by the control module 30 into a parallel row switch control signal corresponding to each row switch, that is, the parallel signal output port B1 is connected to the control end of the row switch Q5, and outputs the parallel row switch control signal H1; the parallel signal output port B2 is connected to the control end of the row switch Q6, and outputs the parallel row switch control signal H2; the parallel signal output port B3 is connected to the control end of the row switch Q7, and outputs the parallel row switch control signal H3; the parallel signal output port B4 is connected to the control end of the row switch Q8, and outputs the parallel row switch control signal H4.
[0040] The clock signal input port CLK of the shift register 201 is connected to the control signal corresponding to the last column switch, and is used to shift the parallel row switch control signal according to the level change of the control signal corresponding to the last column switch. The last column switch is the column switch corresponding to the last column of infrared lamps determined based on the column scanning sequence pre-configured by the infrared touch circuit. Figure 1 Taking the 4-row 4-column infrared touch circuit shown as an example, the column scanning order pre-configured by the infrared touch circuit can be the 1st column, the 2nd column, the 3rd column, and the 4th column. At this time, the column switch corresponding to the last column of infrared lamps is the column switch Q4, that is, the last column switch is the column switch Q4. The column scanning order pre-configured by the infrared touch circuit can also be the 4th column, the 3rd column, the 2nd column, and the 1st column. At this time, the column switch corresponding to the last column of infrared lamps is the column switch Q1, that is, the last column switch is the column switch Q1. The column scanning order pre-configured by the infrared touch circuit can also be the 2nd column, the 4th column, the 1st column, and the 3rd column. At this time, the column switch corresponding to the last column of infrared lamps is the column switch Q3, that is, the last column switch is the column switch Q3. Therefore, the present application can configure the column scanning order of the infrared touch circuit according to the actual scanning requirements, and determine the last column switch accordingly.
[0041] After the clock signal input port CLK of the shift register 201 is connected to the control signal corresponding to the tail column switch, the parallel row switch control signal can be shifted according to the level change of the control signal corresponding to the tail column switch. For example, when the tail column switch changes from on to off, the level of the control signal corresponding to the tail column switch changes from "0" to "1", and the clock signal input port CLK of the shift register 201 detects a rising edge, and the parallel row switch control signal output by the shift register will move forward or backward; for another example, when the tail column switch changes from on to off, the level of the control signal corresponding to the tail column switch changes from "1" to "0", and the clock signal input port CLK of the shift register 201 detects a falling edge, and the parallel row switch control signal output by the shift register moves forward or backward.
[0042] Based on the infrared touch circuit provided in this embodiment, the scanning of the lamp matrix can be realized. Specifically, the shift register 201 converts the serial row switch control signal output by the control module 30 into a parallel row switch control signal corresponding to each row switch, so that the shift register 201 can control one of the row switches to be turned on and the other row switches to be turned off. At the same time, the control module 30 outputs a corresponding control signal to each column switch, and the column switches can be turned on one by one in sequence according to the column scanning sequence pre-configured by the infrared touch circuit. When the tail column switch is turned on, the control signal corresponding to the tail column switch changes in level, for example, from "0" to "1". Since the clock signal input port CLK of the shift register 201 is connected to the control signal corresponding to the tail column switch, the shift register 201 responds to the level change of the clock signal input port CLK, and the output parallel row switch control signal will shift, so the row switches in the row driving module 20 will also be turned on one by one in sequence, so that the scanning of the infrared touch circuit is realized. Since the clock signal input port CLK of the shift register 201 in this embodiment reuses the control signal corresponding to one of the column switches, the interface resources of the control module 30 can be saved, the specification requirements and cost of the control module 30 can be reduced, and reducing a signal line can also optimize the PCB routing and improve the reliability of the PCB design.
[0043] In one embodiment, the control module 30 includes an MCU (Micro Control Unit), which is connected to the serial signal input port IN of the shift register 201 and the control end of each column switch through an IO port, and is used to output a serial row switch control signal to the shift register 201 and output a corresponding control signal to each column switch.
[0044] In one embodiment, referring to Figure 2As shown, the control module 30 includes an MCU 301 and a decoder 302. The MCU 301 is connected to the shift register 201 through an IO port, and is used to output a serial row switch control signal to the shift register 201. The input end of the decoder 302 is connected to the IO port of the MCU 301, and the output end is connected to the control end of each column switch. The decoder 302 is used to decode the coded signal input by the MCU 301 to output a control signal to the control end of the corresponding column switch.
[0045] The decoder 302 is a logic circuit with a decoding function, which can interpret the encoded control signal. In this embodiment, the decoder 302 communicates with the MCU 301, decodes the encoded signal input by the MCU 301, and converts it into a control signal of each column switch to control the column switch, so the IO port resources of the MCU 301 are expanded through the decoder 302.
[0046] In one embodiment, referring to Figure 3 As shown, the control module 30 further includes a first buffer 303, the input end of the first buffer 303 is connected to the IO port of the MCU 301, and the output end of the first buffer 303 is connected to the control end of each column switch, for outputting a corresponding control signal to each column switch. In this embodiment, by providing the first buffer 303 between the MCU 301 and the column switch, the output port of the MCU 301 can be effectively protected, and interference can be reduced to maintain the stability of the control signal.
[0047] In one embodiment, still referring to Figure 3 As shown, the control module 30 further includes a second buffer 304, the input end of the second buffer 304 is connected to the IO port of the MCU 301, and the output end of the second buffer 304 is connected to the serial signal input port IN of the shift register 201, for outputting the serial row switch control signal to the shift register. In this embodiment, by setting the second buffer 304 between the MCU 301 and the shift register 201, the output port of the MCU 301 can be effectively protected, and interference can be reduced to maintain the stability of the control signal.
[0048] In one embodiment, referring to Figures 1 to 3 The row switch includes an NPN transistor, the base of the NPN transistor is connected to the parallel signal output port of the shift register 201, the collector of the NPN transistor is connected to the cathode of the infrared lamp tube corresponding to the row in the infrared lamp tube matrix 40, and the emitter of the NPN transistor is used to connect to the current control circuit (not marked in the figure). In this embodiment, the row switch function is realized by the NPN transistor, and the current control circuit connected to the emitter can adjust the current size and play a role in protecting the circuit. In one embodiment, the base of the NPN transistor is also provided with a matching resistor.
[0049] In one embodiment, referring to Figures 1 to 3 The column switch includes a PNP transistor, the base of the PNP transistor is connected to the control signal output by the control module 30, the collector of the PNP transistor is connected to the anode of the infrared lamp tube of the corresponding column in the infrared lamp tube matrix 40, and the emitter of the PNP transistor is used to connect to the power supply. In one embodiment, the base of the PNP transistor is provided with a matching resistor.
[0050] Figure 4 FIG. 1 is a circuit diagram of a 4-row 4-column infrared touch circuit in an embodiment, referring to FIG. Figure 4 As shown, the infrared touch circuit includes a column driver module 10, a row driver module 20 and a control module 30. The column driver module 10 includes four column switches, namely, column switch Q1, column switch Q2, column switch Q3 and column switch Q4. Each column switch is connected to the infrared lamp tube of the corresponding column in the infrared lamp tube matrix 40. The row driver module 20 includes a shift register 201, and the shift register 201 can adopt 74HC164. The row driver module 20 also includes four row switches, namely, row switch Q5, row switch Q6, row switch Q7 and row switch Q8. Each row switch is connected to the infrared lamp tube of the corresponding row in the infrared lamp tube matrix 40. The control module 30 includes an MCU 301, a first buffer 303 and a second buffer 304, wherein the input end of the first buffer 303 is connected to the IO port of the MCU 301, and the output end of the first buffer 303 is connected to the control end of each column switch. An input end of the second buffer 304 is connected to an IO port of the MCU 301 , and an output end of the second buffer 304 is connected to a serial signal input port of the shift register 201 .
[0051] In this embodiment, the shift register 201 uses a 74HC164 chip, and the No. 1 and No. 2 pins of the 74HC164 chip are serial signal input ports, the No. 3 to No. 6 pins are parallel signal output ports, the No. 7 pin is a ground pin, the No. 8 pin is a clock signal input port, the No. 9 pin is a reset pin, and the No. 14 pin is a power pin. In this embodiment, the MCU 301 outputs a serial row switch control signal through an IO port, and outputs it to the No. 1 and No. 2 pins of the 74HC164 chip through the second buffer 304, the No. 3 pin of the 74HC164 chip outputs a parallel row switch control signal H1 to the row switch Q5, the No. 4 pin outputs a parallel row switch control signal H2 to the row switch Q6, the No. 5 pin outputs a parallel row switch control signal H3 to the row switch Q7, and the No. 6 pin outputs a parallel row switch control signal H4 to the row switch Q8. Figure 4 In the figure, resistors R5 to R8 are matching resistors of corresponding row switches.
[0052] MCU 301 outputs control signals MCU_L1, MCU_L2, MCU_L3 and MCU_L4 through four IO ports, and outputs control signals L1, L2, L3 and L4 through first buffer 303, which are then connected to control terminals of column switches Q1 to Q4. Figure 4 The middle resistors R1 to R4 are matching resistors of the corresponding column switches. In this embodiment, the column scanning order pre-configured by the infrared lamp matrix 40 is the 1st column, the 2nd column, the 3rd column, and the 4th column, so the last column switch is the column switch Q4, and the clock signal input port of the 74HC164 chip is connected to the control signal of the column switch Q4, that is, the control signal L4 output by the first buffer is also used as the clock signal of the 74HC164 chip and connected to its No. 8 pin.
[0053] In this embodiment, the infrared touch circuit can first control the row switch Q5 to turn on through the shift register, and the other row switches to turn off. For the column switch, the column switch Q1, column switch Q2, column switch Q3, and column switch Q4 are turned on in sequence. Since the control signal L4 of the column switch Q4 is also used as the clock signal of the shift register, the column switch Q4 changes from on to off, and the signal level of the control signal L4 changes from 0 to 1, which is a rising edge. When the clock signal of the 74HC164 chip detects the rising edge, it will trigger the shift register to move forward one position, that is, turn off the row switch Q5 and turn on the row switch Q6. Then the column switches repeat from column switch Q1 to column switch Q4 to turn on one by one. When the column switch Q4 is turned on, it will trigger the shift register to move forward one position again, until the row switch Q8 and the column switch Q4 are both turned on, so that the scanning of all infrared lamps in the infrared touch circuit is completed. It can be seen that the infrared touch circuit in this embodiment realizes the function of multiplexing the column switch control signal and the shift register clock signal when scanning the infrared touch circuit, which effectively saves the IO port resources of the MCU.
[0054] In one embodiment, the present application further provides an infrared touch screen, the above-mentioned infrared touch circuit.
[0055] In one embodiment, the present application also provides an electronic device, the above-mentioned infrared touch screen.
[0056] Based on the above infrared touch circuit, the present application also provides a scanning method for an infrared touch circuit, which can be applied to the above infrared touch circuit. In one embodiment, referring to Figure 5 As shown, and refer to Figures 1 to 4 , the scanning method of the present application includes:
[0057] S510, the control module 30 outputs a control signal to the column driving module 10, controlling each column switch in the column driving module 10 to be turned on one by one in sequence according to the column scanning sequence pre-configured by the infrared touch circuit;
[0058] S520, the control module 30 outputs a serial row switch control signal to the shift register 201, so that the shift register 201 outputs a parallel switch control signal to control one row switch in the row driving module 20 to be turned on and the other row switches to be turned off; when the tail column switch is turned on, the shift register 201 responds to the level change of the clock signal input port, and the parallel row switch control signal output by the shift register 201 shifts, so that the row switches in the row driving module 20 are turned on one by one in sequence.
[0059] Among them, when controlling one row switch in the row driving module 20 to be turned on and the other row switches to be turned off, the row switches corresponding to the first row of infrared lamps in the infrared touch circuit can be turned on one by one, or the row switches corresponding to the last row of infrared lamps can be turned on one by one, or the row switches corresponding to a certain row of infrared lamps in the middle can be turned on one by one, and the present application does not impose any restrictions on this.
[0060] The scanning method provided based on this embodiment can realize the scanning of each infrared lamp tube in the infrared touch circuit, and because the clock signal input port of the shift register 201 reuses the control signal corresponding to one of the column switches, the interface resources of the control module 30 can be saved, the specification requirements for the control module 30 can be reduced, and at the same time, one signal line can be reduced to optimize the PCB routing and improve the reliability of the PCB design.
[0061] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0062] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An infrared touch circuit, characterized in that: The infrared touch circuit comprises: A column driving module, wherein the column driving module comprises a plurality of column switches, each of which is connected to the infrared lamp tubes of a corresponding column in the infrared lamp tube matrix, and is used to drive the infrared lamp tubes of the corresponding column; A control module, connected to the control end of each column switch, for outputting a corresponding control signal to each column switch; the control module is also used to output a serial row switch control signal; A row driving module, wherein the row driving module includes a shift register and a plurality of row switches, each of the row switches being connected to the infrared lamp tubes of a corresponding row in the infrared lamp tube matrix, and being used to drive the infrared lamp tubes of the corresponding row; the serial signal input port of the shift register is connected to the serial row switch control signal output by the control module, and the plurality of parallel signal output ports of the shift register are connected one-to-one with the control ends of the plurality of row switches, and being used to convert the serial row switch control signal output by the control module into a parallel row switch control signal corresponding to each row switch; the clock signal input port of the shift register is connected to the control signal corresponding to the tail column switch, and is used to shift the parallel row switch control signal according to the level change of the control signal corresponding to the tail column switch, and the tail column switch is a column switch corresponding to the last column of infrared lamp tubes determined based on the column scanning sequence pre-configured by the infrared touch circuit.
2. The infrared touch circuit according to claim 1, characterized in that: The control module includes a microcontroller, which is connected to the serial signal input port of the shift register and the control end of each column switch through an IO port, and is used to output the serial row switch control signal to the shift register and output a corresponding control signal to each column switch.
3. The infrared touch circuit according to claim 1, characterized in that: The control module includes a microcontroller and a decoder; The microcontroller is connected to the shift register via an IO port, and is used to output the serial row switch control signal to the shift register; The input end of the decoder is connected to the IO port of the microcontroller, and the output end is connected to the control end of each column switch. The decoder is used to decode the coded signal input by the microcontroller to output a control signal to the control end of the corresponding column switch.
4. The infrared touch circuit according to claim 2, characterized in that: The control module further includes a first buffer, an input end of the first buffer is connected to the IO port of the microcontroller, and an output end of the first buffer is connected to the control end of each of the column switches for outputting a corresponding control signal to each of the column switches.
5. The infrared touch circuit according to claim 2 or 4, characterized in that: The control module also includes a second buffer, the input end of the second buffer is connected to the IO port of the microcontroller, and the output end of the second buffer is connected to the serial signal input port of the shift register for outputting the serial row switch control signal to the shift register.
6. The infrared touch circuit according to any one of claims 1 to 4, characterized in that: The row switch includes an NPN transistor, the base of which is connected to the parallel signal output port of the shift register, the collector of which is connected to the cathode of the infrared lamp tube of the corresponding row in the infrared lamp tube matrix, and the emitter of which is used to connect to the current control circuit.
7. The infrared touch circuit according to any one of claims 1 to 4, characterized in that: The column switch includes a PNP transistor, the base of which is connected to the control signal output by the control module, the collector of which is connected to the anode of the corresponding column of infrared lamps in the infrared lamp matrix, and the emitter of which is used to connect to the power supply.
8. An infrared touch screen, characterized in that: The infrared touch circuit comprises the infrared touch circuit as described in any one of claims 1 to 7.
9. A scanning method for an infrared touch circuit, applied to the infrared touch circuit according to any one of claims 1 to 7, characterized in that: The method comprises: The control module outputs a control signal to the column driving module to control each of the column switches in the column driving module to be turned on one by one in sequence according to the column scanning sequence pre-configured by the infrared touch circuit; The control module outputs a serial row switch control signal to the shift register, so that the shift register outputs a parallel switch control signal to control one row switch in the row driving module to be turned on and the other row switches to be turned off; when the tail column switch is turned on, the shift register responds to the level change of the clock signal input port, and the parallel row switch control signal output by the shift register shifts, so that the row switches in the row driving module are turned on one by one in sequence.
