TWI783268B - Method of switch debouncing - Google Patents
Method of switch debouncing Download PDFInfo
- Publication number
- TWI783268B TWI783268B TW109132744A TW109132744A TWI783268B TW I783268 B TWI783268 B TW I783268B TW 109132744 A TW109132744 A TW 109132744A TW 109132744 A TW109132744 A TW 109132744A TW I783268 B TWI783268 B TW I783268B
- Authority
- TW
- Taiwan
- Prior art keywords
- switch
- noise
- electrical signal
- contact
- critical time
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000001960 triggered effect Effects 0.000 claims abstract description 10
- 230000005540 biological transmission Effects 0.000 claims description 23
- 230000001629 suppression Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 8
- 230000004888 barrier function Effects 0.000 description 4
- 230000006641 stabilisation Effects 0.000 description 3
- 238000011105 stabilization Methods 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Electrical Discharge Machining, Electrochemical Machining, And Combined Machining (AREA)
- Keying Circuit Devices (AREA)
Abstract
Description
本發明涉及抑制彈跳雜訊,特別涉及抑制彈跳雜訊的方法。 The invention relates to suppressing bouncing noise, in particular to a method for suppressing bouncing 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, and the above-mentioned contact bounce noise will cause the switch device to misjudge the state of the button and output a wrong 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 electrical signal of the button will rise to a high potential immediately, and trigger a series of contact bounce noises (that is, the electrical 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 drop to a low potential immediately, and trigger a series of contact bounce noises (that is, the electrical signal between time point T3 and time point T4).
前述此段接觸彈跳雜訊會導致開關裝置誤判此按鍵於短時間內被連續釋放與按壓,而於短時間內連續輸出此按鍵的按壓訊號與釋放訊號(即錯誤的開關訊號),而造成用戶不便。 The aforementioned contact bouncing 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 press signal and release signal of the button in a short period of time (that is, the wrong switch signal), causing the user inconvenient.
為了抑制上述接觸彈跳雜訊,並避免輸出錯誤的開關訊號,目前已有一種抑制彈跳雜訊的技術被提出。 In order to suppress the above-mentioned contact bouncing noise and avoid outputting wrong switching signals, a technology for suppressing bouncing noise has been proposed.
具體而言,現有的抑制彈跳雜訊的技術是於使用者按壓按鍵後(時間點T0)持續監控電訊號的電位,並於電位維持穩定狀態(時間點T1)時開始計時預設穩定時間(如4ms),於電位維持穩定狀態達到預設穩定時間(時間點T2)時才輸出此按鍵的按壓訊號。 Specifically, the existing technology for suppressing bouncing noise is to continuously monitor the potential of the electrical signal after the user presses the button (time point T0), and start counting the preset stabilization time ( For example, 4 ms), the pressing signal of the button is output when the electric potential maintains a stable state and reaches the preset stable time (time point T2).
此外,當使用者釋放按鍵後(時間點T3),現有的抑制彈跳雜訊的技術同樣會持續監控電訊號的電位,並於電位維持穩定狀態(時間點T4)時開始計時預設穩定時間(如4ms),於電位維持穩定狀態達到預設穩定時間(時間點T5)時才輸出此按鍵的釋放訊號。 In addition, when the user releases the button (time point T3), the existing bouncing noise suppression technology will also continue to monitor the potential of the electrical signal, and start counting the preset stabilization time when the potential remains stable (time point T4) ( For example, 4 ms), the release signal of the button is output when the electric potential maintains a stable state and reaches the preset stable time (time point T5).
現有的抑制彈跳雜訊主要存在「觸發延遲時間過長」及「觸發延遲時間不固定」兩個缺失。 The existing bouncing noise suppression mainly has two deficiencies: "the trigger delay time is too long" and "the trigger delay time is not fixed".
關於觸發延遲時間過長,當使用者按壓/釋放按鍵後,現有的抑制彈跳雜訊的技術必須於電位維持穩定狀態達到預設穩定時間才能輸出對應的按壓/釋放訊號(以圖10為例,按壓延遲為12ms,釋放延遲為11毫秒)。 Regarding the trigger delay time being too long, when the user presses/releases the button, the existing technology for suppressing bouncing noise must maintain a stable potential state for a preset stabilization time before outputting the corresponding press/release signal (take Figure 10 as an example, The compression delay is 12ms and the release delay is 11ms).
關於觸發延遲時間不固定,隨著電子接點的老化,前述接觸彈跳雜訊的持續時間可能增加,這使得現有的抑制彈跳雜訊的技術必須花更多時間等待電位維持穩定狀態,而使得觸發延遲時間增加。此外,由於不同按鍵的電子接點的狀態不同(即接觸彈跳雜訊的持續時間不同),現有的抑制彈跳雜訊的技術會使得不同按鍵的觸發延遲時間不同,而令使用者難以適應不同按鍵的不同觸發延遲。 As for the trigger delay time is not fixed, with the aging of electronic contacts, the duration of the aforementioned contact bounce noise may increase, which makes the existing techniques for suppressing bounce noise have to spend more time waiting for the potential to maintain a stable state, making the trigger Latency increased. In addition, due to the different states of the electronic contacts of different buttons (that is, the duration of contact bounce noise is different), the existing technology for suppressing bounce noise will make the trigger delay time of different buttons different, making it difficult for users to adapt to different buttons. different trigger delays.
有鑑於此,目前亟待一種可解決上述技術問題的方案被提出。 In view of this, there is an urgent need for a solution that can solve the above technical problems to be proposed.
本發明提供一種抑制彈跳雜訊的方法,可即時觸發開關訊號,並可抑制彈跳雜訊。 The invention provides a method for suppressing the bouncing noise, which can trigger the switch signal immediately and suppress the bouncing noise.
於一實施例中,一種抑制彈跳雜訊的方法,用於開關裝置,開關裝置包括接觸式開關、處理單元及用以連接電腦主機的傳輸單元,抑制彈跳雜訊的方法包括以下步驟:於處理單元持續監控接觸式開關所觸發的電訊號;於依據電訊號判斷接觸式開關被操作時,立即經由傳輸單元對外輸出電訊號所對應的開關訊號;於接觸式開關被操作時計時臨界時間,並於臨界時間內停止判斷接觸式開關是否被再次操作;及,於臨界時間經過後,繼續依據電訊號判斷接觸式開關是否被再次操作。 In one embodiment, a method for suppressing bouncing noise is used in a switch device. The switch device includes a contact switch, a processing unit and a transmission unit for connecting to a computer host. The method for suppressing bouncing noise includes the following steps: The unit continuously monitors the electrical signal triggered by the contact switch; when it 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; when the contact switch is operated, the critical time is counted, and Stop judging whether the contact switch is operated again within the critical time; and, after the critical time passes, continue to judge whether the contact switch is operated again according to the electrical signal.
本發明可消除按鍵觸發的延遲,並抑制按鍵觸發所造成的彈跳雜訊,進而提升用戶體驗。 The present invention can eliminate the delay of button triggering and suppress the bouncing 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: Indication unit
2:電腦主機 2: Computer host
30:鍵帽 30: Keycap
31:軸心結構 31: Axis structure
32:開關殼體 32: Switch housing
320:上殼體 320: upper shell
321:下殼體 321: lower shell
33:復位元件 33: Reset element
34:第一導電片 34: The first conductive sheet
35:第二導電片 35: The second conductive sheet
40:第一導電片 40: The first conductive sheet
400:第一接點 400: first contact
41:第二導電片 41: The 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 steps
S0-S3:時間點 S0-S3: time point
T0-T5:時間點 T0-T5: time point
圖1為本發明的一實施態樣的開關裝置的架構圖;圖2為本發明的另一實施態樣的開關裝置的架構圖;圖3為本發明的第一實施例的抑制彈跳雜訊的方法的流程圖;圖4為本發明的第二實施例的手動調整臨界時間的流程圖;圖5為本發明的第三實施例的自動調整臨界時間的流程圖;圖6為本發明的一實施態樣的接觸式開關的外觀示意圖;圖7A為圖6的接觸式開關於釋放狀態的剖視示意圖;圖7B為圖6的接觸式開關於按壓狀態的剖視示意圖;圖8A為本發明的一實施態樣的接觸式開關於釋放狀態的剖視示意圖; 圖8B為圖8A的接觸式開關於按壓狀態的剖視示意圖;圖9為本發明一實施態樣的監控接觸式開關的電訊號的示意圖;及圖10為現有技術的監控接觸式開關的電訊號的示意圖。 Fig. 1 is a structural diagram of a switching device according to an embodiment of the present invention; Fig. 2 is a structural diagram of a switching device according to another embodiment of the present invention; Fig. 3 is a bouncing noise suppression method according to a first embodiment of the present invention The flow chart of the method; Fig. 4 is the flow chart of the manual adjustment critical time of the second embodiment of the present invention; Fig. 5 is the flow chart of the automatic adjustment critical time of the third embodiment of the present invention; Fig. 6 is the flow chart of the present invention A schematic diagram of the appearance of a touch switch in an embodiment; FIG. 7A is a schematic cross-sectional view of the touch switch in FIG. 6 in a released state; FIG. 7B is a schematic cross-sectional view of the touch switch in FIG. 6 in a pressed state; A schematic cross-sectional view of a release state of a touch switch according to an embodiment of the invention; 8B is a schematic cross-sectional view of the touch switch of FIG. 8A in a pressed state; FIG. 9 is a schematic diagram of an electrical signal of a monitoring touch switch according to an embodiment of the present invention; Schematic diagram of the number.
下面結合圖式和具體實施例對本發明技術方案進行詳細的描述,以更進一步瞭解本發明的目的、方案及功效,但並非作為本發明所附申請專利範圍的限制。 The technical solution of the present invention will be described in detail below in conjunction with the drawings and specific examples to further understand the purpose, solution and effect of the present invention, but it is not intended to limit the scope of the patent application attached to 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 proposes a
接觸式開關11(如手扳開關、按鍵、按鈕或其他數位開關)用以接受使用者操作(如按壓或釋放操作),並於接受使用者操作時觸發對應的電訊號(如改變電訊號的電位)。 The contact switch 11 (such as a toggle switch, button, button or other digital switch) is used to accept user operations (such as pressing or releasing operations), and trigger corresponding electrical signals when receiving user operations (such as changing the electrical signal 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 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。
Moreover, 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 FIG. 6 to FIG. 7B and FIG. 9 together. FIG. 6 is a schematic view of the appearance of a touch switch according to an embodiment of the present invention. FIG. 7A is a schematic cross-sectional view of the release state of the touch switch in FIG. 6 . 7B is a schematic cross-sectional view of the pressed state of the touch switch in FIG. 6 , and FIG. 9 is a schematic diagram of monitoring electrical signals of the touch switch according to an embodiment of the present invention.
於本實施例中,前述各接觸式開關11可為機械式數位開關,並電性連接電路板14,且於電路板14上設置有對應的指示單元15(於此為LED)。
In this embodiment, each of the aforementioned touch switches 11 can be a mechanical digital switch, and is 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 refer to FIG. 8A to FIG. 8B and FIG. 9. FIG. 8A is a schematic cross-sectional view of a touch switch according to an embodiment of the present invention in a released state, and FIG. 8B is a schematic cross-sectional view of the touch switch in FIG. 8A in a pressed state. .
於本實施例中,前述各接觸式開關11可為薄膜式數位開關。第一導電片40及第二導電片41為可導電薄膜。第一導電片40與第二導電片41之間鋪設有阻隔薄膜42。阻隔薄膜42用以阻隔第一導電片40(包括電性連接處理單元10的第一接點400)與第二導電片41(包括電性連接處理單元10的第二接點410)。阻隔薄膜42上形成有與第一接點400及第二接點410垂直對齊的定位孔43。
In this embodiment, each of the aforementioned touch switches 11 can be a film-type digital switch. 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之間的雜訊)。
Moreover, 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 embodiments, the
於一實施例中,接觸式開關11亦可被修改為於被按壓時觸發低電位的電訊號,於被釋放時觸發高電位的電訊號。
In one embodiment, the
接著詳細說明本發明如何抑制前述抑制彈跳雜訊。本發明各實施例的抑制彈跳雜訊的方法可由圖1、圖2、圖6至圖8B所示任一開關裝置1來加以實現。
Next, how the present invention suppresses the aforementioned bouncing noise will be described in detail. The methods for suppressing bouncing noise in various embodiments of the present invention can be realized by any
續請一併參閱圖3,為本發明的第一實施例的抑制彈跳雜訊的方法的流程圖。具體而言,本實施例的抑制彈跳雜訊的方法包括以下步驟。 Please also refer to FIG. 3 , which is a flow chart of the method for suppressing bouncing noise according to the first embodiment of the present invention. Specifically, the method for suppressing bouncing noise in 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 sending out the switch signal, the
於一實施例中,臨界時間可為10ms、不大於15毫秒的任一時間值,或者不小於10毫秒的任一時間值,不加以限定。 In one embodiment, the critical time may be 10 ms, any time value not greater than 15 ms, or any time value not less than 10 ms, without limitation.
於一實施例中,臨界時間必須不小於彈跳雜訊的雜訊時間,前述雜訊時間可由實驗測試、經驗累積或統計來加以獲得。 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 through 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 bouncing noise is usually generated during this critical time, the present invention can effectively suppress the bouncing noise by directly ignoring the electrical signal change during this critical time.
步驟S14:處理單元10判斷臨界時間是否經過。若處理單元10判斷臨界時間經過,則執行步驟S15。否則,處理單元10再次執行步驟S14。
Step S14: The processing
步驟S15:處理單元10於計時臨界時間經過後,繼續依據電訊號判斷接觸式開關11是否被再次操作,即恢復監控接觸式開關11。
Step S15: After the critical timing time elapses, the
步驟S16:處理單元10判斷是否終止雜訊抑制功能,如使用者移除開關裝置1或手動關閉雜訊抑制功能。
Step S16: The processing
若處理單元10判斷終止雜訊抑制功能,則結束方法的執行。否則,處理單元10再次執行步驟S11以持續執行雜訊抑制功能。
If the
值得一提的是,雖於前述例子中,是以一組接觸式開關11與臨界時間為例進行說明,但不以此限定。 It is worth mentioning that although in the foregoing example, a set of touch switches 11 and the critical time are taken as an example for illustration, it is not limited thereto.
於一實施例中,本發明的抑制彈跳雜訊的方法可用於多個接觸式開關11(如用於開關陣列13)。並且,前述多個接觸式開關11分別對應多個臨界時間,各接觸式開關11所對應的臨界時間可相同或不同。 In one embodiment, the bouncing noise suppression method of the present invention can be applied to a plurality of contact switches 11 (eg, to the switch array 13 ). Moreover, the aforementioned plurality of contact switches 11 correspond to a plurality of critical times, and the critical times corresponding to each of the contact switches 11 may be the same or different.
續請一併參閱圖3及圖4,圖4為本發明的第二實施例的手動調整臨界時間的流程圖。本實施例進一步提供一種手動調整臨界時間功能,可供使用者依據個人喜好調整前述臨界時間,以達到最佳的操作體驗。 Please refer to FIG. 3 and FIG. 4 together. FIG. 4 is a flow chart 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, allowing the user to adjust the aforementioned critical time according to personal preference, so as to achieve the best operating experience.
舉例來說,當使用者覺得當前的臨界時間過短,而無法抑制所有彈跳雜訊時(如發生同一按鍵的跳鍵現象),可手動增加臨界時間;當使用者覺得當前的臨界時間過長時(如無法連續操作同一按鍵),可手動縮減臨界時間。 For example, when the user feels that the current critical time is too short to suppress all bouncing noises (such as the phenomenon of jumping keys on the same key), the critical time can be manually increased; when the user feels that the current critical time is too long (If the same button cannot be operated continuously), the critical time can be manually reduced.
相較於圖3所示的抑制彈跳雜訊的方法,本實施例的抑制彈跳雜訊的方法更包括用以實現手動調整臨界時間功能的以下步驟。 Compared with the method for suppressing bouncing noise shown in FIG. 3 , the method for suppressing bouncing noise in this embodiment further includes the following steps for realizing 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 the automatic adjustment of 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
當然,本發明還可有其它多種實施例,在不背離本發明精神及其實質的情況下,本發明所屬技術領域中具有通常知識者當可根據本發明作出各種相應的改變和變形,但這些相應的改變和變形都應屬於本發明所附的申請專利範圍。 Certainly, the present invention also can have other multiple embodiments, without departing from the spirit and essence of the present invention, those skilled in the art of the present invention can make various corresponding changes and deformations according to the present invention, but these Corresponding changes and deformations should all belong to the appended patent scope of the present invention.
S10-S16:監控與抑制步驟 S10-S16: Monitoring and suppression steps
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW109132744A TWI783268B (en) | 2019-04-29 | 2019-04-29 | Method of switch debouncing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW109132744A TWI783268B (en) | 2019-04-29 | 2019-04-29 | Method of switch debouncing |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202105910A TW202105910A (en) | 2021-02-01 |
| TWI783268B true TWI783268B (en) | 2022-11-11 |
Family
ID=75745175
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW109132744A TWI783268B (en) | 2019-04-29 | 2019-04-29 | Method of switch debouncing |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI783268B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4014609A (en) * | 1974-08-12 | 1977-03-29 | Xerox Corporation | Programmable controller for controlling reproduction machines |
| TW200425660A (en) * | 2002-12-31 | 2004-11-16 | Motorola Inc | Methods for affiliating endpoints with a group and determining common communication capabilities for the affiliated endpoints |
| TW200427269A (en) * | 2002-12-31 | 2004-12-01 | Motorola Inc | Methods for managing a pool of multicast addresses and allocating addresses in a communications system |
| TW200611114A (en) * | 2004-09-17 | 2006-04-01 | Mitac Technology Corp | Automatic test equipment for computer device and processing method thereof |
-
2019
- 2019-04-29 TW TW109132744A patent/TWI783268B/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4014609A (en) * | 1974-08-12 | 1977-03-29 | Xerox Corporation | Programmable controller for controlling reproduction machines |
| TW200425660A (en) * | 2002-12-31 | 2004-11-16 | Motorola Inc | Methods for affiliating endpoints with a group and determining common communication capabilities for the affiliated endpoints |
| TW200427269A (en) * | 2002-12-31 | 2004-12-01 | Motorola Inc | Methods for managing a pool of multicast addresses and allocating addresses in a communications system |
| TW200611114A (en) * | 2004-09-17 | 2006-04-01 | Mitac Technology Corp | Automatic test equipment for computer device and processing method thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202105910A (en) | 2021-02-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114461079B (en) | Input device and method for operating input device | |
| US8760273B2 (en) | Apparatus and methods for mounting haptics actuation circuitry in keyboards | |
| US9342149B2 (en) | Systems and methods for implementing haptics for pressure sensitive keyboards | |
| CN101971277A (en) | Provides tactile feedback to user-operated switches | |
| US20150027869A1 (en) | Keyswitch, keyboard and related force feedback method | |
| US9959994B1 (en) | Keyboard | |
| JP6149604B2 (en) | Display control apparatus, display control method, and program | |
| JP2015005053A (en) | Key switch device and keyboard | |
| CN204424128U (en) | Hollow shaft switch and hollow shaft keyboard | |
| TWI783268B (en) | Method of switch debouncing | |
| EP3663896A1 (en) | Key structure and switching method thereof | |
| TWI720467B (en) | Switch device with switch debouncing | |
| JP2013257641A (en) | Information terminal equipment and display control method | |
| CN206931515U (en) | Key device | |
| CN111949137B (en) | Switch device with bounce noise suppression function and method for suppressing bounce noise | |
| CN204652339U (en) | Membrane pushbutton structure and thin film type keyboard | |
| CN112558801B (en) | Mode switching system and method for mobile terminal and mobile terminal | |
| US20230073202A1 (en) | Method for controlling volume of true wireless stereo earphone using bluetooth | |
| TWM550843U (en) | Keyswitch device | |
| JP2015088181A (en) | Operation key | |
| CN205725700U (en) | Key device | |
| CN211752422U (en) | Game auxiliary equipment | |
| CN108565162B (en) | Resilient contact and input unit | |
| CN210015807U (en) | Key with pressing protection function | |
| CN205304924U (en) | Mobile communication terminal and control device thereof |