Summary of the invention
In view of above content, be necessary to provide a kind of touch module switching circuit for all-in-one computer, by this touch module switching circuit for all-in-one computer can make all-in-one as a display use by another computer.
A kind of touch module switching circuit for all-in-one computer, comprise a USB display circuit, one touch-control module, one USB interface, first and second diode, one USB switches chip, first and second resistance, the voltage pin of this USB interface is connected to the anode of the first diode, also be connected to by this first resistance the input end that this USB switches chip, this USB switches the input end of chip by this second resistance eutral grounding, the negative electrode of this first diode is connected to this USB and switches the voltage end of chip and the voltage pin of this touch-control module, two data pin of this USB interface are connected to the first switching input end and the 3rd switching input end that this USB switches chip respectively, the anode of this second diode is connected to the power pins of this USB display circuit, negative electrode is connected to the negative electrode of this first diode, two data pin of this USB display circuit are connected to the second switching input end and the 4th switching input end that this USB switches chip respectively, the first switching output terminal and second that this USB switches chip switches two data pin that output terminal is connected to this touch-control module respectively, if the input end that this USB switches chip is high level, this first switches input end and this first switches between output terminal and realize being electrically connected, 3rd switches input end and this second switches between output terminal and realize being electrically connected, if it is low level that this USB switches the input end of chip, this second switches input end and this first switches between output terminal and realize being electrically connected, the 4th switching input end and this second switch between output terminal and realize being electrically connected.
Whether above-mentioned touch module switching circuit for all-in-one computer connects upper outer computer by the detecting of this USB interface, if outer computer in connection, control this USB and switch chip and switch between this touch-control module with USB interface and communicate, thus this all-in-one can be used as display by outer computer, easy to operate.
Embodiment
Please refer to Fig. 1, touch module switching circuit for all-in-one computer 100 of the present invention is applied to all-in-one, for make all-in-one as a display use by another computer, the better embodiment of this touch module switching circuit for all-in-one computer 100 comprises USB display circuit 20 and a touch-control module 30, as this USB display circuit 20 and corresponding USB pin (the voltage pin VCC of touch-control module 30, data pin D+ and D-, grounding pin GND) be connected time, all-in-one realizes the communication of contact panel in all-in-one internal host plate and touch-control module 30 by this USB display circuit 20 and touch-control module 30, thus realize display and the control of contact panel, because this USB display circuit 20 and this touch-control module 30 are prior art, therefore no longer illustrate here.
The better embodiment of this touch module switching circuit for all-in-one computer 100 also comprises usb 10, a 1 first diode D1, one second diode D2, electric pressure converter 40, USB switches chip 50 and three resistance R1-R3.Wherein, select in present embodiment model be MAX4906EF USB switch chip 50, it comprises an input end IN, one Enable Pin/QP, a voltage end V+, an earth terminal GND, one first switch input end NO1, one second switching input end NC1, the 3rd switches input end NO2, one the 4th switching input end NC2, one first switches output terminal COM1 and one second and switches output terminal COM2, and when Enable Pin/QP is low level, this USB switching chip 50 is in normal operating conditions.When normal operating conditions, if input end IN is high level, this first switches input end NO1 and this first switches between output terminal COM1 and realize being electrically connected, the 3rd switching input end NO2 and this second switch between output terminal COM2 and realize being electrically connected; If input end IN is low level, this second switches input end NC1 and this first switches between output terminal COM1 and realize being electrically connected, the 4th switching input end NC2 and this second switch between output terminal COM2 and realize being electrically connected.
This usb 10 comprises a voltage pin VCC, two data pin D+ and D-, a grounding pin GND.The voltage pin VCC of this usb 10 is connected to the anode of the first diode D1, and be also connected to by this resistance R1 the input end IN that this USB switches chip 50, this input end IN is by resistance R2 ground connection.The negative electrode of this first diode D1 is connected to the input end Vin of this electric pressure converter 40 and voltage pin VCC of this touch-control module 30, the earth terminal GND ground connection of this electric pressure converter 40, and output end vo ut is connected to the voltage end V+ that this USB switches chip 50.
The data pin D+ of this usb 10 and D-is connected to the first switching input end NO1 and the 3rd switching input end NO2 that this USB switches chip 50 respectively, the grounding pin GND ground connection of this usb 10.The anode of this second diode D2 is connected to the power pins VCC of this USB display circuit 20, and negative electrode is connected to the negative electrode of this first diode D1.The data pin D+ of this USB display circuit 20 and D-is connected to the second switching input end NC1 and the 4th switching input end NC2 that this USB switches chip 50 respectively, the grounding pin GND ground connection of this USB display circuit 20.This USB switches first of chip 50 and switches data pin D+ and the D-that output terminal COM1 and second switching output terminal COM2 is connected to this touch-control module 30 respectively, the grounding pin GND ground connection of this touch-control module 30.This USB switches the Enable Pin/QP of chip 50 by resistance R3 ground connection.
In present embodiment, this electric pressure converter 40 becomes the 3.3V voltage needed for this USB switching chip 50 for the 5V voltage transitions received by usb 10, if the voltage that the USB in other embodiment switches needed for chip 50 is just 5V, then do not need to arrange this electric pressure converter 40.In present embodiment, the resistance value preferable range of resistance R1 is the resistance value of 100K Ω-1M Ω, this resistance R2 is the twice of R1, and the resistance value preferable range of this resistance R3 is 1K Ω-10K Ω.
During work, if this usb 10 does not connect outer computer, then this USB switches the input end IN of chip 50 is low level, this second switches input end NC1 and this first switches between output terminal COM1 and realize being electrically connected, 4th switches input end NC2 and this second switches between output terminal COM2 and realize being electrically connected, and namely now this all-in-one works independently.
When needing the display use using this all-in-one as outer computer, directly the USB interface of outer computer is connected to this usb 10, now, this input end IN is high level, this first switches input end NO1 and this first switches between output terminal COM1 and realize being electrically connected, 3rd switches input end NO2 and this second switches between output terminal COM2 and realize being electrically connected, namely this outer computer and this touch-control module 30 achieve communication, that is this all-in-one uses as display by this outer computer, easy to operate.