1255662 14339twf.doc/y 九、發明說明: 【發明所屬之技術領域】 且特別是有關於 本發明是有關於-種耳機偵測方法, 種耳機接聽/掛斷鍵的彳貞測方法。 【先前技術】1255662 14339twf.doc/y IX. Description of the invention: [Technical field to which the invention pertains] In particular, the present invention relates to a method for detecting earphones, and a method for detecting earphone answering/hanging keys. [Prior Art]
^此種輯方式巾,t❹者將耳機上的接聽 =時,此耳機巾的f路會輸出—個邏輯低準位的^號至 ”斷機制中;反之,當耳機上的接聽/掛斷“ 二=中的電路會輸出一個邏輯高準位的信號至手機^This type of method towel, when the listener on the headset =, the f-way of the headset will output - a logical low level ^ to the "break" mechanism; conversely, when the headset answers / hangs “The circuit in the second=outputs a logic high level signal to the mobile phone.
,、、、:而’由於電路設計的_,隨著由麥克風所收入的 茸音越大,耳機電路上的電壓就會隨著變低。因此,在這 種設計方式之下’假若說話的音量太A,就可能使手機的 判斷機制在時會將因為音量A所引起的低電壓誤判為 f聽/掛斷鍵按下的狀況。此外,例如耳機的拔出或插入耳 ,孔的動作也可能造成判斷機制的誤判。對於使用者而 吕’在使用上就產生了許多的不方便。 【發明内容】 、本發明的目的就是在提供一種耳機接聽/掛斷鍵之偵 测方法,適用於決定輸出訊號的邏輯準位。 5 个货昍提出, , , , and: Because of the circuit design, the voltage on the earphone circuit becomes lower as the velvet sound that is received by the microphone increases. Therefore, under this design mode, if the volume of the speech is too A, it may cause the judgment mechanism of the mobile phone to misjudge the low voltage caused by the volume A as the condition that the f listen/end key is pressed. In addition, for example, when the earphone is pulled out or inserted into the ear, the action of the hole may also cause a misjudgment of the judgment mechanism. For the user, Lu's use is inconvenient in use. SUMMARY OF THE INVENTION The object of the present invention is to provide a method for detecting an earphone answer/end key, which is suitable for determining a logical level of an output signal. 5 goods presented
I2556^429twfd〇c/y 接聽/掛斷鍵按下0後輸出鍵^貞财法’當耳機 接聽/掛斷鍵未按下時使二準位’·以及當耳機 本發明中因為改ϋ§ίΐ5虎為邏輯低準位。 下與未按下時輸t技術中’耳機接聽/掛斷鍵按 丁平别aufl唬的邏輯阜仿。妥 双 出耳機接聽/掛斷鍵是否有用=點可以偵測 耳機上的接聽/掛斷鍵吏==或-未按下,而使 誤動作的情形。 θ輸出不正確的邏輯信號而產生 易懂為其他目的、特徵和優點能更明顯 明如下。+ 乂佳貝_,並配合所附圖式,作詳細說 【實施方式】 請參照圖丨與圖2,圖i _示依照本發明 ^的-種耳機接聽/掛斷鍵制方法之電路圖 = 繪示依照本發明—勒去眘#点丨μ _ 則马 測方法之方塊圖。貫_的一種耳機接聽/掛斷_ 在本實施例中耳機接聽/掛斷鍵偵測電路2〇〇包括耳 機插孔模組244、比較模組246以及耳機搬。耳機插孔模 組244中更包括六個接腳214〜224以及電阻230、232。 其中,接腳220的準位是為邏輯準位Gpi〇2 (通用輸 出入 2 ; General purp0se ;[叩ut 0utpm 2),而接腳 214 的 準位是為麥克風(MIC-IN)的邏輯準位。而接地導體環 204係電性輕接至接腳224與接地端。電阻230的一端係 電性耦接至接腳222,另一端則電性耦接至接地端,電阻 6 9twf.doc/y 232的一端係電性I馬接於接腳220, 壓源3伏特。 在比較器模組246中,更包括比較器236以及電阻 226 228 234。比較$ 236係設置於電阻234與電阻226、 私阻228之間’比較& 236的輸出端係電性減於電阻说 的一端。I2556^429twfd〇c/y Answer/hang-up button Press 0 after the output button ^贞财法 'When the earphone answer/hang-up button is not pressed, make the second level'· and when the headset is modified in the invention § Ϊ́5 tiger is a logical low level. Under the un-pressed and lost technology, the 'headphone answer/hang up button is pressed by the logic of Ding Ping's aufl唬. Is it useful to use the earphone answer/end button? = The point can be detected. The answer/end key on the earphone 吏 == or - is not pressed, causing a malfunction. θ Outputs an Incorrect Logic Signal Produced Easy to understand for other purposes, features, and advantages. + 乂佳贝_, and in conjunction with the drawings, for details [Embodiment] Please refer to FIG. 2 and FIG. 2, which shows a circuit diagram of a method for making an earphone answering/hanging key according to the present invention. A block diagram of a method for measuring horses according to the present invention is shown. In the present embodiment, the earphone answer/end key detecting circuit 2 includes a headphone jack module 244, a comparison module 246, and a headphone shift. The headphone jack module 244 further includes six pins 214 to 224 and resistors 230 and 232. Wherein, the level of the pin 220 is the logic level Gpi 〇 2 (general output 2; General purp0se; [叩 ut 0utpm 2), and the level of the pin 214 is the logic of the microphone (MIC-IN) Bit. The grounding conductor ring 204 is electrically connected to the pin 224 and the ground. One end of the resistor 230 is electrically coupled to the pin 222, and the other end is electrically coupled to the ground. The end of the resistor 6 9twf.doc/y 232 is electrically connected to the pin 220, and the voltage source is 3 volts. . In the comparator module 246, a comparator 236 and a resistor 226 228 234 are further included. Comparing $236 is set between resistor 234 and resistor 226, private resistor 228. 'Comparative & 236 output is electrically reduced from the end of the resistor.
其中比較器236的輸出端接腳的信號 ⑽⑴(通用輪出入 1;Ge職1Purp〇seInput〇utputi^。The output of the comparator 236 is connected to the pin signal (10) (1) (general wheel input and exit 1; Ge job 1 Purp〇seInput 〇utputi ^.
另一端則電性耦接至電 比較益236正輸入端係電性耦接至電阻226與電阻228之 間的接點’負輸入端則電性辆接至接地端。其中比較器236 負輸入端的電位為-參考電壓238,而參考電壓238可為 -電壓值或為零,在本實施例中其參考電位設定為3伏特。 ^電阻234的一端係電性耦接於電壓源3伏特,另一端 係電]·生轉接至比較器236的輸出端。電阻22 一 性搞接至電壓㈣伏㈣—刺紐減至比較^36 的^輪入端。電阻228的一端電性輕接於比較器236正輸 入、另一、則電性麵接至接腳214。其中電阻226與電 阻之間的接點V!之電位為輸入電壓240。 在本貫施例中’係有一偵測耳機定位訊號,當耳機202 插入耳機插孔時,接腳GPI〇2會輸出一邏輯高準位。而當 耳機202位插入耳機插孔時,則接腳Gpi〇2會輸出 ^ 低準位(S101)。 當耳機202插入耳機孔後,耳機插孔接腳216與耳機 接腳218以及耳機插孔接腳220與耳機插孔接腳222 7 I2556^9twfdoc/y 原本是分別耦接在一起;但因為耳機2〇2插入耳機孔後而 分開,此時接腳GPI〇2輸出一邏輯高準位,表示此時耳機 搬已經插入耳機插孔。此時後續的判斷機制 作(S103) 〇 當耳機202未插入耳機插孔時,耳機插孔接腳216係 電性祕於耳機插孔接腳218以及耳機插孔接腳22〇亦係 電性輕接於耳機插孔接腳222。此時_ GpiQ2輸出—邏 輯低準位’表示此時沒有耳機插人耳_孔。此時益論接 腳GPKM之輸出為邏輯低準位或邏輯高狗立,後續的判斷 機制都將不予理會(S105)。 、 當耳機2〇2插入耳機孔後,其中耳機2〇2的第一導體 環206經由接地導體環綱係電性輕接至接地端,而第二 導體環係電_接於耳機插孔接腳214,作為麥克風 (MIC_IN)的邏鮮位。f三導贿21()係電性墟於耳 機插孔接腳216,第四導體環212係電_接 接腳222。 根據本實施例,當耳機接聽/掛斷鍵未按下時,由於雷 阻226、電阻228與麥克風電壓分壓的關係,將使得輸入 電壓24=電位低於3伏特以下。如此一來,經由r匕Γ器 236比較輸人賴_鮮考電壓2 = GPI01輸出一邏輯低的比較信號242 (S107) 反之,當耳機接聽/掛斷鍵按下時,由於 ===40r位約,壓源所提供的= 、田 系工由比車父器230比較輸入電壓24〇與 1255662 9twf.doc/y 芩考電壓238後,即可由接腳GPI01輸出一邏輯高的比較 信號 242 ( S109)。 §麥克風所接收的音量過大時,會使得麥克風電壓下 =,造成電阻226與電阻228分壓後使得輸入電壓24〇之 電=低於3伏特,經由比較器236比較輸入電壓24〇與參 考包,238後’輸出一邏輯低的比較信號242亦即GPl〇i 為邏=低準位,而不會使耳機的接收/掛斷鍵產生誤動作。 綜上所述,本發明可以有效偵測出耳機的接收/掛斷鍵 ^否因為使用者不當的餘,或是使用者說話的音量太大 日才而造成接收/掛斷鍵產生誤動作,以減少使用上的不便。 〜雖然本發明已以較佳實施例揭露如上,然其並非用以 2本發明,任何熟習此技藝者,在不脫離本發明之精 ^圍内’當可作些許之更動與潤飾,因此本發明 ,圍當視_之申請專· _界定者鱗。 w 【圖式簡單說明】 圖1係依照本發明—較佳實 聽/掛斷鍵之彻林法錢圖。 斗械接 ^圖2係依照本發明另—較佳 接聽/_鍵之偵财法電關。 檀耳機 【主要元件符號說明】 100 200 202 204 一種耳機接聽/掛斷鍵之彳貞測方法方塊圖 種耳機接聽/挂卜斷鍵之制電路圖 耳機插頭 接地導體環 9 1255642 9twf.doc/y 206 :第一導體環 208 :第二導體環 210 :第三導體環 212 :第四導體環 214〜224 :接腳 226〜234 :電阻 236 :比較器 238 :參考電壓 # 240 :輸入電壓Vi 242 :比較輸出訊號 S101 :耳機偵測定位訊號 S103 :耳機已插至定位 S105 :耳機尚未插至定位 S107 :耳機接聽/掛斷鍵已按下,GH01輸出邏輯高準 位 S109 :耳機接聽/掛斷鍵未按下,GPI01輸出邏輯低準The other end is electrically coupled to the power supply. The positive input terminal is electrically coupled to the junction between the resistor 226 and the resistor 228. The negative input terminal is electrically connected to the ground terminal. The potential of the negative input of comparator 236 is - reference voltage 238, and reference voltage 238 can be - voltage value or zero, in this embodiment its reference potential is set to 3 volts. ^ One end of the resistor 234 is electrically coupled to the voltage source of 3 volts, and the other end is electrically coupled to the output of the comparator 236. The resistor 22 is connected to the voltage (four) volts (four) - the thorn is reduced to the ^ wheel of the comparison ^36. One end of the resistor 228 is electrically connected to the comparator 236 for input, and the other is electrically connected to the pin 214. The potential of the junction V! between the resistor 226 and the resistor is the input voltage 240. In the present embodiment, a headphone positioning signal is detected. When the earphone 202 is inserted into the earphone jack, the pin GPI2 outputs a logic high level. When the earphone 202 is inserted into the headphone jack, the pin Gpi〇2 outputs a low level (S101). After the earphone 202 is inserted into the earphone hole, the earphone jack pin 216 and the earphone pin 218 and the earphone jack pin 220 and the earphone jack pin 222 7 I2556^9twfdoc/y are originally coupled together; but because of the earphone 2〇2 is inserted into the earphone hole and then separated. At this time, the pin GPI〇2 outputs a logic high level, indicating that the earphone is inserted into the earphone jack at this time. At this time, the subsequent judgment machine is made (S103). When the earphone 202 is not inserted into the earphone jack, the earphone jack pin 216 is electrically secreted to the earphone jack pin 218 and the earphone jack pin 22 is also electrically Lightly connect to the headphone jack pin 222. At this time, the _GpiQ2 output-logic low level indicates that no headphones are inserted into the ear_hole at this time. At this time, the output of the GPKM is a logic low level or a logic high, and the subsequent judgment mechanism will be ignored (S105). After the earphone 2〇2 is inserted into the earphone hole, the first conductor ring 206 of the earphone 2〇2 is electrically connected to the ground through the grounding conductor ring system, and the second conductor ring is electrically connected to the earphone jack. The foot 214 serves as a fresh bit of the microphone (MIC_IN). f. The three-lead bribe 21 () is an electrical market in the ear jack 216, and the fourth conductor loop 212 is connected to the foot 222. According to this embodiment, when the earphone answer/end key is not pressed, the input voltage 24 = potential is below 3 volts due to the relationship between the lightning resistance 226 and the resistance 228 and the voltage division of the microphone. In this way, the comparator 236 compares the input voltage to the fresh test voltage 2 = GPI01 outputs a logic low comparison signal 242 (S107). Conversely, when the earphone answer/end key is pressed, since ===40r Position, the voltage source provides =, the field work is compared with the parent device 230 compared to the input voltage 24 〇 and 1256566 9twf.doc / y reference voltage 238, the connector GPI01 can output a logic high comparison signal 242 ( S109). § When the volume received by the microphone is too large, the microphone voltage will be =, causing the resistor 226 and the resistor 228 to be divided so that the input voltage is 24 volts = less than 3 volts. The comparator 236 compares the input voltage 24 〇 with the reference packet. After 238, the output logic low comparison signal 242, that is, GPl〇i is the logic=low level, without causing the receiving/ending key of the earphone to malfunction. In summary, the present invention can effectively detect whether the receiving/ending key of the earphone is caused by the user's improperness, or the volume of the user's speech is too large, causing the receiving/ending key to malfunction. Reduce the inconvenience of use. The present invention has been disclosed in the above preferred embodiments, but it is not intended to be used in the present invention. Any one skilled in the art can make some changes and refinements without departing from the scope of the present invention. Invention, the application of the _ _ application of the _ define the scales. w [Simple Description of the Drawings] Fig. 1 is a graph of the lining method according to the present invention - a preferred real/attend key. Fig. 2 is a method of detecting and controlling the power of the __ key according to the present invention. Tan earphones [main component symbol description] 100 200 202 204 A method of measuring the earphone answering/hanging key block diagram of the earphone answering/hanging key circuit circuit diagram earphone plug grounding conductor ring 9 1255642 9twf.doc/y 206 : first conductor ring 208 : second conductor ring 210 : third conductor ring 212 : fourth conductor ring 214 224 224 : pins 226 234 234 : resistor 236 : comparator 238 : reference voltage # 240 : input voltage Vi 242 : Compare output signal S101: Headphone detection positioning signal S103: Headphone has been inserted to position S105: Headphone has not been inserted into position S107: Headphone answer/end key has been pressed, GH01 output logic high level S109: Headphone answer/end key Not pressed, GPI01 output logic low