TWI720467B - Switch device with switch debouncing - Google Patents
Switch device with switch debouncing Download PDFInfo
- Publication number
- TWI720467B TWI720467B TW108114964A TW108114964A TWI720467B TW I720467 B TWI720467 B TW I720467B TW 108114964 A TW108114964 A TW 108114964A TW 108114964 A TW108114964 A TW 108114964A TW I720467 B TWI720467 B TW I720467B
- Authority
- TW
- Taiwan
- Prior art keywords
- switch
- contact
- processing unit
- conductive sheet
- time
- Prior art date
Links
Images
Landscapes
- Keying Circuit Devices (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
Description
本發明涉及開關裝置,特別涉及具有彈跳雜訊抑制功能的開關裝置。 The invention relates to a switch device, in particular to a switch device with a function of suppressing bounce noise.
現有的開關裝置(如鍵盤按鍵或電子裝置的按鈕)多是通過多個電子接點的接觸來觸發電訊號。上述觸發方式於電子接點的接觸瞬間會產生接觸彈跳(contact bounce)雜訊,上述接觸彈跳雜訊會造成開關裝置對於按鍵狀態的誤判,而輸出錯誤的開關訊號。 Existing switch devices (such as keyboard keys or buttons of electronic devices) mostly trigger electrical signals through the contact of multiple electronic contacts. The above-mentioned triggering method will generate contact bounce noise at the moment of contact of the electronic contact. The above-mentioned contact bounce noise will cause the switch device to misjudge the button state and output an incorrect switch signal.
請參閱圖10,為現有技術的監控接觸式開關的電訊號的示意圖。如圖所示,當使用者按下按鍵(時間點T0)後,此按鍵的電訊號會立刻上升至高電位,並觸發一連串接觸彈跳雜訊(即時間點T0至時間點T1之間的電訊號)。 Please refer to FIG. 10, which is a schematic diagram of monitoring electrical signals of a contact switch in the prior art. As shown in the figure, when the user presses the button (time point T0), the electric signal of this button will immediately rise to a high level and trigger a series of contact bounce noises (that is, the electric signal between time point T0 and time point T1) ).
並且,當使用者釋放按鍵(時間點T3)後,此按鍵的電訊號會立刻下降至低電位,並觸發一連串接觸彈跳雜訊(即時間點T3至時間點T4之間的電訊號)。 Moreover, when the user releases the button (time point T3), the electrical signal of the button will immediately drop to a low level and trigger a series of contact bounce noises (ie, electrical signals between time point T3 and time point T4).
前述此段接觸彈跳雜訊會導致開關裝置誤判此按鍵於短時間內被連續釋放與按壓,而於短時間內連續輸出此按鍵的按壓訊號與釋放訊號(即錯誤的開關訊號),而造成用戶不便。 The aforementioned contact bounce noise will cause the switch device to misjudge that the button is continuously released and pressed in a short period of time, and continuously output the button's press signal and release signal (that is, the wrong switch signal) in a short period of time, causing the user inconvenient.
為了抑制上述接觸彈跳雜訊,並避免輸出錯誤的開關訊號,目前已有一種抑制彈跳雜訊的技術被提出。 In order to suppress the above-mentioned contact bounce noise and avoid outputting an erroneous switching signal, a technology for suppressing the bounce noise has been proposed.
具體而言,現有的抑制彈跳雜訊的技術是於使用者按壓按鍵後(時間點T0)持續監控電訊號的電位,並於電位維持穩定狀態(時間點T1)時開始計時預設穩定時間(如4ms),於電位維持穩定狀態達到預設穩定時間(時間點T2)時才輸出此按鍵的按壓訊號。 Specifically, the existing technology for suppressing bounce noise is to continuously monitor the potential of the electrical signal after the user presses the button (time point T0), and start to count the preset stabilization time when the potential remains stable (time point T1) ( For example, 4ms), when the potential maintains a stable state and reaches the preset stable time (time point T2), the pressing signal of the button is output.
此外,當使用者釋放按鍵後(時間點T3),現有的抑制彈跳雜訊的技術同樣會持續監控電訊號的電位,並於電位維持穩定狀態(時間點T4)時開始計時預設穩定時間(如4ms),於電位維持穩定狀態達到預設穩定時間(時間點T5)時才輸出此按鍵的釋放訊號。 In addition, when the user releases the button (time point T3), the existing technology for suppressing bounce noise will also continue to monitor the electrical signal's potential, and start timing the preset stable time when the potential remains stable (time point T4) ( For example, 4ms), the release signal of this button is output when the potential maintains a stable state and reaches the preset stable time (time point T5).
現有的抑制彈跳雜訊主要存在「觸發延遲時間過長」及「觸發延遲時間不固定」兩個缺失。 The existing suppression of bounce noise mainly has two deficiencies: "trigger delay time is too long" and "trigger delay time is not fixed".
關於觸發延遲時間過長,當使用者按壓/釋放按鍵後,現有的抑制彈跳雜訊的技術必須於電位維持穩定狀態達到預設穩定時間才能輸出對應的按壓/釋放訊號(以圖10為例,按壓延遲為12ms,釋放延遲為11毫秒)。 Regarding the trigger delay time is too long, when the user presses/releases the button, the existing technology for suppressing bounce noise must maintain a stable potential for a preset stable time before outputting the corresponding press/release signal (take Figure 10 as an example, The press delay is 12ms, and the release delay is 11ms).
關於觸發延遲時間不固定,隨著電子接點的老化,前述接觸彈跳雜訊的持續時間可能增加,這使得現有的抑制彈跳雜訊的技術必須花更多時間等待電位維持穩定狀態,而使得觸發延遲時間增加。此外,由於不同按鍵的電子接點的狀態不同(即接觸彈跳雜訊的持續時間不同),現有的抑制彈跳雜訊的技術會使得不同按鍵的觸發延遲時間不同,而令使用者難以適應不同按鍵的不同觸發延遲。 Regarding the trigger delay time is not fixed, as the electronic contact ages, the duration of the aforementioned contact bounce noise may increase. This makes the existing technology to suppress bounce noise need to spend more time waiting for the potential to maintain a stable state, which makes the trigger The delay time increases. In addition, due to the different states of the electronic contacts of different keys (that is, the duration of the contact bounce noise is different), the existing techniques for suppressing bounce noise will cause the trigger delay time of different keys to be different, making it difficult for users to adapt to different keys. Different trigger delays.
有鑑於此,目前亟待一種可解決上述技術問題的方案被提出。 In view of this, there is an urgent need for a solution to the above technical problems to be proposed.
本發明提供一種具有彈跳雜訊抑制功能的開關裝置,可即時觸發開關訊號,並可抑制彈跳雜訊。 The invention provides a switch device with the function of suppressing bounce noise, which can trigger the switch signal in real time and suppress the bounce noise.
於一實施例中,一種具有彈跳雜訊抑制功能的開關裝置,包括接觸式開關、傳輸單元及電性連接接觸式開關與傳輸單元的處理單元。接觸式開關於接受操作時觸發電訊號。傳輸單元用以連接電腦主機。處理單元於依據電訊號判斷接觸式開關被操作時立即經由傳輸單元對外輸出電訊號所對應的開關訊號,計時臨界時間並於臨界時間內停止判斷接觸式開關是否被再次操作,並於臨界時間經過後,繼續依據電訊號判斷接觸式開關是否被再次操作。 In one embodiment, a switch device with bounce noise suppression function includes a contact switch, a transmission unit, and a processing unit electrically connecting the contact switch and the transmission unit. The contact switch triggers an electrical signal when it accepts an operation. The transmission unit is used to connect the host computer. When the processing unit judges that the contact switch is operated according to the electrical signal, it immediately outputs the switch signal corresponding to the electrical signal through the transmission unit, timings the critical time and stops determining whether the contact switch is operated again within the critical time, and the critical time elapses After that, continue to determine whether the contact switch is operated again based on the electrical signal.
本發明可消除按鍵觸發的延遲,並抑制按鍵觸發所造成的彈跳雜訊,進而提升用戶體驗。 The present invention can eliminate the delay of button triggering and suppress the bounce noise caused by button triggering, thereby improving user experience.
1:開關裝置 1: Switch device
10:處理單元 10: Processing unit
11:接觸式開關 11: Contact switch
12:傳輸單元 12: Transmission unit
13:開關陣列 13: switch array
14:電路板 14: circuit board
15:指示單元 15: Indicating unit
2:電腦主機 2: Computer host
30:鍵帽 30: keycap
31:軸心結構 31: Axle structure
32:開關殼體 32: switch housing
320:上殼體 320: upper shell
321:下殼體 321: lower shell
33:復位元件 33: Reset component
34:第一導電片 34: The first conductive sheet
35:第二導電片 35: second conductive sheet
40:第一導電片 40: The first conductive sheet
400:第一接點 400: first contact
41:第二導電片 41: second conductive sheet
410:第二接點 410: second contact
42:阻隔薄膜 42: barrier film
43:定位孔 43: positioning hole
S10-S16:監控與抑制步驟 S10-S16: Monitoring and suppression steps
S20-S22:手動調整步驟 S20-S22: Manual adjustment steps
S30-S34:自動調整步驟 S30-S34: Automatic adjustment procedure
S0-S3:時間點 S0-S3: point in time
T0-T5:時間點 T0-T5: point in time
圖1為本發明的一實施態樣的開關裝置的架構圖;圖2為本發明的另一實施態樣的開關裝置的架構圖;圖3為本發明的第一實施例的抑制彈跳雜訊的方法的流程圖;圖4為本發明的第二實施例的手動調整臨界時間的流程圖;圖5為本發明的第三實施例的自動調整臨界時間的流程圖;圖6為本發明的一實施態樣的接觸式開關的外觀示意圖;圖7A為圖6的接觸式開關於釋放狀態的剖視示意圖;圖7B為圖6的接觸式開關於按壓狀態的剖視示意圖;圖8A為本發明的一實施態樣的接觸式開關於釋放狀態的剖視示意圖;圖8B為圖8A的接觸式開關於按壓狀態的剖視示意圖; 圖9為本發明一實施態樣的監控接觸式開關的電訊號的示意圖;及圖10為現有技術的監控接觸式開關的電訊號的示意圖。 FIG. 1 is a structural diagram of a switch device according to an embodiment of the present invention; FIG. 2 is a structural diagram of a switch device according to another embodiment of the present invention; FIG. 3 is a first embodiment of the present invention to suppress bounce noise Fig. 4 is a flowchart of the manual adjustment of the critical time according to the second embodiment of the present invention; Fig. 5 is a flowchart of the automatic adjustment of the critical time according to the third embodiment of the present invention; Fig. 6 is a flowchart of the present invention Fig. 7A is a schematic cross-sectional view of the contact switch of Fig. 6 in a released state; Fig. 7B is a schematic cross-sectional view of the contact switch of Fig. 6 in a pressed state; Fig. 8A shows A schematic cross-sectional view of the contact switch of an embodiment of the invention in a released state; FIG. 8B is a schematic cross-sectional view of the contact switch of FIG. 8A in a pressed state; 9 is a schematic diagram of monitoring electrical signals of a contact switch according to an embodiment of the present invention; and FIG. 10 is a schematic diagram of monitoring electrical signals of a contact switch in the prior art.
下面結合圖式和具體實施例對本發明技術方案進行詳細的描述,以更進一步瞭解本發明的目的、方案及功效,但並非作為本發明所附申請專利範圍的限制。 The technical solutions of the present invention will be described in detail below in conjunction with the drawings and specific embodiments to further understand the purpose, solutions and effects of the present invention, but not as a limitation of the scope of the attached patent application of the present invention.
首請參閱圖1,為本發明的一實施態樣的開關裝置的架構圖。如圖所示,本發明提出一種開關裝置1,主要包括至少一接觸式開關11、傳輸單元12及電性連接接觸式開關11及傳輸單元12的處理單元10。
First, please refer to FIG. 1, which is a structural diagram of a switch device according to an embodiment of the present invention. As shown in the figure, the present invention provides a
接觸式開關11(如手扳開關、按鍵、按鈕或其他數位開關)用以接受使用者操作(如按壓或釋放操作),並於接受使用者操作時觸發對應的電訊號(如改變電訊號的電位)。 The contact switch 11 (such as a lever switch, key, button, or other digital switch) is used to accept user operations (such as pressing or releasing operations), and trigger the corresponding electrical signals when accepting user operations (such as changing electrical signals) Potential).
傳輸單元12用以有線/無線連接外部的電腦主機2(如行動裝置、筆記型電腦、桌上型電腦等等)以進行訊號傳輸。具體而言,傳輸單元12可為無線傳輸模組(如藍芽無線傳輸模組或紅外線無線傳輸模組),並可與電腦主機2直接建立無線連接,或經由與可卸式連接電腦主機2的無線傳輸器(dongle)建立無線連接來連接電腦主機2。或者,傳輸單元12可經由傳輸線(如USB傳輸線)可卸式連接電腦主機2。
The
處理單元10用以控制開關裝置1。具體而言,處理單元10可持續監控接觸式開關11是否觸發電訊號,並於收到接觸式開關11所觸發的電訊
號時,經由傳輸單元12輸出對應的關關訊號至電腦主機2,以使電腦主機2執行對應的功能(如輸入對應的字元符號)。
The
續請參閱圖2,為本發明的另一實施態樣的開關裝置的架構圖。於本實施例中,開關裝置1(如鍵盤)更包括開關陣列13及電路板14。開關陣列13包括多個接觸式開關11(如多個按鍵)。
Please continue to refer to FIG. 2, which is a structural diagram of a switch device according to another embodiment of the present invention. In this embodiment, the switch device 1 (such as a keyboard) further includes a
並且,處理單元10、傳輸單元12及開關陣列13是共同設置於同一電路板14,處理單元10通過電路板14電性連接傳輸單元12及開關陣列13的各接觸式開關11。
In addition, the
於一實施例中,開關裝置1更包括一或多個指示單元15(如發光元件或發聲元件)。指示單元15用以指示開關裝置1的狀態(如於開關裝置1連接電腦主機2時點亮或響聲)或指示對應的接觸式開關11的狀態(如於接觸式開關11就緒時點亮或響聲,或被按下時熄滅或響聲)。
In one embodiment, the
續請一併參閱圖6至圖7B及圖9,圖6為本發明的一實施態樣的接觸式開關的外觀示意圖,圖7A為圖6的接觸式開關於釋放狀態的剖視示意圖,圖7B為圖6的接觸式開關於按壓狀態的剖視示意圖,圖9為本發明一實施態樣的監控接觸式開關的電訊號的示意圖。 Please refer to FIGS. 6 to 7B and 9 together. FIG. 6 is a schematic diagram of the appearance of a contact switch according to an embodiment of the present invention. FIG. 7A is a schematic cross-sectional view of the contact switch of FIG. 6 in a released state. 7B is a schematic cross-sectional view of the contact switch of FIG. 6 in a pressed state, and FIG. 9 is a schematic diagram of monitoring electrical signals of the contact switch according to an embodiment of the present invention.
於本實施例中,前述各接觸式開關11可為機械式數位開關,並電性連接電路板14,且於電路板14上設置有對應的指示單元15(於此為LED)。
In this embodiment, the aforementioned contact switches 11 may be mechanical digital switches, and are electrically connected to the
於一實施例中,各接觸式開關11包括鍵帽30、軸心結構31、開關殼體32、第一導電片34、第二導電片35及復位元件33。開關殼體32可包括上殼體320及下殼體321。
In one embodiment, each
第一導電片34及第二導電片35電性連接處理單元10,當第一導電片34及第二導電片35接觸或分離(如第一導電片34及第二導電片35導接而形成迴路,或者分離而形成斷路)時,可觸發不同電位的電訊號。軸心結構31用以於復位位置及觸發位置間移動以改變第一導電片34及第二導電片35之間的接觸狀態。復位元件33用以提供恢復力以朝復位位置移動軸心結構31。鍵帽30設置於軸心結構31上方,用以接受外力以朝觸發位置移動軸心結構31。
The first
於一實施例中,第一導電片34及第二導電片35為可導電金屬片,且第一導電片34及第二導電片35的至少其中之一具有可撓性,而可於被軸心結構31推擠時產生形變並改變第一導電片34與第二導電片35之間的接觸狀態,進而觸發不同電位的電訊號。
In one embodiment, the first
舉例來說,如圖7A所示,於使用者未按壓接觸式開關11時,軸心結構31同時受復位元件33向上的恢復力及上殼體320向下的正向力而靜力平衡於復位位置。於此狀態下,第一導電片34及第二導電片35並未導接,因此接觸式開關11的電訊號呈現低電位(如圖9的時間點S0之前的電位)。
For example, as shown in FIG. 7A, when the user does not press the
如圖7B所示,使用者可按壓接觸式開關11,而使鍵帽30連動軸心結構31向下移動至觸發位置。此時,第一導電片34與第二導電片35導接,因此接觸式開關11的電訊號改變為高電位(如圖9的時間點S0-S2之間的電位)。並且,於第一導電片34與第二導電片35接觸瞬間,會產生彈跳雜訊(如圖9的時間點S0-S1之間的雜訊)。
As shown in FIG. 7B, the user can press the
接著,於使用者釋放接觸式開關11時,軸心結構31同時受復位元件33向上的恢復力而移回復位位置。於此狀態下,第一導電片34及第二導電
片35斷開,並且,於第一導電片34與第二導電片35斷開瞬間,會產生彈跳雜訊(如圖9的時間點S2-S3之間的雜訊)。
Then, when the user releases the
續請參閱圖8A至圖8B及圖9,圖8A為本發明的一實施態樣的接觸式開關於釋放狀態的剖視示意圖,圖8B為圖8A的接觸式開關於按壓狀態的剖視示意圖。 Please continue to refer to FIGS. 8A to 8B and FIG. 9. FIG. 8A is a schematic cross-sectional view of the contact switch of an embodiment of the present invention in the released state, and FIG. 8B is a schematic cross-sectional view of the contact switch of FIG. 8A in the pressed state .
於本實施例中,前述各接觸式開關11可為薄膜式數位開關。第一導電片40及第二導電片41為可導電薄膜。第一導電片40與第二導電片41之間鋪設有阻隔薄膜42。阻隔薄膜42用以阻隔第一導電片40(包括電性連接處理單元10的第一接點400)與第二導電片41(包括電性連接處理單元10的第二接點410)。阻隔薄膜42上形成有與第一接點400及第二接點410垂直對齊的定位孔43。
In this embodiment, the aforementioned touch switches 11 may be thin-film digital switches. The first
如圖8A所示,當鍵帽30未被施加外力時,軸心結構31處於復位位置,第一接點400與第二接點410不會導接。於此狀態下,由於第一導電片40及第二導電片41並未導接,因此接觸式開關11的電訊號呈現低電位(如圖9的時間點S0之前的電位)。
As shown in FIG. 8A, when no external force is applied to the
並且,如圖8B所示,當鍵帽30被施加外力時,軸心結構31擠壓第一導電片40,第一導電片40產生形變並使第一接點400穿過定位孔43接觸第二接點410,而抵達觸發位置。此時,第一接點400與第二接點410導接,因此接觸式開關11的電訊號改變為高電位(如圖9的時間點S0-S2之間的電位)。並且,於第一接點400與第二接點410接觸瞬間,會產生彈跳雜訊(如圖9的時間點S0-S1之間的雜訊)。
And, as shown in FIG. 8B, when an external force is applied to the
接著,於使用者釋放接觸式開關11時,軸心結構31同時向上恢復至復位位置。於此狀態下,第一接點400與第二接點410斷開,並且,於第一接點400與第二接點410斷開瞬間,會產生彈跳雜訊(如圖9的時間點S2-S3之間的雜訊)。
Then, when the user releases the
雖於前述實施例中,接觸式開關11是於被按壓時觸發高電位的電訊號,於被釋放時觸發低電位的電訊號,但不以此限定。
Although in the foregoing embodiment, the
於一實施例中,接觸式開關11亦可被修改為於被按壓時觸發低電位的電訊號,於被釋放時觸發高電位的電訊號。
In one embodiment, the
接著詳細說明本發明如何抑制前述抑制彈跳雜訊。本發明各實施例的抑制彈跳雜訊的方法可由圖1、圖2、圖6至圖8B所示任一開關裝置1來加以實現。
Next, it will be described in detail how the present invention suppresses the aforementioned bounce suppression noise. The method for suppressing bounce noise in each embodiment of the present invention can be implemented by any
續請一併參閱圖3,為本發明的第一實施例的抑制彈跳雜訊的方法的流程圖。具體而言,本實施例的抑制彈跳雜訊的方法包括以下步驟。 Please also refer to FIG. 3, which is a flowchart of the method for suppressing bounce noise according to the first embodiment of the present invention. Specifically, the method for suppressing bounce noise of this embodiment includes the following steps.
步驟S10:處理單元10持續監控接觸式開關11所觸發的電訊號,如監控電訊號的電位。
Step S10: The processing
步驟S11:處理單元10依據所收到的電訊號判斷接觸式開關11是否被操作,如於電訊號的電位改變時判定接觸式開關11被操作(如圖9所示時間點S0或S2)。
Step S11: The processing
於一實施例中,接觸式開關11於接受使用者的按壓操作時將電訊號的電位自高位降至低位(如降至低於電位下限值,電位下限值可為0.3V);或於接受使用者的釋放操作時將電訊號的電位自低位升至高位(如升至高於電位上限
值,電位上限值可為0.7V)。藉此,處理單元10可依據電訊號的電位變化來判斷接觸式開關11接受了何種操作。
In one embodiment, the
若處理單元10判定接觸式開關11被操作,則執行步驟S12。否則,處理單元10再次執行步驟S11。
If the
步驟S12:處理單元10依據被操作的接觸式開關11及電訊號的狀態產生對應的開關訊號,並立即經由傳輸單元12對外輸出此開關訊號。
Step S12: The processing
舉例來說,若接觸式開關11為字母「K」的按鍵,處理單元10於偵測到接觸式開關11被按壓時,所輸出的開關訊號是用來指示電腦主機2「開始輸入K」,於偵測到接觸式開關11被釋放時,所輸出的開關訊號是用來指示電腦裝置2「停止輸入K」。
For example, if the
請同時參閱圖9及圖10,本發明是於接觸式開關11被操作時(即時間點S0或S2)直接輸出開關訊號,而現有的抑制彈跳雜訊的技術於接觸式開關11被操作後(時間點T0或T3),必須延遲至時間點T2或T5才能輸出開關訊號。藉此,本發明確實可以消除按鍵觸發的延遲。
Please refer to FIG. 9 and FIG. 10 at the same time. The present invention directly outputs the switch signal when the
值得一提的是,於發出開關訊號的同時、之前或之後,處理單元10開始計時預設的臨界時間。
It is worth mentioning that at the same time, before or after the switch signal is sent, the
於一實施例中,臨界時間可為10ms、不大於15毫秒的任一時間值,或者不小於10毫秒的任一時間值,不加以限定。 In one embodiment, the critical time can be any time value of 10 ms, no more than 15 milliseconds, or any time value no less than 10 milliseconds, and is not limited.
於一實施例中,臨界時間必須不小於彈跳雜訊的雜訊時間,前述雜訊時間可由實驗測試、經驗累積或統計來加以獲得。 In one embodiment, the critical time must not be less than the noise time of the bouncing noise, and the aforementioned noise time can be obtained by experimental testing, experience accumulation, or statistics.
步驟S13:處理單元10於臨界時間內停止判斷接觸式開關11是否被再次操作,即暫停監控接觸式開關11。舉例來說,處理單元10可直接忽略臨界時間內的電訊號的電位變化。
Step S13: The processing
如圖9所示,處理單元10於時間點S0或S2開始計時臨界時間(於本例子中為10ms),並忽略臨界時間內的電訊號(即忽略時間點S0-S1或時間點S2-S3之間的電訊號變化)。
As shown in Fig. 9, the
值得一提的是,由於彈跳雜訊通常是於此段臨界時間內產生,本發明經由直接忽略此段臨界時間的電訊號變化,可有效達成抑制彈跳雜訊的功能。 It is worth mentioning that since the bounce noise is usually generated during this critical time, the present invention can effectively achieve the function of suppressing the bounce noise by directly ignoring the change of the electrical signal during this critical time.
步驟S14:處理單元10判斷臨界時間是否經過。若處理單元10判斷臨界時間經過,則執行步驟S15。否則,處理單元10再次執行步驟S14。
Step S14: The processing
步驟S15:處理單元10於計時臨界時間經過後,繼續依據電訊號判斷接觸式開關11是否被再次操作,即恢復監控接觸式開關11。
Step S15: The processing
步驟S16:處理單元10判斷是否終止雜訊抑制功能,如使用者移除開關裝置1或手動關閉雜訊抑制功能。
Step S16: The processing
若處理單元10判斷終止雜訊抑制功能,則結束方法的執行。否則,處理單元10再次執行步驟S11以持續執行雜訊抑制功能。
If the
值得一提的是,雖於前述例子中,是以一組接觸式開關11與臨界時間為例進行說明,但不以此限定。 It is worth mentioning that although in the foregoing example, a group of contact switches 11 and the critical time are taken as an example for description, it is not limited thereto.
於一實施例中,本發明的抑制彈跳雜訊的方法可用於多個接觸式開關11(如用於開關陣列13)。並且,前述多個接觸式開關11分別對應多個臨界時間,各接觸式開關11所對應的臨界時間可相同或不同。
In one embodiment, the method for suppressing bounce noise of the present invention can be used for multiple contact switches 11 (for example, for switch array 13). In addition, the aforementioned multiple contact switches 11 respectively correspond to multiple critical times, and the critical time corresponding to each
續請一併參閱圖3及圖4,圖4為本發明的第二實施例的手動調整臨界時間的流程圖。本實施例進一步提供一種手動調整臨界時間功能,可供使用者依據個人喜好調整前述臨界時間,以達到最佳的操作體驗。 Please refer to FIG. 3 and FIG. 4 together. FIG. 4 is a flowchart of manually adjusting the critical time according to the second embodiment of the present invention. This embodiment further provides a function of manually adjusting the critical time, which allows the user to adjust the aforementioned critical time according to personal preferences to achieve the best operating experience.
舉例來說,當使用者覺得當前的臨界時間過短,而無法抑制所有彈跳雜訊時(如發生同一按鍵的跳鍵現象),可手動增加臨界時間;當使用者覺得當前的臨界時間過長時(如無法連續操作同一按鍵),可手動縮減臨界時間。 For example, when the user feels that the current critical time is too short to suppress all the bounce noise (such as the phenomenon of the same key jumper), the critical time can be manually increased; when the user feels the current critical time is too long (If the same key cannot be operated continuously), the critical time can be reduced manually.
相較於圖3所示的抑制彈跳雜訊的方法,本實施例的抑制彈跳雜訊的方法更包括用以實現手動調整臨界時間功能的以下步驟。 Compared with the method for suppressing bouncing noise shown in FIG. 3, the method for suppressing bouncing noise of this embodiment further includes the following steps for implementing the function of manually adjusting the critical time.
步驟S20:處理單元10依據使用者操作切換至手動調整模式。於一實施例中,使用者是經由操作電腦主機2來使電腦主機2經由驅動程式控制開關裝置1進入手動調整模式。
Step S20: The processing
步驟S21:處理單元10經由傳輸單元12接收臨界時間設定訊號。於一實施例中,使用者是經由操作電腦主機2來輸入期望時間,電腦主機2依據使用者所輸入的期望時間產生臨界時間設定訊號,並傳送至開關裝置1。
Step S21: The processing
步驟S22:處理單元10依據臨界時間設定訊號調整臨界時間為使用者所輸入的期望時間,藉此完成臨界時間的手動調整。
Step S22: The processing
續請一併參閱圖3及圖5,圖5為本發明的第三實施例的自動調整臨界時間的流程圖。本實施例進一步提供一種自動調整臨界時間功能,可自動偵測接觸式開關11的狀態,並自動設定最佳的臨界時間,以達到最佳的連續操作體驗。
Please refer to FIG. 3 and FIG. 5 together. FIG. 5 is a flowchart of automatically adjusting the critical time according to the third embodiment of the present invention. This embodiment further provides a function of automatically adjusting the critical time, which can automatically detect the state of the
步驟S30:處理單元10依據使用者操作或自動切換至自動調整模式。於自動調整模式下,處理單元10持續監控接觸式開關11所觸發的電訊號。
Step S30: The processing
於一實施例中,使用者是經由操作電腦主機2來使電腦主機2經由驅動程式控制開關裝置1進入自動調整模式。
In one embodiment, the user operates the
步驟S31:處理單元10依據所收到的電訊號判斷接觸式開關11是否被操作。
Step S31: The processing
若處理單元10判定接觸式開關11被操作,則執行步驟S32。否則,處理單元10再次執行步驟S31。
If the
於一實施例中,驅動程式可控制電腦主機2於顯示器上提示使用者依序操作各接觸式開關11,以使處理單元10取得各接觸式開關11的電訊號。
In one embodiment, the driver program can control the
步驟S32:處理單元10對接觸式開關11所連續觸發的電訊號進行分析檢測。
Step S32: The processing
步驟S33:處理單元10識別電訊號中的彈跳雜訊,並計算此彈跳雜訊的雜訊時間,即此彈跳雜訊的持續時間。
Step S33: The processing
步驟S34:處理單元10依據雜訊時間調整臨界時間,其中調整後的臨界時間必須不小於雜訊時間以達到抑制彈跳雜訊的功能,藉此完成臨界時間的自動調整。。
Step S34: The processing
於一實施例中,處理單元10可依據同一接觸式開關11多次觸發的電訊號,並分別計算出對應的多個雜訊時間,再依據多個雜訊時間調整臨界時間,如以多個雜訊時間的平均值或最大值作為臨界時間。
In one embodiment, the
當然,本發明還可有其它多種實施例,在不背離本發明精神及其實質的情況下,本發明所屬技術領域中具有通常知識者當可根據本發明作出各種相應的改變和變形,但這些相應的改變和變形都應屬於本發明所附的申請專利範圍。 Of course, the present invention can also have various other embodiments. Without departing from the spirit and essence of the present invention, those with ordinary knowledge in the technical field to which the present invention belongs can make various corresponding changes and modifications according to the present invention, but these Corresponding changes and modifications should belong to the scope of the patent application attached to the present invention.
1:開關裝置 1: Switch device
10:處理單元 10: Processing unit
11:接觸式開關 11: Contact switch
12:傳輸單元 12: Transmission unit
2:電腦主機 2: Computer host
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108114964A TWI720467B (en) | 2019-04-29 | 2019-04-29 | Switch device with switch debouncing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108114964A TWI720467B (en) | 2019-04-29 | 2019-04-29 | Switch device with switch debouncing |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202040327A TW202040327A (en) | 2020-11-01 |
TWI720467B true TWI720467B (en) | 2021-03-01 |
Family
ID=74201106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108114964A TWI720467B (en) | 2019-04-29 | 2019-04-29 | Switch device with switch debouncing |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI720467B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6611724B1 (en) * | 1999-11-24 | 2003-08-26 | Square D Company | On line monitor for a control device |
US6639769B2 (en) * | 1997-12-19 | 2003-10-28 | Leviton Manufacturing Co., Inc. | Arc fault detector with circuit interrupter |
TW200611114A (en) * | 2004-09-17 | 2006-04-01 | Mitac Technology Corp | Automatic test equipment for computer device and processing method thereof |
TWM335881U (en) * | 2007-12-07 | 2008-07-01 | guo-shu Zheng | Input device with adjustable button response speed |
-
2019
- 2019-04-29 TW TW108114964A patent/TWI720467B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6639769B2 (en) * | 1997-12-19 | 2003-10-28 | Leviton Manufacturing Co., Inc. | Arc fault detector with circuit interrupter |
US6611724B1 (en) * | 1999-11-24 | 2003-08-26 | Square D Company | On line monitor for a control device |
TW200611114A (en) * | 2004-09-17 | 2006-04-01 | Mitac Technology Corp | Automatic test equipment for computer device and processing method thereof |
TWM335881U (en) * | 2007-12-07 | 2008-07-01 | guo-shu Zheng | Input device with adjustable button response speed |
Also Published As
Publication number | Publication date |
---|---|
TW202040327A (en) | 2020-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5529663B2 (en) | Input device | |
TWI578359B (en) | Keyswitch, keyboard and related method of force feedback | |
CN102984478B (en) | The method and apparatus for controlling television set | |
CN116225239A (en) | Input device and method for operating input device | |
RU2008144994A (en) | SWITCHING THE OPERATION MODE IN THE MOBILE COMMUNICATION TERMINAL | |
CN102547173A (en) | Television remote control method and television device | |
US20190241236A1 (en) | Bicycle wireless communication method and system thereof | |
JP2015041189A (en) | Display control device, display control method, and program | |
TWI720467B (en) | Switch device with switch debouncing | |
CN102118507A (en) | Mobile terminal utilizing volume key as music pause key and realization method thereof | |
WO2017049839A1 (en) | Touch display module, touch input unit, and touch input method | |
JP6381989B2 (en) | Portable electronic device, control method and program for portable electronic device | |
TWI783268B (en) | Method of switch debouncing | |
CN107635146A (en) | A kind of remote control system | |
CN105491242B (en) | Mobile communication terminal and control method and device thereof | |
CN111949137B (en) | Switch device with bounce noise suppression function and method for suppressing bounce noise | |
JP6360367B2 (en) | Portable electronic device, control method and program for portable electronic device | |
TWM550843U (en) | Keyswitch device | |
CN101420558A (en) | Video output mode switch controlling method, apparatus and video player | |
CN206931515U (en) | Key device | |
WO2021057608A1 (en) | Mode switching system and method for mobile terminal, and mobile terminal | |
TWI593268B (en) | Method for adjusting setting value of application program with single key | |
CN205725700U (en) | Key device | |
CN104184881A (en) | Method for touch screen-based volume setting by mobile terminal during conversation process | |
TWI530825B (en) | Input device and input system with macro record funcions and macro recording method thereof |