觀 修正日期93·9·Π 12〇|66twfu3dc/006Outlook Revised Date 93.9 Π 12〇 66twfu3dc / 006
…小……J 玖、發明說明: 發明所屬之技術領域 本發明是有關於一種耳機的偵測裝置和偵測方法,且特別 是有關於一種具有通話功能之耳機的偵測裝置。 先前技術 第1A圖係繪示具有通話功能之耳機的輸入端子連接示意 圖。請參照第1A圖,輸入端子(Terminal) 10適用於具有通話 功能之耳機,並且整個輸入端子1〇被分爲四段分別爲左聲道接 觸端11、右聲道接觸端13、受話器接觸端15和接地接觸端17。 其中,左聲道接觸端11係耦接至左聲道喇叭19,右聲道接觸 端13係耦接至右聲道喇叭21,受話器接觸端15係耦接至受 話器23,而接地接觸端Π則接地。 第1B圖係繪示輸入端子連接器結構圖。請參照第1A圖和 第1B圖,輸入端子連接器20包括有接地固定簧片33、受話器 固定簧片27、右聲道固定簧片29和左聲道固定簧片31,並且 輸入端子連接器20係耦接至系統30。當輸入端子1〇插入輸入 端子連接器20並且到達定位後,輸入端子連接器20之接地固 定簧片33、受話器固定簧片27、右聲道固定簧片29和左聲道 固定簧片31,分別對應耦接至輸入端子1〇之接地接觸端17、 受話器接觸端15、右聲道接觸端13和左聲道接觸端11,並且 左聲道固定簧片31係剛好嵌進左聲道接觸端11的凹槽l〇a內。 受話器23的正輸入端係耦接至輸入端子1〇的受話器接觸端 15。並且受話器23的正輸入端還連接掛斷/接聽開關25和電阻 26至負輸入端,而其負輸入端則是接地。當連接受話器23之 掛斷/接聽開關25導通時,則系統30可藉由輸入端子10和上 ; 12C®6twfl.<S3c|/006 述的具有通話功能之耳機交換聲音訊號。 請再參照第1A圖和1B圖,相對地,當掛斷/接聽開關μ 跳脫時,上述的具有通話功能之耳機理論上應該呈現>掛7幾的狀 態,也就是代表系統30此時不會耗費電源來驅動耳機。但實際 上,當掛斷/接聽開關25跳脫時,如果外界的聲音太大(例如2 講話的聲音),還是可能讓系統30誤判,而使耳機呈現接聽的 狀態。 心 發明內容 因此,本發明的目的就是在提供一種耳機的偵測裝置。本 發明所提供之偵測裝置適用於一個具有通話功能的耳機,並且 此偵測裝置可偵測此具有通話功能之耳機的掛斷/接聽(Push_t〇_ Talk,PTT)開關是否導通。當此具有通話功能之耳機的掛斷/接 聽開關爲導通狀態時,使得此具有通話功能之耳機呈現接聽狀 態。 " 爲達上述與其他目的,本發明提供一種耳機的偵測裝置, 這種耳機包括了接聽/掛斷開關、輸入端子和受話器,而偵測裝 置則包括固定簧片模組和比較器模組。其中固定簧片模組~用來 固定耳機的輸入端子。另外’固定簧片模組具有訊號輸出端和 受g舌器輸出_ ’係依據與輸入端子之間的接觸狀態,由訊號輸 出觸輸出第二泛用輸入/輸出訊號’同時’受話器輸出端則會產 生一個電壓位準。而比較器模組則具有輸入端、第一輸出端和 第二輸出端。比較器的輸入端係耦接至固定簧片模組的受話器 輸出端,並以第一預設電壓與第二預設電壓作比較,由該第_ 輸出端輸出一第一泛用輸入/輸出訊號。同時,由第二輸出端輸 出第二泛用輸入/輸出訊號。上述所提及的固定簧片模組與輸人 /006 /006... Small ... J 玖. Description of the Invention: The technical field to which the invention belongs The present invention relates to a detection device and a detection method for a headset, and more particularly to a detection device for a headset with a call function. Prior Art FIG. 1A is a schematic diagram showing the input terminal connection of a headset with a call function. Please refer to Figure 1A. The input terminal (Terminal) 10 is suitable for headphones with a call function, and the entire input terminal 10 is divided into four sections: left channel contact terminal 11, right channel contact terminal 13, and receiver contact terminal. 15 和 GNDContact terminal 17. Among them, the left channel contact terminal 11 is coupled to the left channel speaker 19, the right channel contact terminal 13 is coupled to the right channel speaker 21, the receiver contact terminal 15 is coupled to the receiver 23, and the ground contact terminal Π Then ground. Figure 1B is a structural diagram of an input terminal connector. Referring to FIG. 1A and FIG. 1B, the input terminal connector 20 includes a ground fixed reed 33, a receiver fixed reed 27, a right channel fixed reed 29, and a left channel fixed reed 31, and the input terminal connector The 20 series is coupled to the system 30. When the input terminal 10 is inserted into the input terminal connector 20 and reaches the positioning, the grounding fixed reed 33, the receiver fixed reed 27, the right channel fixed reed 29, and the left channel fixed reed 31 of the input terminal connector 20, The ground contact terminal 17, the receiver contact terminal 15, the right channel contact terminal 13, and the left channel contact terminal 11 respectively coupled to the input terminal 10, and the left channel fixed spring 31 is just embedded into the left channel contact. Inside the groove 10a of the end 11. The positive input terminal of the receiver 23 is coupled to the receiver contact terminal 15 of the input terminal 10. In addition, the positive input terminal of the receiver 23 is also connected to the hang-up / answer switch 25 and the resistor 26 to the negative input terminal, and its negative input terminal is grounded. When the on-hook / answer switch 25 of the receiver 23 is turned on, the system 30 can exchange sound signals by using the input terminal 10 and above; 12C®6twfl. ≪ S3c | / 006 with a call function. Please refer to FIG. 1A and FIG. 1B again. In contrast, when the hang-up / answer switch μ is tripped, the above-mentioned headset with a call function should theoretically be in a state of> 7, which means that the system 30 is No power is consumed to drive the headset. However, in reality, when the hang-up / answer switch 25 is tripped, if the external sound is too loud (for example, the voice of 2), the system 30 may still misjudge and make the headset appear in the answering state. SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a detection device for headphones. The detection device provided by the present invention is suitable for a headset with a call function, and the detection device can detect whether the Push-to-Talk (PTT) switch of the headset with a call function is turned on. When the on-hook / answer switch of the headset with the call function is on, the headset with the call function is in the answering state. " In order to achieve the above and other objectives, the present invention provides a detection device for earphones. The earphones include an answer / end switch, an input terminal, and a receiver. The detection device includes a fixed reed module and a comparator module group. Among them, the fixed reed module is used to fix the input terminal of the earphone. In addition, the 'fixed reed module has a signal output terminal and a receiver output_' is based on the contact state with the input terminal, and the second universal input / output signal is output by the signal output. At the same time, the receiver output terminal is A voltage level is generated. The comparator module has an input terminal, a first output terminal, and a second output terminal. The input end of the comparator is coupled to the receiver output end of the fixed reed module, and the first preset voltage is compared with the second preset voltage, and a first universal input / output is outputted from the _th output end. Signal. At the same time, a second universal input / output signal is output from the second output terminal. The fixed reed module mentioned above and the input / 006/006
端子的接觸狀態,則包括了未插入狀態、插入中狀態和已定位 狀態。 在耳機的輸入端子上,包括了右聲道接觸端、左聲道接觸 端、受話器接觸端與接地接觸端。而上述的固定簧片模組則包 括了接地接觸端固定簧片、受話器固定簧片、右聲道固定簧片 和左聲道固定簧片。其中接地接觸端固定簧片係耦接至輸入端 子的接地接觸端,另外,受話器固定簧片係耦接至輸入端子的 受話器接觸端。受話器固定簧片係傳送由受話器所接收的聲音 訊號,並且係依據與輸入端組的接觸狀態受話器輸出端來產生 一個電壓位準。接著,右聲道固定簧片係耦接至輸入端子的右 聲道接觸端來傳送聲音訊號至耳機的右聲道,相對地,左聲道 固定簧片則是耦接至輸入端子的左聲道接觸端與該訊號輸出 端,與右聲道固定簧片類似,係用來傳送聲音訊號至該耳機的 左聲道,並且左聲道固定簧片係依據與輸入端子的接觸狀態而 輸出該第三泛用輸入/輸出訊號至訊號輸出端。此外,左聲道固 定簧片還連接第二提昇電阻至操作電壓。 而在比較器中,則包括了第一比較器和第二比較器,並且 第一比較器和第二比較器同樣具有正訊號輸入端、負訊號輸入 端和輸出端。其中,第一比較器的正訊號輸入端係耦接固定簧 片模組的受話器輸出端,並依據在受話器輸出端的電壓位準與 第一預設電壓作比較後,由第一比較器的輸出端輸出第一泛用 輸入/輸出訊號。與第一比較器類似,第二比較器的正訊號輸入 端係耦接至第一比較器的正訊號輸入端,並依據受話器輸出端 的電壓位準與第二預設電壓作比較後,由該第二比較器之輸出 端輸出該第二泛用輸入/輸出訊號。換個角度來說,第一比較器 7 ,i ο 17 : 120o6twfl :.ddc/006 的輸出端就是比較模組的第一輸出端,而第二比較器的輸出端 就是爲比較模組的第二輸出端。而第一比較器和第二比較器的 負訊號輸入端則都是接地。 當固定簧片模組與輸入端子的接觸狀態爲未插入狀態時, 受話器輸出端的電壓位準會同時大於第一預設電壓和第二預設 電壓。因此,第一比較器將輸出邏輯狀態爲”1”的第一泛用輸入 /輸出訊號。而同樣地,第二比較器也會輸出邏輯狀態爲”1”的 第二泛用輸入/輸出訊號。 相對地,當固定簧片模組與輸入端子的接觸狀態爲插入中 狀態時,受話器輸出端的電壓位準會同時小於第一預設電壓和 第二預設電壓。因此,第一比較器會輸出邏輯狀態爲”0”的第一 泛用輸入/輸出訊號,而第二比較器輸出邏輯狀態爲的第二 泛用輸入/輸出訊號。 與上一狀態相同,當固定簧片模組與輸入端子的接觸狀態 爲已定位狀態時,受話器輸出端的電壓位準也會大於第一預設 電壓和第二預設電壓。所以同樣地’第一比較器將輸出邏輯狀 態爲”1”的第一泛用輸入/輸出訊號,而第二比較器會輸出邏輯 狀態爲”1”的第二泛用輸入/輸出訊號,並且耳機上的接聽/掛斷 開關將被致能。 此時,若是固定簧片模組與輸入端子的接觸狀態由已定位 狀態轉變爲未插入狀態時,則訊號輸出端將會輸出邏輯狀態 爲”1”的第二泛用輸入/輸出訊號,並且耳機上的接聽/掛斷開關 功能將被禁能。 而當固定簧片模組與輸入端子的接觸狀態爲已定位狀態’ 同時,耳機上的接聽/掛斷開關被導通時,則訊號輸出端將會輸 12〇66twf}. dpc/006 出邏輯狀態爲”〇”的第三泛用輸入/輸出訊號。並且受話器輸出 端所產生的電壓位準將會小於第一預設電壓,但是會大於第二 預設電壓。因此,第一比較器會輸出邏輯狀態爲的第一泛用 輸入/輸出訊號,而第二比較器則會輸出邏輯狀態爲”1”的第二 泛用輸入/輸出訊號。 另外,第一比較器的正訊號輸入端則耦接第一提昇電阻到 操作電壓。 上述的第一預設電壓包括1.2伏特左右,而第二預設電壓 則包括1.0伏特左右。 在本發明之一較佳實施例中,本發明之偵測裝置更包括耦 接至中央處理單元,以接收並依據第一泛用輸入/輸出訊號、第 二泛用輸入/輸出訊號和第三泛用輸入/輸出訊號來判斷固定簧 片模組和輸入端子的接觸狀態。 若是當受話器輸出端的電壓位準小於第一預設電壓而大於 第二預設電壓的時候,中央處理單元會在一個預設時間內用軟 體偵測第一泛用輸入/輸出訊號數次,來判斷使用者按下該接聽 /掛斷開關與否。 其中,上述的預設時間爲40毫秒。 本發明另一個目的,就是提供一種耳機的偵測裝置之操作 方法,用於判斷偵測裝置內的固定簧片模組與耳機之輸入端子 的接觸狀態,此操作方法包括根據固定簧片模組與輸入端子的 接觸狀態,會產生第三泛用輸入/輸出訊號與電壓位準。將此電 壓位準與第一預設電壓和第二預設電壓作比較,並輸出第一泛 用輸入/輸出訊號和第二泛用輸入/輸出訊號。其中,前述的固 定簧片模組與輸入端子的接觸狀態則包括未插入狀態、插入中 9 t2d66t4fi.xi〇c/006 狀態與已定位狀態。 綜上所述,本發明所提供偵測裝置’可藉由第一泛用輸入/ 輸出訊號、第二泛用輸入/輸出訊號和第三的泛用輸入/輸出訊 號狀態,來判斷耳機的輸入端子是否插入至定位。而本發明之 偵測方法,可以判斷出是否確實爲接聽/掛斷開關導通,而使得 耳機呈現接聽狀態。而不會因爲外界背景聲音過大使得耳機成 爲接聽狀態。 爲讓本發明之上述和其他目的、特徵和優點能更明顯易懂, 下文特舉一較佳實施例,並配合所附圖式,作詳細說明如下。 實施方式 第2A圖係繪示依照本發明之一較佳實施例之耳機的偵測 裝置電路圖。請參照第2A圖,本發明所提供之耳機的偵測裝 置中,包栝了比較器模組40和固定簧片模組5〇。其中比較器 模組40係耦接至固定簧片模組π,並且比較器模組4〇之第一 輸出端61係輸出第一泛用輸入/輸出訊號GPI01,第二輸出端 63則輸出第二泛用輸入/輸出訊號GPI02。固定簧片模組50係 有兩個輸出端,其中一個爲訊號輸出端55a,固定簧片模組5〇 會由晒輸出端55a送出第三泛用輸入/輸出訊號GPI03。另 個舌輸出端5 U,其耦接至比較器模組40的輸入端65。 師合倂參照第1A圖和第2A圖,在固定簧片模組5〇中, 包括接地固定簧片57、受話細定簧片5卜右聲細定簧片53 固定簧片55。固定簧片楔組5G的功用,係容納與固 1 U圖中具有通話功能之耳機的輸人端子1G,此具有 二^的耳機具補聽/晒開關25。當輸人端子1G插入固 組50並且賴定位時,接棚定簧片57係繊至輸 一一j广一 1240536 11 ^ 9ii I5〇6ltv?il,ci〇c/O〇6 入端子10的接地接觸端17上,受話器固定簧片51係耦接至 受話器接觸端15上,右聲道固定簧片53則耦接至右聲道接觸 端13上,而左聲道固定簧片55係耦接至左聲道接觸端11上’ 並且左聲道固定簧片55係剛好嵌進左聲道接觸端11的凹槽l〇a 內。左聲道固定簧片55和右聲道固定簧片53會傳送聲音訊 號,由輸入端子10分別對應送入耳機的左聲道喇叭19和右聲 道喇叭21,而受話器固定簧片51則是傳送由受話器23所進 入的聲音訊號。 左聲道固定簧片55係輸出第三泛用輸入/輸出訊號 GPI03,並且左聲道固定簧片55連接第二提昇電阻59至操作 電壓Vcc,在本實施例中,操作電壓Vcc設定爲2V〜1.5V。當 輸入端子10還未插入固定簧片模組50時,係爲未插入狀態, 此時因爲左聲道固定簧片55連接第二提昇電阻59至操作電壓 Vcc,所以會輸出邏輯狀態爲”1”的第三泛用輸入/輸出訊號 GPI03 〇當輸入端子10正在插入固定簧片模組50時,係爲插 入中狀態,此時因爲固定簧片的彈跳,使得第三泛用輸入/輸出 訊號GPI03的邏輯狀態可能爲”1”也可能爲”0”。當輸入端子插 入固定簧片模組50並且到達定位時,係爲已定位狀態,此時左 聲道固定簧片55會因爲接地,使得第三泛用輸入/輸出訊號 GPI03的邏輯狀態保持爲”〇”。 比較器模組40包括第一比較器41和第二比較器43。第一 比較器41之正訊號輸入端係連接至第二比較器43之正訊號輸 入端,並且耦接至固定簧片模組50內的受話器固定簧片51。 在第一比較器41和第二比較器43的正訊號輸入端上還連接第 一提昇電阻45至操作電壓Vcc。第一比較器41和第二比較器The contact state of the terminal includes the non-inserted state, the inserted state, and the positioned state. The input terminals of the headset include the right channel contact, the left channel contact, the receiver contact, and the ground contact. The fixed reed module mentioned above includes a ground contact fixed reed, a receiver fixed reed, a right channel fixed reed, and a left channel fixed reed. The ground contact fixed reed is coupled to the ground contact of the input terminal, and the receiver fixed reed is coupled to the receiver contact of the input terminal. The fixed reed of the receiver transmits the sound signal received by the receiver, and generates a voltage level based on the contact state of the receiver with the input terminal group. Next, the right channel fixed reed is coupled to the right channel contact end of the input terminal to transmit a sound signal to the right channel of the headset. In contrast, the left channel fixed reed is coupled to the left sound of the input terminal. The channel contact end is similar to the signal output end, similar to the right channel fixed reed, and is used to transmit the sound signal to the left channel of the headset, and the left channel fixed reed is output according to the contact state with the input terminal. The third universal input / output signal is to the signal output terminal. In addition, the left channel fixed reed is also connected to a second boost resistor to the operating voltage. The comparator includes a first comparator and a second comparator, and the first comparator and the second comparator also have a positive signal input terminal, a negative signal input terminal, and an output terminal. The positive signal input terminal of the first comparator is coupled to the receiver output terminal of the fixed reed module, and is compared with the first preset voltage according to the voltage level at the output terminal of the receiver, and then output by the first comparator. The terminal outputs the first universal input / output signal. Similar to the first comparator, the positive signal input terminal of the second comparator is coupled to the positive signal input terminal of the first comparator, and after comparing with the second preset voltage according to the voltage level of the output terminal of the receiver, the The output terminal of the second comparator outputs the second universal input / output signal. To put it another way, the output of the first comparator 7, i ο 17: 120o6twfl: .ddc / 006 is the first output of the comparison module, and the output of the second comparator is the second of the comparison module. Output. The negative signal inputs of the first and second comparators are both grounded. When the contact state between the fixed reed module and the input terminal is not inserted, the voltage level at the output end of the receiver will be greater than the first preset voltage and the second preset voltage at the same time. Therefore, the first comparator will output the first general-purpose input / output signal whose logic state is "1". Similarly, the second comparator also outputs a second general-purpose input / output signal whose logic state is "1". In contrast, when the contact state between the fixed reed module and the input terminal is in the inserted state, the voltage level at the output end of the receiver will be lower than the first preset voltage and the second preset voltage at the same time. Therefore, the first comparator outputs a first general-purpose input / output signal with a logic state of “0”, and the second comparator outputs a second general-purpose input / output signal with a logic state of “0”. As in the previous state, when the contact state between the fixed reed module and the input terminal is the positioned state, the voltage level at the output end of the receiver will also be greater than the first preset voltage and the second preset voltage. So similarly 'the first comparator will output a first general-purpose input / output signal with a logic state of "1", and the second comparator will output a second general-purpose input / output signal with a logic state of "1", and The answer / end switch on the headset will be enabled. At this time, if the contact state between the fixed reed module and the input terminal changes from the positioned state to the unplugged state, the signal output terminal will output a second universal input / output signal with a logic state of "1", and The answer / end switch function on the headset will be disabled. When the contact state between the fixed reed module and the input terminal is positioned, at the same time, when the answer / end switch on the headset is turned on, the signal output terminal will output 12〇66twf}. Dpc / 006 output logic state The third universal input / output signal is "0". And the voltage level generated by the receiver output terminal will be lower than the first preset voltage, but will be higher than the second preset voltage. Therefore, the first comparator outputs a first general-purpose input / output signal with a logic state, and the second comparator outputs a second general-purpose input / output signal with a logic state of "1". In addition, the positive signal input terminal of the first comparator is coupled to the first boost resistor to the operating voltage. The first preset voltage includes about 1.2 volts, and the second preset voltage includes about 1.0 volts. In a preferred embodiment of the present invention, the detection device of the present invention further includes a central processing unit coupled to receive and receive the first universal input / output signal, the second universal input / output signal, and the third universal input / output signal. I / O signals are commonly used to determine the contact state between the fixed reed module and the input terminals. If the voltage level at the output of the receiver is lower than the first preset voltage and greater than the second preset voltage, the central processing unit will use software to detect the first universal input / output signal several times within a preset time. Determine whether the user presses the answer / end switch or not. The preset time is 40 milliseconds. Another object of the present invention is to provide an operation method of a headphone detection device for determining a contact state between a fixed reed module in the detection device and an input terminal of the headphone. The operation method includes according to the fixed reed module. The contact state with the input terminal will generate a third universal input / output signal and voltage level. Compare this voltage level with the first preset voltage and the second preset voltage, and output the first universal input / output signal and the second universal input / output signal. Among them, the contact state of the aforementioned fixed reed module and the input terminal includes the non-inserted state, the inserted 9 t2d66t4fi.xi〇c / 006 state, and the positioned state. In summary, the detection device provided by the present invention can determine the input of the earphone by the first universal input / output signal, the second universal input / output signal, and the third universal input / output signal state. Whether the terminal is inserted into the positioning. The detection method of the present invention can determine whether the answering / hang-up switch is actually turned on, so that the headset is in the answering state. It will not cause the headset to answer because the external background sound is too loud. In order to make the above and other objects, features, and advantages of the present invention more comprehensible, a preferred embodiment is hereinafter described in detail with the accompanying drawings as follows. Embodiment 2A is a circuit diagram of a detection device for an earphone according to a preferred embodiment of the present invention. Referring to FIG. 2A, the detection device of the earphone provided by the present invention includes a comparator module 40 and a fixed reed module 50. The comparator module 40 is coupled to the fixed reed module π, and the first output terminal 61 of the comparator module 40 outputs the first general-purpose input / output signal GPI01, and the second output terminal 63 outputs the first Two universal input / output signals GPI02. The fixed reed module 50 has two output terminals, one of which is a signal output terminal 55a, and the fixed reed module 50 will send a third universal input / output signal GPI03 from the sun output terminal 55a. The other tongue output terminal 5 U is coupled to the input terminal 65 of the comparator module 40. Referring to FIG. 1A and FIG. 2A, the teacher combines the fixed reed module 50, which includes a ground fixed reed 57, a receiving fine fixed reed 5, and a right sound fine fixed reed 53 and a fixed reed 55. The function of the fixed reed wedge group 5G is an input terminal 1G for accommodating and fixing a headset having a call function in the figure, and the headset has a hearing / sun switch 25. When the input terminal 1G is inserted into the fixed group 50 and is positioned, the shed fixed spring 57 is connected to the input one-to-one 1240536 11 ^ 9ii I5〇6ltv? Il, cioc / O〇6 into the terminal 10 On the ground contact end 17, the receiver fixed reed 51 is coupled to the receiver contact 15; the right channel fixed reed 53 is coupled to the right channel contact 13; and the left channel fixed reed 55 is coupled. It is connected to the left channel contact end 11 'and the left channel fixing spring 55 is just fitted into the groove 10a of the left channel contact end 11. The left channel fixed reed 55 and the right channel fixed reed 53 will transmit sound signals. The input terminal 10 corresponds to the left channel speaker 19 and the right channel speaker 21 of the earphone respectively, and the receiver fixed reed 51 is The sound signal entered by the receiver 23 is transmitted. The left channel fixed reed 55 outputs the third universal input / output signal GPI03, and the left channel fixed reed 55 connects the second boost resistor 59 to the operating voltage Vcc. In this embodiment, the operating voltage Vcc is set to 2V ~ 1.5V. When the input terminal 10 has not been inserted into the fixed reed module 50, it is in an unplugged state. At this time, because the left channel fixed reed 55 is connected to the second boost resistor 59 to the operating voltage Vcc, the output logic state is "1" The third universal input / output signal GPI03 〇 When the input terminal 10 is being inserted into the fixed reed module 50, it is in the inserted state. At this time, the third universal input / output signal is caused by the bounce of the fixed reed. The logic state of GPI03 may be "1" or "0". When the input terminal is inserted into the fixed reed module 50 and reaches the positioning, it is in a positioned state. At this time, the left channel fixed reed 55 will be grounded, so that the logic state of the third universal input / output signal GPI03 remains "" 〇 ". The comparator module 40 includes a first comparator 41 and a second comparator 43. The positive signal input terminal of the first comparator 41 is connected to the positive signal input terminal of the second comparator 43 and is coupled to the receiver fixed reed 51 in the fixed reed module 50. The positive signal input terminals of the first comparator 41 and the second comparator 43 are also connected with a first boost resistor 45 to an operating voltage Vcc. First comparator 41 and second comparator
43的負訊號輸入端則都接地。另外,第一比較器41的輸出端 係輸出第一泛用輸入/輸出訊號GPI01,而第二比較器43的輸 出端係輸出第二泛用輸入/輸出訊號GPI02。 在本實施例中,第一比較器的參考電壓爲1.2V,第二比較 器的參考電壓爲1.0V。更詳細的說就是當正訊號輸入端電壓V+ 的位準爲大於1.2V時,第一泛用輸入/輸出訊號GPI01和第二 泛用輸入/輸出訊號GPI02的邏輯狀態皆爲”1”。當正訊號輸入 端電壓V+的位準爲介於1.0V到1.2V之間時,第一泛用輸入/ 輸出訊號GPI01的邏輯狀態爲”0”,而第二泛用輸入/輸出訊號 GPI02的邏輯狀態爲”1”。當正訊號輸入端電壓V+的位準爲小 於1.0V時,則第一泛用輸入/輸出訊號GPI01和第二泛用輸入 /輸出訊號GPI02的邏輯狀態皆爲”0”。因此,絕對不會有第一 泛用輸入/輸出訊號GPI01的邏輯狀態爲”1”,而第二泛用輸入 /輸出訊號GPI02的邏輯狀態爲”0”的狀況發生。 第2B圖係會是當具有通話功能的耳機之輸入端子插入固 定簧片模組並且到達定位時,第一提昇電阻與第二提昇電阻的 等效電路圖。請合倂參照第2B圖,當輸入端子10還未插入固 定簧片模組50時,或是輸入端子10已經插入固定簧片模組50 並且到達定位,但是受話器23之負輸入端連接的接聽/掛斷開 關25還未導通時,正訊號輸入端電壓V+的位準係爲Vcc(大於 1.2V),因此第一泛用輸入/輸出訊號GPI01和第二泛用輸入/ 輸出訊號GPI02的邏輯狀態皆爲”1”。當輸入端子10正插入固 定簧片模組50但是還未到達定位時,正訊號輸入端電壓V+可 視爲接地,因此第一泛用輸入/輸出訊號GPI01和第二泛用輸 入/輸出訊號GPI02的邏輯狀態便爲”0”。當輸入端子10已經 12The negative signal inputs of 43 are all grounded. In addition, the output terminal of the first comparator 41 outputs a first general-purpose input / output signal GPI01, and the output terminal of the second comparator 43 outputs a second general-purpose input / output signal GPI02. In this embodiment, the reference voltage of the first comparator is 1.2V, and the reference voltage of the second comparator is 1.0V. In more detail, when the level of the positive signal input terminal voltage V + is greater than 1.2V, the logic state of the first general-purpose input / output signal GPI01 and the second general-purpose input / output signal GPI02 is "1". When the level of the positive signal input voltage V + is between 1.0V and 1.2V, the logic state of the first universal input / output signal GPI01 is "0", and the second universal input / output signal GPI02 has The logic state is "1". When the level of the positive signal input terminal voltage V + is less than 1.0V, the logic states of the first general-purpose input / output signal GPI01 and the second general-purpose input / output signal GPI02 are "0". Therefore, the logic state of the first general-purpose input / output signal GPI01 is “1” and the logic state of the second general-purpose input / output signal GPI02 is “0”. Figure 2B is an equivalent circuit diagram of the first and second lifting resistors when the input terminal of the headset with a call function is inserted into the fixed reed module and reaches the positioning. Please refer to FIG. 2B. When the input terminal 10 has not been inserted into the fixed reed module 50, or the input terminal 10 has been inserted into the fixed reed module 50 and reached the positioning, but the negative input terminal of the receiver 23 is connected to the answer. When the on / off switch 25 is not turned on, the level of the positive signal input terminal voltage V + is Vcc (greater than 1.2V), so the logic of the first universal input / output signal GPI01 and the second universal input / output signal GPI02 are logic The status is all "1". When the input terminal 10 is being inserted into the fixed reed module 50 but has not reached the positioning, the positive signal input terminal voltage V + can be regarded as ground, so the first universal input / output signal GPI01 and the second universal input / output signal GPI02 The logic state is "0". When input terminal 10 has 12
插入固定簧片模組50並且到達定位,並且接聽/掛斷開關25導 通時,則正訊號輸入端電壓v+爲: V R1— 宜中,R1 :第一提昇電阻45 + cc RI + R2 八 R2 :第二提昇電阻26When the fixed reed module 50 is inserted and positioned, and the answer / hang-up switch 25 is turned on, the voltage of the positive signal input terminal v + is: V R1— moderate, R1: first boost resistor 45 + cc RI + R2 eight R2 : Second boost resistor 26
在本實施例中,正訊號輸入端電壓V+大約爲1.1 V ’係爲介於 1.0V到1.2V之間,因此第一泛用輸入/輸出訊號GPI01的邏 輯狀態爲”0”,而第二泛用輸入/輸出訊號GPI02的邏輯狀態 爲”1”。以下係將第一泛用輸入/輸出訊號GPIOl、第二泛用輸 入/輸出訊號GPI02和第三泛用輸入/輸出訊號GPI03之邏輯 狀態,和其所代表的意義整理如下表: GPIOl GPI02 GPI03 | 代表狀況 0 0 0 輸入端子未到達定位 0 1 0 輸入端子到達定位,且接聽 /掛斷開關導通 1 0 0 不可能發生 1 1 0 輸入端子到達定位,但接聽 /掛斷開關未導通 * * 1 輸入端子還未插入固定簧片模 組 *代表 don’t careIn this embodiment, the voltage V + of the positive signal input terminal is about 1.1 V ', which is between 1.0V and 1.2V, so the logic state of the first general-purpose input / output signal GPI01 is "0", and the second The logic state of the general-purpose input / output signal GPI02 is "1". The following table summarizes the logic states of the first general-purpose input / output signal GPIO1, the second general-purpose input / output signal GPI02, and the third general-purpose input / output signal GPI03, and the meanings they represent: GPIOl GPI02 GPI03 | Representation status 0 0 0 The input terminal has not reached the positioning 0 1 0 The input terminal has reached the positioning and the answer / hang-up switch is on 1 0 0 is unlikely to occur 1 1 0 The input terminal has reached the positioning but the answer / hang-up switch has not been turned on * * 1 The input terminal has not been inserted into the fixed reed module * stands for don't care
表⑴ 、第3A圖係繪示依照本發明之〜較佳實施例之耳機的偵測 ,法流程圖。請合倂參照第3A圖,根據表(1),可以整理出如 第3A圖所示之耳機的測試方法,如步驟所示,固定簧片 難5〇與輸入端丨Η)的接觸狀態,可產生第三泛讎入/輸出 13 20^6i\yfl idoc/006 訊號GPI〇3和受話器輸出端51a的電壓位準,也就是正訊號輸 入端電壓V+。再如步驟S320所示,將正訊號輸入端電壓V+ 和第一預設電壓(1.2V)和第二預設電壓(1.0V)做比較,而如步 驟S330所示,根據固定簧片模組50與輸入端子10的接觸狀 態,來決定第一泛用輸入/輸出訊號GPI01、第二泛用輸入/輸 出訊號GPI02和第三泛用輸入/輸出訊號GPI03之邏輯狀態。 如步驟S331所示,當固定簧片模組50與輸入端子1〇的 接觸狀態係未插入狀態時,就如步驟S332所示,第三泛用輸 入/輸出訊號GPI03之邏輯狀態爲”1”。同時如步驟S333所示, 正訊號輸入端電壓V+(2V〜1.5V)會大於第一預設電壓(1.2V)和 第二預設電壓(1.0V),因此如步驟S334所示,第一泛用輸入/ 輸出訊號GPIOl和第二泛用輸入/輸出訊號GPI02之邏輯狀態 會同時爲”1”。 而若是如步驟S341所示,當固定簧片模組50與輸入端子 1〇的接觸狀態係插入中狀態時,則如步驟S342所示,正訊號 輸入端電壓V+會小於第一預設電壓和第二預設電壓(1.0¥),因 此如步驟S343所示,第一泛用輸入/輸出訊號GH01和第二泛 用輸入/輸出訊號GPI02之邏輯狀態也會同時爲,,〇,,。 而若是如步驟S351所示,當固定簧片模組5〇與輸入端子 1〇的接觸狀態係已定位狀態時,則如步驟S3M所示,第三泛 用輸入/輸出訊號之邏輯狀態爲,,〇,,,並且,如步驟S353所示, 受話器輸出端的電壓位準會大於第一預設電壓和第二預設電 壓,此時如步驟S3M所述,第一泛用輸入/輸出訊號gpi〇i和 第二泛用輸入/輸出訊號GPI02之邏輯狀態也會同時爲”1”,然 後如步驟S355所不’致能耳機的接聽/掛斷開關25。 4240536 12066twfl4〇c/006 第3B圖係繪示延續第3A圖之耳機的偵測方法流程圖。請 合倂參照第3B圖,當固定簧片模組5〇與輸入端子1〇的接觸 狀態爲已定位狀態時,若如步驟S361所示,固定簧片模組5〇 與輸入端子10的接觸狀態由已定位狀態轉變爲未插入狀態。此 時如步驟S362所示,第三泛用輸入/輸出訊號之邏輯狀態 爲”1” ’然後如步驟S363所示,禁能耳機的接聽/掛斷開關25 之功能。 從表(1)可以看到,當第一泛用輸入/輸出訊號GPI01的邏 輯狀態爲’而第二泛用輸入/輸出訊號GPI02的邏輯狀態 爲”1’’時’判定定簧片模組50與輸入端子10的接觸狀態由已 定位狀態’並且接聽/掛斷開關25導通。但實際上,有時候外 界的聲音(如人說話的聲音)太大,會瞬間讓正訊號輸入端電壓 V+降到1.2V以下,若此時正訊號輸入端電壓v+剛好介於h0V SI 1.2V之間’則就會被誤判爲接聽/掛斷開關25導通。 如步驟S371所示,當接聽/掛斷開關25被導通時,如步驟 S372所示’第三泛用輸入/輸出訊號〇ρι〇3之邏輯狀態會 爲”〇”,同時如步驟S373所示,正訊號輸入端電壓V+(1.1V) 剛好介於第二設電壓(1.0V)到第一預設電壓(1.2V)之間,因此, 如步驟S374所示,第一泛用輸入/輸出訊號GPI01的邏輯狀態 爲,而第二泛用輸入/輸出訊號GPI02的邏輯狀態爲”1”。 此時如步驟S375所示,在一個預定時間(例如爲40ms)內,判 斷第一泛用輸入/輸出訊號GPIOl的邏輯狀態數次(例如1〇 次)。 雖然本實施例將預定時間設定爲40ms,而預定次數設定爲 W次’但並不以此限定本發明。熟習此技藝者可依照本身的需 15 ri〇66i tWfl idoc/006 要,做適當的調整。 綜上所述,本發明至少有以下優點: 1. 可以用第一泛用輸入/輸出訊號、第二泛用輸入/輸出訊號 和第三泛用輸入/輸出訊號,來判斷一個具有通話功能之耳機的 輸入端子是否到達定位。 2. 本發明因爲在第一泛用輸入/輸出訊號的邏輯狀態 爲”〇”,而第二泛用輸入/輸出訊號的邏輯狀態爲”1”時,會在一 個預定時間內判斷第一泛用輸入/輸出訊號的邏輯狀態數次,來 確定是否爲耳機的接聽/掛斷開關導通。所以不會在接聽/掛斷 開關爲跳脫的情況下,而因爲外界聲音太大而造成誤判,使得 耳機呈現接停狀態。 雖然本發明已以較佳實施例揭露如上,然其並非用以限定 本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內, 當可作些許之更動與潤飾,因此本發明之保護範圍當視後附之 申請專利範圍所界定者爲準。 【圖式簡單說明】 第1A圖係繪不具有通話功能之耳機的輸入端子連接示意 圖。 第1B圖係繪示輸入端子連接器結構圖。 第2A圖係繪示依照本發明之一較佳實施例之耳機的偵測 裝置電路圖。 第2B圖係會是當具有通話功能的耳機之輸入端子插入固 定簧片模組並且到達定位時,第一提昇電阻與第二提昇電阻的 等效電路圖。 第3A圖係繪示依照本發明之一較佳實施例之耳機的偵測 16 42 難 12066t^fl;.doc/006 方法流程圖。 第3B圖係繪示延續第3A圖之耳機的偵測方法流程圖。 【圖式標示說明】 10 :輸入端子 10a :凹槽 11 :左聲道接觸端 13 :右聲道接觸端 15 :受話器接觸端 17 :接地接觸端 19 :左聲道喇叭 20 :輸入端子連接器 21 :右聲道喇叭 23 :受話器 25 :接聽/掛斷開關 26 :電阻 27、51 :受話器固定簧片 29、53 :右聲道固定簧片 30 :系統 31、55 :左聲道固定簧片 33、57 :接地固定簧片 40 :比較器模組 41 :第一比較器 43 :第二比較器 45 :第一提昇電阻 50 :固定簧片模組 17 卿5露召 Η X ra2d6§twn,doc/006 51a :受話器輸出端 55a :訊號輸出端 59 :第二提昇電阻 3310〜3375:耳機的偵測方法流程 18Table ⑴ and FIG. 3A are flowcharts showing the method for detecting the earphone according to the preferred embodiment of the present invention. Please refer to Figure 3A, according to Table (1), you can sort out the test method of the earphone as shown in Figure 3A. As shown in the steps, it is difficult to fix the reed (50) and the input terminal (Η). The third universal input / output 13 20 ^ 6i \ yfl idoc / 006 signal GPI03 and the voltage level of the receiver output terminal 51a, that is, the positive signal input terminal voltage V + can be generated. As shown in step S320, the positive signal input terminal voltage V + is compared with the first preset voltage (1.2V) and the second preset voltage (1.0V), and as shown in step S330, according to the fixed reed module The contact state between 50 and the input terminal 10 determines the logic states of the first universal input / output signal GPI01, the second universal input / output signal GPI02, and the third universal input / output signal GPI03. As shown in step S331, when the contact state of the fixed reed module 50 and the input terminal 10 is not inserted, as shown in step S332, the logic state of the third universal input / output signal GPI03 is "1" . At the same time, as shown in step S333, the positive signal input terminal voltage V + (2V ~ 1.5V) will be greater than the first preset voltage (1.2V) and the second preset voltage (1.0V). Therefore, as shown in step S334, the first The logic state of the general purpose input / output signal GPIO1 and the second general purpose input / output signal GPI02 will be "1" at the same time. If as shown in step S341, when the contact state between the fixed reed module 50 and the input terminal 10 is in the inserted state, as shown in step S342, the positive signal input terminal voltage V + will be less than the first preset voltage and The second preset voltage (1.0 ¥), so as shown in step S343, the logic states of the first general-purpose input / output signal GH01 and the second general-purpose input / output signal GPI02 will also be ,, 0 ,,. If, as shown in step S351, when the contact state of the fixed reed module 50 and the input terminal 10 is positioned, as shown in step S3M, the logic state of the third universal input / output signal is, ,,, and, as shown in step S353, the voltage level at the output end of the receiver will be greater than the first preset voltage and the second preset voltage. At this time, as described in step S3M, the first universal input / output signal gpi 〇i and the logic state of the second universal input / output signal GPI02 will also be "1" at the same time, and then the answer / hang-up switch 25 of the headset is not enabled as in step S355. 4240536 12066twfl4〇c / 006 Fig. 3B is a flowchart of a method for detecting a headphone continuing from Fig. 3A. Please refer to FIG. 3B. When the contact state of the fixed reed module 50 and the input terminal 10 is the positioned state, if shown in step S361, the contact of the fixed reed module 50 and the input terminal 10 The state changes from the positioned state to the uninserted state. At this time, as shown in step S362, the logic state of the third universal input / output signal is "1", and then as shown in step S363, the function of the answer / end switch 25 of the headset is disabled. As can be seen from Table (1), when the logic state of the first general-purpose input / output signal GPI01 is' and the logic state of the second general-purpose input / output signal GPI02 is' 1 ', the fixed reed module is determined. The contact state between 50 and the input terminal 10 is from the positioned state 'and the answer / hang-up switch 25 is turned on. But in fact, sometimes the external sound (such as the voice of a person speaking) is too large, which will instantly make the positive signal input terminal voltage V + If it drops below 1.2V, if the positive signal input terminal voltage v + is just between h0V SI 1.2V ', it will be misjudged that the answer / hang up switch 25 is on. As shown in step S371, when the answer / hang up When the switch 25 is turned on, as shown in step S372, the logic state of the third universal input / output signal 0ρι〇3 will be “〇”, and as shown in step S373, the positive signal input terminal voltage V + (1.1V) It is between the second set voltage (1.0V) and the first preset voltage (1.2V). Therefore, as shown in step S374, the logic state of the first universal input / output signal GPI01 is The logic state of the input / output signal GPI02 is "1". At this time, as shown in step S375, Within a predetermined time (for example, 40ms), determine the logic state of the first general-purpose input / output signal GPIO1 several times (for example, 10 times). Although this embodiment sets the predetermined time to 40ms and the predetermined number to W times 'But the invention is not limited in this way. Those skilled in the art can make appropriate adjustments according to their needs. In summary, the invention has at least the following advantages: 1. It can be used The first universal input / output signal, the second universal input / output signal, and the third universal input / output signal are used to determine whether the input terminal of a headset with a call function has been positioned. 2. The present invention is When the logic state of the general purpose input / output signal is “〇” and the logic state of the second general purpose input / output signal is “1”, the logic state of the first general purpose input / output signal will be determined within a predetermined time. Several times to determine whether the answer / hang-up switch of the headset is on. Therefore, when the answer / hang-up switch is tripped, misjudgment will be caused because the external sound is too loud, which makes the headset appear connected. State. Although the present invention has been disclosed in the preferred embodiment as above, it is not intended to limit the present invention. Any person skilled in the art can make some changes and decorations without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be subject to the scope of the appended patent application. [Brief description of the drawings] Figure 1A is a schematic diagram of the input terminal connection of a headset without a call function. Figure 1B is an input terminal Connector structure diagram. Fig. 2A is a circuit diagram of a detecting device of a headset according to a preferred embodiment of the present invention. Fig. 2B is a diagram of an input terminal of a headset having a call function inserted into a fixed reed module and When the positioning is reached, the equivalent circuit diagram of the first lifting resistor and the second lifting resistor. FIG. 3A is a flowchart of a method for detecting a headset according to a preferred embodiment of the present invention. FIG. 3B is a flowchart of a method for detecting a headphone continuing from FIG. 3A. [Illustration of diagrammatic symbols] 10: Input terminal 10a: Groove 11: Left channel contact 13: Right channel contact 15: Receiver contact 17: Ground contact 19: Left channel speaker 20: Input terminal connector 21: Right channel speaker 23: Receiver 25: Answer / end switch 26: Resistance 27, 51: Receiver fixed reed 29, 53: Right channel fixed reed 30: System 31, 55: Left channel fixed reed 33, 57: Grounding fixed reed 40: Comparator module 41: First comparator 43: Second comparator 45: First boost resistor 50: Fixed reed module 17 Qing 5 Lu ZhaoΗ X ra2d6§twn, doc / 006 51a: Receiver output terminal 55a: Signal output terminal 59: Second boost resistor 3310 ~ 3375: Headphone detection method flow 18