Purpose of the present invention is exactly the shortcoming at above-mentioned existing infrared touch panel, a kind of infrared unit gating circuit that mainly is made of shift register is disclosed, in particular for connecting the gating circuit of infrared receiver, with reduce between the components and parts to greatest extent, connection between the advertisement circuit board, the width that reduces circuit board is installed to adapt to various finished product displays, and also increasing simultaneously can reliability of products.Another object of the present invention is to make full use of the shift register characteristics of a plurality of infrared emission of gating or receiving element simultaneously, use to lag behind and to read the method for photosignal, thoroughly eliminate the adverse effect that overshoot burr that the photoelectric cell transient effect produced is produced.
Basic scheme of the present invention is as follows: use the shift register of serial input and line output to drive each infrared unit; The input end of clock of all shift registers is connected in parallel, and is connected with the scan clock output of the micro controller system of touch-screen; The data input pin of first shift register is connected with the gated data output of above-mentioned micro controller system; The highest order of its parallel data output is connected with the data input pin of following a slice shift register, and connects more shift register chip in this way according to actual needs; Corresponding infrared emission of the parallel data output of described each sheet shift register chip or receiving element are connected with the driving input of this corresponding unit.The sort circuit structure both can be used for the sweep gate of infrared emission unit, also can be used for the sweep gate of infrared receiver, drove input and the end that confluxes but these two kinds of infrared unit all comprise one at least; The end that wherein confluxes is connected to an end of touch-screen system electric power loop by resistance, as connects positive source or ground connection.
In order to eliminate the adverse effect of overshoot burr, also used following technical scheme among the present invention: the receiving element of the parallel data output correspondence of shift register chip is made of the photoelectric crystal triode; The collector electrode of described photoelectric crystal triode is connected with the parallel data output of described shift register, all with shift register on number be the phototriode that the parallel output terminal of odd number is connected, after its emitter is parallel to together, by same grounding through resistance, photosignal is outputed to the input of first analog switch by the junction of described resistance and photoelectric crystal transistor emitter; All yards are the corresponding phototriode of parallel output terminal of even number, after its emitter is parallel to together, by the another one grounding through resistance, photosignal is outputed to the input of second analog switch by the junction of described resistance and photoelectric crystal transistor emitter; The control end of described two analog switches is connected with two output ports with synchronous saltus step of scan clock and reverse each other analog switch control circuit; The output of two analog switches is in parallel and constitute the output of whole photosignals.Under the situation of this connected mode, if the high level data signal of two scan clock periodic widths of the data input pin of shift register input, system just can open and shut off in turn by controlling two analog switches, exports at stable photosignal of previous clock cycle in a back clock cycle.The output port of reverse each other analog switch control circuit can be the I/O port of micro controller system, also can be made of the output of external chips such as d type flip flop, controls its continuous upset by aforementioned scan clock.
If in the infrared transmitting tube array, also use shift register, then can be with reference to the connected mode of infrared receiving circuit, each infrared transmitting tube all uses a current driver to drive, and constitutes infrared (emission) unit; Driver can use transistor, also can use the driver element in the OC gate current driver chip; The parallel output terminal of shift register and the input of driver, promptly the input utmost point of the base stage of triode or current driver connects; Infrared transmitting tube inserts according to the direction of current flow series connection and drives the loop, determines the method for supplying of drive current then according to the driver of selecting for use, that is: be to be connected with the positive source of system by current-limiting resistance, still by current-limiting resistance ground connection.If do not consider to open simultaneously two transmitter units to realize the purpose of aforementioned stable receiving element signal, can only use a current-limiting resistance, each transmitter unit is connected to constitute with current-limiting resistance in order one by one and is launched the driving loop under the control of shift register.If consideration above-mentioned purpose, preferably according to identical with top receiving element, with shift register on number be the earth terminal parallel connection of the transmitter unit that parallel output terminal was connected of odd and even number, insert electric power loop by two current-limiting resistances respectively then, so just can avoid discreteness because of the element in three adjacent unit, and the fluctuation that causes when the sequence switch transmitter unit, producing transmitting tube electric current, infrared intensity, and make receiving tube photosignal already stable, that be about to export produce new interference by analog switch.
In conjunction with technical scheme used in the present invention, can see that the present invention has following advantage; First, because the connection between the shift register is very simple, its control channel only needs a data input and a scan clock input, most circuit connects and is present between shift register and the infrared components, the very near while of distance is very concentrated again, therefore compare with the circuit of matrix structure, long-distance circuit connects greatly minimizing between circuit board inside and the circuit board, can reduce the shared board area of printed circuit cable to greatest extent, also just reduced the width of printed circuit board (PCB) to greatest extent, 4 circuit boards that constitute infrared touch panel can be installed in most displays.Second, using lags behind reads the method for photosignal, can access stable photosignal, avoid the influence of the overshoot of infrared receiving tube to touch screen performance, also simplified simultaneously the structure of photoelectric signal processing circuit, make design of touch panel, the debugging more easy, reduced production cost of products.
Describe concrete structure of the present invention in detail below in conjunction with accompanying drawing.
The basic structure of existing infrared touch panel circuit part as shown in Figure 1, mainly by several most of formations such as micro controller system 1 (MCUSYSTEM), infrared emission unit array 2, infrared receiver array 3, photoelectric signal processing circuit translation circuit 4, the Infrared 9 on display screen surface is as the media of senses touch behavior, with transmitter unit array and receiving element array with getting in touch together.Infrared emission unit array 2 and infrared receiver array 3 all use shift register to constitute the sweep gate circuit of infrared unit among the figure.Can see that from transmitter unit array 2 SI PO shift register 10 has two control input ends, i.e. data input pin DATA among the figure and scan clock input CLK; Shift register 10 generally is in series by multi-disc shift register chip, the quantity n of the infrared emission unit that the quantity of series connection drives as required and deciding; Its parallel output terminal Q1-Qn is connected with each infrared emission unit respectively.For infrared receiver array 3, can analyze with reference to transmitter unit array 2, shift register 11 drives the quantity of the receiving element of gating equally as required, is in series with the shift register chip, also has identical data input pin DATA and scan clock input CLK.Because the quantity of transmitting tube and receiving tube is all n mutually in the infrared touch panel, if use the shift register chip with a kind of model, the quantity of Chuan Lian shift register chip also should be identical so.
Because the effect of this figure is the basic structure that infrared touch panel of the present invention is used in explanation, so infrared emission unit of example here, only provide a kind of structure that is made of transistor Td1-Tdn and infrared transmitting tube D1-Dn, the two adopts the mode of emitter follower to connect.For sake of convenience, we define the drive current inflow of the infraluminescence pipe that on the infrared emission unit, directly is connected with current-limiting resistance or the port that flows out, and perhaps the output port of photosignal is the end that confluxes on the infrared receiver; Definition is to drive input by shift register to the port that this infrared unit applies drive signal.Therefore here, the emitter of triode Td1-Tdn is the end that confluxes, and back in parallel is by a current-limiting resistance Re ground connection; The base stage of triode is connected with the parallel output terminal Q1-Qn of shift register for driving input, is connected to after the collector electrode parallel connection on the anodal Vcc of touch-screen system power supply.Infrared receiver then is made of the photoelectric crystal triode, the collector electrode of phototriode is connected with the parallel output terminal Q1-Qn of shift register, pass through a load resistance Rr ground connection after the emitter parallel connection, photosignal output OUT draws from the emitter of phototriode and the junction of load resistance, outputs to Photoelectric Signal Processing change-over circuit 4.
The task of micro controller system 1 is to coordinate the work of control whole touch screen, respectively by various piece operate as normal in control bus 5,6,8 control charts.The control bus here is not the control bus of the given narrow sense of microcontroller itself, but accuses the various signal output ports of system peripheral circuit work, and generally the I/O port by micro controller I/O port and expansion thereof constitutes.Photoelectric Signal Processing change-over circuit 4 is made of several parts such as amplifying circuit Amp, signal filter circuit F, analog-digital converter circuit A/D, by be connected the co-ordination of control circuit 13 (CONTROL) control each several part with above-mentioned control bus, the data of A/D converter output are transported in the micro controller system 1 by data/address bus 7.Micro controller system and Photoelectric Signal Processing change-over circuit all belong to prior art, have multiple ripe circuit and organization plan available, number is that 00121462.4 and 95101303 Chinese patent application is announced and the related available enforcement of technical scheme, content as described above.
Fig. 2 is the schematic diagram that is used for the sweep gate circuit of infrared touch panel receiving element.This circuit can 48 infrared receivers of sweep gate, by I1-I6 totally 6 Digital Logical Circuits 74LS164 (the same model product that comprises different technologies such as TTL, HC, ALS, LV) be in series.The input end of clock of all shift registers all is parallel to together, is connected to the scan clock output CLK of micro controller system; The data input pin DATA of first shift register is connected with the gated data output of micro controller system; The highest order Q8 of its parallel data output is connected with the data input pin of following a slice shift register, and connects the shift register chip of back in this way according to actual needs; Clear terminal CLR low level is effective, when back also in parallel starts for touch-screen system to the shift register zero clearing.Here, the zero clearing low level has multiple presentation mode, and wherein a kind of offers CLR end (because of the general RESET of microcontroller is that high level is effective) with the RESET signal of microprocessor system after oppositely with reverser; Another is to be connected with certain I/O port of microcontroller, is held to CLR by system's output zero clearing low level.Infrared receiver is made of the photoelectric crystal triode, i.e. Tr1-Tr8 among the figure (for the sake of simplicity, remaining does not provide label).The collector electrode of each phototriode, promptly previously defined driving input is connected with the parallel output terminal Q1-Q8 of every shift register chip, and emitter is the photosignal output, and the promptly previously defined end that confluxes is by load resistance ground connection.Here, the connected mode of conflux end and load resistance has 3 kinds: the first, and the emitter of every phototriode all passes through a grounding through resistance, at this moment photosignal needs output respectively, can obviously increase lead-in wire and component number, run in the opposite direction no practical value with purpose of the present invention.The second, emitter back all in parallel is by a load resistance ground connection, and at this moment photosignal only needs an output lead OUT, it is the simplest mode, under the situation of not considering the photosignal waveform,, can make in this way as for only needing to detect the infrared touch panel that photosignal has or not; At this moment the data width of the data input pin DATA of shift register should satisfy t1<T1<2
*T1.The 3rd, as shown in FIG., all with shift register on number be the phototriode that the parallel output terminal (back be called for short strange, even output) of odd and even number is connected, after its emitter is parallel to together respectively, again respectively by two load resistance ground connection, the two-way photosignal AO1 of output, the input that AO2 is connected respectively to two analog switches, and the output of two analog switches is parallel to and constitutes a signal output part OUT together, and photosignal is sent to analog signal processing circuit 4.This mode is optimum mode, can access stable photosignal to improve the performance of touch-screen, and the data width of the data input pin DATA of shift register should satisfy 2
*T1<T1<3
*T1.To mainly describe below this mode.
The effect of two analog switch I7A, I7B is by control timing among Fig. 2, after photosignal is stable it is outputed to subsequent conditioning circuit, and its sequential relationship is seen Fig. 7, oscillogram shown in Figure 8.In Fig. 7, if data input pin DATA at shift register, import the high level signal of a duration T 1 greater than 2 times scan clock cycle t1, according to the logic function of shift register as can be known, this high level will be along with the arrival of scan clock CLK, appear at two adjacent inputs such as Q1-Q2, Q2-Q3, Q3-Q4 successively, and this logic is extended to the output of other shift register of back, shown in the waveform of each output of Q1-Q8 among the figure.Shift register just can be respectively strange, even output infrared receiver by while two of gatings like this.As seen from Figure 8, receive the instantaneous of infrared light when certain selected the connecting of phototriode, a spike 18 will appear in the waveform at load resistance R1 or R2 two ends, through just stablizing after one very short period.Suppose that now an odd number output Qn-1 is after a scan clock is come, during output gating high level, the signal of R1 output is unsettled, this season, the control end S1 of first analog switch I7A was a low level, analog switch turn-offs, this unsettled photosignal just can't be sent to the signal processing translation circuit, and the control end of second analog switch S2 is a high level; After next scan clock pulse arrives, even number output Qn output gating high level, the signal of R2 output is unsettled, but at this moment the signal at R1 two ends is highly stable, at this moment follow the arrival of scan clock, the control end S1 of analog switch I7A becomes high level, the analog switch conducting, and the stable photosignal in R1 two ends just is sent to subsequent conditioning circuit.Meanwhile, the control end of second analog switch I7B also is low level with the scan clock signal upset, and analog switch is turned off, and the signal at R2 two ends can't be sent to subsequent conditioning circuit.When the 3rd scan clock pulse reached, according to the condition of front, the DATA of shift register end had become low level, and Q1 is for becoming low level, and the value that Q2 inherits Q1 still is a high level, and the value that Q3 inherits Q2 becomes high level.The rest may be inferred, and we just can obtain highly stable photosignal all the time.Special situation appears at the unit scan period T at first: when first scan clock arrived, the Q1 output of I1 was a high level, gating and Tr1 is only arranged by gating, but at this moment the signal at R1 two ends is also unstable, and photosignal should not be output.If at this moment we to force S1 be low level, then no matter control end S2 is high level or low level, does not all have photosignal output.
According to above-mentioned analysis, can see can whether the control signal S1 of two analog switches and S2 and scan clock CLK be synchronous, be the key that realize exporting stable photosignal.Realization has two to the scheme of two analog switch controls:
First kind is the scheme of hardware controls, shown in dotted line extention among Fig. 2, use two of outer member such as d type flip flop I8A outputs each other oppositely and with the scan clock control level of upset synchronously.At this moment d type flip flop connects into the divider circuit of standard, and D end (data terminal) is connected to Q non-(oppositely) output; Reset terminal CLR low level is effective, connects together with the clear terminal CLR of shift register; Input end of clock CLK is also in parallel with the scan clock input of shift register; Output Q is connected with S2 in the same way, and inverse output terminal Q is non-to be connected with S1.Like this, after entire circuit zero clearing among Fig. 2, analog switch I7A conducting, but at this moment do not have receiving element by gating, so there is not photosignal output.Before arriving, the data input pin DATA of shift register is put high level, after first scan clock arrives when first scan clock, Q1 is a high level, Tr1 is by gating, and d type flip flop I8A overturns, and S1 is a low level, I7A is turned off, S2 is a high level, the I7B conducting, but because of Q2 still be low level, Tr2 is not by gating, so there is not photosignal output.After second scan clock pulse arrived, because of the DATA end still is a high level, so Q1, Q2 are high level, Tr1, Tr2 were by gating, and output terminals A O1, AO2 have photosignal output, and at this moment d type flip flop overturns once more, and S1 is a high level, the I7A conducting; S2 is a low level, and I7B turn-offs, so the signal of signal output part AO1, promptly the photosignal exported of receiving element Tr1 is sent to photosignal output OUT.Because at this moment the state of Tr1 is stable, the photosignal of output is stable high-quality signal.Before the 3rd scan clock pulse arrives, the DATA end is put low level, like this along with the continuous arrival of scan clock pulse, Q2Q3, Q3Q4 export high level successively, two analog switches take turns conducting, the stable photosignal of Tr2, Tr3, the output of Tr4 unit just is sent to photosignal output OUT successively.Here I7A, I7B select CMOS integrated circuit 4066 for use, if change control mode for the decoding gating, can also select 405X series analog switch for use.I8A can select the d type flip flop as different technologies same models such as 74LS74A, 74HC74A, 74HCT74A for use.Because the function of this circuit is actual to be one 2 frequency divider, so as 7476,7478,74107, JK flip-flop such as 74107A, 74109A also can use, and comprise the same model kind of technology such as TTL, LS, HC, HCT, ALS.Because of these chips all belong to kind commonly used, so need not to describe in detail.
Second kind is the scheme of software control, and the I/O port of use micro controller system is controlled the break-make of two analog switches, as shown in Figure 3.Control end S1, the S2 of analog switch I7A, I7B are connected with two port I/O1, I/O2 of micro controller system respectively, and all control is all finished by the software that solidifies in the microcontroller, realizes the logical relation of above-mentioned first kind of scheme.Among Fig. 3 15 is the reversers with software simulation, and the instruction in the expression micro controller system is to the logical relation of two port I/O1 and I/O2 operation.This reverser can replace with a real reverser in side circuit, be placed on outside the micro controller system, at this moment micro controller system only needs a port I/O1 or I/O2, the control signal of output duty cycle 50% is offered control end S1, the S2 of analog switch after oppositely respectively by reverser.When the I/O of micro controller system port is relatively more nervous, can select this scheme for use.
The advantage of hardware controls scheme is the system resource that does not take microcontroller, and programming is more simpler, and shortcoming is to need to increase number of chips, takies board area and increases product cost; The pluses and minuses of software control scheme are then just in time opposite.For the design of maturation, the scheme of software control will be better.
The circuit of Fig. 2 is suitable for using the infrared touch panel of any microcontroller, but need the support of this microcontroller in house software, as the generation of the input data DATA of scan clock pulse CLK and shift register, to first scan clock pulse in processing of ignoring or giving up of the invalid output that the OUT output produced etc.Because the command system and the code of existing various microcontroller commonly used all have nothing in common with each other, and all be prior art, circuit part only requires that it can export satisfactory data, and how the function of circuit and its are operated its I/O and are exported these data independences, so the present invention does not relate to concrete software, no longer illustrates at this.The implementer can use the databook of microcontroller and the function that the coherent reference data is finished this part with reference to it.
Fig. 4 is the schematic diagram that is used for the sweep gate circuit of infrared touch panel transmitter unit.Compare with Fig. 2, can see difference only be by gating be infrared emission unit, and do not need to be used for the element that photosignal is selected output as analog switch etc.Among the figure, infrared emission unit 16 has multiple internal structure: the connected mode of Td1 and D1 is a kind of internal structure among Fig. 1, and Fig. 5 and Fig. 6 have provided other two kinds of internal structures.In Fig. 5, infrared transmitting tube D is connected on the collector loop of transistor Td, and the driving input of previously defined unit remains the base stage of triode, and the end that confluxes is transistorized emitter.In Fig. 6, use driver element 17 place of transistor in the current driver, be used to drive infrared transmitting tube, what provide among the figure is that open-collector OC door reverser drives infrared transmitting tube D, so infrared transmitting tube should forward be connected on the output of reverser.Here, reverse driven 17 as required the size of drive current select 7406 for use, multiple multichannel current driver chip such as ULN200X (A) series, ULQ200X (A) series.Under this connected mode, the input of reverser 17 is driving inputs of transmitter unit, and the positive pole of infrared transmitting tube D is the end Pd that confluxes; The other end Pda that is connected the current-limiting resistance Rt of positive source Vcc among the figure then is the tie point that confluxes and hold.In fact, the effect of resistance R t here is the Re in the alternate figures 1, and Re1 among Fig. 4 and Re2 conflux end by ground connection with transmitter unit, changes on the positive source Vcc that is connected to touch-screen system, to be fit to the requirement of current drives unit operate as normal.Because the connected mode of the conflux end and the current-limiting resistance of infrared emission unit, the end that confluxes of introducing receiving element with the front is the same with the connected mode of load resistance, 3 kinds of different selections can be arranged, so Rt is used for substituting Re, still substitute Re1 and Re2 with 2 Rt, all need to decide according to concrete circuit.Certainly, current driver 17 also can be selected the driver in the same way as types such as 7407 for use, but at this moment the data of the data input pin DATA of shift register should be reverse, promptly becomes low level by high level.
The more unit of gating as the infrared screen for the 64*48 physical resolution, needs 112 infrared emission of gating or receiving element if desired, can be in the I6 back again according to 8 shift registers of the series connection of the connected mode among the figure, and other is constant.It should be noted that the driving force of ports such as micro controller system CLK, CLR in this case, may need to increase driver and guarantee to drive reliably.If in the infrared emission unit array of infrared touch panel and infrared receiver array, all use circuit of the present invention, shift register 10 and 11 data input pin DATA and input end of clock CLK, clear terminal CLR among Fig. 1 so, can be parallel to respectively together, can either guarantee to transmit and receive the synchronous of part, can save the I/O port of micro controller system again.Certainly, at this moment more should note the driving force problem of above-mentioned port, guarantee that system works is normal.