The present invention relates to a touch panel, more particularly, to a method and device for controlling discharge of each sensing circuit of the touch panel.
Touch panels have been widely used in various applications. A touch panel comprises sensing lines arranged in a crisscross pattern. A sensing circuit is provided for sensing a position of the touch panel where a finger touches.
The discharging unit 110 is connected to a voltage source VDD via a switch 114 so as to precharge the capacitances (i.e. the sensing capacitor 102 and the parasitic capacitor 104) of the sensing electrode 100 to a predetermined voltage level such as 5V. A first current source 127 and a second current source 138 discharge in succession by controlling switches 123 and 134. The first current source 127 is a large current source, of which a current level is about 300 μA, for example. The second current source 138 is a small current source, of which a current level is about 90 nA, for example.
To discharge the sensing circuit 10, the first current source (i.e. the large current source) 127 is switched on first to discharge for a predetermined duration. The precharged voltage level of 5V decreases to about 1V. During the duration that the large current source 127 discharges, the second current source (i.e. the small current source) 138 is disconnected. Then the large current source 127 is disconnected, the small current source 138 is switched on to discharge the residual charges. The duration to complete the discharge of the sensing circuit 10 for a condition that a finger touch event occurs is very different from that for a condition that no finger touch event occurs, since the total capacitances are different. Therefore, the duration to complete the discharge can be used to determine whether a touch event occurs or not.
In the discharging duration, the precharged voltage is reduced linearly. The sensing circuit 10 has a comparator 145 for comparing the precharged voltage and a reference voltage Vref with a level of 1V, for example. When the precharged voltage drops below the reference voltage Vref, the comparator 145 transmits a status changing signal. The duration is measured from starting the discharge to transmitting the status changing signal. The sensing capacitance representing the touch event can be calibrated according to this measured duration.
Due to the process variance and so on, the parasitic capacitances of the respective sensing electrodes 100 of the touch panel may be different from each other. Although the differences are being compensated by the modifying capacitors 116, the difference cannot be completely eliminated. To correct the residual sight differences, the discharging condition of the large current source 127 needs to be fine tuned. Conventionally, such a fine tuning is carried out by adjusting the current of the large current source 127. In general, the current sources are implemented by CMOS transistors. The current level of the current source is adjusted by controlling a voltage applied to the CMOS transistor. To fine tune the current level, an exact voltage level must be provided, such as 1.9V, 2.0V, 2.1V and the like. However, it is difficult and troublesome to fine tune the voltage level in practice.
An objective of the present invention is to provide a sensing circuit discharge control method and device for a touch panel. A discharge amount of the sensing circuit is controlled by fine tuning a discharging duration of a current source of the sensing circuit in a digital manner. Accordingly, discharge current of the current source needs not be frequently adjusted. By using the present invention, the discharging durations of the respective sensing electrodes of the touch panel are approached the same under a condition that a touch event occurs or a condition that no touch event occurs even if the parasitic capacitances of the respective sensing electrodes are different.
In accordance with an embodiment, a sensing circuit discharge control method comprises steps of providing a clock having a clock period; setting a current level for a large current source of the sensing circuit; setting a value P, a discharging duration of the large current source being P times the clock period; charging a sensing electrode of the sensing circuit; discharging the sensing electrode by the large current source with the set current level and discharging duration; discharging residual charges of the sensing electrode by a small current source in the sensing circuit; determining if discharge of the sensing electrode is able to be completed within a predetermined duration; and adjusting the value P to fine tune the discharging duration of the large current source if the discharge of the sensing electrode is failed to be completed within the predetermined duration.
Further, in accordance with another embodiment, a sensing circuit discharge control device comprises an edge detector for detecting when discharge of a sensing electrode of the sensing circuit is completed after the sensing electrode has been charged; a main controller for setting a value P so as to set a discharging duration of a large current source of the sensing circuit, which is P times a clock period, instructing the sensing electrode to be charged, instructing the large current source to discharge the sensing electrode with a set current level and the set discharging duration, instructing a small current source of the sensing circuit to discharge residual charges until discharge is completed and determining if the discharge of the sensing electrode is completed within a predetermine duration according to an output of the edge detector; and a duration controller for adjusting the discharging duration of the large current source. If the main controller determines that the discharge of the sensing electrode has failed to be completed within the predetermined duration, the duration controller adjusts the value P to fine tune the discharging duration of the large current source.
The present invention will be further described in details in conjunction with the accompanying drawings.
In the present invention, a discharging duration of a large current source in a sensing circuit of a touch panel is fine tuned in a digital manner. By doing so, the inconsistencies due to the variance among parasitic capacitances of the respective sensing electrodes of the touch panel are compensated.
In a process of calibration, parasitic capacitance represented by a parasitic capacitor 404 of the sensing circuit 40 is precharged. Then discharge is executed by a large current source 427 having a constant current level in the discharging unit 410 for an interval tLS. After that, the residual charges are completely discharged by a small current source 438. The discharging duration of the small current source 438 is tSS.
The present embodiment will be further described below with reference also to
The device 50 has an edge detector 52, a main controller 54, a storage 55, a voltage controller 56 and a duration controller 58. The calibration process starts at step S610. In step S620, the main controller 54 sets the discharging duration tLS and current level of the large current source, where tLS=P×TC, TC is the period of the clock. In accordance with the present invention, the main controller 54 does not directly set the time length of the discharging duration tLS of the large current source. Instead, the main controller 54 sets a value P. The discharging duration tLS of the large current source is P times the clock period TC. In the present embodiment, an initial value P is a conservative estimate, that is, a smaller value. In practice, a voltage is easier to be controlled than a current. Accordingly, in the present embodiment, the voltage V of the large current source 427 is controlled so as to achieve the current setting. The discharging current level is proportional to the voltage value V. As described, P and V values are set in step S620. This amounts to indirectly setting the discharging duration tLS and current level of the large current source.
In step S630, the sensing circuit 40 discharges the parasitic capacitance Cpar by using the large current source with the discharging duration and current level until the discharge is completed. In step S640, the edge detector 52 detects a failing edge of a voltage waveform of the sensing electrode in the sensing circuit. That is, the edge detector 52 detects when the discharge is completed. The edge detector 52 has a counter (not shown) for counting how many clock periods are corresponding to the discharging duration of the waveform. The edge detector 52 passes a detection result to the main controller 54 so that the main controller 54 can determine if the total discharging duration tP is shorter than a predetermined duration td, where tP=tLS+tS. In other words, the main controller 54 checks if it is possible to complete the discharge within the predetermined duration td. If so, it means that the set values are proper values, then the main controller 54 stores the set values into the storage 55 in step S645. If it is not possible to complete the discharge, it means that the voltage drop released by the large current source is insufficient. An adjustment is required.
If it is determined that the adjustment for the discharging condition of the large current source is required, the main controller 54 determines if the set discharging duration tLS of the large current source has exceeded a tolerable maximum discharging duration tmax. If not, the setting of the value P is adjusted. In the present embodiment, the adjustment for P can be slightly incremented since the initial value P is a smaller value, that is, PN=PO+Δp shown in step S655 of
The discharging duration of the large current source cannot be unlimitedly extended. Therefore, the upper limit tmax for the discharging duration is provided. In the present embodiment, after the value P is adjusted several times, for example, if it is determined that tLS exceeds tmax in step S650, then the P is reset to the initial value, and the voltage controller 56 adjust the V level, VN=VO+Δv, where VN is the adjusted voltage level, VO is the original voltage level and Δv is the incremented voltage level.
By means of some embodiments, the times of adjusting the discharging current level (voltage level) of the large current source in the sensing circuit of the touch panel can be reduced. The discharging duration of the large current source is adjusted in a digital manner so as to calibrate the discharging durations for the sensing capacitances of the respective sensing circuits, thereby the inconsistencies resulted from the parasitic capacitance variance due to the manufacture process can be eliminated.
While the preferred embodiment of the present invention has been illustrated and described in details, various modifications and alterations can be made by persons skilled in this art. The embodiment of the present invention is therefore described in an illustrative but not in a restrictive sense. It is intended that the present invention should not be limited to the particular forms as illustrated, and that all modifications and alterations which maintain the spirit and realm of the present invention are within the scope as defined in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
097136054 | Sep 2008 | TW | national |