SCAN METHOD FOR KEYBOARDS
20170099065 ยท 2017-04-06
Inventors
- Yu-Szu LEE (New Taipei City, TW)
- Yu-Tseng CHAO (New Taipei City, TW)
- Ching-Yu HO (New Taipei City, TW)
Cpc classification
International classification
Abstract
A scan method for keyboards is firstly to set a higher voltage or a lower voltage to a keyboard scan input/output port when a low voltage signal is generated at a keyboard scan input port, and then to detect a voltage at the keyboard scan input/output port or the keyboard scan input port so as to determine whether the detected low voltage signal is a valid button-depressed signal or a noise. Further, a grounding resistor is connected electrically to the keyboard scan input/output port, and the scan method prevails as well to determine whether or not a detected low voltage signal is a valid button-depressed signal.
Claims
1. A scan method for keyboards, applied to a keyboard module, the keyboard module including a keyboard scan input contact, a keyboard scan input/output contact, a button and a firmware, the button being electrically connected with the keyboard scan input contact and the keyboard scan input/output contact, the firmware being electrically connected with the keyboard scan input contact and the keyboard scan input/output contact, the scan method comprising the steps of: (a) setting a voltage at the keyboard scan input/output contact to be an output voltage while the firmware detects a low voltage signal being generated by the keyboard scan input contact; (b) detecting if a voltage at the keyboard scan input contact is a low voltage or not; setting the voltage at the keyboard scan input/output contact to be an input voltage while the voltage at the keyboard scan input contact is the low voltage; and (c) detecting if the voltage at the keyboard scan input/output contact is a high voltage or not; determining the low voltage signal to be a button signal and performing a signal masking process within an oscillation time duration of the low voltage signal while the voltage at the keyboard scan input/output contact is the high voltage.
2. The scan method for keyboards of claim 1, wherein, in Step (c), the low voltage signal is judged to be a noise signal if the voltage at the keyboard scan input contact is the low voltage.
3. The scan method for keyboards of claim 1, wherein the keyboard module further includes a keyboard scan input port connecting electrically directly with the keyboard scan input contact.
4. The scan method for keyboards of claim 1, wherein the keyboard module further includes a keyboard scan input/output port connecting electrically directly with the keyboard scan input/output contact.
5. A scan method for keyboards, applied to a keyboard module, the keyboard module including a keyboard scan input contact, a keyboard scan input/output contact, a button and a firmware, the keyboard scan input/output contact being connected electrically with a grounding resistor, the button being electrically connected with the keyboard scan input contact and the keyboard scan input/output contact, the firmware being electrically connected with the keyboard scan input contact and the keyboard scan input/output contact, the scan method comprising the steps of: (a) setting a voltage at the keyboard scan input contact to be an input voltage while the firmware detects a low voltage signal being generated by the keyboard scan input contact; (b) detecting if a voltage at the keyboard scan input/output contact is a high voltage or not; setting the voltage at the keyboard scan input/output contact to be an output voltage while the voltage at the keyboard scan input/output contact is the high voltage; and (c) determining the low voltage signal to be a button signal and performing a signal masking process within an oscillation time duration of the low voltage signal while the voltage at the keyboard scan input contact is the low voltage.
6. The scan method for keyboards of claim 5, wherein, in Step (b), the low voltage signal is judged to be a noise signal if the voltage at the keyboard scan input/output contact is the low voltage.
7. The scan method for keyboards of claim 5, wherein the keyboard module further includes a keyboard scan input port connecting electrically directly with the keyboard scan input contact.
8. The scan method for keyboards of claim 5, wherein the keyboard module further includes a keyboard scan input/output port connecting electrically directly with the keyboard scan input/output contact.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The present invention will now be specified with reference to its preferred embodiment illustrated in the drawings, in which:
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
DESCRIPTION OF THE PREFERRED EMBODIMENT
[0026] The invention disclosed herein is directed to a scan method for keyboards. In the following description, numerous details are set forth in order to provide a thorough understanding of the present invention. It will be appreciated by one skilled in the art that variations of these specific details are possible while still achieving the results of the present invention. In other instance, well-known components are not described in detail in order not to unnecessarily obscure the present invention.
[0027] Refer now to
[0028] Refer now to
[0029] Then, in Step S121, the voltage at the keyboard scan input contact 1 is detected to be a low voltage or not. In the case that the keyboard scan input contact 1 is at the low voltage, it implies, highly possible, that a depression upon the button K is applied so as to connect electrically the keyboard scan input contact 1 and the keyboard scan input/output contact 2, and so as to equal the voltages at the keyboard scan input contact 1 and the keyboard scan input/output contact 2 to be the same low voltage. Then, Step S122 is performed for confirmation. In Step 122, the voltage at the keyboard scan input/output contact 2 is set as the input voltage. In Step S131, the voltage at the keyboard scan input/output contact 2 is detected to be a high voltage or not. In the case that that the keyboard scan input/output contact 2 is at a state of high voltage, then perform Step S132. In Step S132, if the low voltage signal is judged to be a button signal is confirmed, and also a signal masking process is performed within the oscillation time duration of the low voltage signal so as to mask signals within a second oscillation time zone S2 of the oscillation time duration. In addition, in the case that the voltage at the keyboard scan input/output contact 2 is detected to be the low voltage in Step S131, then the low voltage signal is judged to be a noise signal.
[0030] Refer now to
[0031] Referring now to
[0032] Then, in Step S221, while the voltage at the keyboard scan input/output contact 2 is detected to be a high voltage, then Step S222 is performed to set the voltage at the keyboard scan input/output contact 2 as the output voltage, and to check if the voltage at the keyboard scan input contact 1 is a low voltage or not. However, while, in Step S221, a low voltage is detected at the keyboard scan input/output contact, the firmware FW would directly determine that the low voltage signal generated at the keyboard scan input contact 1 is simply a noise signal.
[0033] As stated above, in the case that the firmware FW detects that the voltage at the keyboard scan input contact 1 is a low voltage in Step S222, then, in Step S23, the detected low voltage signal is judged to be a button signal generated at the keyboard scan input contact 1, and a signal masking process is performed within the oscillation time duration of the low voltage signal.
[0034] In summary, by compared to the conventional technique that the determination of the signal is definitely delayed by the oscillation time duration of the low voltage signal, the scan method for keyboards provided by the present invention can perform detecting, setting and determining early within the first oscillation time zone of the oscillation time duration, and masks the remaining signals in the second oscillation time zone after the low voltage signal is determined. Upon such an arrangement, the response time of the keyboard can be effectively reduced. Namely, even that the used hardware is still adopted, the scan method provided to the firmware in accordance with the present invention can still enhance the response speed of the keyboard and prohibit effectively the noise interference to the keyboard, without increasing the cost in hardware investment.
[0035] While the present invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be without departing from the spirit and scope of the present invention.