TWI544810B - Volume controlling apparatus - Google Patents
Volume controlling apparatus Download PDFInfo
- Publication number
- TWI544810B TWI544810B TW101146642A TW101146642A TWI544810B TW I544810 B TWI544810 B TW I544810B TW 101146642 A TW101146642 A TW 101146642A TW 101146642 A TW101146642 A TW 101146642A TW I544810 B TWI544810 B TW I544810B
- Authority
- TW
- Taiwan
- Prior art keywords
- signal
- volume adjustment
- pulse signal
- adjustment mode
- duration
- Prior art date
Links
Landscapes
- Control Of Amplification And Gain Control (AREA)
- Circuit For Audible Band Transducer (AREA)
Description
一種音量控制技術,特別有關於一種音量控制裝置與方法。 A volume control technology, and more particularly to a volume control device and method.
隨著數位時代的來臨,消費者對於越來越注重筆記型電腦所附加的影音功能(Audio and Video Function)。目前筆記型電腦上的音量控制多採用軟體控制,這對於使用者在使用上仍有不便之處。 With the advent of the digital age, consumers are paying more and more attention to the audio and video functions (Audio and Video Function) attached to notebook computers. At present, the volume control on the notebook computer is mostly controlled by software, which is inconvenient for the user to use.
於是,某些筆記型電腦採用可變電阻器(Variable Resistor)來調整音量的大小,但類比方式的音量控制與利用軟體所設定的音量大小並不相關,這造成使用者必須調整可變電阻器及軟體介面才能獲得最大的音量。 Therefore, some notebook computers use a variable resistor (Variable Resistor) to adjust the volume, but the volume control of the analog mode is not related to the volume level set by the software, which causes the user to adjust the variable resistor. And the software interface to get the maximum volume.
此外,可變電阻器也會有旋轉圈數或幅度上的限制,且在長期使用之後容易因接觸不良而造成故障,如此將會造成使用上的不便。 In addition, the variable resistor also has a limitation on the number of revolutions or the amplitude, and is prone to failure due to poor contact after long-term use, which causes inconvenience in use.
鑒於以上的問題,本揭露在於提供一種音量控制裝置與方法,藉以達成快速音量調整,並可依據是否耦接耳機而改變音量調整模及音量調整間距,以增加使用便利性。 In view of the above problems, the present disclosure provides a volume control apparatus and method for achieving rapid volume adjustment, and can change the volume adjustment mode and the volume adjustment interval according to whether or not the earphone is coupled to increase the usability.
本揭露之一種音量控制裝置,適於可攜式電子裝置。此音量控制裝置包括訊號產生單元、偵測單元與控制單元。訊號產生單元用以依據使用者的旋轉操作,而產生正向脈波訊號與負向脈波 訊號。偵測單元用以偵測音量控制裝置是否耦接耳機,而據以產生偵測訊號。控制單元耦接訊號產生單元與偵測單元,用以依據偵測訊號,而決定第一音量調整模式或第二音量調整模式,並依據第一音量調整模式與正向脈波訊號或負向脈波訊號,而產生第一控制訊號,或依據第二音量調整模式與正向脈波訊號或負向脈波訊號,而產生第二控制訊號,使可攜式電子裝置依據第一控制訊號或第二控制訊號進行音量調整。 A volume control device of the present disclosure is suitable for a portable electronic device. The volume control device includes a signal generating unit, a detecting unit and a control unit. The signal generating unit is configured to generate a forward pulse signal and a negative pulse wave according to the rotation operation of the user. Signal. The detecting unit is configured to detect whether the volume control device is coupled to the earphone, and accordingly generate a detection signal. The control unit is coupled to the signal generating unit and the detecting unit for determining the first volume adjustment mode or the second volume adjustment mode according to the detection signal, and according to the first volume adjustment mode and the forward pulse signal or the negative pulse The first control signal is generated by the wave signal, or the second control signal is generated according to the second volume adjustment mode and the forward pulse signal or the negative pulse signal, so that the portable electronic device is based on the first control signal or the first The second control signal is used for volume adjustment.
在一實施例中,前述訊號產生單元包括旋鈕、第一開關、第二開關、第一電阻、第二電阻與反向器。旋鈕用以藉由使用者的操作而旋轉。第一開關耦接於控制單元與接地端之間,用以依據旋鈕以順時針旋轉而產生切換操作,以產生正向脈波訊號。第二開關耦接於控制單元與接地端之間,用以依據旋鈕以逆時針旋轉而產生切換操作,以產生脈波訊號。第一電阻的第一端接收工作電壓,第一電阻的第二端耦接第一開關。第二電阻的第一端接收工作電壓,第二電阻的第二端耦接第二開關。反向器耦接控制單元與第二開關之間,用以將脈波訊號反向,以產生負向脈波訊號。 In an embodiment, the signal generating unit includes a knob, a first switch, a second switch, a first resistor, a second resistor, and an inverter. The knob is used to rotate by the user's operation. The first switch is coupled between the control unit and the ground for generating a switching operation according to the clockwise rotation of the knob to generate a forward pulse signal. The second switch is coupled between the control unit and the ground for generating a switching operation according to the knob rotating counterclockwise to generate a pulse signal. The first end of the first resistor receives the operating voltage, and the second end of the first resistor is coupled to the first switch. The first end of the second resistor receives the operating voltage, and the second end of the second resistor is coupled to the second switch. The inverter is coupled between the control unit and the second switch for inverting the pulse signal to generate a negative pulse signal.
在一實施例中,前述偵測單元包括連接埠、第三電阻、電晶體與第四電阻。連接埠適於耦接耳機。第三電阻的第一端耦接連接埠。電晶體的閘極端耦接第三電阻的第二端,電晶體的源極端耦接接地端,電晶體的汲極端產生偵測訊號。第四電阻的第一端接收工作電壓,第四電阻的第二端耦接電晶體的汲極端。 In an embodiment, the detecting unit includes a connection port, a third resistor, a transistor, and a fourth resistor. The port is adapted to couple the earphones. The first end of the third resistor is coupled to the connection port. The gate terminal of the transistor is coupled to the second end of the third resistor, and the source terminal of the transistor is coupled to the ground terminal, and the detecting terminal of the transistor generates a detection signal. The first end of the fourth resistor receives the operating voltage, and the second end of the fourth resistor is coupled to the drain terminal of the transistor.
在一實施例中,前述第一音量調整模式為音量控制裝置未耦 接耳機,而第二音量調整模式為音量控制裝置耦接耳機,且第一音量調整模式的音量調整間距大於第二音量調整模式的音量調整間距。 In an embodiment, the first volume adjustment mode is a volume control device uncoupled The second volume adjustment mode is coupled to the volume control device, and the volume adjustment interval of the first volume adjustment mode is greater than the volume adjustment interval of the second volume adjustment mode.
在一實施例中,前述控制單元更統計正向脈波訊號的脈波數量及正向脈波訊號的持續時間或負向脈波訊號的脈波數量及負向脈波訊號的持續時間,且控制單元依據第一音量調整模式、正向脈波訊號的脈波數量及正向脈波訊號的持續時間,或依據第一音量調整模式、負向脈波訊號的脈波數量及負向脈波訊號的持續時間,並以查表的方式而對應產生第一控制訊號;或是控制單元依據第二音量調整模式、正向脈波訊號的脈波數量及正向脈波訊號的持續時間,或依據第二音量調整模式、負向脈波訊號的脈波數量及負向脈波訊號的持續時間,並以查表的方式而對應產生第二控制訊號。 In an embodiment, the control unit further counts the number of pulses of the forward pulse wave signal and the duration of the forward pulse wave signal or the number of pulse waves of the negative pulse wave signal and the duration of the negative pulse wave signal, and The control unit is based on the first volume adjustment mode, the number of pulses of the forward pulse wave signal and the duration of the forward pulse wave signal, or the number of pulse waves and the negative pulse wave according to the first volume adjustment mode, the negative pulse signal The duration of the signal, and the first control signal is generated correspondingly by way of table lookup; or the control unit is based on the second volume adjustment mode, the number of pulses of the forward pulse wave signal, and the duration of the forward pulse wave signal, or According to the second volume adjustment mode, the number of pulse waves of the negative pulse wave signal and the duration of the negative pulse wave signal, and correspondingly generating the second control signal by means of look-up table.
在一實施例中,前述控制單元包括計時器、計數器與處理器。計時器耦接訊號產生單元,用以對正向脈波訊號與負向脈波訊號進行計時,以輸出正向脈波訊號的持續時間或負向脈波訊號的持續時間。計數器耦接訊號產生單元,用以對正向脈波訊號或負向脈波訊號進行計數,以輸出正向脈波訊號的脈波數量或負向脈波訊號的脈波數量。處理器耦接計時器、計數器與偵測單元,用以接收正向脈波訊號的脈波數量及正向脈波訊號的持續時間或負向脈波訊號的脈波數量及負向脈波訊號的持續時間,且處理器依據第一音量調整模式、正向脈波訊號的脈波數量及正向脈波訊號的 持續時間,或依據第一音量調整模式、負向脈波訊號的脈波數量及負向脈波訊號的持續時間,並以查表的方式而對應產生第一控制訊號;或是處理器依據第二音量調整模式、正向脈波訊號的脈波數量及正向脈波訊號的持續時間,或依據第二音量調整模式、負向脈波訊號的脈波數量及負向脈波訊號的持續時間,並以查表的方式而對應產生第二控制訊號。 In an embodiment, the aforementioned control unit includes a timer, a counter, and a processor. The timer is coupled to the signal generating unit for timing the forward pulse signal and the negative pulse signal to output the duration of the forward pulse signal or the duration of the negative pulse signal. The counter is coupled to the signal generating unit for counting the forward pulse signal or the negative pulse signal to output the pulse wave number of the forward pulse wave signal or the pulse wave number of the negative pulse wave signal. The processor is coupled to the timer, the counter and the detecting unit for receiving the pulse wave of the forward pulse wave signal and the duration of the forward pulse wave signal or the number of the pulse wave of the negative pulse wave signal and the negative pulse wave signal. Duration, and the processor is based on the first volume adjustment mode, the number of pulses of the forward pulse wave signal, and the positive pulse wave signal. The duration, or according to the first volume adjustment mode, the number of pulse waves of the negative pulse signal and the duration of the negative pulse signal, and correspondingly generate the first control signal by means of table lookup; or the processor according to the The second volume adjustment mode, the number of pulses of the forward pulse signal and the duration of the forward pulse signal, or the duration of the negative volume signal and the duration of the negative pulse signal according to the second volume adjustment mode, the negative pulse signal And correspondingly generating a second control signal by means of looking up the table.
本揭露提供一種音量控制方法,包括下列步驟。接收正向脈波訊號或負向脈波訊號,其中正向脈波訊號或負向脈波訊號依據使用者的旋轉操作而產生。偵測是否耦接一耳機,而據以產生偵測訊號。依據偵測訊號,而決定第一音量調整模式或第二音量調整模式。依據第一音量調整模式與正向脈波訊號或第一音量調整模式與負向脈波訊號,而產生第一控制訊號,或依據第二音量調整模式與正向脈波訊號或第一音量調整模式與負向脈波訊號,而產生第二控制訊號。依據第一控制訊號或第二控制訊號進行音量調整。 The present disclosure provides a volume control method including the following steps. Receiving a forward pulse signal or a negative pulse signal, wherein the forward pulse signal or the negative pulse signal is generated according to a user's rotation operation. Detecting whether a headset is coupled to generate a detection signal. The first volume adjustment mode or the second volume adjustment mode is determined according to the detection signal. Generating a first control signal according to the first volume adjustment mode and the forward pulse signal or the first volume adjustment mode and the negative pulse signal, or according to the second volume adjustment mode and the forward pulse signal or the first volume adjustment The mode and the negative pulse signal generate a second control signal. The volume adjustment is performed according to the first control signal or the second control signal.
在一實施例中,前述第一音量調整模式為音量控制裝置未耦接耳機,而第二音量調整模式為音量控制裝置耦接耳機,且第一音量調整模式的音量調整間距大於第二音量調整模式的音量調整間距。 In an embodiment, the first volume adjustment mode is that the volume control device is not coupled to the earphone, and the second volume adjustment mode is that the volume control device is coupled to the earphone, and the volume adjustment interval of the first volume adjustment mode is greater than the second volume adjustment. The volume of the mode adjusts the spacing.
在一實施例中,前述產生第一控制訊號或第二控制訊號的步驟包括統計正向脈波訊號的脈波數量及正向脈波訊號的持續時間或負向脈波訊號的脈波數量及負向脈波訊號的持續時間,且接著 依據第一音量調整模式、正向脈波訊號的脈波數量及正向脈波訊號的持續時間,或依據第一音量調整模式、負向脈波訊號的脈波數量及負向脈波訊號的持續時間,並以查表的方式而對應產生第一控制訊號;或是依據第二音量調整模式、正向脈波訊號的脈波數量及正向脈波訊號的持續時間,或依據第二音量調整模式、負向脈波訊號的脈波數量及負向脈波訊號的持續時間,並以查表的方式而對應產生第二控制訊號。 In an embodiment, the step of generating the first control signal or the second control signal includes counting the number of pulses of the forward pulse wave signal and the duration of the forward pulse wave signal or the number of the pulse wave of the negative pulse wave signal and The duration of the negative pulse signal, and then According to the first volume adjustment mode, the number of pulse waves of the forward pulse wave signal and the duration of the forward pulse wave signal, or according to the first volume adjustment mode, the number of pulse waves of the negative pulse wave signal, and the negative pulse wave signal The duration, and the first control signal is generated correspondingly by the look-up table; or according to the second volume adjustment mode, the number of pulses of the forward pulse wave signal and the duration of the forward pulse wave signal, or according to the second volume Adjusting the mode, the number of pulses of the negative pulse signal and the duration of the negative pulse signal, and correspondingly generating the second control signal by means of look-up table.
本揭露之一種音量控制裝置與方法,藉由依據使用者旋轉操作而產生的正向脈波訊號或負向脈波訊號,以快速調整音量大小,並進一步判斷是否耦接耳機,進而改變音量調整模式及音量調整間距。如此一來,除了可加快音量調整速度外,還可避免利用相同的音量調整間距,而容易造成聲音突然很大或突然很小的情況。 The volume control device and method of the present disclosure can quickly adjust the volume by using a forward pulse signal or a negative pulse signal generated according to a user's rotation operation, and further determine whether the earphone is coupled, thereby changing the volume adjustment. Mode and volume adjustment spacing. In this way, in addition to speeding up the volume adjustment speed, it is also possible to avoid using the same volume to adjust the spacing, which is likely to cause a sudden or large sudden sound.
有關本揭露的特徵與實作,茲配合圖式作最佳實施例詳細說明如下。 The features and implementations of the present disclosure are described in detail below with reference to the drawings.
請參考「第1圖」所示,其係為本揭露之音量控制裝置的電路示意圖。本實施例之音量控制裝置100適於可攜式電子裝置(例如筆記型電腦、平板電腦等)進行音量調整。音量控制裝置100包括訊號產生單元110、偵測單元120與控制單元130。訊號產生單元110用以依據使用者的旋轉操作,而據以產生正向脈波訊號S1與負向脈波訊號S2。 Please refer to "Figure 1" for a circuit diagram of the volume control device disclosed herein. The volume control device 100 of this embodiment is suitable for volume adjustment of a portable electronic device (such as a notebook computer, a tablet computer, etc.). The volume control device 100 includes a signal generating unit 110, a detecting unit 120, and a control unit 130. The signal generating unit 110 is configured to generate a forward pulse signal S1 and a negative pulse signal S2 according to a rotation operation of the user.
進一步來說,訊號產生單元110包括旋鈕111、第一開關SW1、第二開關SW2、第一電阻R1、第二電阻R2與反向器112。旋鈕111用以藉由使用者的操作而旋轉,例如以順時針方式或逆時針方向旋轉。第一開關SW1耦接於控制單元130與接地端GND之間,用以依據旋鈕111以順時針旋轉而產生切換操作,以產生正向脈波訊號S1。 Further, the signal generating unit 110 includes a knob 111, a first switch SW1, a second switch SW2, a first resistor R1, a second resistor R2, and an inverter 112. The knob 111 is used to rotate by a user's operation, for example, in a clockwise or counterclockwise direction. The first switch SW1 is coupled between the control unit 130 and the ground GND for generating a switching operation according to the clockwise rotation of the knob 111 to generate a forward pulse signal S1.
第二開關SW2耦接於控制單元130與接地端GND之間,用以依據旋鈕111以逆時針旋轉而產生切換操作,以產生脈波訊號S2’。第一電阻R1的第一端接收工作電壓VDD,第一電阻R1的第二端耦接第一開關SW1。第二電阻R2的第一端接收工作電壓VDD,第二電阻R2的第二端耦接第二開關SW2。反向器112耦接控制單元130與第二開關SW1之間,用以將脈波訊號S2’反向,以產生負向脈波訊號S2。 The second switch SW2 is coupled between the control unit 130 and the ground GND for generating a switching operation according to the knob 111 rotating counterclockwise to generate the pulse signal S2'. The first end of the first resistor R1 receives the operating voltage VDD, and the second end of the first resistor R1 is coupled to the first switch SW1. The first end of the second resistor R2 receives the operating voltage VDD, and the second end of the second resistor R2 is coupled to the second switch SW2. The inverter 112 is coupled between the control unit 130 and the second switch SW1 for inverting the pulse signal S2' to generate a negative pulse signal S2.
在本實施例中,當旋鈕111以順時針旋轉時,旋鈕111會帶動第一開關SW1進行切換,使得第一開關SW1導通後再斷開,以產生正向脈波訊號S1。舉例來說,旋鈕111旋轉而帶動第一開關SW1切換1次(即第一開關SW1導通後再斷開1次),則正向脈波訊號S1會具有1個脈波,而旋鈕111旋轉而帶動第一開關SW2切換2次(即第一開關SW1導通後再斷開2次),則正向脈波訊號S1會具有2個脈波,其餘則類推。 In the embodiment, when the knob 111 rotates clockwise, the knob 111 drives the first switch SW1 to switch, so that the first switch SW1 is turned on and then turned off to generate the forward pulse signal S1. For example, when the knob 111 rotates to drive the first switch SW1 to switch once (that is, the first switch SW1 is turned on and then off once), the forward pulse signal S1 will have 1 pulse wave, and the knob 111 rotates. When the first switch SW2 is switched twice (that is, the first switch SW1 is turned on and then turned off twice), the forward pulse signal S1 will have 2 pulse waves, and the rest will be analogized.
當旋鈕111以逆時針旋轉時,旋鈕111會帶動第二開關SW2進行切換,使得第二開關SW2導通後再斷開,以產生脈波訊號 S2’。舉例來說,旋鈕111旋轉而帶動第二開關SW1切換一次(即第二開關SW2導通後再斷開1次),則脈波訊號S2’會具有1個脈波,而旋鈕111旋轉而帶動第二開關SW2切換一次(即第二開關SW2導通後再斷開2次),則脈波訊號S2’會具有2個脈波,其餘則類推。如此一來,使用者可藉由對旋鈕111進行旋轉操作,而產生不同數量之脈波的正向脈波訊號S1與負向脈波訊號S2。 When the knob 111 rotates counterclockwise, the knob 111 drives the second switch SW2 to switch, so that the second switch SW2 is turned on and then turned off to generate a pulse wave signal. S2’. For example, if the knob 111 rotates to drive the second switch SW1 to switch once (that is, the second switch SW2 is turned on and then off once), the pulse signal S2' will have 1 pulse wave, and the knob 111 rotates to drive the first When the two switches SW2 are switched once (that is, the second switch SW2 is turned on and then turned off twice), the pulse signal S2' will have 2 pulse waves, and the rest will be analogized. In this way, the user can rotate the knob 111 to generate a positive pulse signal S1 and a negative pulse signal S2 of different numbers of pulse waves.
偵測單元120用以偵測音頻控制裝置100是否耦接一耳機,亦即偵測使用者是否將耳機插入可攜式電子裝置,而據以產生偵測訊號VD。舉例來說,當偵測單元120偵測到音頻控制裝置100未耦接耳機時,偵測單元120產生例如高邏輯準位的偵測訊號VD。當偵測單元120偵測到音頻控制裝置100耦接耳機時,偵測單元120例如產生低邏輯準位的偵測訊號VD。 The detecting unit 120 is configured to detect whether the audio control device 100 is coupled to a headset, that is, to detect whether the user inserts the earphone into the portable electronic device, thereby generating the detection signal VD. For example, when the detecting unit 120 detects that the audio control device 100 is not coupled to the earphone, the detecting unit 120 generates a detection signal VD of, for example, a high logic level. When the detecting unit 120 detects that the audio control device 100 is coupled to the earphone, the detecting unit 120 generates, for example, a low logic level detection signal VD.
進一步來說,偵測單元120包括連接埠121、第三電阻R3、電晶體M1與第四電阻R4。連接埠121適於耦接耳機。第三電阻R3的第一端耦接連接埠121。電晶體M1的閘極端耦接第三電阻R3的第二端,電晶體M1的源極端耦接接地端GND,電晶體M1的汲極端產生偵測訊號VD。第四電阻R4的第一端接收工作電壓VDD,第四電阻R4的第二端耦接電晶體M1的汲極端。 Further, the detecting unit 120 includes a connection port 121, a third resistor R3, a transistor M1 and a fourth resistor R4. The port 121 is adapted to couple to the earphone. The first end of the third resistor R3 is coupled to the connection port 121. The gate terminal of the transistor M1 is coupled to the second terminal of the third resistor R3, the source terminal of the transistor M1 is coupled to the ground terminal GND, and the detection terminal of the transistor M1 generates the detection signal VD. The first end of the fourth resistor R4 receives the operating voltage VDD, and the second end of the fourth resistor R4 is coupled to the 汲 terminal of the transistor M1.
當連接埠121未耦接耳機時,電晶體M1的閘極端會透過第三電阻R3接收低邏輯極準位的訊號,使得電晶體M1不導通。由於電晶體M1不導通,使得偵測訊號VD轉換為高邏輯準位。當連接埠121耦接耳機時,電晶體M1的閘極端會透過第三電阻R3接 收高邏輯準位的訊號,使得電晶體M1導通。由於電晶體M1導通,第四電阻R4的第二端會經由電晶體M1耦接接地端GND,使得偵測訊號VD轉換為低邏輯準位。 When the connection port 121 is not coupled to the earphone, the gate terminal of the transistor M1 receives the signal of the low logic pole level through the third resistor R3, so that the transistor M1 is not turned on. Since the transistor M1 is not turned on, the detection signal VD is converted to a high logic level. When the connection port 121 is coupled to the earphone, the gate terminal of the transistor M1 is connected through the third resistor R3. The signal of the logic level is raised to make the transistor M1 turn on. Since the transistor M1 is turned on, the second end of the fourth resistor R4 is coupled to the ground GND via the transistor M1, so that the detection signal VD is converted to a low logic level.
控制單元130耦接訊號產生單元110與偵測單元120,用以接收正向脈波訊號S1、負向脈波訊號S2與偵測訊號VD,並依據偵測訊號VD,而決定第一音量調整模式或第二音量調整模式,且依據第一音量調整模式與正向脈波訊號S1或第一音量調整模式與負向脈波訊號S2,而產生第一控制訊號CS1,或依據第二音量調整模式與正向脈波訊號S1或第二音量調整模式與負向脈波訊號S2,而產生第二控制訊號CS2,使可攜式電子裝置100依據第一控制訊號CS1與第二控制訊號CS2進行音量調整。 The control unit 130 is coupled to the signal generating unit 110 and the detecting unit 120 for receiving the forward pulse signal S1, the negative pulse signal S2 and the detection signal VD, and determining the first volume adjustment according to the detection signal VD. a mode or a second volume adjustment mode, and generating a first control signal CS1 according to the first volume adjustment mode and the forward pulse signal S1 or the first volume adjustment mode and the negative pulse signal S2, or according to the second volume adjustment The mode and the forward pulse signal S1 or the second volume adjustment mode and the negative pulse signal S2 generate a second control signal CS2, so that the portable electronic device 100 performs the first control signal CS1 and the second control signal CS2. Volume adjustment.
在本實施例中,第一音量調整模式為音量控制裝置100未耦接耳機,而第二音量調整模式為音量控制裝置100耦接耳機。也就是說,當控制單元130接收到高邏輯準位的偵測訊號VD時,控制單元130會切換至第一音量調整模式,以進行音量調整,而當控制單元130接收到低邏輯準位的偵測訊號VD時,控制單元130會切換至第二音量模式,以進行音量調整。另外,控制單元130還會統計正向脈波訊號S1的脈波數量及正向脈波訊號S1的持續時間或負向脈波訊號S2的脈波數量及負向脈波訊號S2的持續時間。 In this embodiment, the first volume adjustment mode is that the volume control device 100 is not coupled to the earphone, and the second volume adjustment mode is that the volume control device 100 is coupled to the earphone. That is, when the control unit 130 receives the detection signal VD of the high logic level, the control unit 130 switches to the first volume adjustment mode to perform volume adjustment, and when the control unit 130 receives the low logic level. When the signal VD is detected, the control unit 130 switches to the second volume mode to perform volume adjustment. In addition, the control unit 130 also counts the number of pulse waves of the forward pulse wave signal S1 and the duration of the forward pulse wave signal S1 or the number of pulse waves of the negative pulse wave signal S2 and the duration of the negative pulse wave signal S2.
接著,控制單元130依據第一音量調整模式與正向脈波訊號S1的脈波數量及正向脈波訊號S1的脈波數量持續時間,或依據 第一音量調整模式、負向脈波訊號S2的脈波數量及負向脈波訊號S2的持續時間,並以查表的方式而對應產生第一控制訊號CS1。或是,控制單元130依據第二音量調整模式與正向脈波訊號S1的脈波數量及正向脈波訊號S1的脈波數量持續時間,或依據第二音量調整模式、負向脈波訊號S2的脈波數量及負向脈波訊號S2的持續時間,並以查表的方式而對應產生第二控制訊號CS2。 Next, the control unit 130 according to the first volume adjustment mode and the pulse wave number of the forward pulse wave signal S1 and the pulse wave number of the forward pulse wave signal S1, or according to The first volume adjustment mode, the number of pulse waves of the negative pulse signal S2, and the duration of the negative pulse signal S2, and correspondingly generate the first control signal CS1 in a manner of looking up the table. Alternatively, the control unit 130 according to the second volume adjustment mode and the pulse wave number of the forward pulse wave signal S1 and the pulse wave number duration of the forward pulse wave signal S1, or according to the second volume adjustment mode and the negative pulse wave signal The number of pulses of S2 and the duration of the negative pulse signal S2, and correspondingly generate a second control signal CS2 in a manner of looking up the table.
進一步來說,控制單元130包括計時器131、計數器132與處理器133。計時器131耦接訊號產生單元110,用以對正向脈波訊號S1與負向脈波訊號S2進行計時,以輸出正向脈波訊號S1的持續時間或負向脈波訊號S2的持續時間。計數器132耦接訊號產生單元110,用以對正向脈波訊號S1或負向脈波訊號S2進行計數,以輸出正向脈波訊號S1的脈波數量或負向脈波訊號S2的脈波數量。 Further, the control unit 130 includes a timer 131, a counter 132, and a processor 133. The timer 131 is coupled to the signal generating unit 110 for timing the forward pulse signal S1 and the negative pulse signal S2 to output the duration of the forward pulse signal S1 or the duration of the negative pulse signal S2. . The counter 132 is coupled to the signal generating unit 110 for counting the forward pulse signal S1 or the negative pulse signal S2 to output the pulse wave of the forward pulse signal S1 or the pulse wave of the negative pulse signal S2. Quantity.
處理器133耦接計時器131、計數器132與偵測單元120,用以接收偵測訊號VD與正向脈波訊號S1的脈波數量及持續時間或負向脈波訊號S2的脈波數量及持續時間。並且,處理器133依據第一音量調整模式、正向脈波訊號S1的脈波數量及正向脈波訊號S1的持續時間,或依據第一音量調整模式、負向脈波訊號S2的脈波數量及負向脈波訊號S2的持續時間,並以查表的方式而對應產生第一控制訊號CS1。 The processor 133 is coupled to the timer 131, the counter 132, and the detecting unit 120 for receiving the number of pulses of the detection signal VD and the forward pulse signal S1 and the duration or the number of pulses of the negative pulse signal S2. duration. Moreover, the processor 133 is configured according to the first volume adjustment mode, the number of pulses of the forward pulse signal S1, and the duration of the forward pulse signal S1, or the pulse according to the first volume adjustment mode and the negative pulse signal S2. The quantity and the duration of the negative pulse signal S2 are correspondingly generated by the look-up table to generate the first control signal CS1.
或是,處理器133依據第二音量調整模式、正向脈波訊號S1的脈波數量及正向脈波訊號S1的持續時間,或依據第二音量調整 模式、負向脈波訊號S2的脈波數量及負向脈波訊號S2的持續時間,並以查表的方式而對應產生第二控制訊號CS2。 Alternatively, the processor 133 adjusts according to the second volume adjustment mode, the number of pulses of the forward pulse signal S1, and the duration of the forward pulse signal S1, or according to the second volume adjustment. The mode, the number of pulse waves of the negative pulse signal S2 and the duration of the negative pulse signal S2, and correspondingly generate the second control signal CS2 in a manner of looking up the table.
在本實施例中,第一音量調整模式的音量調整間距例如大於第二音量調整模式的音量調整間距,並且音量控制裝置100可依據旋鈕111產生不同等級的旋轉速度,而會有相應的音量調整。 In this embodiment, the volume adjustment interval of the first volume adjustment mode is greater than the volume adjustment interval of the second volume adjustment mode, for example, and the volume control device 100 can generate different levels of rotation speed according to the knob 111, and there is a corresponding volume adjustment. .
舉例來說,音量調整裝置100以第一音量調整模式進行音量調整為例,假設正向脈波訊號S1的脈波數量大於20個,且正向脈波訊號S1的持續時間為T,表示旋鈕111的旋轉速度為快速,則處理器133會對應產生大幅度(例如10%)之音量調整的第一控制訊號CS1。假設正向脈波訊號S1的脈波數量為介於10~20個之間,且正向脈波訊號S1的持續時間為T,表示旋鈕111的旋轉速度為中等,則處理器133會對應產生中等幅度(例如2%~9%)之音量調整的第一控制訊號CS1。 For example, the volume adjustment device 100 performs the volume adjustment in the first volume adjustment mode as an example. It is assumed that the number of pulse waves of the forward pulse wave signal S1 is greater than 20, and the duration of the forward pulse wave signal S1 is T, indicating the knob. The rotation speed of 111 is fast, and the processor 133 corresponds to the first control signal CS1 that produces a large (for example, 10%) volume adjustment. Assume that the pulse wave of the forward pulse signal S1 is between 10 and 20, and the duration of the forward pulse signal S1 is T, indicating that the rotation speed of the knob 111 is medium, the processor 133 will generate correspondingly. The first control signal CS1 of the volume adjustment of medium amplitude (for example, 2% to 9%).
假設正向脈波訊號S1的脈波數量為小於10個,且正向脈波訊號S1的持續時間為T,表示旋鈕111的旋轉速度為慢速,則處理器133會對應產生最小幅度(例如1%)之音量調整的第一控制訊號CS1。而反向脈波訊號S2則可參考前述說明類推,故在此不再贅述。 Assuming that the number of pulses of the forward pulse signal S1 is less than 10, and the duration of the forward pulse signal S1 is T, indicating that the rotational speed of the knob 111 is slow, the processor 133 will generate a minimum amplitude (for example, 1%) The first control signal CS1 of the volume adjustment. The reverse pulse signal S2 can be referred to the analogy of the foregoing description, and therefore will not be described here.
另外,音量調整裝置100以第二音量調整模式進行音量調整為例,假設正向脈波訊號S1的脈波數量大於20個,且正向脈波訊號S1的持續時間為T,表示旋鈕111的旋轉速度為快速,則處理器133會對應產生大幅度(例如5%)之音量調整的第二控制訊 號CS2。假設正向脈波訊號S1的脈波數量為介於10~20個之間,且正向脈波訊號S1的持續時間為T,表示旋鈕111的旋轉速度為中等,則處理器133會對應產生中等幅度(例如2%~4%)之音量調整的第二控制訊號CS2。 In addition, the volume adjustment device 100 performs volume adjustment in the second volume adjustment mode as an example, and assumes that the number of pulse waves of the forward pulse wave signal S1 is greater than 20, and the duration of the forward pulse wave signal S1 is T, indicating that the knob 111 is If the rotation speed is fast, the processor 133 will respond to the second control signal that generates a large (for example, 5%) volume adjustment. No. CS2. Assume that the pulse wave of the forward pulse signal S1 is between 10 and 20, and the duration of the forward pulse signal S1 is T, indicating that the rotation speed of the knob 111 is medium, the processor 133 will generate correspondingly. The second control signal CS2 of the medium amplitude (for example, 2% to 4%) volume adjustment.
假設正向脈波訊號S1的脈波數量為小於10個,且正向脈波訊號S1的持續時間為T,表示旋鈕111的旋轉速度為慢速,則處理器133會對應產生最小幅度(例如1%)之音量調整的第二控制訊號CS2。而反向脈波訊號S2則可參考前述說明類推,故在此不再贅述。並且,正向脈波訊號S1作為增加音量的依據,而反向脈波訊號S2作為減少音量的依據。 Assuming that the number of pulses of the forward pulse signal S1 is less than 10, and the duration of the forward pulse signal S1 is T, indicating that the rotational speed of the knob 111 is slow, the processor 133 will generate a minimum amplitude (for example, 1%) The second control signal CS2 of the volume adjustment. The reverse pulse signal S2 can be referred to the analogy of the foregoing description, and therefore will not be described here. Moreover, the forward pulse signal S1 serves as a basis for increasing the volume, and the reverse pulse signal S2 serves as a basis for reducing the volume.
如此一來,本實施例音量控制裝置100可在使用者未將耳機插入可攜式電子裝置時,加快音量調整的速度,並且還可在使用者將耳機插入至可攜式電子裝置使用時,改變音量調整的間距,以避免利用相同的音量調整間距(亦即調整揚聲器或喇叭之音量的調整間距),而容易造成聲音突然很大或突然很小的情況。 In this way, the volume control device 100 of the embodiment can speed up the volume adjustment when the user does not insert the earphone into the portable electronic device, and can also be used when the user inserts the earphone into the portable electronic device. Change the pitch of the volume adjustment to avoid using the same volume adjustment interval (that is, adjust the adjustment pitch of the volume of the speaker or speaker), which is easy to cause the sound to suddenly become large or suddenly small.
由前述實施例的說明,可以歸納出一種音量控制方法。請參考「第2圖」所示,其係為本揭露之音量控制方法的流程圖。在步驟S210中,接收正向脈波訊號或負向脈波訊號,其中正向脈波訊號或負向脈波訊號依據使用者的旋轉操作而產生。在步驟S220中,偵測是否耦接耳機,而據以產生偵測訊號。 From the description of the foregoing embodiment, a volume control method can be summarized. Please refer to "Figure 2" for a flowchart of the volume control method disclosed herein. In step S210, a forward pulse signal or a negative pulse signal is received, wherein the forward pulse signal or the negative pulse signal is generated according to a rotation operation of the user. In step S220, it is detected whether the earphone is coupled to generate a detection signal.
在步驟S230中,依據偵測訊號,而決定第一音量調整模式或第二音量調整模式。在步驟S240中,依據第一音量調整模式與正 向脈波訊號或第一音量調整模式與負向脈波訊號,而產生第一控制訊號,或依據第二音量調整模式與正向脈波訊號或第一音量調整模式與負向脈波訊號,而產生第二控制訊號。在步驟S250中,依據第一控制訊號或第二控制訊號進行音量調整。 In step S230, the first volume adjustment mode or the second volume adjustment mode is determined according to the detection signal. In step S240, according to the first volume adjustment mode and positive Generating a first control signal to the pulse signal or the first volume adjustment mode and the negative pulse signal, or according to the second volume adjustment mode and the forward pulse signal or the first volume adjustment mode and the negative pulse signal, And generating a second control signal. In step S250, the volume adjustment is performed according to the first control signal or the second control signal.
另外,步驟S240進一步包括統計正向脈波訊號的脈波數量及正向脈波訊號的持續時間或負向脈波訊號的脈波數量及負向脈波訊號的持續時間。接著,依據第一音量調整模式、正向脈波訊號的脈波數量及正向脈波訊號的持續時間,或依據第一音量調整模式、負向脈波訊號的脈波數量及負向脈波訊號的持續時間,並以查表的方式而對應產生第一控制訊號;或是依據第二音量調整模式、正向脈波訊號的脈波數量及正向脈波訊號的持續時間,或依據第二音量調整模式、負向脈波訊號的脈波數量及負向脈波訊號的持續時間,並以查表的方式而對應第二控制訊號。 In addition, step S240 further includes counting the number of pulse waves of the forward pulse wave signal and the duration of the forward pulse wave signal or the number of pulse waves of the negative pulse wave signal and the duration of the negative pulse wave signal. Then, according to the first volume adjustment mode, the number of pulse waves of the forward pulse wave signal and the duration of the forward pulse wave signal, or according to the first volume adjustment mode, the number of pulse waves of the negative pulse wave signal, and the negative pulse wave The duration of the signal, and the first control signal is generated in a manner of looking up the table; or according to the second volume adjustment mode, the number of pulses of the forward pulse wave signal, and the duration of the forward pulse wave signal, or according to the The second volume adjustment mode, the number of pulse waves of the negative pulse wave signal, and the duration of the negative pulse wave signal, and corresponding to the second control signal by way of table lookup.
在本實施例中,第一音量調整模式為音量控制裝置未耦接耳機,而第二音量調整模式為音量控制裝置耦接耳機,且第一音量調整模式的音量調整間距大於第二音量調整模式的音量調整間距。 In this embodiment, the first volume adjustment mode is that the volume control device is not coupled to the earphone, and the second volume adjustment mode is that the volume control device is coupled to the earphone, and the volume adjustment interval of the first volume adjustment mode is greater than the second volume adjustment mode. The volume is adjusted to the pitch.
本揭露之實施例的音量控制裝置與方法,其藉由依據使用者旋轉操作而產生的正向脈波訊號(亦即正向脈波訊號的脈波數量及持續時間)或負向脈波訊號(亦即負向脈波訊號的脈波數量及持續時間),以調整音量大小,並進一步判斷是否耦接耳機,以改變音量調整模式及音量調整間距。如此一來,除了可加快音量調 整速度外,還可避免利用相同的音量調整間距,而容易造成聲音突然很大或突然很小的情況。 The volume control device and method of the embodiment of the present disclosure, which generates a forward pulse wave signal (that is, a pulse wave number and duration of a forward pulse wave signal) or a negative pulse wave signal according to a user rotation operation. (ie, the number and duration of the pulse wave of the negative pulse signal) to adjust the volume and further determine whether the earphone is coupled to change the volume adjustment mode and the volume adjustment interval. In this way, in addition to speed up the volume adjustment In addition to the overall speed, it is also possible to avoid using the same volume to adjust the spacing, which is likely to cause a sudden or large sudden sound.
雖然本揭露以前述之實施例揭露如上,然其並非用以限定本揭露,任何熟習相像技藝者,在不脫離本揭露之精神和範圍內,當可作些許之更動與潤飾,因此本揭露之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。 The present disclosure is disclosed in the foregoing embodiments, and is not intended to limit the disclosure. Any subject matter of the present invention can be modified and retouched without departing from the spirit and scope of the disclosure. The scope of patent protection shall be subject to the definition of the scope of the patent application attached to this specification.
100‧‧‧音量控制裝置 100‧‧‧Volume control unit
110‧‧‧訊號產生單元 110‧‧‧Signal generating unit
111‧‧‧旋鈕 111‧‧‧ knob
112‧‧‧反向器 112‧‧‧ reverser
120‧‧‧偵測單元 120‧‧‧Detection unit
121‧‧‧連接埠 121‧‧‧Links
130‧‧‧控制單元 130‧‧‧Control unit
131‧‧‧計時器 131‧‧‧Timer
132‧‧‧計數器 132‧‧‧ counter
133‧‧‧處理器 133‧‧‧ processor
M1‧‧‧電晶體 M1‧‧‧O crystal
R1‧‧‧第一電阻 R1‧‧‧first resistance
R2‧‧‧第二電阻 R2‧‧‧second resistance
R3‧‧‧第三電阻 R3‧‧‧ third resistor
R4‧‧‧第四電阻 R4‧‧‧fourth resistor
SW1‧‧‧第一開關 SW1‧‧‧ first switch
SW2‧‧‧第二開關 SW2‧‧‧second switch
GND‧‧‧接地端 GND‧‧‧ ground terminal
VDD‧‧‧工作電壓 VDD‧‧‧ working voltage
CS1‧‧‧第一控制訊號 CS1‧‧‧First control signal
CS2‧‧‧第二控制訊號 CS2‧‧‧second control signal
VD‧‧‧偵測訊號 VD‧‧‧ detection signal
S1‧‧‧正向脈波訊號 S1‧‧‧ Forward pulse signal
S2‧‧‧負向脈波訊號 S2‧‧‧negative pulse signal
S2’‧‧‧脈波訊號 S2’‧‧‧ pulse signal
第1圖係為本揭露之音量控制裝置的電路示意圖。 Figure 1 is a circuit diagram of the volume control device of the present disclosure.
第2圖係為本揭露之音量控制方法的流程圖。 Figure 2 is a flow chart of the volume control method of the present disclosure.
100‧‧‧音量控制裝置 100‧‧‧Volume control unit
110‧‧‧訊號產生單元 110‧‧‧Signal generating unit
111‧‧‧旋鈕 111‧‧‧ knob
112‧‧‧反向器 112‧‧‧ reverser
120‧‧‧偵測單元 120‧‧‧Detection unit
121‧‧‧連接埠 121‧‧‧Links
130‧‧‧控制單元 130‧‧‧Control unit
131‧‧‧計時器 131‧‧‧Timer
132‧‧‧計數器 132‧‧‧ counter
133‧‧‧處理器 133‧‧‧ processor
M1‧‧‧電晶體 M1‧‧‧O crystal
R1‧‧‧第一電阻 R1‧‧‧first resistance
R2‧‧‧第二電阻 R2‧‧‧second resistance
R3‧‧‧第三電阻 R3‧‧‧ third resistor
R4‧‧‧第四電阻 R4‧‧‧fourth resistor
SW1‧‧‧第一開關 SW1‧‧‧ first switch
SW2‧‧‧第二開關 SW2‧‧‧second switch
GND‧‧‧接地端 GND‧‧‧ ground terminal
VDD‧‧‧工作電壓 VDD‧‧‧ working voltage
CS1‧‧‧第一控制訊號 CS1‧‧‧First control signal
CS2‧‧‧第二控制訊號 CS2‧‧‧second control signal
VD‧‧‧偵測訊號 VD‧‧‧ detection signal
S1‧‧‧正向脈波訊號 S1‧‧‧ Forward pulse signal
S2‧‧‧負向脈波訊號 S2‧‧‧negative pulse signal
S2’‧‧‧脈波訊號 S2’‧‧‧ pulse signal
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101146642A TWI544810B (en) | 2012-12-11 | 2012-12-11 | Volume controlling apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101146642A TWI544810B (en) | 2012-12-11 | 2012-12-11 | Volume controlling apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201424413A TW201424413A (en) | 2014-06-16 |
TWI544810B true TWI544810B (en) | 2016-08-01 |
Family
ID=51394254
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW101146642A TWI544810B (en) | 2012-12-11 | 2012-12-11 | Volume controlling apparatus |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI544810B (en) |
-
2012
- 2012-12-11 TW TW101146642A patent/TWI544810B/en active
Also Published As
Publication number | Publication date |
---|---|
TW201424413A (en) | 2014-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10209824B2 (en) | Mechanism to avoid unintentional user interaction with a convertible mobile device during conversion | |
US9392089B2 (en) | Mobile electronic device and sound playback method thereof | |
TWI554118B (en) | Audio playing device | |
TWI459235B (en) | Method of dynamically adjusting threshold values and related electronic device | |
TWI475814B (en) | To prevent the sound generated by the audio output device | |
US9645588B2 (en) | Vibration suppressing apparatus and vibration suppressing method thereof | |
TWI584656B (en) | Thermal protecting device of speaker | |
US10268443B2 (en) | Earphone status detection method and terminal | |
WO2020020324A1 (en) | Signal transmission method and apparatus, and display apparatus | |
TW201518739A (en) | Impedance detecting device and method | |
TW201431390A (en) | System and method for automatically adjusting volume of an electronic device | |
US8306580B2 (en) | Motion sensor assisted auto-shutdown mechanism in portable audio systems | |
US10425711B2 (en) | Rotating speaker | |
US20120250889A1 (en) | Automatic volume reduction | |
TWI544810B (en) | Volume controlling apparatus | |
TW201222336A (en) | Electronic device and waking-up/unlocking method thereof | |
US8238579B2 (en) | Information processing apparatus | |
US9112469B2 (en) | Volume control device and method thereof | |
US7634071B2 (en) | Auto switch system and method thereof for IP phone and default audio device | |
TW201933063A (en) | Touch display driving circuit, touch computing circuit, touch display device and operation method thereof | |
TW201624915A (en) | Audio output device and control method thereof | |
TW201446013A (en) | Audio device | |
TW201430543A (en) | Protection device, protection method thereof and electronic system thereof | |
TW201328177A (en) | Automatic volume reduction | |
TW201443718A (en) | Touch device and measuring voltage dynamic adjustment method thereof |