TW200536347A - Detecting device and detecting method of a headset - Google Patents

Detecting device and detecting method of a headset Download PDF

Info

Publication number
TW200536347A
TW200536347A TW93111392A TW93111392A TW200536347A TW 200536347 A TW200536347 A TW 200536347A TW 93111392 A TW93111392 A TW 93111392A TW 93111392 A TW93111392 A TW 93111392A TW 200536347 A TW200536347 A TW 200536347A
Authority
TW
Taiwan
Prior art keywords
output
input
state
output signal
terminal
Prior art date
Application number
TW93111392A
Other languages
Chinese (zh)
Other versions
TWI240536B (en
Inventor
Ching-Hsiang Yang
Che-Fu Chang
Original Assignee
Mitac Int Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitac Int Corp filed Critical Mitac Int Corp
Priority to TW93111392A priority Critical patent/TWI240536B/en
Application granted granted Critical
Publication of TWI240536B publication Critical patent/TWI240536B/en
Publication of TW200536347A publication Critical patent/TW200536347A/en

Links

Landscapes

  • Telephone Function (AREA)

Abstract

A detecting device of a headset is suited a headset having the communication function. The detecting device of prevent invention comprises a comparator module and a fixed-reed module. The comparator module has the input port, the first output port, and the second output port. The comparator sends GPIO1 (the first general purpose input ouput) signal from the first output port, and sends GPIO2 signal form the second output port. The fixed-reed module can contain an input terminal of the headset, and the fixed-reed module has an signal output port and a microphone output port. The fixed-reed module sends GPIO3 signal from the signal output port, and connects to the comparator module with the microphone output port.

Description

200536347 玖、發明說明: 本發明是有關於一種耳機的偵測裝置和偵測方法,且 特別是有關於一種具有通話功能之耳機的偵測裝置。 先前技術 第1A圖係繪示具有通話功能之耳機的輸入端子連接 示意圖。請參照第1A圖,輸入端子(Terminal) 1〇適用於 具有通g舌功能之耳機,並且整個輸入端子1〇被分爲四段 分別爲左聲道接觸端11、右聲道接觸端13、受話器接觸 端23和接地接觸端Π。其中,左聲道接觸端U係耦接至 左聲道喇叭19,右聲道接觸端13係耦接至右聲道喇叭21, 受話器(Micro Phone)端23係耦接至受話器23,而接地接 觸端17則接地。 第1B圖係繪示輸入端子連接器結構圖。請參照第1A 圖和第1B圖,輸入端子連接器20包括有接地固定簧片33、 受話器固定簧片27、右聲道固定簧片29和左聲道固定簧 片31,並且輸入端子連接器20係耦接至系統30。當輸入 端子10插入輸入端子連接器2〇並且到達定位後,輸入端 子連接器之接地固定簧片33、受話器固定簧片27、右聲 道固定簧片29和左聲道固定簧片31 ’分別對應稱接至輸 入端子10之接地接觸端17、受話器接觸端15、右聲道接 觸端13和左聲道接觸端11,並且左聲道固定簧片31係剛 好嵌進左聲道接觸端11的凹槽10a內。受話器23的正輸 入端係耦接至輸入端子1〇的受話器接觸端15。並且受話 器73的正輸入端還連接掛斷/接聽開關25和電阻26至負 12066twf.doc 5 200536347 輸入端,而其負輸入端則是接地。當連接受話器23之掛 斷/接聽開關25導通時,則系統30可藉由輸入端子1〇和 上述的具有通話功能之耳機交換聲音訊號。 請再參照第1A圖和1B圖,相對地,當掛斷/接聽開 關25跳脫時,上述的具有通話功能之耳機理論上應該呈 現掛機的狀態,也就是代表系統30此時不會耗費電源在 驅動耳機。但實際上,當掛斷/接聽開關25跳脫時,如果 外界的聲音太大(例如人講話的聲音),還是可能讓系統3〇 誤判’而使耳機呈現接聽的狀態。 發明內容 因此,本發明的目的就是在提供一種耳機的偵測裝 置。本發明所提供之偵測裝置適用於一個具有通話功能的 耳機’並且此偵測裝置可偵測此具有通話功能之耳機的掛 斷/接聽(Push-to-Talk,PTT)開關是否導通。當此具有通話 功能之耳機的掛斷/接聽開關爲導通狀態時,使得此具有 通話功能之耳機呈現接聽狀態。 爲達上述與其他目的,本發明提供一種耳機的偵測裝 置’這種耳機包括了接聽/掛斷開關、輸入端子和受話器, 而偵測裝置則包括固定簧片模組和比較器模組。其中固定 簧片模組用來固定耳機的輸入端子。另外,固定簧片模組 具有訊號輸出端和受話器輸出端,係依據與輸入端子之間 的接觸狀態’由訊號輸出端輸出第三泛用輸入/輸出訊號, 同時’受話器輸出端則會產生一個電壓位準。而比較器模 組則具有輸入端、第一輸出端和第二輸出端。比較器的輸 入端係耦接至固定簧片模組的受話器輸出端,並以第一預 12066twf.doc 6 200536347 設電壓與第二預設電壓作比較,由該第一輸出端輸出一第 一泛用輸入/輸出訊號。同時,由第二輸出端輸出第二泛 用輸入/輸出訊號。上述所提及的固定簧片模組與輸入端 子的接觸狀態,則包括了未插入狀態、插入中狀態和已定 位狀態。 在耳機的輸入端子上,包括了右聲道接觸端、左聲道 接觸端、受話器接觸端與接地接觸端。而上述的固定簧片 模組則包括了接地接觸端固定簧片、受話器固定簧片、右 聲道固定簧片和左聲道固定簧片。其中接地接觸端固定簧 片係耦接至輸入端子的接地接觸端,另外,受話器固定簧 片係耦接至輸入端子的受話器接觸端。受話器固定簧片係 傳送由受話器所接收的聲音訊號,並且係依據與輸入端組 的接觸狀態受話器輸出端來產生一個電壓位準。接著,右 聲道固定簧片係耦接至輸入端子的右聲道接觸端來傳送聲 音訊號至耳機的右聲道,相對地,左聲道固定簧片則是耦 接至輸入端子的左聲道接觸端與該訊號輸出端,與右聲道 固定簧片類似,係用來傳送聲音訊號至該耳機的左聲道, 並且左聲道固定簧片係依據與輸入端子的接觸狀態而輸出 該第三泛用輸入/輸出訊號至訊號輸出端。此外,左聲道 固定簧片還連接第二提昇電阻至操作電壓。 而在比較器中,則包括了第一比較器和第二比較器, 並且第一比較器和第二比較器同樣具有正訊號輸入端、負 訊號輸入端和輸出端。其中,第一比較器的正訊號輸入端 係耦接固定簧片模組的受話器輸出端,並依據在受話器輸 出端的電壓位準與第一預設電壓作比較後,由第一比較器 12066twf.doc 7 200536347 的輸出端輸出第一泛用輸入/輸出訊號。與第一比較器類 似,第二比較器的正訊號輸入端係耦接至第一比較器的正 訊號輸入端,並依據受話器輸出端的電壓位準與第二預設 電壓作比較後,由該第二比較器之輸出端輸出該第二泛用 輸入/輸出訊號。換個角度來說,第一比較器的輸出端就 是比較模組的第一輸出端,而第二比較器的輸出端就是爲 比較模組的第二輸出端。而第一比較器和第二比較器的負 訊號輸入端則都是接地。 當固定簧片模組與輸入端子的接觸狀態爲未插入狀態 時,受話器輸出端的電壓位準會同時大於第一預設電壓和 第二預設電壓。因此,第一比較器將輸出邏輯狀態爲”1” 的第一泛用輸入/輸出訊號。而同樣地,第二比較器也會 輸出邏輯狀態爲”ι”的第二泛用輸入/輸出訊號。 相對地,當固定簧片模組與輸入端子的接觸狀態爲插 入中狀態時,受話器輸出端的電壓位準會同時小於第一預 設電壓和第二預設電壓。因此,第一比較器會輸出邏輯狀 態爲”0”的第一泛用輸入/輸出訊號,而第二比較器輸出邏 輯狀態爲”〇”的第二泛用輸入/輸出訊號。 與上一狀態相同,當固定簧片模組與輸入端子的接觸 狀態爲已定位狀態時,受話器輸出端的電壓位準也會大於 第一預設電壓和第二預設電壓。所以同樣地,第一比較器 將輸出邏輯狀態爲”1”的第一泛用輸入/輸出訊號,而第二 比較器會輸出邏輯狀態爲”1”的第二泛用輸入/輸出訊號, 並且耳機上的接聽/掛斷開關將被致能。 此時,若是固定簧片模組與輸入端子的接觸狀態由已 12066twf.doc 8 200536347 定位狀態轉變爲未插入狀態時’則訊號輸出端將會輸出邏 輯狀態爲”1”的第二泛用輸入/輸出訊號’並且耳機上的接 聽/掛斷開關功能將被禁能。 而當固定簧片模組與輸入端子的接觸狀態爲已定位狀 態,同時,耳機上的接聽/掛斷開關被導通時,則訊號輸 出端將會輸出邏輯狀態爲”0”的第三泛用輸入/輸出訊號。 並且受話器輸出端所產生的電壓位準將會小於第一預設電 壓,但是會大於第二預設電壓。因此’第一比較器會輸出 邏輯狀態爲”0”的第一泛用輸入/輸出訊號,而第二比較器 則會輸出邏輯狀態爲”1”的第二泛用輸入/輸出訊號。 另外,第一比較器的正訊號輸入端則耦接第一提昇電 阻到操作電壓。 上述的第一預設電壓包括1·2伏特左右,而第二預設 電壓則包括1.0伏特左右。 在本發明之一較佳實施例中,本發明之偵測裝置更包 括耦接至中央處理單元,以接收並依據第一泛用輸入/輸 出訊號、第二泛用輸入/輸出訊號和第三泛用輸入/輸出訊 號來判斷固定簧片模組和輸入端子的接觸狀態。 若是當受話器輸出端的電壓位準小於第一預設電壓而 大於第二預設電壓的時後,中央處理單元會在一個預設時 間內用軟體偵測第一泛用輸入/輸出訊號訊號數次,來判 斷使用者按下該接聽/掛斷開關與否。 其中,上述的預設時間爲40毫秒。 本發明另一個目的,就是提供一種耳機的偵測裝置之 操作方法,用於判斷偵測裝置內的固定簧片模組與耳機之 12066twf.doc 9 200536347 輸入端子的接觸狀態,此操作方法包括根據固定簧片模組 與輸入端子的接觸狀態,會產生第三泛用輸入/輸出訊號 與電壓位準。將此電壓位準與第一預設電壓和第二預設電 壓作比較,並輸出第一泛用輸入/輸出訊號和第二泛用輸 入/輸出訊號。其中,前述的固定簧片模組與輸入端子的 接觸狀態則包括未插入狀態、插入中狀態與已定位狀態。 綜上所述’本發明所提供偵測裝置,可藉由第一泛用 輸入/輸出訊號、第二泛用輸入/輸出訊號和第三的泛用輸 入/輸出訊號狀態’來判斷耳機的輸入端子是否插入至定 位。而本發明之偵測方法,可以判斷出是否確實爲接聽/ 掛斷開關導通,而使得耳機呈現接聽狀態。而不會因爲外 界背景聲音過大使得耳機成爲接聽狀態。 爲讓本發明之上述和其他目的、特徵和優點能更明顯 易懂’下文特舉一較佳實施例,並配合所附圖式,作詳細 說明如下。 實施方式 第2A圖係繪示依照本發明之一較佳實施例之耳機的 偵測裝置電路圖。請參照第2A圖,本發明所提供之耳機 的偵測裝置中,包括了比較器模組40和固定簧片模組5〇。 其中比較器模組40係耦接至固定簧片模組50,並且比較 器模組40之第一輸出端61係輸出第一泛用輸入/輸出訊 號GPI01,第二輸出端63則輸出第二泛用輸入/輸出訊號 GPI02。固定簧片模組5〇係有兩個輸出端,其中一個爲訊 號輸出端55a,固定簧片模組50會由訊號輸出端55a送出 第三泛用輸入/輸出訊號GPI03。另一個爲受話輸出端51a, 12066twf.doc 10 200536347 其耦接至比較器模組40的輸入端65。 弟1A圖係繪不具有通旨舌功能之耳機的輸入端子連接 不意圖。請參照第1A圖和第2A圖,固定簧片模組5〇包 括接地固定簧片57、受話器固定簧片51、右聲道固定簧 片53和左聲道固定簧片55。固定簧片模組5〇的功用,係 容納與固定例如第1A圖中具有通話功能之耳機的輸入端 子10,此具有通話功能的耳機具有接聽/掛斷開關25。當 輸入端子10插入固定簧片模組50並且到達定位時,接地 固定簧片51係耦接至輸入端子10的接地接觸端17上, 受話器固定簧片53係耦接至受話器接觸端15上,右聲道 固定簧片53則耦接至右聲道接觸端13上,而左聲道固定 簧片55係耦接至左聲道接觸端11上,並且左聲道固定簧 片55係剛好嵌進左聲道接觸端11的凹槽iia內。左聲道 固定簧片45和右聲道固定簧片43會傳送聲音訊號,由輸 入端子10分別對應送入耳機的左聲道喇叭19和右聲道喇 叭21,而受話器固定簧片41則是傳送由受話器23所進入 的聲音訊號。 請繼續參照第2A圖,左聲道固定簧片59係輸出第三 泛用輸入/輸出訊號GPI03,並且左聲道固定簧片59連接 第二提昇電阻59至操作電壓Vcc,在本實施例中,操作 電壓Vcc設定爲2V〜1.5V。當輸入端子10還未插入固定 簧片模組50時,係爲未插入狀態,此時因爲左聲道固定 簧片59連接第二提昇電阻59至操作電壓Vcc,所以會輸 出邏輯狀態爲”1”的第三泛用輸入/輸出訊號GPI03。當輸 入端子10正在插入固定簧片模組50時,係爲插入中狀態, 12066twf.doc 11 200536347 此時因爲固定簧片的彈跳,使得第三泛用輸入/輸出訊號 GPI03的邏輯狀態可能爲”1”也可能爲”〇”。當輸入端子插 入固定簧片模組50並且到達定位時’係爲已定位狀態’ 此時左聲道固定簧片會因爲接地,使得第三泛用輸入/輸 出訊號GPI03的邏輯狀態保持爲”0”。 請繼續參照第2A圖,比較器模組40包括第一比較器 41和第二比較器43。第一比較器41之正訊號輸入端係連 接至第二比較器43之正訊號輸入端,並且耦接至固定簧 片模組50內的受話器固定簧片51。在第一比較器41和第 二比較器43的正訊號輸入端上還連接第一提昇電阻45至 操作電壓Vcc。第一比較器41和第二比較器43的負訊號 輸入端則都接地。另外,第一比較器41的輸出端係輸出 第一泛用輸入/輸出訊號GPI01,而第二比較器43的輸出 端係輸出第二泛用輸入/輸出訊號GPI02。 請繼續參照第2A圖,第一比較器的參考電壓爲1.2V, 第二比較器的參考電壓爲1.0V。更詳細的說就是當正訊號 輸入端電壓V+的位準爲大於1.2V時,第一泛用輸入/輸出 訊號GPI01和第二泛用輸入/輸出訊號GPI02的邏輯狀態 皆爲”1”。當正訊號輸入端電壓V+的位準爲介於1.0V到 1.2V之間時,第一泛用輸入/輸出訊號GPI01的邏輯狀態 爲”〇”,而第二泛用輸入/輸出訊號GPI02的邏輯狀態 爲”1”。當正訊號輸入端電壓V+的位準爲小於1.0V時, 則第一泛用輸入/輸出訊號GPIOl和第二泛用輸入/輸出訊 號GPI02的邏輯狀態皆爲”〇”。因此,絕對不會有第一泛 用輸入/輸出訊號GPI01的邏輯狀態爲”1”,而第二泛用輸 12066twf.doc 12 200536347 入/輸出訊號GPI02的邏輯狀態爲”〇”的狀況發生。 第2B圖係會是當具有通話功能的耳機之輸入端子插 入固定簧片模組並且到達定位時’第一提昇電阻與第二提 昇電阻的等效電路圖。請繼續參照第1A圖、第2A圖和 第2B圖,當輸入端子1〇還未插入固定簧片模組50時, 或是輸入端子1〇已經插入固定簧片模組50並且到達定 位,但是受話器23之負輸入端連接的接聽/掛斷開關25 還未導通時,正訊號輸入端電壓V+的位準係爲Vcc(大於 1.2V),因此第一泛用輸入/輸出訊號GH01和第二泛用輸 入/輸出訊號GPI02的邏輯狀態皆爲”1”。當輸入端子10 正插入固定簧片模組50但是還未到達定位時,正訊號輸 入端電壓V+可視爲接地,因此第一泛用輸入/輸出訊號 GPIOl和第二泛用輸入/輸出訊號GI>I02的邏輯狀態便 爲”0”。當輸入端子10已經插入固定簧片模組50並且到 達定位,並且接聽/掛斷開關25導通時,則正訊號輸入端 電壓V+爲: V+=1^R2 其中’ R1 :第一提昇電阻45 R2 :第二提昇電阻26 在本實施例中,正訊號輸入端電壓V+大約爲1.IV,係爲 介於1.0V到1.2V之間,因此第一泛用輸入/輸出訊號GPI01 的邏輯狀態爲”0”,而第二泛用輸入/輸出訊號GPI02的邏 輯狀態爲”1”。以下係將第一泛用輸入/輸出訊號GPI01、 第二泛用輸入/輸出訊號GPI02和第三泛用輸入/輸出訊號 GPI03之邏輯狀態,和其所代表的意義整理如下表·· 12066twf.doc 13 200536347 GPI01 GPI02 GPI03 代表狀況 0 0 0 輸入端子未到達定位 0 1 0 輸入端子到達定位 接聽/掛斷開關導诵 1 0 0 不可能發生' 1 1 0 輸入端子到達定位 接聽/掛斷開關未導诵 氺 氺 1 輸入端子還未插入固定贅片 模組 *代表 don’t care 表⑴ 第3A圖係繪示依照本發明之一較佳實施例之耳機的 偵測方法流程圖。請參照第1A圖、第2A圖和第3A圖, 根據表(1),可以整理出如第3A圖所示之耳機的測試方法, 如步驟S310所示,固定簧片模組50與輸入端子1〇的接 觸狀態,可產生第三泛用輸入/輸出訊號GPI03和受話$ 輸出端51a的電壓位準,也就是正訊號輸入端電壓V+。 再如步驟S320所示,將正訊號輸入端電壓V+和第一預言受 電壓(1.2V)和第二預設電壓(1.0V)做比較,而如步驟S33() 所示,根據固定簧片模組50與輸入端子10的接觸狀態, 來決定第一泛用輸入/輸出訊號GPI01、第二泛用輸入/輸 出訊號GPI02和第三泛用輸入/輸出訊號GPI03之邏輯狀 態。 請繼續參照第1A圖、第2A圖和第3A圖,如步驟S33l 所示,當固定簧片模組50與輸入端子10的接觸狀態係未 12066twf.doc 14 200536347 插入狀態時,就如步驟S332所示’第三泛用輸入/輸出訊 號GPI03之邏輯狀態爲”1”。同時如步驟S333所示,正訊 號輸入端電壓V+(2V〜1.5V)會大於第一預設電壓Π·2ν)和 第二預設電壓(1.0V),因此如步驟s334所示,第一泛用輸 入/輸出訊號GPIOl和第二泛用輸入/輸出訊號GPI02之邏 輯狀態會同時爲”1”。如步驟S341所示’當固定簧片模組 50與輸入端子1〇的接觸狀態係插入中狀態時’則如步驟 S342所示,正訊號輸入端電壓V+會小於第一預設電壓和 第二預設電壓(1.0V),因此如步驟S343所示, _ 請繼續參照第1A圖、第2A圖和第3A圖,如步驟S351 所示,當固定簧片模組50與輸入端子10的接觸狀態係已 定位狀態時,則如步驟S352所示,第三泛用輸入/輸出訊 號之邏輯狀態爲”〇”,並且,如步驟S353所示,正訊號輸 入端電壓V+會大於第一預設電壓和第二預設電壓,此時 如步驟S354所述,第一泛用輸入/輸出訊號GPI01和第二 泛用輸入/輸出訊號GPI02之邏輯狀態也會同時爲”〇”,然 後如步驟S355所示,致能耳機的接聽/掛斷開關25。 第3B圖係繪示延續第3A圖之耳機的偵測方法流程 修 圖。請參照第1A圖、第2A圖和第3B圖,當固定簧片模 組50與輸入端子10的接觸狀態爲已定位狀態時,若如步 驟S361所示,固定簧片模組50與輸入端子1〇的接觸狀 態由已定位狀態轉變爲未插入狀態。此時如步驟S362所 示’第三泛用輸入/輸出訊號之邏輯狀態爲”丨”,然後如步 驟S363所示,禁能耳機的接聽/掛斷開關25之功能。 請繼續參照第1A圖和第2A圖,從表(1)可以看到, 12066twf.doc 15 200536347 當第一泛用輸入/輸出訊號GPI01的邏輯狀態爲’而第 二泛用輸入/輸出訊號GPI02的邏輯狀態爲”1”時’判定定 簧片模組50與輸入端子10的接觸狀態由已定位狀態’並 且接聽/掛斷開關25導通。但實際上,有時候外界的聲音(如 人說話的聲音)太大,會瞬間讓正訊號輸入端電壓V+降到 1.2V以下,若此時正訊號輸入端電壓V+剛好介於ι·〇ν到 1.2V之間,則就會被誤判爲接聽/掛斷開關25導通。 請繼續參照請繼續參照第1A圖、第2A圖和第3A圖, 如步驟S371所示,當接聽/掛斷開關25被導通時,如步 驟S372所示,第三泛用輸入/輸出訊號GPI03之邏輯狀態 會爲”〇”,同時如步驟S373所示,正訊號輸入端電壓 ν+(1·ΐν)剛好介於第二設電壓(i.〇V)到第一預設電壓(1.2V) 之間’因此’第一泛用輸入/輸出訊號GPI01的邏輯狀態 爲’而第二泛用輸入/輸出訊號GPI02的邏輯狀態 爲”1”。此時如步驟S375所示,在一個預定時間(例如爲 40ms)內’判斷第一泛用輸入/輸出訊號GPIOl的邏輯狀態 數次(例如10次)。 雖然本實施例將預定時間設定爲40ms,而預定次數 設定爲10次,但並不以此限定本發明。熟習此技藝者可 依照本身的需要,做適當的調整。 綜上所述,本發明至少有以下優點: I可以用第一泛用輸入/輸出訊號、第二泛用輸入/輸 出訊號和第三泛用輸入/輸出訊號,來判斷一個具有通話 功能之耳機的輸入端子是否到達定位。 2·本發明因爲在第一泛用輸入/輸出訊號的邏輯狀態 12066twf.doc 16 200536347 爲”〇”,而第二泛用輸入/輸出訊號的邏輯狀態爲”ι”時,會 在一個預定時間內判斷第一泛用輸入/輸出訊號的邏輯狀 態數次,來確定是否爲耳機的接聽/掛斷開關導通。所以 不會在接聽/掛斷開關爲跳脫的情況下,而因爲外界聲音 太大而造成誤判,使得耳機呈現接停狀態。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍內,當可作些許之更動與潤飾,因此本發明之保護 範圍當視後附之申請專利範圍所界定者爲準。 _ 【圖式簡單說明】 第1A圖係繪示具有通話功能之耳機的輸入端子連接 不意圖。 第1B圖係繪不輸入端子連接§&結構圖。 第2A圖係繪示依照本發明之一較佳實施例之耳機的 偵測裝置電路圖。 第2B圖係會是當具有通話功能的耳機之輸入端子插 入固定簧片模組並且到達定位時’第〜提昇電阻與第二提 昇電阻的等效電路圖。 · 第3A圖係繪示依照本發明之一較佳實施例之耳機的 偵測方法流程圖。 第3B圖係繪示延續第3A圖之耳機的偵測方法流程 圖。 【圖式標示說明】 10 :輸入端子 11 :左聲道接觸端 12066twf.doc 17 200536347 13 :右聲道接觸端 15 :受話器接觸端 17 :接地接觸端 19 :左聲道喇叭 20 :輸入端子連接器 21 :右聲道喇叭 23 :受話器 25 :接聽/掛斷開關 26 :電阻 # 27、51 :受話器固定簧片 29、53 :右聲道固定簧片 30 :系統 31、55 :左聲道固定簧片 33、57 :接地固定簧片 40 :比較器模組 41 :第一比較器 43 :第二比較器 45 :第-提昇飄 · 50 :固定簧片模組 51a :受話器輸出端 55a :訊號輸出端 59 :第二提昇電阻 S310〜S375 :耳機的偵測方法流程 12066twf.doc 18200536347 发明 Description of the invention: 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 (10) is suitable for headphones with a tongue-through function, and the entire input terminal (10) is divided into four sections: left channel contact terminal 11, right channel contact terminal 13, The receiver contact terminal 23 and the ground contact terminal Π. Among them, the left channel contact terminal U is coupled to the left channel speaker 19, the right channel contact terminal 13 is coupled to the right channel speaker 21, and the micro phone terminal 23 is coupled to the receiver 23 and grounded. The contact 17 is grounded. 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 positioned, the ground terminal 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 respectively. Corresponds to the ground contact 17 connected to the input terminal 10, the receiver contact 15, the right channel contact 13 and the left channel contact 11, and the left channel fixing spring 31 is just embedded into the left channel contact 11 Inside the groove 10a. The positive input terminal of the receiver 23 is coupled to the receiver contact terminal 15 of the input terminal 10. And the positive input terminal of the receiver 73 is also connected to the hang-up / answer switch 25 and the resistor 26 to the negative 12066twf.doc 5 200536347 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 through the input terminal 10 and the above-mentioned headset with a call function. Please refer to FIG. 1A and FIG. 1B again. In contrast, when the hang-up / answer switch 25 is tripped, the above-mentioned headset with a call function should theoretically be on-hook, which means that the system 30 will not consume at this time. The power is driving the headphones. In fact, when the hang-up / answer switch 25 is tripped, if the external sound is too loud (for example, the voice of a person speaking), it may still make the system 30 misjudge it and make the headset appear to be in the answering state. SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a detection device for a headset. The detection device provided by the present invention is applicable to a headset with a call function, and the detection device can detect whether a 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 objects, the present invention provides a headphone detection device. The earphone includes an answer / end switch, an input terminal, and a receiver, and the detection device includes a fixed reed module and a comparator module. 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 terminal. According to the contact state with the input terminal, the third universal input / output signal is output from the signal output terminal, and at the same time, the receiver output terminal generates a Voltage level. The comparator module has an input terminal, a first output terminal, and a second output terminal. The input terminal of the comparator is coupled to the receiver output terminal of the fixed reed module, and compares the first preset voltage of 12066twf.doc 6 200536347 with the second preset voltage, and a first output terminal outputs a first Universal input / output signals. At the same time, a second universal input / output signal is output from the second output terminal. The contact state between the fixed reed module and the input terminal mentioned above 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 above-mentioned fixed reed module includes a grounded contact fixed reed, a receiver fixed reed, a right channel fixed reed, and a left channel fixed reed. The ground contact terminal fixed reed is coupled to the ground contact of the input terminal, and the receiver fixed spring 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 according to the contact state of 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 also connects 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. Among them, 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 by the first comparator 12066twf according to the voltage level at the output terminal of the receiver. The output of doc 7 200536347 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 is the first output of the comparison module, and the output of the second comparator is the second output of the comparison module. The negative signal input terminals of the first comparator and the second comparator 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 “ι”. 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 whose logic state is "0", and the second comparator outputs a second general-purpose input / output signal whose logic state is "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 whose logic state is "1", and the second comparator will output a second general-purpose input / output signal whose logic state is "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 12066twf.doc 8 200536347 to the non-inserted state, the signal output terminal will output a second general-purpose input with a logic state of "1" / Output signal 'and the answer / end switch function on the headset will be disabled. When the contact state of the fixed reed module and the input terminal is positioned, and the answer / hang-up switch on the headset is turned on, the signal output terminal will output a third general purpose logic state of "0" Input / output signals. And the voltage level generated at the output of the receiver will be lower than the first preset voltage, but higher than the second preset voltage. Therefore, the 'first comparator will output a first general-purpose input / output signal whose logic state is "0", and the second comparator will output a second general-purpose input / output signal whose logic state is "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. To 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 judging the contact state of the fixed reed module in the detection device and the input terminal of the earphone 12066twf.doc 9 200536347. The operation method includes The contact state between the fixed reed module and 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 a first universal input / output signal and a second universal input / output signal. Among them, the contact state between the fixed reed module and the input terminal includes an uninserted state, an inserted state, and a positioned state. In summary, the detection device provided by the present invention can judge 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 described below in detail with reference to 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. Please refer to FIG. 2A. The earphone detection device 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 50, and the first output terminal 61 of the comparator module 40 outputs a first general-purpose input / output signal GPI01, and the second output terminal 63 outputs a second Universal input / output signal 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 signal output terminal 55a. The other is the receiver output terminal 51a, 12066twf.doc 10 200536347, which is coupled to the input terminal 65 of the comparator module 40. The 1A picture is not intended to connect the input terminals of a headset that does not have a tongue function. Referring to FIGS. 1A and 2A, the fixed reed module 50 includes a grounded fixed reed 57, a receiver fixed reed 51, a right channel fixed reed 53 and a left channel fixed reed 55. The function of the fixed reed module 50 is for accommodating and fixing the input terminal 10 of a headset having a call function as shown in FIG. 1A. The headset with a call function has an answer / end switch 25. When the input terminal 10 is inserted into the fixed reed module 50 and reaches the positioning, the ground fixed reed 51 is coupled to the ground contact 17 of the input terminal 10, and the receiver fixed reed 53 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 to the left channel contact 11 and the left channel fixed reed 55 is just embedded Into the groove iia of the left channel contact end 11. The left channel fixed reed 45 and the right channel fixed reed 43 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 41 is The sound signal entered by the receiver 23 is transmitted. Please continue to refer to FIG. 2A. The left channel fixed reed 59 outputs the third universal input / output signal GPI03, and the left channel fixed reed 59 is connected to 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 59 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. 12066twf.doc 11 200536347 At this time, due to the bounce of the fixed reed, the logic state of the third universal input / output signal GPI03 may be " 1 "may also be" 〇 ". When the input terminal is inserted into the fixed reed module 50 and reaches the positioning position, it is 'positioned'. At this time, the left channel fixed reed will be grounded, so that the logic state of the third universal input / output signal GPI03 remains "0". ". Please continue to refer to FIG. 2A. 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. The negative signal input terminals of the first comparator 41 and the second comparator 43 are both 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. Please continue to refer to FIG. 2A, 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 states of the first general-purpose input / output signal GPI01 and the second general-purpose input / output signal GPI02 are "1". When the level of the positive signal input terminal voltage V + is between 1.0V and 1.2V, the logic state of the first general-purpose input / output signal GPI01 is “〇”, and the second general-purpose input / output signal GPI02 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 GPIO1 and the second general-purpose input / output signal GPI02 are both "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 12066twf.doc 12 200536347 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 a headset with a call function is inserted into the fixed reed module and reaches the positioning position. Please continue to refer to FIG. 1A, FIG. 2A, and 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 When the answer / hang-up switch 25 connected to the negative input terminal of the receiver 23 is not yet turned on, the level of the positive signal input voltage V + is Vcc (greater than 1.2V), so the first universal input / output signal GH01 and the second The logic status of the universal input / output signal GPI02 is "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 GPIO1 and the second universal input / output signal GI > The logic state of I02 is "0". When the input terminal 10 has been inserted into the fixed reed module 50 and reached the position, and the answer / hang-up switch 25 is turned on, the voltage V + of the positive signal input terminal is: V + = 1 ^ R2 where 'R1: the first boost resistor 45 R2 : The second boost resistor 26 In this embodiment, the positive signal input terminal voltage V + is about 1.IV, which is between 1.0V and 1.2V, so the logic state of the first universal input / output signal GPI01 is "0", and the logic state of the second universal input / output signal GPI02 is "1". The following is a summary of the logical states of the first general-purpose input / output signal GPI01, the second general-purpose input / output signal GPI02, and the third general-purpose input / output signal GPI03, and the meanings they represent. 12066twf.doc 13 200536347 GPI01 GPI02 GPI03 represents the status 0 0 0 The input terminal has not reached the positioning 0 1 0 The input terminal has reached the positioning answer / hang-up switch introduction 1 0 0 is unlikely to occur 1 1 0 The input terminal has reached the positioning answer / hang-up switch not guided Reciting 1 The input terminal has not been inserted into the fixed patch module * represents don't care table. Figure 3A is a flowchart of a method for detecting a headset according to a preferred embodiment of the present invention. Please refer to FIG. 1A, FIG. 2A, and FIG. 3A. According to Table (1), the test method of the earphone shown in FIG. 3A can be sorted out. As shown in step S310, the reed module 50 and the input terminal are fixed. The contact state of 10 can generate the third universal input / output signal GPI03 and the voltage level of the receiver $ output terminal 51a, that is, the positive signal input terminal voltage V +. As shown in step S320, the positive signal input terminal voltage V + is compared with the first predicted receiving voltage (1.2V) and the second preset voltage (1.0V), and as shown in step S33 (), according to the fixed reed The contact state of the module 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. Please continue to refer to FIG. 1A, FIG. 2A, and FIG. 3A. As shown in step S33l, when the contact state of the fixed reed module 50 and the input terminal 10 is not 12066twf.doc 14 200536347, the state is the same as step S332. The logic state of the 'third universal input / output signal GPI03 shown 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 Π · 2ν) 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. As shown in step S341, 'When the contact state of 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 The preset voltage (1.0V), so as shown in step S343, _ please continue to refer to FIG. 1A, FIG. 2A and FIG. 3A, as shown in step S351, when the fixed reed module 50 is in contact with the input terminal 10 When the state is the positioned state, as shown in step S352, the logic state of the third universal input / output signal is "0", and, as shown in step S353, the positive signal input terminal voltage V + will be greater than the first preset Voltage and the second preset voltage. At this time, as described in step S354, the logic state of the first general-purpose input / output signal GPI01 and the second general-purpose input / output signal GPI02 will also be "0" at the same time. As shown, the answer / end switch 25 of the headset is enabled. Fig. 3B is a flowchart of the method for detecting the headphone continuing from Fig. 3A. Please refer to FIG. 1A, FIG. 2A, and FIG. 3B. When the contact state between the fixed reed module 50 and the input terminal 10 is the positioned state, if shown in step S361, the fixed reed module 50 and the input terminal The contact state of 10 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 "丨", and then as shown in step S363, the function of the answer / end switch 25 of the headset is disabled. Please continue to refer to Figure 1A and Figure 2A. From Table (1), you can see that 12066twf.doc 15 200536347 When the logic state of the first general-purpose input / output signal GPI01 is' and the second general-purpose input / output signal GPI02 When the logic state of “1” is “determined that the contact state of the fixed reed module 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) is too loud, it will instantly reduce the voltage V + of the positive signal input terminal to less than 1.2V. If the voltage V + of the positive signal input terminal is just between ι · 〇ν To 1.2V, it will be misjudged that the answer / hang-up switch 25 is on. Please continue to refer to FIG. 1A, FIG. 2A, and FIG. 3A. As shown in step S371, when the answer / hang-up switch 25 is turned on, as shown in step S372, the third universal input / output signal GPI03 The logic state will be “〇”. At the same time, as shown in step S373, the positive signal input terminal voltage ν + (1 · ΐν) is just between the second set voltage (i.〇V) and the first preset voltage (1.2V). ) Therefore, 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". At this time, as shown in step S375, the logic state of the first general-purpose input / output signal GPIO1 is judged several times (for example, 10 times) within a predetermined time (for example, 40 ms). Although the predetermined time is set to 40 ms and the predetermined number of times is set to 10 in this embodiment, the present invention is not limited thereto. Those skilled in the art can make appropriate adjustments according to their needs. In summary, the present invention has at least the following advantages: I can use a first universal input / output signal, a second universal input / output signal, and a third universal input / output signal to determine a headset with a call function Whether the input terminal of the 2. In the present invention, when the logic state of the first universal input / output signal is 12066twf.doc 16 200536347 is “〇”, and the logic state of the second universal input / output signal is “ι”, it will be at a predetermined time The logic state of the first universal input / output signal is judged several times to determine whether the answer / hang-up switch of the headset is turned on. Therefore, when the answer / hang-up switch is tripped, misjudgment will be caused because the external sound is too loud, which will cause the headset to show a stop 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 modifications and retouching without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be determined by the scope of the attached patent application. _ [Schematic description] Figure 1A shows the connection of the input terminals of a headset with a call function. It is not intended. Figure 1B is a drawing of the structure without input terminal connection § & FIG. 2A is a circuit diagram of a detection device of a headset according to a preferred embodiment of the present invention. Fig. 2B is an equivalent circuit diagram of the first to the second lifting resistor when the input terminal of the headset with a call function is inserted into the fixed reed module and reaches the position. Figure 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 Graphical Symbols] 10: Input terminal 11: Left channel contact terminal 12066twf.doc 17 200536347 13: Right channel contact terminal 15: Receiver contact terminal 17: Ground contact terminal 19: Left channel speaker 20: Input terminal connection 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 Reeds 33, 57: Grounded fixed reed 40: Comparator module 41: First comparator 43: Second comparator 45: First-boosting float50: Fixed reed module 51a: Receiver output terminal 55a: Signal Output terminal 59: the second boost resistor S310 ~ S375: the detection method flow of the headset 12066twf.doc 18

Claims (1)

200536347 拾、申請專利範圍: h一種耳機的偵測裝置,該耳機包括一接聽/掛斷開 關、一輸入端子和一受話器,該偵測裝置包括: 一固定簧片模組,用以固定該輸入端子,該固定簧片 模組具有一訊號輸出端和一受話器輸出端,且該固定簧片 模組爲依據與該輸入端子之一接觸狀態,由該訊號輸出端 輸出一第三泛用輸入/輸出訊號,而該受話器輸出端則將 產生一電壓位準;以及 一比較器模組,具有一輸入端、一第一輸出端和一第 一輸出端,該輸入端係稱接至該受話器輸出端,並以一第 一預設電壓與一第二預設電壓作比較,用以由該第一輸出 端輸出一第一泛用輸入/輸出訊號與由該第二輸出端輸出 一第二泛用輸入/輸出訊號; 其中,該接觸狀態包括一未插入狀態、一插入中狀態 和一已定位狀態。 2. 如申請專利範圍第1項所述之耳機的偵測裝置,其 中該輸入端子包括一右聲道接觸端、一左聲道接觸端、一 受話器接觸端與一接地接觸端。 3. 如申請專利範圍第2項所述之耳機的偵測裝置,其 中該固定簧片模組包括: 一接地接觸端固定簧片,係耦接至該輸入端子之一接 地接觸端; 一受話器固定簧片,係耦接至該輸入端子之一受話器 接觸端,用以傳送由該受話器所接收之一聲音訊號,且該 受話器固定簧片係依據該接觸狀態由該受話器輸出端產生 12066twf.doc 19 200536347 該電壓位準; 一右聲道固定簧片,係耦接至該輸入端子之該右聲道 接觸端,用以該傳送聲音訊號至該耳機之右聲道;以及 一左聲道固定簧片,係耦接至該輸入端子之該左聲道 接觸端與該訊號輸出端,用以傳送聲音訊號至該耳機之左 聲道,且該左聲道固定簧片係依據該接觸狀態輸出該第三 泛用輸入/輸出訊號至該訊號輸出端。 4·如申請專利範圍第3項所述之耳機的偵測裝置,該 左聲道固定簧片連接一第二提昇電阻至該操作電壓。 5. 如申請專利範圍第1項所述之耳機的偵測裝置,其 中該比較器模組包括: 一第一比較器,具有正訊號輸入端、負訊號輸入端和 輸出端,該第一比較器之正訊號輸入端係耦接至該受話器 輸出端,並依據該電壓位準與該第一預設電壓作比較後, 由該第一比較器之輸出端輸出該第一泛用輸入/輸出訊 號,而該第一比較器負訊號輸入端則接地;以及 一第二比較器,具有正訊號輸入端、負訊號輸入端和 輸出端,該第二比較器之正訊號輸入端係耦接至該第一比 較器之正訊號輸入端,並依據該電壓位準與該第二預設電 壓作比較後,由該第二比較器之輸出端輸出該第二泛用輸 入/輸出訊號,而該第二比較器之負訊號輸入端則接地; 其中,該第一比較器之輸出端係爲該比較模組之該第 一輸出端,該第二比較器之輸出端係爲該比較模組之該第 二輸出端。 6. 如申請專利範圍第5項所述之耳機的偵測裝置,當 12066twf.doc 20 200536347 該接觸狀態爲該未插入狀態時,該電壓位準大於該第一預 設電壓和該第二預設電壓,該第一比較器將輸出邏輯狀態 爲”1”的該第一泛用輸入/輸出訊號,而第二比較器輸出邏 輯狀態爲”1”的該第二泛用輸入/輸出訊號。 7·如申請專利範圍第5項所述之耳機的偵測裝置,當 該接觸狀態爲該插入中狀態時,該電壓位準小於該第一預 設電壓和該第二預設電壓,該第一比較器將輸出邏輯狀態 爲”〇”的該第一泛用輸入/輸出訊號,而第二比較器輸出邏 輯狀態爲”〇”的該第二泛用輸入/輸出訊號。 8·如申請專利範圍第5項所述之耳機的偵測裝置,當 該接觸狀態爲該已定位狀態時,該電壓位準大於該第一預 設電壓和該第二預設電壓,該第一比較器將輸出邏輯狀態 爲”1”的該第一泛用輸入/輸出訊號,而第二比較器輸出邏 輯狀態爲”1”的該第二泛用輸入/輸出訊號,且該接聽/掛斷 開關將被致能。 9·如申請專利範圍第8項所述之耳機的偵測裝置,其 中該接觸狀態由該已定位狀態轉變爲該未插入狀態時,該 訊號輸出端將輸出邏輯狀態爲”1”之該第三泛用輸入/輸出 訊號,且該接聽/掛斷開關功能將被禁能。 10·如申請專利範圍第8項所述之耳機的偵測裝置,其 中該接觸狀態爲該已定位狀態,且接聽/掛斷開關被導通 時,該訊號輸出端將輸出邏輯狀態爲,,〇,,之該第三泛用輸 入/輸出訊號,而該受話器輸出端所產生的該電壓位準將 小於該第一預設電壓,而大於該第二預設電壓,該第一比 較器輸出邏輯狀態爲”0”之該第〜泛用輸人/輸出訊號,而 12066twf.doc 200536347 該第二比較器則輸出邏輯狀態爲”ι”之該第二泛用輸入/輸 出訊號。 11·如申請專利範圍第5項所述之耳機的偵測裝置,該 第一比較器之正訊號輸入端耦接一第一提昇電阻至一操作 電壓。 12·如申請專利範圍第1項所述之耳機的偵測裝置,該 第一預設電壓包括1.2伏特左右。 13·如申請專利範圍第1項所述之耳機的偵測裝置,該 第二預設電壓包括1.0伏特左右。 14·如申請專利範圍第1項所述之耳機的偵測裝置,更 包括耦接至一中央處理單元,用以接收並依據該第一泛用 輸入/輸出訊號、該第二泛用輸入/輸出訊號和該第三泛用 輸入/輸出訊號來判斷該接觸狀態。 15·如申請專利範圍第14項所述之耳機的偵測裝置, 其中當該電壓位準小於該第一預設電壓而大於該第二預設 電壓時,該中央處理單元則在一預設時間內以軟體偵測該 第一泛用輸入/輸出訊號複數次,用以判斷使用者按下該 接聽/掛斷開關與否。 ° 16·如申請專利範圍第15項所述之耳機的偵測裝置, 該預設時間爲40毫秒。 17·—種耳機的偵測裝置之操作方法,適用於判斷該偵 測裝置之一固定簧片模組與該耳機之〜輸入端子之一接觸 狀態,該操作方法包括: 根據該接觸狀態,產生一第Η泛用輸入/輸出訊號與 一電壓位準; ^ 12066twf.doc 22 200536347 以該電壓位準與一第一預設電壓和一第二預設電壓作 比較,並輸出一第一泛用輸入/輸出訊號和一第二泛用輸 入/輸出訊號;以及 其中,該接觸狀態包括一未插入狀態、一插入中狀態 與一已定位狀態。 18·如申請專利範圍第π項所述之耳機的偵測裝置之 操作方法’當該接觸狀態爲該未插入狀態時,該第三泛用 輸入/輸出訊號之邏輯狀態爲”1”,且該電壓位準將大於該 第一預設電壓和該第二預設電壓,使得該第一泛用輸入/ 輸出訊號和該第二泛用輸入/輸出訊號之邏輯狀態爲” i ”。 19·如申請專利範圍第17項所述之耳機的偵測裝置之 操作方法,當該接觸狀態爲該插入中狀態時,該電壓位準 將小於該第一預設電壓和該第二預設電壓,使得該第一泛 用輸入/輸出訊號和該第二泛用輸入/輸出訊號之邏輯狀態 爲,,0,,。 20·如申請專利範圍第17項所述之耳機的偵測裝置之 操作方法,當該接觸狀態爲該已定位狀態時,該第三泛 輸入/輸出訊號之邏輯狀態爲”〇”,且該電壓位準將大於該 第一預設電壓和該第二預設電壓,使得該第一泛用輸入/ 輸出訊號和該第二泛用輸入/輸出訊號之邏輯狀態爲”丨,,, 並且致能耳機之一接聽/掛斷開關。 21·如申請專利範圍第20項所述之耳機的偵測裝置之 操作方法,其中該接觸狀態由該已定位狀態轉變爲該未插 入狀態時,該第三泛用輸入/輸出訊號之邏輯狀態爲”1,,, 並禁能該接聽/掛斷功能。 12066twf.doc 23 200536347 22. 如申請專利範圍第20項所述之耳機的偵測裝置之 操作方法,其中該接觸狀態爲該已定位狀態,且該接聽/ 掛斷開關被導通時,該第三泛用輸入/輸出訊號之邏輯狀 態爲”〇”,而該電壓位準會小於該第一預設電壓但會大於 該第二預設電壓,並使得該第一泛用輸入/輸出訊號之邏 輯狀態爲”〇”,而該第二泛用輸入/輸出訊號之邏輯狀態 爲,T,。 23. 如申請專利範圍第20項所述之耳機的偵測裝置之 操作方法,其中當該電壓位準小於該第一預設電壓而大於 第二預設電壓時,則在一預設時間內以軟體偵測該第一泛 用輸入/輸出訊號複數次,用以判斷該接聽/掛斷開關導通 與否。 24. 如申請專利範圍第23項所述之耳機的偵測裝置之 操作方法,其中該預設時間爲40毫秒。 25. 如申請專利範圍第19項所述之耳機的偵測裝置之 操作方法,其中該第一預設電壓包括1.2伏特左右。 26. 如申請專利範圍第19項所述之耳機的偵測裝置之 操作方法,其中該第二預設電壓包括1.0伏特左右。 12066twf.doc 24200536347 Scope of patent application: h A headset detection device, the headset includes an answer / end switch, an input terminal and a receiver. The detection device includes: a fixed reed module for fixing the input Terminal, the fixed reed module has a signal output terminal and a receiver output terminal, and the fixed reed module outputs a third universal input / output based on the contact state with one of the input terminals / Output signal, and the receiver output terminal will generate a voltage level; and a comparator module with an input terminal, a first output terminal and a first output terminal, said input terminal is said to be connected to the receiver output And comparing a first preset voltage with a second preset voltage to output a first universal input / output signal from the first output terminal and a second universal output from the second output terminal. Using input / output signals; wherein the contact state includes an uninserted state, an inserted state, and a positioned state. 2. The headphone detection device according to item 1 of the scope of patent application, wherein the input terminal includes a right channel contact terminal, a left channel contact terminal, a receiver contact terminal, and a ground contact terminal. 3. The headphone detection device according to item 2 of the scope of patent application, wherein the fixed reed module includes: a ground contact terminal fixed reed, which is coupled to a ground contact terminal of the input terminal; a receiver The fixed reed is coupled to a contact end of a receiver of the input terminal for transmitting a sound signal received by the receiver, and the fixed reed of the receiver is generated by the output end of the receiver according to the contact state 12066twf.doc 19 200536347 The voltage level; a right channel fixed reed, which is coupled to the right channel contact end of the input terminal for transmitting a sound signal to the right channel of the headset; and a left channel fixed The reed is coupled to the left channel contact end of the input terminal and the signal output terminal for transmitting a sound signal to the left channel of the headset, and the left channel fixed reed is output according to the contact state The third universal input / output signal is connected to the signal output terminal. 4. As the headphone detection device described in item 3 of the scope of patent application, the left channel fixed reed is connected to a second boost resistor to the operating voltage. 5. The headphone detection device according to item 1 of the scope of patent application, wherein the comparator module includes: a first comparator having a positive signal input terminal, a negative signal input terminal and an output terminal, the first comparison The positive signal input terminal of the receiver is coupled to the output terminal of the receiver, and after comparing with the first preset voltage according to the voltage level, the first universal input / output is output from the output terminal of the first comparator. Signal, and the negative signal input terminal of the first comparator is grounded; and a second comparator having a positive signal input terminal, a negative signal input terminal and an output terminal, the positive signal input terminal of the second comparator is coupled to After the positive signal input terminal of the first comparator is compared with the second preset voltage according to the voltage level, the second universal input / output signal is output from the output terminal of the second comparator, and the The negative signal input terminal of the second comparator is grounded; wherein, the output terminal of the first comparator is the first output terminal of the comparison module, and the output terminal of the second comparator is the comparison module. The second output terminal. 6. According to the headphone detection device described in item 5 of the scope of patent application, when 12066twf.doc 20 200536347 the contact state is the unplugged state, the voltage level is greater than the first preset voltage and the second preset Setting the voltage, the first comparator will output the first general-purpose input / output signal whose logic state is "1", and the second comparator will output the second general-purpose input / output signal whose logic state is "1". 7. The headphone detection device according to item 5 of the scope of patent application, when the contact state is the inserted state, the voltage level is less than the first preset voltage and the second preset voltage, the first A comparator will output the first general-purpose input / output signal with a logic state of “0”, and a second comparator will output the second general-purpose input / output signal with a logic state of “0”. 8. According to the earphone detection device described in item 5 of the scope of patent application, when the contact state is the positioned state, the voltage level is greater than the first preset voltage and the second preset voltage, the first A comparator will output the first general-purpose input / output signal whose logic state is "1", and a second comparator will output the second general-purpose input / output signal whose logic state is "1", and the answer / hang The disconnect switch will be enabled. 9. The headphone detection device according to item 8 of the scope of patent application, wherein when the contact state is changed from the positioned state to the unplugged state, the signal output terminal outputs the first logical state of "1". Three universal input / output signals, and the answer / end switch function will be disabled. 10. The headphone detection device as described in item 8 of the scope of patent application, wherein the contact state is the positioned state and the answer / hang-up switch is turned on, the signal output terminal will output a logic state of,,. , The third universal input / output signal, and the voltage level generated by the receiver output end will be less than the first preset voltage and greater than the second preset voltage, the first comparator output logic state The first general-purpose input / output signal is “0”, and the second comparator 12066twf.doc 200536347 outputs the second general-purpose input / output signal with logic state “ι”. 11. The headphone detection device according to item 5 of the scope of patent application, the positive signal input terminal of the first comparator is coupled to a first boost resistor to an operating voltage. 12. The headphone detection device according to item 1 of the scope of patent application, the first preset voltage includes about 1.2 volts. 13. The headphone detection device according to item 1 of the scope of patent application, the second preset voltage includes about 1.0 volt. 14. The headphone detection device described in item 1 of the scope of patent application, further comprising a central processing unit coupled to receive and according to the first universal input / output signal and the second universal input / output signal. The output signal and the third input / output signal are used to determine the contact status. 15. The headphone detection device according to item 14 of the scope of patent application, wherein when the voltage level is lower than the first preset voltage and greater than the second preset voltage, the central processing unit is at a preset The first universal input / output signal is detected by software multiple times within a period of time to determine whether the user presses the answer / end switch. ° 16. The detection device of the earphone according to item 15 of the scope of patent application, the preset time is 40 milliseconds. 17 · —An operation method of a headphone detection device, which is suitable for determining a contact state between a fixed reed module of the detection device and one of the input terminals of the headphone. The operation method includes: A first universal input / output signal and a voltage level; ^ 12066twf.doc 22 200536347 compares this voltage level with a first preset voltage and a second preset voltage and outputs a first universal The input / output signal and a second universal input / output signal; and wherein the contact state includes an uninserted state, an inserted state, and a positioned state. 18. The operation method of the earphone detection device as described in item π of the scope of patent application 'When the contact state is the unplugged state, the logic state of the third universal input / output signal is "1", and The voltage level will be greater than the first preset voltage and the second preset voltage, so that the logic states of the first universal input / output signal and the second universal input / output signal are "i". 19. The method of operating the headphone detection device as described in item 17 of the scope of patent application, when the contact state is the inserted state, the voltage level will be less than the first preset voltage and the second preset voltage , So that the logic states of the first universal input / output signal and the second universal input / output signal are,, 0 ,,. 20 · According to the operation method of the headphone detection device described in item 17 of the scope of the patent application, when the contact state is the positioned state, the logic state of the third pan input / output signal is “〇”, and the The voltage level will be greater than the first preset voltage and the second preset voltage, so that the logic states of the first universal input / output signal and the second universal input / output signal are "丨", and enabled One of the earphones answer / hang up switch. 21. The operation method of the earphone detection device as described in item 20 of the patent application scope, wherein when the contact state changes from the positioned state to the unplugged state, the third The logic state of the universal input / output signal is "1", and the answer / hang-up function is disabled. 12066twf.doc 23 200536347 22. The operation method of the earphone detection device described in item 20 of the scope of patent application, wherein the contact state is the positioned state and the answer / end switch is turned on, the third The logic state of the universal input / output signal is “〇”, and the voltage level will be lower than the first preset voltage but greater than the second preset voltage, and the logic of the first universal input / output signal will be made The state is "〇", and the logical state of the second universal input / output signal is, T ,. 23. The operating method of the earphone detection device according to item 20 of the scope of patent application, wherein when the voltage level is less than the first preset voltage and greater than the second preset voltage, within a preset time The first universal input / output signal is detected multiple times by software to determine whether the answer / hang-up switch is on or not. 24. The method for operating the earphone detection device according to item 23 of the scope of patent application, wherein the preset time is 40 milliseconds. 25. The method for operating a headphone detection device as described in item 19 of the scope of patent application, wherein the first preset voltage includes about 1.2 volts. 26. The method for operating a headphone detection device as described in item 19 of the scope of patent application, wherein the second preset voltage includes about 1.0 volt. 12066twf.doc 24
TW93111392A 2004-04-23 2004-04-23 Detecting device and detecting method of a headset TWI240536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW93111392A TWI240536B (en) 2004-04-23 2004-04-23 Detecting device and detecting method of a headset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW93111392A TWI240536B (en) 2004-04-23 2004-04-23 Detecting device and detecting method of a headset

Publications (2)

Publication Number Publication Date
TWI240536B TWI240536B (en) 2005-09-21
TW200536347A true TW200536347A (en) 2005-11-01

Family

ID=37007796

Family Applications (1)

Application Number Title Priority Date Filing Date
TW93111392A TWI240536B (en) 2004-04-23 2004-04-23 Detecting device and detecting method of a headset

Country Status (1)

Country Link
TW (1) TWI240536B (en)

Also Published As

Publication number Publication date
TWI240536B (en) 2005-09-21

Similar Documents

Publication Publication Date Title
CN109791529B (en) Connector for data transfer
US9838780B2 (en) Audio I O headset plug and plug detection circuitry
US9237401B2 (en) Electronic devices with adjustable bias impedances and adjustable bias voltages for accessories
US6984990B2 (en) Apparatus for detecting connection state between stereo earphone plug and corresponding jack of mobile communication terminal
CN101739374B (en) Signal transmission path selecting and apply the electronic installation of this circuit
US8396509B2 (en) Signal transmission path selection circuit and method, and electronic device employing the circuit
US10782361B2 (en) Circuit for monitoring a socket
CN201509235U (en) Headphone detection circuit of mobile terminal and mobile terminal thereof
KR100506283B1 (en) Ear-microphone connection apparatus by using a interface connector of portable phone
CN101686282A (en) Portable device including earphone circuit and operation method using the same
US9215526B2 (en) Circuit for microphone pin assignment detection and method thereof
US11665462B1 (en) Headband identification for a headphone system
GB2502983A (en) Electronic host device with flexible interface for accessory connection
US4599491A (en) Apparatus for converting direct coupled data devices to acoustic coupled data devices
WO2020192376A1 (en) Determination circuit for positive and negative ends of earphone mic, method, and electronic device
KR20150107518A (en) Electronic device having function for removing noise
TW200536347A (en) Detecting device and detecting method of a headset
US20060142062A1 (en) Communication device for connection to an external acoustic transducer
CN212628419U (en) Comparison circuit suitable for headset
KR200364672Y1 (en) Earphone Jack Using Data Communication Possible Mobile Terminal
KR100303306B1 (en) Headset control apparatus
TWI255662B (en) Method for detecting push-to-talk key (PTT) of earphone
CN111294699B (en) Earphone detection method and device for preventing liquid misjudgment
KR100630205B1 (en) Apparatus for detecting earphone plug
CN116017234A (en) Plug identification circuit, outdoor monitoring equipment and audio signal playing method thereof

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees