TWI466444B - Switching circuit - Google Patents

Switching circuit Download PDF

Info

Publication number
TWI466444B
TWI466444B TW098127055A TW98127055A TWI466444B TW I466444 B TWI466444 B TW I466444B TW 098127055 A TW098127055 A TW 098127055A TW 98127055 A TW98127055 A TW 98127055A TW I466444 B TWI466444 B TW I466444B
Authority
TW
Taiwan
Prior art keywords
resistor
weight signal
comparison module
delay comparison
module
Prior art date
Application number
TW098127055A
Other languages
Chinese (zh)
Other versions
TW201106622A (en
Inventor
Yang Yuan Chen
Ming Chih Hsieh
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW098127055A priority Critical patent/TWI466444B/en
Publication of TW201106622A publication Critical patent/TW201106622A/en
Application granted granted Critical
Publication of TWI466444B publication Critical patent/TWI466444B/en

Links

Description

開關電路Switch circuit

本發明涉及一種開關電路。The invention relates to a switching circuit.

習知的開關電路設計大多只具有單一功能,通俗地講就是一個開關電路只能控制一個功能的開啟或關閉。比如在一個系統中,既有軟體重定又有硬體重定,就需要一個開關電路控制軟體重定的開啟,另一開關電路控制硬體重定的開啟,無法讓一個開關電路既控制軟體重定又控制硬體重定。Most of the conventional switch circuit designs have only a single function. Generally speaking, a switch circuit can only control whether a function is turned on or off. For example, in a system, both soft weight and hard weight setting, a switch circuit is required to control the soft weight setting, and another switching circuit controls the hard weight setting to open, which does not allow a switching circuit to control both the soft weight and the hard control. Weight is fixed.

鑒於前述內容,有必要提供一種開關電路,其既能控制軟體重定又能控制硬體重定。In view of the foregoing, it is necessary to provide a switching circuit that can control both soft weight and hard weight.

一種開關電路,包括一電源輸入端、一第一開關模塊、一第二開關模塊、一第一延遲比較模塊、一第二延遲比較模塊、一軟體重定訊號端、一硬體重定訊號端及一處理模塊,該第一開關模塊包括一按鈕及一PNP型三極體,該電源輸入端透過一第一電阻及該按鈕接地,該電源輸入端還透過一第二電阻及一第三電阻與該第二延遲比較模塊的輸入端及輸出端對應連接,該PNP型三極體基極連接第一電阻與按鈕的節點及軟體重定訊號端,射極連接該電源輸入端,集極連接第一延遲比較模塊的輸入端並透過一第四電阻接地,該第二開關模塊的控制端與該軟體重定訊號端相連,第一端連接第一延遲比較模塊的輸出端,第二端連接該第二電阻與該第二延遲比較模塊的節點,該硬體重定訊號端與該第二延遲比較模塊輸出端相連,該軟體重定訊號端、硬體重定訊號端均與該處理模塊相連,該處理模塊中存儲一預設時間,在該按鈕未按下時,該第一延遲比較模塊輸出高電壓,該軟體重定訊號端、硬體重定訊號端均為高電壓,按鈕按下時,軟體重定訊號端變為低電壓,硬體重定訊號端仍為高電壓,第一延遲比較模塊輸出低電壓,第二開關模塊將第一延遲比較模塊及第二延遲比較模塊斷開,松開鍵按後,第一延遲比較模塊先輸出低電壓後輸出高電壓,軟體重定訊號端變為高電壓,第二開關模塊導通,在鬆開鍵按後經第二延遲比較模塊延遲一時間後該硬體重定訊號端變為低電壓,然後該硬體重定訊號端又變為高電壓,若該按鈕被按下持續的時間達到該處理模塊中存儲的預設時間,該處理模塊控制電腦軟體重定,否則執行硬體重定。A switching circuit includes a power input terminal, a first switch module, a second switch module, a first delay comparison module, a second delay comparison module, a soft weight signal terminal, a hard weight signal terminal, and a a processing module, the first switch module includes a button and a PNP type triode, the power input end is grounded through a first resistor and the button, and the power input end further transmits a second resistor and a third resistor The input end and the output end of the second delay comparison module are connected, the base of the PNP type triode is connected to the node of the first resistor and the button, and the soft weight signal end, the emitter is connected to the power input end, and the first connection of the collector is connected. Comparing the input end of the module and grounding through a fourth resistor, the control end of the second switch module is connected to the soft weight signal end, the first end is connected to the output end of the first delay comparison module, and the second end is connected to the second resistor And the node of the second delay comparison module, the hard weight signal end is connected to the output of the second delay comparison module, and the soft weight signal end and the hard weight signal end are both The processing module is connected, and the processing module stores a preset time. When the button is not pressed, the first delay comparison module outputs a high voltage, and the soft weight signal end and the hard weight signal end are all high voltage, and the button is pressed. When the soft weight is fixed to the low voltage, the hard weight is still high voltage, the first delay comparison module outputs a low voltage, and the second switch module disconnects the first delay comparison module and the second delay comparison module. After the release button is pressed, the first delay comparison module outputs a low voltage and then outputs a high voltage, the soft weight signal terminal becomes a high voltage, and the second switch module is turned on, and is delayed by the second delay comparison module after the release button is pressed. After the hard weight signal is turned to a low voltage, the hard weight signal is turned to a high voltage again. If the button is pressed for a preset time stored in the processing module, the processing module controls the computer. The soft weight is fixed, otherwise the hard weight is determined.

本發明開關電路,每次按下按鈕,都會先在軟體重定訊號端上產生一低電壓,鬆開按鈕後在硬體重定訊號端上產生一由高電壓變低電壓又變為高電壓的訊號,若按下按鈕持續的時間達到該處理模塊設置的設定時間,則執行軟體重定,否則執行硬體重定。前述開關電路設置第一延遲比較模塊用以輸出一先低後高的電壓給該第二延遲比較模塊,第二延遲比較模塊用以保證在鬆開開關後延遲一段時間該硬體重定端的電壓才由高變低,然後再由低變高。前述開關電路透過一個按鈕既可以控制系統軟體重定又可以控制系統硬體重定。The switch circuit of the present invention first generates a low voltage on the soft weight signal terminal every time the button is pressed, and releases a button to generate a signal from a high voltage to a low voltage to a high voltage on the hard weight signal terminal. If the button is pressed for the set time set by the processing module, the soft weight is executed, otherwise the hard weight is executed. The switch circuit is configured to set a first delay comparison module for outputting a first low and then high voltage to the second delay comparison module, and the second delay comparison module is configured to ensure that the hard weight fixed terminal voltage is delayed after a period of time when the switch is released. From high to low, then from low to high. The aforementioned switch circuit can control the soft weight of the system and control the hard weight of the system through a button.

請一併參閱圖1及圖2,本發明開關電路100的較佳實施方式包括一第一開關模塊10、一第一延遲比較模塊20、一第二開關模塊30、一第二延遲比較模塊40、一處理模塊50、一軟體重定訊號端60、一硬體重定訊號端70及一電源輸入端80。Referring to FIG. 1 and FIG. 2 , a preferred embodiment of the switch circuit 100 of the present invention includes a first switch module 10 , a first delay comparison module 20 , a second switch module 30 , and a second delay comparison module 40 . A processing module 50, a soft weight signal terminal 60, a hard weight signal terminal 70 and a power input terminal 80.

該第一開關模塊10包括一PNP型三極體Q1、一開關按鈕P及兩電阻R1、R2,該三極體Q1的射極與該電源輸入端80連接。該三極體Q1的基極透過該電阻R1與該電源輸入端80連接,還透過開關按鈕P接地及直接與該軟體重定訊號端60和該第二開關模塊30的控制端連接。該三極體Q1的集極透過該電阻R2接地,還與該第一延遲比較模塊20的輸入端相連。The first switch module 10 includes a PNP-type triode Q1, a switch button P, and two resistors R1 and R2. The emitter of the triode Q1 is connected to the power input terminal 80. The base of the triode Q1 is connected to the power input terminal 80 through the resistor R1, and is also grounded through the switch button P and directly connected to the soft weight signal terminal 60 and the control terminal of the second switch module 30. The collector of the triode Q1 is grounded through the resistor R2 and is also connected to the input of the first delay comparison module 20.

該第一延遲比較模塊20包括一電阻R3、一電容C1、一雙運算放大器OP1及一參考電源V1,該電阻R3的一端連接在該三極體Q1的集極與該電阻R2之間,該電阻R3的另一端透過該電容C1接地。該雙運算放大器OP1的負輸入端連接在該電阻R3及該電容C1之間,正輸入端與該參考電源V1連接後接地,該雙運算放大器OP1的輸出端透過一電容C2接地,還與該第二開關模塊30相連。其中該電阻R3與該電容C1構成一RC延遲電路,以對該三極體Q1的集極輸出的電壓延遲;該參考電源V1作為該雙運算放大器OP1的參考電源;該電容C2用於過濾該雙運算放大器OP1輸出端輸出的電壓。The first delay comparison module 20 includes a resistor R3, a capacitor C1, a dual operational amplifier OP1, and a reference power supply V1. One end of the resistor R3 is connected between the collector of the triode Q1 and the resistor R2. The other end of the resistor R3 is grounded through the capacitor C1. The negative input terminal of the dual operational amplifier OP1 is connected between the resistor R3 and the capacitor C1. The positive input terminal is connected to the reference power source V1 and grounded. The output terminal of the dual operational amplifier OP1 is grounded through a capacitor C2, and The second switch module 30 is connected. The resistor R3 and the capacitor C1 form an RC delay circuit to delay the voltage of the collector output of the triode Q1; the reference power source V1 serves as a reference power source of the dual operational amplifier OP1; the capacitor C2 is used for filtering The voltage output from the output of the dual op amp OP1.

該第二開關模塊30包括一電阻R4及一NPN型三極體Q2,該三極體Q2的集極(第一端)連接在該雙運算放大器OP1的輸出端與該電容C2之間,基極(控制端)透過該電阻R4與該三極體Q1的基極相連,射極(第二端)透過一電阻R5與該電源輸入端80連接及透過一電容C3接地。其中該電容C3用於過濾該三極體Q2的射極的輸出電壓。該三極體Q2的射極還與該第二延遲比較模塊40輸入端相連。The second switch module 30 includes a resistor R4 and an NPN-type triode Q2. The collector (first end) of the triode Q2 is connected between the output terminal of the dual operational amplifier OP1 and the capacitor C2. The pole (control terminal) is connected to the base of the three-pole body Q1 through the resistor R4, and the emitter (second terminal) is connected to the power input terminal 80 through a resistor R5 and grounded through a capacitor C3. The capacitor C3 is used to filter the output voltage of the emitter of the triode Q2. The emitter of the triode Q2 is also coupled to the input of the second delay comparison module 40.

該第二延遲比較模塊40包括一電阻R6、一電容C4、一雙運算放大器OP2及一參考電源V2,該電阻R6的一端連接在該電阻R5與該三極體Q2的射極之間,該電阻R6的另一端透過該電容C4接地。該雙運算放大器OP2的正輸入端連接在該電阻R6與該電容C4之間,負輸入端與該參考電源V2連接後接地,該雙運算放大器OP2的輸出端透過一電阻R7與該電源輸入端80連接以及透過一電容C5接地,該雙運算放大器OP2的輸出端還直接與該硬體重定訊號端70連接。其中該電阻R6與該電容C4構成一RC延遲電路用於對輸入的電壓進行延遲,該參考電源V2作為該OP2的參考電源,該電容C5用於過濾該雙運算放大器OP2輸出端輸出的電壓。The second delay comparison module 40 includes a resistor R6, a capacitor C4, a dual operational amplifier OP2, and a reference power supply V2. One end of the resistor R6 is connected between the resistor R5 and the emitter of the triode Q2. The other end of the resistor R6 is grounded through the capacitor C4. The positive input terminal of the dual operational amplifier OP2 is connected between the resistor R6 and the capacitor C4, and the negative input terminal is connected to the reference power source V2 and grounded. The output terminal of the dual operational amplifier OP2 is transmitted through a resistor R7 and the power input terminal. The 80 connection and grounding through a capacitor C5, the output of the dual operational amplifier OP2 is also directly connected to the hard weight signal terminal 70. The resistor R6 and the capacitor C4 form an RC delay circuit for delaying the input voltage. The reference power source V2 serves as a reference power source for the OP2, and the capacitor C5 is used to filter the voltage outputted by the output terminal of the dual operational amplifier OP2.

該軟體重定訊號端60及硬體重定訊號端70均與該處理模塊50連接。該處理器50包括一讀取單元52、一判斷單元54、一設定單元56及一執行單元58。該讀取單元52讀取該軟體重定訊號端60及硬體重定訊號端70的電壓,當該判斷單元54判斷該讀取單元52讀取的軟體重定訊號端60及硬體重定訊號端70的電壓均為高電壓時,該執行單元58不會對系統重定。當該判斷單元54讀取的軟體重定訊號端60的電壓為低電壓時,該判斷單元54會繼續判斷該低電壓持續的時間是否達到該設定單元56設定的預設時間,若達到預設時間該執行單元58對系統軟體重定,並且判斷單元54不會再理會該硬體重定訊號端70的電壓;若軟體重定訊號端60的低電壓持續時間沒有達到預設時間,該該判斷單元54判斷該硬體重定訊號端70的電壓是否有一個由高電壓變成低電壓然後再變成高電壓的過程,若有前述過程,該執行單元58則對系統進行硬體重定。The soft weight signal terminal 60 and the hard weight signal terminal 70 are both connected to the processing module 50. The processor 50 includes a reading unit 52, a determining unit 54, a setting unit 56, and an executing unit 58. The reading unit 52 reads the voltage of the soft weight signal terminal 60 and the hard weight signal terminal 70. When the determining unit 54 determines the soft weight signal terminal 60 and the hard weight signal terminal 70 read by the reading unit 52, When the voltages are all high voltages, the execution unit 58 does not reset the system. When the voltage of the soft weight signal terminal 60 read by the determining unit 54 is a low voltage, the determining unit 54 continues to determine whether the low voltage duration has reached the preset time set by the setting unit 56, if the preset time is reached. The execution unit 58 determines the soft weight of the system, and the determining unit 54 does not care about the voltage of the hard weight signal terminal 70; if the low voltage duration of the soft weight signal terminal 60 does not reach the preset time, the determining unit 54 determines The voltage of the hard weight signal terminal 70 has a process of changing from a high voltage to a low voltage and then to a high voltage. If the foregoing process is performed, the execution unit 58 hard-weights the system.

下面將介紹該開關電路100的具體工作過程。The specific operation of the switch circuit 100 will be described below.

沒有按壓按鈕P時,該三極體Q1不導通,該三極體Q1的基極電壓為高電壓,該軟體重定訊號端60為高電壓,該三極體Q2導通。由於該三極體Q1不導通,其集極輸出電壓為0,故該雙運算放大器OP1負輸入端電壓為0,而該雙運算放大器OP1正輸入端電壓為V1,所以該雙運算放大器OP1輸出端輸出高電壓至該三極體Q2的集極,由於此時該三極體Q2導通,因此該三極體Q2將該雙運算放大器的輸出端輸出的高電壓傳輸給該第二延遲比較模塊40,該雙運算放大器OP2的正輸入端的電壓為高電壓。由於該雙運算放大器OP2的負輸入端的電壓為該參考電源V2的電壓,且該參考電源V2的電壓值要小於該高電壓,故該雙運算放大器OP2輸出高電壓,即該硬體重定訊號端70的電壓為高電壓。此時,該處理模塊50的讀取單元52讀取的該軟體重定訊號端60及硬體重定訊號端70的電壓均為高電壓,該處理模塊50不會對系統進行重定。When the button P is not pressed, the triode Q1 is not turned on, the base voltage of the triode Q1 is a high voltage, the soft weight signal terminal 60 is at a high voltage, and the triode Q2 is turned on. Since the triode Q1 is non-conducting, its collector output voltage is 0, so the negative input terminal voltage of the dual operational amplifier OP1 is 0, and the positive input terminal voltage of the dual operational amplifier OP1 is V1, so the dual operational amplifier OP1 output The terminal outputs a high voltage to the collector of the triode Q2. Since the triode Q2 is turned on at this time, the triode Q2 transmits the high voltage outputted from the output terminal of the dual operational amplifier to the second delay comparison module. 40. The voltage at the positive input terminal of the dual operational amplifier OP2 is a high voltage. Since the voltage of the negative input terminal of the dual operational amplifier OP2 is the voltage of the reference power supply V2, and the voltage value of the reference power supply V2 is smaller than the high voltage, the dual operational amplifier OP2 outputs a high voltage, that is, the hard weight signal end The voltage of 70 is a high voltage. At this time, the voltages of the soft weight signal end 60 and the hard weight signal end 70 read by the reading unit 52 of the processing module 50 are both high voltages, and the processing module 50 does not reset the system.

按下該按鈕P時,該三極體Q1導通,該三極體Q1的基極電壓瞬間由高電壓變成低電壓,該軟體重定訊號端60的電壓瞬間由高電壓變為低電壓,而鬆開按鈕P後該三極體Q1不導通,該軟體重定訊號端60的電壓瞬間由低電壓變為高電壓。即按下按鈕P時,該處理模塊50的讀取單元52讀取的軟體重定訊號端60的電壓為低電壓。在鬆開按鈕P後,該軟體重定訊號端60的電壓為高電壓。所以該軟體重定訊號端60的低電壓持續時間為按壓按鈕P的時間,將這段時間記為T1。若按壓按鈕P的時間T1達到該設定單元56的設定時間,該處理模塊50對系統軟體重定,並不理會該硬體重定訊號端70的電壓。若按壓按鈕P的時間T1沒有達到該設定單元54設定的時間,該處理模塊50會根該硬體重定訊號端70的電壓控制系統。When the button P is pressed, the triode Q1 is turned on, the base voltage of the triode Q1 instantaneously changes from a high voltage to a low voltage, and the voltage of the soft weight signal terminal 60 instantaneously changes from a high voltage to a low voltage. After the button P is turned on, the triode Q1 is not turned on, and the voltage of the soft weight signal terminal 60 is instantaneously changed from a low voltage to a high voltage. That is, when the button P is pressed, the voltage of the soft weight signal terminal 60 read by the reading unit 52 of the processing module 50 is a low voltage. After the button P is released, the voltage of the soft weight signal terminal 60 is a high voltage. Therefore, the low voltage duration of the soft weight signal terminal 60 is the time when the button P is pressed, and this period is recorded as T1. If the time T1 of pressing the button P reaches the set time of the setting unit 56, the processing module 50 determines the soft weight of the system and ignores the voltage of the hard weight signal terminal 70. If the time T1 of pressing the button P does not reach the time set by the setting unit 54, the processing module 50 will control the voltage control system of the hard weight signal terminal 70.

在按下該按鈕P時,由於該三極體Q1導通,該三極體Q1的集極輸出高電壓,基極輸出低電壓,該電容C1及電阻R3構成RC延遲電路,使得該雙運算放大器OP1的負輸入端的電壓會經過一段時間的延遲後高於該雙運算放大器OP1正輸入端的參考電源V1的電壓,即該雙運算放大器OP1的輸出端會經過一段時間延遲後才會由高變成低電壓。該三極體Q2不導通,該三極體Q2不會將該雙運算放大器OP1輸出端輸出的低電壓傳輸給該第二延遲比較模塊40。此時,該雙運算放大器OP2的正輸入端電壓直接接收電源輸入端80提供的高電壓,使正輸入端的電壓仍高於該負輸入端的參考電源V2的電壓,該雙運算放大器OP2繼續輸出高電壓,即該硬體重定訊號端70仍為高電壓。即該處理模塊50的讀取單元52在按下該按鈕P的時間T1內讀取的硬體重定訊號端70的電壓仍為高電壓,該處理模塊50不會對系統進行硬體重設。When the button P is pressed, since the triode Q1 is turned on, the collector of the triode Q1 outputs a high voltage, the base outputs a low voltage, and the capacitor C1 and the resistor R3 constitute an RC delay circuit, so that the dual operational amplifier The voltage at the negative input terminal of OP1 is higher than the voltage of the reference power supply V1 at the positive input terminal of the dual operational amplifier OP1 after a period of delay, that is, the output of the dual operational amplifier OP1 will be changed from high to low after a delay. Voltage. The triode Q2 is non-conducting, and the triode Q2 does not transmit the low voltage outputted from the output of the dual operational amplifier OP1 to the second delay comparison module 40. At this time, the positive input terminal voltage of the dual operational amplifier OP2 directly receives the high voltage supplied from the power input terminal 80, so that the voltage of the positive input terminal is still higher than the voltage of the reference power supply V2 of the negative input terminal, and the dual operational amplifier OP2 continues to output high. The voltage, that is, the hard weight signal terminal 70 is still at a high voltage. That is, the voltage of the hard weight signal terminal 70 read by the reading unit 52 of the processing module 50 during the time T1 when the button P is pressed is still a high voltage, and the processing module 50 does not perform hard weight setting on the system.

鬆開按鈕P後,該三極體Q2導通,由於該電容C1電阻R3構成延遲電路,使得該雙運算放大器OP1的輸出端會繼續輸出一段時間的低電壓後持續輸出高電壓。該三極體Q2將該雙運算放大器OP1輸出端輸出的電壓傳輸給該第二延遲比較模塊40,該第二延遲比較模塊40先會接收一段時間的低電壓後持續收到高電壓。由於電容C4電阻R6構成延遲電路,使得該雙運算放大器OP2的正輸入端電壓會經過一段時間的延遲後低於負輸入端的參考電源V2的電壓,這段時間記為T2,該雙運算放大器OP2的輸出端電壓延遲T2後由高電壓變成低電壓。然後電容C4再經過充電,使得該雙運算放大器OP2的正輸入端電壓高於負輸入端的參考電源V2的電壓,該雙運算放大器OP2的輸出端電壓由低電壓變成高電壓。所以鬆開按鈕P後,該雙運算放大器的輸出端電壓延遲T2後,由高電壓變成低電壓,再由低電壓變成高電壓。After the button P is released, the triode Q2 is turned on, and since the capacitor C1 resistor R3 constitutes a delay circuit, the output terminal of the dual operational amplifier OP1 continues to output a low voltage for a period of time and continues to output a high voltage. The triode Q2 transmits the voltage outputted from the output terminal of the dual operational amplifier OP1 to the second delay comparison module 40. The second delay comparison module 40 first receives a low voltage for a period of time and continuously receives the high voltage. Since the capacitor C4 resistor R6 constitutes a delay circuit, the voltage of the positive input terminal of the dual operational amplifier OP2 is delayed by a period of time and lower than the voltage of the reference power source V2 of the negative input terminal. This period is recorded as T2, and the dual operational amplifier OP2 The output voltage is delayed from high voltage to low voltage after T2. Then, the capacitor C4 is charged again, so that the voltage of the positive input terminal of the dual operational amplifier OP2 is higher than the voltage of the reference power supply V2 of the negative input terminal, and the output voltage of the dual operational amplifier OP2 is changed from a low voltage to a high voltage. Therefore, after the button P is released, the output voltage of the dual operational amplifier is delayed by T2, and then the high voltage becomes a low voltage, and then the low voltage becomes a high voltage.

請參考圖3a,其為軟體重定訊號端60的電壓仿真波形圖。在0.1s時按下按鈕P且在0.6s時鬆開按鈕P,該時間段即為T1。在按鈕P沒有被按下之前,即0.1s之前,該軟體重定訊號端60的電壓為高電壓。當按鈕P被按下至鬆開之間,即0.1s-0.6s之間,該軟體重定訊號端60的電壓為低電壓。在按鈕P鬆開時,即0.6s時,該軟體重定訊號端60的電壓瞬間變成高電壓。Please refer to FIG. 3a, which is a voltage simulation waveform diagram of the soft weight signal terminal 60. Press button P at 0.1 s and release button P at 0.6 s, which is T1. The voltage of the soft weight signal terminal 60 is a high voltage before the button P is pressed, that is, 0.1 s. When the button P is pressed to release between 0.1s and 0.6s, the voltage of the soft weight signal terminal 60 is a low voltage. When the button P is released, that is, 0.6 s, the voltage of the soft weight signal terminal 60 instantaneously becomes a high voltage.

請參照圖3b,其為硬體重定訊號端70的電壓仿真波形圖。在T1這段時間內,該硬體重定訊號端70的電壓一直為高電壓,鬆開按鈕P後,經過一小段時間(對比圖3a與圖3b這段時間即為T2)的延遲之後,該硬體重定訊號端70的電壓變為低電壓,該低電壓持續大概在0.1秒左右後變為高電壓。Please refer to FIG. 3b, which is a voltage simulation waveform diagram of the hard weight signal terminal 70. During the period of T1, the voltage of the hard weight signal terminal 70 is always a high voltage, and after the button P is released, after a short period of time (compared with the time T2 in FIG. 3a and FIG. 3b), the The voltage of the hard weight signal terminal 70 becomes a low voltage, which becomes a high voltage after about 0.1 second.

由於該硬體重定訊號端70的電壓由高變低經過T2時間段的延遲,所以該硬體重定訊號端70的電壓的下降沿不會與該軟體重定訊號端60的電壓的上升沿重合,這樣可以避免該處理模塊50因讀取的電壓重疊而不能正常工作。Since the voltage of the hard weight signal terminal 70 is delayed from high to low over the T2 period, the falling edge of the voltage of the hard weight signal terminal 70 does not coincide with the rising edge of the voltage of the soft weight signal terminal 60. This can prevent the processing module 50 from working properly due to the overlap of the read voltages.

前述開關電路100,每次按下按鈕P,都會先在軟體重定訊號端60上產生一低電壓,後在硬體重定訊號端70上產生一由高電壓變低電壓又變為高電壓的訊號,若按下按鈕P持續的時間達到該處理模塊50設置的設定時間,則執行軟體重定,否則執行硬體重定。前述開關電路100設置第一延遲比較模塊20用以輸出一先低後高的電壓給該第二延遲比較模塊40,第二延遲比較模塊40用以保證在鬆開開關後延遲一段時間T2該硬體重定端的電壓才由高變低,然後再由低變高。前述開關電路100透過一個按鈕P既可以控制系統軟體重定又可以控制系統硬體重定。The switch circuit 100 generates a low voltage on the soft weight signal terminal 60 every time the button P is pressed, and then generates a signal from the high voltage to the low voltage to the high voltage on the hard weight signal terminal 70. If the button P is pressed for the set time of the processing module 50 to be set, the soft weight setting is performed, otherwise the hard weight setting is performed. The first delay comparison module 20 is configured to output a first low-to-high voltage to the second delay comparison module 40. The second delay comparison module 40 is configured to ensure that the hardware is delayed for a period of time T2 after the switch is released. The voltage at the fixed end is changed from high to low, and then from low to high. The aforementioned switch circuit 100 can control the soft weight of the system and control the hard weight of the system through a button P.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,舉凡熟悉本案技藝之人士,在爰依本發明精神所作之等效修飾或變化,皆應涵蓋於以下之如申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art will be included in the following claims.

10‧‧‧第一開關模塊
20‧‧‧第一延遲比較模塊
30‧‧‧第二開關模塊
40‧‧‧第二延遲比較模塊
50‧‧‧處理模塊
52‧‧‧讀取單元
54‧‧‧判斷單元
56‧‧‧設定單元
58‧‧‧執行單元
60‧‧‧軟體重定訊號端
70‧‧‧硬體重定訊號端
80‧‧‧電源輸入端
100‧‧‧開關電路
Q1‧‧‧PNP型三極體
Q2‧‧‧NPN型三極體
P‧‧‧開關按鈕
OP1、OP2‧‧‧雙運算放大器
V1、V2‧‧‧參考電源
R1、R2、R3、R4、R5、R6、R7‧‧‧電阻
C1、C2、C3、C4、C5‧‧‧電容
10‧‧‧First switch module
20‧‧‧First Delay Comparison Module
30‧‧‧Second switch module
40‧‧‧Second Delay Comparison Module
50‧‧‧Processing module
52‧‧‧Reading unit
54‧‧‧judging unit
56‧‧‧Setting unit
58‧‧‧Execution unit
60‧‧‧ soft weight fixed signal end
70‧‧‧ Hard weight signal
80‧‧‧Power input
100‧‧‧Switch circuit
Q1‧‧‧PNP type triode
Q2‧‧‧NPN type triode
P‧‧‧ switch button
OP1, OP2‧‧‧ dual operational amplifier
V1, V2‧‧‧ reference power supply
R1, R2, R3, R4, R5, R6, R7‧‧‧ resistance
C1, C2, C3, C4, C5‧‧‧ capacitors

圖1為本發明開關電路的較佳實施方式的電路圖。1 is a circuit diagram of a preferred embodiment of a switching circuit of the present invention.

圖2為處理模塊的方塊圖。2 is a block diagram of a processing module.

圖3a為本發明開關電路的軟體重定訊號端的電壓仿真波形圖。FIG. 3a is a voltage simulation waveform diagram of the soft body weight signal end of the switch circuit of the present invention.

圖3b為本發明開關電路的硬體重定訊號端的電壓仿真波形圖。FIG. 3b is a voltage simulation waveform diagram of the hard weight fixed signal end of the switch circuit of the present invention.

10‧‧‧第一開關模塊 10‧‧‧First switch module

20‧‧‧第一延遲比較模塊 20‧‧‧First Delay Comparison Module

30‧‧‧第二開關模塊 30‧‧‧Second switch module

40‧‧‧第二延遲比較模塊 40‧‧‧Second Delay Comparison Module

50‧‧‧處理模塊 50‧‧‧Processing module

60‧‧‧軟體重定訊號端 60‧‧‧ soft weight fixed signal end

70‧‧‧硬體重定訊號端 70‧‧‧ Hard weight signal

80‧‧‧電源輸入端 80‧‧‧Power input

100‧‧‧開關電路 100‧‧‧Switch circuit

Q1‧‧‧PNP型三極體 Q1‧‧‧PNP type triode

Q2‧‧‧NPN型三極體 Q2‧‧‧NPN type triode

P‧‧‧開關按鈕 P‧‧‧ switch button

OP1、OP2‧‧‧雙運算放大器 OP1, OP2‧‧‧ dual operational amplifier

V1、V2‧‧‧參考電源 V1, V2‧‧‧ reference power supply

R1、R2、R3、R4、R5、R6、R7‧‧‧電阻 R1, R2, R3, R4, R5, R6, R7‧‧‧ resistance

C1、C2、C3、C4、C5‧‧‧電容 C1, C2, C3, C4, C5‧‧‧ capacitors

Claims (8)

一種開關電路,包括一電源輸入端、一第一開關模塊、一第二開關模塊、一第一延遲比較模塊、一第二延遲比較模塊、一軟體重定訊號端、一硬體重定訊號端及一處理模塊,該第一開關模塊包括一按鈕及一PNP型三極體,該電源輸入端透過一第一電阻及該按鈕接地,該電源輸入端還透過一第二電阻及一第三電阻與該第二延遲比較模塊的輸入端及輸出端對應連接,該PNP型三極體基極連接第一電阻與按鈕的節點及軟體重定訊號端,射極連接該電源輸入端,集極連接第一延遲比較模塊的輸入端並透過一第四電阻接地,該第二開關模塊的控制端與該軟體重定訊號端相連,第一端連接第一延遲比較模塊的輸出端,第二端連接該第二電阻與該第二延遲比較模塊的節點,該硬體重定訊號端與該第二延遲比較模塊輸出端相連,該軟體重定訊號端、硬體重定訊號端均與該處理模塊相連,該處理模塊中存儲一預設時間,在該按鈕未按下時,該第一延遲比較模塊輸出高電壓,該軟體重定訊號端、硬體重定訊號端均為高電壓,按鈕按下時,軟體重定訊號端變為低電壓,硬體重定訊號端仍為高電壓,第一延遲比較模塊輸出低電壓,第二開關模塊將第一延遲比較模塊及第二延遲比較模塊斷開,松開鍵按後,第一延遲比較模塊先輸出低電壓後輸出高電壓,軟體重定訊號端變為高電壓,第二開關模塊導通,在鬆開鍵按後經第二延遲比較模塊延遲一時間後該硬體重定訊號端變為低電壓,然後該硬體重定訊號端又變為高電壓,若該按鈕被按下持續的時間達到該處理模塊中存儲的預設時間,該處理模塊控制電腦軟體重定,否則執行硬體重定。A switching circuit includes a power input terminal, a first switch module, a second switch module, a first delay comparison module, a second delay comparison module, a soft weight signal terminal, a hard weight signal terminal, and a a processing module, the first switch module includes a button and a PNP type triode, the power input end is grounded through a first resistor and the button, and the power input end further transmits a second resistor and a third resistor The input end and the output end of the second delay comparison module are connected, the base of the PNP type triode is connected to the node of the first resistor and the button, and the soft weight signal end, the emitter is connected to the power input end, and the first connection of the collector is connected. Comparing the input end of the module and grounding through a fourth resistor, the control end of the second switch module is connected to the soft weight signal end, the first end is connected to the output end of the first delay comparison module, and the second end is connected to the second resistor And the node of the second delay comparison module, the hard weight signal end is connected to the output of the second delay comparison module, and the soft weight signal end and the hard weight signal end are both The processing module is connected, and the processing module stores a preset time. When the button is not pressed, the first delay comparison module outputs a high voltage, and the soft weight signal end and the hard weight signal end are all high voltage, and the button is pressed. When the soft weight is fixed to the low voltage, the hard weight is still high voltage, the first delay comparison module outputs a low voltage, and the second switch module disconnects the first delay comparison module and the second delay comparison module. After the release button is pressed, the first delay comparison module outputs a low voltage and then outputs a high voltage, the soft weight signal terminal becomes a high voltage, and the second switch module is turned on, and is delayed by the second delay comparison module after the release button is pressed. After the hard weight signal is turned to a low voltage, the hard weight signal is turned to a high voltage again. If the button is pressed for a preset time stored in the processing module, the processing module controls the computer. The soft weight is fixed, otherwise the hard weight is determined. 如申請專利範圍第1項所述之開關電路,其中該處理模塊包括一讀取單元,一設定單元、一判斷單元及一執行單元,該讀取單元讀取該軟體重定訊號端及硬體重定訊號端的電壓,該設定單元設定該預設時間,該判斷單元判斷該軟體重定訊號端及硬體重定訊號端的電壓,該執行單元根據該判斷單元判斷的結果對系統進行操作。The switching circuit of claim 1, wherein the processing module comprises a reading unit, a setting unit, a determining unit and an executing unit, wherein the reading unit reads the soft weight signal end and the hard weight setting The voltage at the signal end, the setting unit sets the preset time, the determining unit determines the voltage of the soft weight signal end and the hard weight signal end, and the execution unit operates the system according to the result of the determination by the determining unit. 如申請專利範圍第1項所述之開關電路,其中該第一延遲比較模塊包括一電阻、一電容、一雙運算放大器及一參考電源,該電阻一端與該PNP型三極體的射極連接,另一端透過該電容接地,該雙運算放大器的負輸入端連接該電阻與該電容的節點,該雙運算放大器的正輸入端透過該參考電源接地。The switch circuit of claim 1, wherein the first delay comparison module comprises a resistor, a capacitor, a dual operational amplifier and a reference power supply, and one end of the resistor is connected to the emitter of the PNP type triode. The other end is grounded through the capacitor. The negative input terminal of the dual operational amplifier is connected to the resistor and the node of the capacitor. The positive input terminal of the dual operational amplifier is grounded through the reference power supply. 如申請專利範圍第1項所述之開關電路,其中該第二開關模塊包括一NPN型三極體及一電阻,該NPN型三極體的基極透過該電阻與該PNP型三極體的基極連接,該三極體的集極與該第一延遲比較模塊的輸出端連接,該三極體的射極連接該第二延遲比較模塊的輸入端與該第二電阻的節點。The switching circuit of claim 1, wherein the second switching module comprises an NPN-type triode and a resistor, and a base of the NPN-type triode is transmitted through the resistor and the PNP-type triode. The base is connected, and the collector of the triode is connected to the output of the first delay comparison module, and the emitter of the triode is connected to the input end of the second delay comparison module and the node of the second resistor. 如申請專利範圍第4項所述之開關電路,其中該NPN型三極體的集極還透過一電容接地。The switching circuit of claim 4, wherein the collector of the NPN type triode is also grounded through a capacitor. 如申請專利範圍第4項所述之開關電路,其中該NPN三極體射極透過一電容接地。The switching circuit of claim 4, wherein the NPN triode emitter is grounded through a capacitor. 如申請專利範圍第1項所述之開關電路,其中該第二延遲比較模塊包括一電容、一電阻、一雙運算放大器及一參考電源,該電阻的一端作為該第二延遲比較模塊的輸入端,另一端透過該電容接地,該該雙運算放大器的正輸入端連接該電阻與該電容的節點,該雙運算放大器的負輸入端連接該參考電源後接地,該雙運算放大器的輸出端作為該第二延遲比較模塊的輸出端。The switch circuit of claim 1, wherein the second delay comparison module comprises a capacitor, a resistor, a dual operational amplifier and a reference power supply, and one end of the resistor serves as an input end of the second delay comparison module. The other end is grounded through the capacitor. The positive input terminal of the dual operational amplifier is connected to the node of the resistor and the capacitor. The negative input terminal of the dual operational amplifier is connected to the reference power supply and grounded. The output of the dual operational amplifier serves as the The second delay compares the output of the module. 如申請專利範圍第7項所述之開關電路,其中該雙運算放大器的輸出端還透過一電容接地。The switching circuit of claim 7, wherein the output of the dual operational amplifier is also grounded through a capacitor.
TW098127055A 2009-08-12 2009-08-12 Switching circuit TWI466444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098127055A TWI466444B (en) 2009-08-12 2009-08-12 Switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098127055A TWI466444B (en) 2009-08-12 2009-08-12 Switching circuit

Publications (2)

Publication Number Publication Date
TW201106622A TW201106622A (en) 2011-02-16
TWI466444B true TWI466444B (en) 2014-12-21

Family

ID=44814401

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098127055A TWI466444B (en) 2009-08-12 2009-08-12 Switching circuit

Country Status (1)

Country Link
TW (1) TWI466444B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI624772B (en) * 2016-04-15 2018-05-21 技嘉科技股份有限公司 Input device and control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6777660B1 (en) * 2002-02-04 2004-08-17 Smal Technologies CMOS active pixel with reset noise reduction
US6833741B2 (en) * 2002-07-09 2004-12-21 Hynix Semiconductor Inc. Circuit for controlling an initializing circuit in a semiconductor device
CN101188412A (en) * 2006-11-20 2008-05-28 冲电气工业株式会社 Power-on reset circuit
CN101287145A (en) * 2007-04-11 2008-10-15 厦门桑荣科技有限公司 Virtual lookout device of wireless communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6777660B1 (en) * 2002-02-04 2004-08-17 Smal Technologies CMOS active pixel with reset noise reduction
US6833741B2 (en) * 2002-07-09 2004-12-21 Hynix Semiconductor Inc. Circuit for controlling an initializing circuit in a semiconductor device
CN101188412A (en) * 2006-11-20 2008-05-28 冲电气工业株式会社 Power-on reset circuit
CN101287145A (en) * 2007-04-11 2008-10-15 厦门桑荣科技有限公司 Virtual lookout device of wireless communication

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI624772B (en) * 2016-04-15 2018-05-21 技嘉科技股份有限公司 Input device and control method thereof

Also Published As

Publication number Publication date
TW201106622A (en) 2011-02-16

Similar Documents

Publication Publication Date Title
US8095714B2 (en) Electronic device capable of automatically switching between a master mode and a slave mode
TWI468920B (en) Electronic device with power consumption detection function
US20070260865A1 (en) Boot control apparatus and method
JP2013117954A (en) Control circuit for power activation of electronic device
TW201405300A (en) Circuit for controlling computers
TWI466444B (en) Switching circuit
TW201435561A (en) Electronic device
US8013658B2 (en) Circuit for controlling time sequence
US9374079B2 (en) Level jump reset IC design circuit
CN100592626C (en) Surge current suppressing circuit and audio product using the same
TW201347373A (en) Processing circuit for providing dummy load
TWI594609B (en) Receiver control circuit and portable electronic device having same
TWI447572B (en) Power supply protection circuit for hdd
US7944254B2 (en) Switching circuit
KR102342388B1 (en) Beam projector integrated docking speaker
TWI407298B (en) Resetting circuit of network accessing device
JPS6122345Y2 (en)
CN205283791U (en) Stereo set switching on and shutting down automatic protection circuit
JP5471914B2 (en) Pulse generation circuit and mute device
JP3440482B2 (en) Switching circuit
JP4481425B2 (en) Sequence device
CN205545881U (en) Audio equipment falls electric denoising circuit and player
TW201439711A (en) Time sequence circuit for power supply
JP3172458B2 (en) transceiver
TWI565234B (en) Noise filter circuit

Legal Events

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