TW201511471A - Switching circuit and electronic device - Google Patents

Switching circuit and electronic device Download PDF

Info

Publication number
TW201511471A
TW201511471A TW102132628A TW102132628A TW201511471A TW 201511471 A TW201511471 A TW 201511471A TW 102132628 A TW102132628 A TW 102132628A TW 102132628 A TW102132628 A TW 102132628A TW 201511471 A TW201511471 A TW 201511471A
Authority
TW
Taiwan
Prior art keywords
resistors
switch
electrically connected
voltage
resistance
Prior art date
Application number
TW102132628A
Other languages
Chinese (zh)
Inventor
Zong-Ying Shen
Original Assignee
Wistron 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 Wistron Corp filed Critical Wistron Corp
Priority to TW102132628A priority Critical patent/TW201511471A/en
Priority to CN201310444671.2A priority patent/CN104426520A/en
Publication of TW201511471A publication Critical patent/TW201511471A/en

Links

Abstract

A switching circuit includes a voltage source, a detection node, a resistor sequence, electrically connected between the voltage source and a grounded terminal and comprising a plurality of resistors of a same resistance in series, at least one first type switch each having a first terminal electrically connected between any two of adjacent resistors and a second terminal electrically connected to the detection node for conducting a connection between the first terminal and the second terminal when a force is applied, and an input resistor, one terminal electrically connected between the voltage source and the resistor sequence and another terminal electrically connected to the detection node, wherein a resistance of the input resistor is greater than that of the resistors.

Description

開關電路及電子裝置 Switch circuit and electronic device

本發明係指一種開關電路及電子裝置,尤指一種可均勻分配開關所對應之電壓、避免判斷誤差、提升電阻公差容忍度及電路測試效率,並具有設計彈性之開關電路及電子裝置。 The invention relates to a switch circuit and an electronic device, in particular to a switch circuit and an electronic device capable of evenly distributing the voltage corresponding to the switch, avoiding the judgment error, improving the tolerance tolerance of the resistance and the circuit test efficiency, and having the design flexibility.

開關電路可透過導通不同開關元件而輸出多種電壓值,而可成為轉換實體操作至電路訊號之介面,因而廣泛應用於電子裝置中。舉例來說,電視機上的按鍵或是其遙控器的按鍵即透過開關電路而能將使用者按壓按鍵的行為轉換為電路訊號,並透過後續之運作電路,而實現使用者調整音量或轉換頻道之目的。 The switching circuit can output various voltage values by turning on different switching elements, and can be used as an interface for converting physical operations to circuit signals, and thus is widely used in electronic devices. For example, the button on the television or the button of the remote controller can convert the behavior of the user to press the button into a circuit signal through the switch circuit, and realize the user to adjust the volume or convert the channel through the subsequent operation circuit. The purpose.

舉例來說,請參考第1圖,第1圖為習知一開關電路10之示意圖。開關電路10包含有一類比數位轉換器100(Analog-to-Digital Converter,ADC)、電阻102、104、106、108及開關110、112、114。開關110、112、114分別連接於電阻104、106、108與接地端GND間,其可受外力按壓而導通電阻104、106、108至地的電流路徑。類比數位轉換器100則連接於電阻102、104、106、108間之一節點ND_1,用來將節點ND_1之類比電壓值轉換為數位訊號,以判斷開關110、112、114之開啟或關閉。 For example, please refer to FIG. 1 , which is a schematic diagram of a conventional switch circuit 10 . The switching circuit 10 includes an analog-to-digital converter (ADC), resistors 102, 104, 106, 108 and switches 110, 112, 114. The switches 110, 112, 114 are respectively connected between the resistors 104, 106, 108 and the ground GND, which can be pressed by an external force to turn on the current paths of the resistors 104, 106, 108 to ground. The analog-to-digital converter 100 is connected to a node ND_1 between the resistors 102, 104, 106, 108 for converting the analog voltage value of the node ND_1 into a digital signal to determine whether the switches 110, 112, 114 are turned on or off.

詳細來說,假設電阻102、104、106、108之電阻值分別r1、r2、r3、r4,當開關110、112、114未被按壓時,電阻104、106、108至接地端GND為斷路,故節點ND_1之電壓等於電壓源101之電壓VDD1。接著,若開關110被按下,則電阻104至接地端GND之電流路徑導通,因此節點ND_1 之電壓等於;依此類推,當開關112、114分別被按下時,節點 ND_1之電壓將分別等於。換言之,開關110、112、 114分別被按下時,節點ND_1之電壓將呈一比例,即。 在此情形下,為了明確區別開關110、112、114之按壓情形,電阻102、104、106、108之電阻值r1、r2、r3、r4需為相異值,例如分別為1k、2k、4k、6k歐姆。 In detail, it is assumed that the resistance values of the resistors 102, 104, 106, and 108 are r1, r2, r3, and r4, respectively. When the switches 110, 112, and 114 are not pressed, the resistors 104, 106, and 108 are disconnected from the ground GND. Therefore, the voltage of the node ND_1 is equal to the voltage VDD1 of the voltage source 101. Then, if the switch 110 is pressed, the current path of the resistor 104 to the ground GND is turned on, so the voltage of the node ND_1 is equal to And so on, when the switches 112, 114 are respectively pressed, the voltage of the node ND_1 will be equal to and . In other words, when the switches 110, 112, 114 are respectively pressed, the voltage of the node ND_1 will be in a ratio, that is, . In this case, in order to clearly distinguish the pressing conditions of the switches 110, 112, 114, the resistance values r1, r2, r3, r4 of the resistors 102, 104, 106, 108 need to be different values, for example, 1k, 2k, 4k, respectively. , 6k ohms.

然而,電阻102、104、106、108之電阻值相異除了造成零件管理上的負擔外,另一方面對於開關110、112、114之按壓情形的判斷亦可能產生誤差。以電阻值r1、r2、r3、r4分別為1k、2k、4k、6k歐姆為例,當開關 110、112、114分別被按下時,節點ND_1之電壓將呈之比例。由此 可知,開關110、112、114所能造成之電壓變化將集中在VDD1的0.67至0.86倍之間,其範圍極為受限,而易造成判斷上的誤差,故需選用電阻值誤差較小之電阻,成本亦隨之增加。除此之外,由於開關電路10之電壓變化範圍較為集中且受限,造成開關電路10所能包含的開關數量較為受限,如限制在三個或三個以下,因而不具彈性。在此情形下,針對較多開關的應用,則需設置多組開關電路10,造成生產成本及設計複雜度的增加。此外,當開關電路10進行出廠測試時,必須針對開關電路10中的每一開關逐一測試,才能確定線路是否正常,如此將拉長整體的測試時間。 However, the resistance values of the resistors 102, 104, 106, and 108 are different from each other in addition to the burden on the part management, and on the other hand, the judgment of the pressing conditions of the switches 110, 112, and 114 may also cause an error. Taking the resistance values r1, r2, r3, and r4 as 1k, 2k, 4k, and 6k ohms respectively, when the switches 110, 112, and 114 are respectively pressed, the voltage of the node ND_1 will be The ratio. It can be seen that the voltage change caused by the switches 110, 112, and 114 will be concentrated between 0.67 and 0.86 times of VDD1, and the range is extremely limited, which is easy to cause an error in the judgment, so the resistance value error is required to be selected. The resistance, the cost will also increase. In addition, since the voltage variation range of the switch circuit 10 is concentrated and limited, the number of switches that the switch circuit 10 can include is limited, such as limited to three or less, and thus is not flexible. In this case, for more switching applications, multiple sets of switching circuits 10 need to be provided, resulting in an increase in production cost and design complexity. In addition, when the switch circuit 10 performs factory test, each switch in the switch circuit 10 must be tested one by one to determine whether the line is normal, which will lengthen the overall test time.

有鑑於此,如何降低開關電路之零件管理的負擔,並可適當擴充開關數量及簡化測試項目,也就成為業界所努力的目標之一。 In view of this, how to reduce the burden of parts management of the switch circuit, and appropriately expand the number of switches and simplify the test items has become one of the goals of the industry.

因此,本發明的主要目的即在於提供一種開關電路及電子裝置,以改善習知技術之缺點。 Accordingly, it is a primary object of the present invention to provide a switching circuit and an electronic device to improve the disadvantages of the prior art.

本發明揭露一種開關電路,包含有一電壓源;一偵測節點;一序列電阻,電性連接於該電壓源與一接地端之間,包含有複數個電阻串接於一 序列,該複數個電阻之電阻值大致相同;至少一第一類開關,每一第一類開關包含有一第一端電性連接於該複數個電阻中兩相鄰電阻之間,及一第二端電性連接於該偵測節點,用來於受外力按壓時,導通該第一端至該第二端之電流路徑;以及一輸入電阻,其一端電性連接於該電壓源與該序列電阻之間,另一端電性連接於該偵測節點,該輸入電阻之電阻值大於該複數個電阻之每一電阻的電阻值;其中,於該至少一第一類開關分別導通該第一端與該第二端之電流路徑時,該偵測節點具有複數個電壓。 The invention discloses a switching circuit comprising a voltage source; a detecting node; a sequence of resistors electrically connected between the voltage source and a ground, comprising a plurality of resistors connected in series a sequence, the resistance of the plurality of resistors is substantially the same; at least one switch of the first type, each of the switches of the first type includes a first end electrically connected between two adjacent resistors of the plurality of resistors, and a second The terminal is electrically connected to the detecting node, and is configured to turn on a current path from the first end to the second end when pressed by an external force; and an input resistor, one end of which is electrically connected to the voltage source and the sequence resistor The other end is electrically connected to the detecting node, and the resistance value of the input resistor is greater than the resistance value of each of the plurality of resistors; wherein, the at least one first type of switch respectively turns on the first end and The detecting node has a plurality of voltages when the current path of the second end is.

本發明另揭露一種電子裝置,包含有一運作電路;一控制介面,用來控制該運作電路,包含有複數個按鍵及一開關電路,該複數個按鍵用來驅動該開關電路,該開關電路包含有一電壓源;一偵測節點;一序列電阻,電性連接於該電壓源與一接地端之間,包含有複數個電阻串接於一序列,該複數個電阻之電阻值大致相同;至少一第一類開關,每一第一類開關包含有一第一端電性連接於該複數個電阻中兩相鄰電阻之間,及一第二端電性連接於該偵測節點,用來於受外力按壓時,導通該第一端至該第二端之電流路徑;以及一輸入電阻,其一端電性連接於該電壓源與該序列電阻之間,另一端電性連接於該偵測節點,該輸入電阻之電阻值大於該複數個電阻之每一電阻的電阻值;其中,於該至少一第一類開關分別導通該第一端與該第二端之電流路徑時,該偵測節點具有複數個電壓。 The invention further discloses an electronic device comprising an operation circuit; a control interface for controlling the operation circuit, comprising a plurality of buttons and a switch circuit, wherein the plurality of buttons are used to drive the switch circuit, the switch circuit comprises a voltage source; a detecting node; a sequence of resistors electrically connected between the voltage source and a ground, comprising a plurality of resistors connected in series, the resistances of the plurality of resistors being substantially the same; at least one A switch of the first type includes a first end electrically connected between two adjacent resistors of the plurality of resistors, and a second end electrically connected to the detecting node for receiving an external force When pressed, the current path of the first end to the second end is turned on; and an input resistor is electrically connected between the voltage source and the sequence resistor, and the other end is electrically connected to the detecting node. The resistance value of the input resistor is greater than the resistance value of each of the plurality of resistors; wherein, when the at least one first type of switch respectively turns on the current path of the first end and the second end, the detecting Having a plurality of dot voltage.

10、20、30、40、50‧‧‧開關電路 10, 20, 30, 40, 50‧‧‧ switch circuits

100‧‧‧類比數位轉換器 100‧‧‧ analog digital converter

202、302‧‧‧判斷模組 202, 302‧‧‧ judgment module

110、112、114、210、212、214、SW_1~SW_n‧‧‧開關 110, 112, 114, 210, 212, 214, SW_1~SW_n‧‧‧ switch

102、104、106、108、222、224、226、228‧‧‧電阻 102, 104, 106, 108, 222, 224, 226, 228‧‧ ‧ resistance

304‧‧‧序列電阻 304‧‧‧Sequence resistance

R_1~R_n‧‧‧電阻 R_1~R_n‧‧‧resistance

Rin‧‧‧輸入電阻 Rin‧‧‧ input resistance

101、200、300‧‧‧電壓源 101, 200, 300‧‧‧ voltage source

VDD1、VDD2、VDD3‧‧‧電壓 VDD1, VDD2, VDD3‧‧‧ voltage

GND‧‧‧接地端 GND‧‧‧ ground terminal

ND_1、ND_2‧‧‧節點 ND_1, ND_2‧‧‧ nodes

ND_3‧‧‧偵測節點 ND_3‧‧‧Detection node

60‧‧‧電子裝置 60‧‧‧Electronic devices

600‧‧‧運作電路 600‧‧‧Operating circuit

610‧‧‧控制介面 610‧‧‧Control interface

BN_1~BN_n‧‧‧按鍵 BN_1~BN_n‧‧‧ button

第1圖為習知一開關電路之示意圖。 Figure 1 is a schematic diagram of a conventional switching circuit.

第2圖為本發明實施例一開關電路之示意圖。 FIG. 2 is a schematic diagram of a switch circuit according to an embodiment of the present invention.

第3圖為本發明實施例一開關電路之示意圖。 FIG. 3 is a schematic diagram of a switch circuit according to an embodiment of the present invention.

第4圖為本發明實施例一開關電路之示意圖。 4 is a schematic diagram of a switch circuit according to an embodiment of the present invention.

第5圖為本發明實施例一開關電路之示意圖。 FIG. 5 is a schematic diagram of a switch circuit according to an embodiment of the present invention.

第6圖為本發明實施例一電子裝置之示意圖。 FIG. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention.

請參考第2圖,第2圖為本發明實施例一開關電路20之示意圖。開關電路20包含有一判斷模組202、開關210、212、214及電阻222、224、226、228。判斷模組202電性連接於電阻222、224間之一節點ND_2,用來偵測節點ND_2之電壓,進而判斷開關210、212、214之開啟或關閉。詳細來說,電阻222、224、226、228之電阻值大致相同,且串接於產生電壓VDD2之一電壓源200與接地端GND之間。開關210、212、214之一端連接至電阻222、224、226、228中兩相鄰電阻之間,另一端則皆連接至地。當開關210、212、214分別受外力按壓時,將分別使電阻222、224、226直接導通至地。 因此,當開關210、212、214未被按壓時,節點ND_2之電壓等於。 若開關210被按下,則節點ND_2至電壓源200的電流路徑直接導通,因此節點ND_2之電壓等於0;依此類推,當開關212、214分別被按下時,節點ND_2之電壓將分別等於。換言之,開關210、212、214分 別被按下時,節點ND_2之電壓將呈一比例,即。由此可知, 在開關電路20中,開關210、212、214所能造成之電壓變化係在VDD2的0、0.5、0.67倍之間,其範圍較開關電路10已明顯增加,因而可降低判斷上的誤差,且對電阻值誤差之容忍度較高,成本亦可隨之降低。 Please refer to FIG. 2, which is a schematic diagram of a switch circuit 20 according to an embodiment of the present invention. The switch circuit 20 includes a determination module 202, switches 210, 212, 214 and resistors 222, 224, 226, 228. The determining module 202 is electrically connected to one of the nodes ND_2 between the resistors 222 and 224 for detecting the voltage of the node ND_2, thereby determining whether the switches 210, 212, and 214 are turned on or off. In detail, the resistances of the resistors 222, 224, 226, and 228 are substantially the same, and are connected in series between the voltage source 200 of the voltage VDD2 and the ground GND. One end of the switches 210, 212, 214 is connected between two adjacent resistors of the resistors 222, 224, 226, 228, and the other end is connected to the ground. When the switches 210, 212, 214 are respectively pressed by an external force, the resistors 222, 224, 226 are respectively conducted to the ground. Therefore, when the switches 210, 212, 214 are not pressed, the voltage of the node ND_2 is equal to . If the switch 210 is pressed, the current path of the node ND_2 to the voltage source 200 is directly turned on, so the voltage of the node ND_2 is equal to 0; and so on, when the switches 212, 214 are respectively pressed, the voltage of the node ND_2 will be equal to and . In other words, when the switches 210, 212, 214 are respectively pressed, the voltage of the node ND_2 will be in a ratio, that is, . Therefore, in the switch circuit 20, the voltage change caused by the switches 210, 212, and 214 is between 0, 0.5, and 0.67 times of VDD2, and the range thereof is significantly increased compared with the switch circuit 10, thereby reducing the judgment. The error, and the tolerance to the resistance value error is higher, and the cost can also be reduced.

然而,若於開關電路20增加開關數量至n個開關,則根據前述推導過程可知,n個開關的情況下,節點ND_2之電壓所呈現之比例將為 。換句 話說,僅管開關電路20只須使用一種電阻值之電阻,但開關所能造成之電壓變化範圍仍主要被限制在VDD2的0.5至1倍之間。也就是說,隨著開關數量n增加時,節點ND_2之電壓的變化值會越來越不顯著,因此開關電路20的開關數量不宜過多,才能避免判斷上的誤差。 However, if the number of switches is increased to n switches in the switching circuit 20, according to the foregoing derivation process, in the case of n switches, the ratio of the voltage of the node ND_2 will be . In other words, only the switching circuit 20 only needs to use a resistor of a resistance value, but the range of voltage variation that can be caused by the switch is still mainly limited to between 0.5 and 1 times of VDD2. That is to say, as the number of switches n increases, the change value of the voltage of the node ND_2 will become less and less significant, so the number of switches of the switch circuit 20 should not be too large, so as to avoid the error in judgment.

為提高單一開關電路所能設置之開關數量,並進一步降低判斷上可能發生的誤差,本發明另提供一開關電路。請參考第3圖,第3圖為本發明實施例一開關電路30之示意圖。開關電路30包含有一電壓源300、一判斷模組302、一輸入電阻Rin、電阻R_1~R_n以及開關SW_1~SW_n。電壓源300可產生電壓值為VDD3之電壓。電阻R_1~R_n之電阻值大致相同,並串接於電壓源300與接地端GND之間,而形成一序列電阻304。開關SW_1~SW_n與判斷模組30間形成有一偵測節點ND_3,其可分別受外力按壓而導通兩端之電流路徑,進而於偵測節點ND_3產生不同電壓。此外,如第3圖所示,開關SW_1~SW_n可根據連接方式而分為兩類:第一類係開關SW_1~SW_(n-1),其一端分別電性連接至電阻R_1~R_n中兩相鄰電阻之間,另一端則電性連接至偵測節點ND_3;而第二類係開關SW_n,其一端電性連接至最末端之電阻R_n與接地端GND之間,另一端則電性連接至偵測節點ND_3。輸入電阻Rin之一端電性連接於電壓源300與序列電阻304的電阻R_1之間,另一端則電性連接於偵測節點ND_3,其電阻值大於電阻R_1~R_n之電阻值,或較佳地,遠大(如100百倍)於電阻R_1~R_n之電阻值。換言之,以電阻值為依據,開關電路30僅須使用兩種電阻,分別為用於電阻R_1~R_n的一種電阻值以及用於輸入電阻Rin的另一種電阻值。因此,開關電路30在零件管理上較有效率,並且可透過使用常用電阻,進一步降低開關電路30之製作成本,並降低備料難度。 In order to increase the number of switches that can be set by a single switching circuit and further reduce errors that may occur in the judgment, the present invention further provides a switching circuit. Please refer to FIG. 3, which is a schematic diagram of a switch circuit 30 according to an embodiment of the present invention. The switch circuit 30 includes a voltage source 300, a determination module 302, an input resistor Rin, resistors R_1~R_n, and switches SW_1~SW_n. Voltage source 300 can generate a voltage having a voltage value of VDD3. The resistors R_1 R R_n have substantially the same resistance value and are connected in series between the voltage source 300 and the ground GND to form a sequence resistor 304. A detecting node ND_3 is formed between the switch SW_1~SW_n and the determining module 30, and is respectively pressed by an external force to conduct a current path at both ends, thereby generating different voltages at the detecting node ND_3. In addition, as shown in FIG. 3, the switches SW_1~SW_n can be divided into two types according to the connection mode: the first type of switches SW_1~SW_(n-1), one end of which is electrically connected to two of the resistors R_1~R_n respectively. Between adjacent resistors, the other end is electrically connected to the detecting node ND_3; and the second type of switch SW_n is electrically connected to one end of the last resistor R_n and the ground GND, and the other end is electrically connected. To detect node ND_3. One end of the input resistor Rin is electrically connected between the voltage source 300 and the resistor R_1 of the sequence resistor 304, and the other end is electrically connected to the detecting node ND_3, and the resistance value thereof is greater than the resistance value of the resistors R_1~R_n, or preferably , large (such as 100 times) the resistance value of the resistors R_1~R_n. In other words, based on the resistance value, the switch circuit 30 only needs to use two kinds of resistors, one for the resistors R_1~R_n and the other for the input resistor Rin. Therefore, the switch circuit 30 is more efficient in parts management, and can further reduce the manufacturing cost of the switch circuit 30 and reduce the difficulty of stock preparation by using a common resistor.

另外,判斷模組302耦接於偵測節點ND_3,用來判斷偵測節點ND_3的電壓,以判斷開關SW_1~SW_n之按壓情形,並產生對應之開關訊號。當開關SW_1~SW_n未受外力按壓時,輸入電阻Rin與接地端GND間係斷路,故電壓源300所輸出之電流主要經由序列電阻304流至地,則偵測節點ND_3的電壓大致等於VDD3,判斷模組302可據此判斷開關SW_1~SW_n未被按壓。反之,當開關SW_1~SW_n中有一開關受外力而導通兩端之電流路徑時,將改變偵測節點ND_3之電壓,則判斷模組302可據此判斷 開關SW_1~SW_n之按壓情形。 In addition, the determining module 302 is coupled to the detecting node ND_3 for determining the voltage of the detecting node ND_3 to determine the pressing condition of the switches SW_1~SW_n and generating a corresponding switching signal. When the switches SW_1~SW_n are not pressed by the external force, the input resistor Rin is disconnected from the ground GND. Therefore, the current outputted by the voltage source 300 mainly flows to the ground via the sequence resistor 304, and the voltage of the detecting node ND_3 is substantially equal to VDD3. The judging module 302 can judge that the switches SW_1 SW SW_n are not pressed accordingly. On the other hand, when one of the switches SW_1~SW_n is subjected to an external force to turn on the current path at both ends, the voltage of the detecting node ND_3 is changed, and the determining module 302 can judge accordingly. The pressing condition of the switches SW_1~SW_n.

舉例來說,假設輸入電阻Rin之電阻值為r_x,而電阻R_1~R_n之電阻值皆大致為r_y,且r_x>>r_y。若開關SW_1被按下,則輸入電阻Rin將與電阻R_1並聯,再串聯至電阻R_2~R_n,而形成一分壓電路,因此偵測節點ND_3之電壓等於。其中,r_x∥r_y表示並聯, 即;當r_x>>r_y時,r_x∥r_y將趨近於r_y。因此,當開關SW_1 被按下時,偵測節點ND_3之電壓將趨近於。依此類推,當開關SW_2 ~SW_(n-1)分別被按下時,偵測節點ND_3之電壓將分別趨近、...、。此外,開關SW_n之一端係連接至接地端GND, 故當開關SW_n被按下時,偵測節點ND_3將導通至地,使其電壓為0。換言之,當開關SW_1~SW_n分別被按下時,偵測節點ND_3之電壓將呈一比例, 即,其大致具有等差數列之性質,意即判斷模組302所偵測之電壓是依開關數量n而等分電壓源300之電壓值VDD3,因此開關電路30有較高之電壓分配效益,並能避免判斷上的誤差,且對於電阻公差的容忍度較高。 For example, assume that the resistance of the input resistor Rin is r_x, and the resistance values of the resistors R_1~R_n are approximately r_y, and r_x>>r_y. If the switch SW_1 is pressed, the input resistor Rin will be connected in parallel with the resistor R_1 and then connected in series to the resistors R_2~R_n to form a voltage dividing circuit, so that the voltage of the detecting node ND_3 is equal to . Where r_x∥r_y means parallel, ie When r_x>>r_y, r_x∥r_y will approach r_y. Therefore, when the switch SW_1 is pressed, the voltage of the detecting node ND_3 will approach . And so on, when the switches SW_2 ~ SW_(n-1) are respectively pressed, the voltage of the detecting node ND_3 will approach respectively , ,..., . In addition, one end of the switch SW_n is connected to the ground GND, so when the switch SW_n is pressed, the detecting node ND_3 will be turned to ground to make its voltage zero. In other words, when the switches SW_1~SW_n are respectively pressed, the voltage of the detecting node ND_3 will be proportional, that is, The switch circuit 30 has a higher voltage distribution benefit, and the voltage detected by the module 302 is equal to the voltage value VDD3 of the voltage source 300 according to the number of switches n. It can avoid the error in judgment and has high tolerance to resistance tolerance.

由上述可知,透過開關電路30,當使用者按壓開關SW_1~SW_n時,開關SW_1~SW_n所造成之電壓變化將均勻地分布於0與電壓值VDD3之間,因此有較高之電壓分配效益。在此情形下,開關數量n的彈性較大。 As can be seen from the above, when the user presses the switches SW_1 SW SW_n through the switch circuit 30, the voltage changes caused by the switches SW_1 SW SW_n are evenly distributed between 0 and the voltage value VDD3, thereby having a high voltage distribution benefit. In this case, the elasticity of the number of switches n is large.

舉例來說,請參考第4圖,第4圖為本發明實施例一開關電路40之示意圖。開關電路40為第3圖中開關電路30之開關數量n等於3之實施例,故相同元件沿用相同符號表示。開關電路40之操作方式可由開關電路30而推得,亦即當開關SW_1~SW_3未被按壓時,偵測節點ND_3之電壓等於VDD3。當開關SW_1~SW_3分別被按下時,偵測節點ND_3之電壓將呈 一比例,即,意即判斷模組302所偵測之電壓近似於三等分電壓值 VDD3。相較於習知開關電路10之及開關電路20之,開關電 路40之電壓變化不會集中在特定的範圍,因此有較高之電壓分配效益,並能避免判斷上的誤差,且對於電阻公差的容忍度較高。 For example, please refer to FIG. 4, which is a schematic diagram of a switch circuit 40 according to an embodiment of the present invention. The switch circuit 40 is an embodiment in which the number n of switches of the switch circuit 30 in FIG. 3 is equal to three, and the same elements are denoted by the same reference numerals. The operation mode of the switch circuit 40 can be derived by the switch circuit 30, that is, when the switches SW_1~SW_3 are not pressed, the voltage of the detection node ND_3 is equal to VDD3. When the switches SW_1~SW_3 are respectively pressed, the voltage of the detecting node ND_3 will be proportional, that is, That is, the voltage detected by the module 302 is approximately equal to the three-divided voltage value VDD3. Compared to the conventional switch circuit 10 And switching circuit 20 The voltage change of the switching circuit 40 is not concentrated in a specific range, so that the voltage distribution efficiency is high, and the error in judgment can be avoided, and the tolerance to the resistance tolerance is high.

需注意的是,第3圖之開關電路30係為本發明之實施例,本領域具通常知識者當可據以做不同之修飾,而不限於此。舉例來說,開關數量可依需要刪減,並且開關不限定於連續或規則排列,因此可改變開關訊號之電壓比例,以及電壓變化範圍。詳細而言,請參考第5圖,第5圖為本發明實施例一開關電路50之示意圖。開關電路50為第3圖中開關電路30之電阻數量n等於7之實施例,故相同元件沿用相同符號表示,值得注意的是,開關電路50僅有開關SW_1、SW_2、SW_5,且開關SW_1、SW_2、SW_5分別電性連接至電阻R_1、R_2間、電阻R_2、R_3間以及電阻R_5、R_6間。開關電路50之操作方式可由開關電路30而推得,亦即當開關SW_1、SW_2、SW_5未被按壓時,偵測節點ND_3之電壓等於VDD3。當開關SW_1、SW_2、SW_5分別被按下時,偵測節點ND_3之電壓將呈一比例,即It should be noted that the switch circuit 30 of FIG. 3 is an embodiment of the present invention, and those skilled in the art can make various modifications according to the present invention, and are not limited thereto. For example, the number of switches can be reduced as needed, and the switches are not limited to continuous or regular arrangements, thus changing the voltage ratio of the switching signals and the range of voltage variations. In detail, please refer to FIG. 5, which is a schematic diagram of a switch circuit 50 according to an embodiment of the present invention. The switch circuit 50 is an embodiment in which the number n of resistances of the switch circuit 30 in FIG. 3 is equal to 7. Therefore, the same elements are denoted by the same symbols. It is noted that the switch circuit 50 has only the switches SW_1, SW_2, SW_5, and the switch SW_1, SW_2 and SW_5 are electrically connected between resistors R_1 and R_2, between resistors R_2 and R_3, and between resistors R_5 and R_6. The operation mode of the switch circuit 50 can be derived by the switch circuit 30, that is, when the switches SW_1, SW_2, SW_5 are not pressed, the voltage of the detection node ND_3 is equal to VDD3. When the switches SW_1, SW_2, and SW_5 are respectively pressed, the voltage of the detecting node ND_3 will be proportional, that is, .

第4圖及第5圖係說明透過適當調整開關電路30中開關或電阻之配置方式,本發明能輸出多種電壓比例之開關訊號;然而,不限於此,本領域具通常知識者當可根據系統或設計所需,適當調整開關或電阻之配置方式。 4 and 5 illustrate that the present invention can output switching signals of various voltage ratios by appropriately adjusting the arrangement of switches or resistors in the switching circuit 30; however, it is not limited thereto, and those skilled in the art can Or the design needs to adjust the switch or resistor configuration.

另一方面,本發明之開關電路除了可均勻分配開關電壓,避免判斷誤差,提升電阻公差容忍度,及具有設計彈性之外,針對產品測試效率上,亦可有效提升。以開關電路30為例,當測試開關電路30時,可先確認供應至開關電路30之電源大小,即確認電壓源300是否提供電壓值VDD3。接著,按下開關SW_1,以導通輸入電阻Rin至序列電阻304之電流路徑,並量測偵測節點ND_3之電壓是否符合預設值。若偵測節點ND_3之電壓等於 ,則代表電流可由電壓源300順利流經序列電阻304而至接地端 GND,因此不必再去測試開關SW_2~SW_n。反之,若偵測節點ND_3之電壓不等於,則代表序列電阻304可能為不良品等問題而導致電流無 法流通,此時便可針對序列電阻304進行更換。換言之,當開關電路30進行出廠測試時,無須針對開關電路30中的每一個開關SW_1~SW_n逐一測試,因此可縮短整體的測試時間。相較之下,習知開關電路10必須逐一測試各開關110、112、114,才能確定各電阻102、104、106、108功能是否正常,本發明之開關電路30(或40、50)的整體測試時間較短,有利於縮短量產之出貨時間。 On the other hand, the switching circuit of the invention can not only uniformly distribute the switching voltage, avoid the judgment error, improve the tolerance of the resistance tolerance, and has the design flexibility, and can effectively improve the product testing efficiency. Taking the switch circuit 30 as an example, when testing the switch circuit 30, the power supply to the switch circuit 30 can be confirmed first, that is, whether the voltage source 300 provides the voltage value VDD3. Then, the switch SW_1 is pressed to turn on the current path of the input resistor Rin to the sequence resistor 304, and it is measured whether the voltage of the detecting node ND_3 meets the preset value. If the voltage of the detection node ND_3 is equal to , it means that the current can smoothly flow through the sequence resistor 304 from the voltage source 300 to the ground GND, so it is no longer necessary to test the switches SW_2~SW_n. Conversely, if the voltage of the detection node ND_3 is not equal to That means that the sequence resistor 304 may be a problem such as a defective product, and the current cannot flow. In this case, the sequence resistor 304 can be replaced. In other words, when the switch circuit 30 performs the factory test, it is not necessary to test each of the switches SW_1 to SW_n one by one for the switch circuit 30, so that the overall test time can be shortened. In contrast, the conventional switch circuit 10 must test each of the switches 110, 112, 114 one by one to determine whether the functions of the resistors 102, 104, 106, 108 are normal, and the overall switching circuit 30 (or 40, 50) of the present invention. The short test time is beneficial to shorten the shipment time of mass production.

此外,由於開關電路30可透過導通不同開關SW_1~SW_n而輸出多種電壓值,因此可成為轉換實體操作至電路訊號之介面,並應用於多種電子裝置中。舉例來說,請參考第6圖,第6圖為本發明實施例一電子裝置60之示意圖。電子裝置60可為一遙控器、一資料輸入介面或一使用者介面等,其包含有一運作電路600、一控制介面610及開關電路30。運作電路600可具有訊號處理功能,如編碼、紅外線發射等,用來處理開關電路30之判斷模組302所產生之開關訊號,以控制對應之電子系統。控制介面610包含有按鍵BN_1~BN_n,且按鍵BN_1~BN_n分別對應於SW_1~SW_n而設置。因此,當按鍵BN_1~BN_n分別被按下時,開關SW_1~SW_n對應地導通,並輸出不同之電壓值至運作電路600,運作電路600則根據其所接收之電壓值進行對應之功能操作。由於本發明之開關電路30可均勻分配開關所對應之電壓、避免判斷誤差、提升電阻公差容忍度及電路測試效率,並具有設計彈性,因此可有效降低電子裝置60之生產成本。 In addition, since the switch circuit 30 can output a plurality of voltage values by turning on the different switches SW_1 SW SW_n, it can be used as a interface for converting the physical operation to the circuit signal, and is applied to various electronic devices. For example, please refer to FIG. 6. FIG. 6 is a schematic diagram of an electronic device 60 according to an embodiment of the present invention. The electronic device 60 can be a remote controller, a data input interface or a user interface, and includes an operation circuit 600, a control interface 610, and a switch circuit 30. The operating circuit 600 can have signal processing functions, such as encoding, infrared emission, etc., for processing the switching signals generated by the determining module 302 of the switching circuit 30 to control the corresponding electronic system. The control interface 610 includes buttons BN_1~BN_n, and the buttons BN_1~BN_n are respectively provided corresponding to SW_1~SW_n. Therefore, when the buttons BN_1~BN_n are respectively pressed, the switches SW_1~SW_n are turned on correspondingly, and different voltage values are outputted to the operation circuit 600, and the operation circuit 600 performs corresponding functional operations according to the voltage value received. Since the switch circuit 30 of the present invention can uniformly distribute the voltage corresponding to the switch, avoid the judgment error, improve the resistance tolerance tolerance and the circuit test efficiency, and has design flexibility, the production cost of the electronic device 60 can be effectively reduced.

綜上所述,本發明所提供之開關電路使用的電阻種類較少,因此可減輕零件管理上的負擔,並且可透過使用常用電阻,以進一步降低開關電路之製作成本,並降低備料難度。此外,開關電路可根據開關數量而等分輸 入電壓值成為輸出電壓,因此電壓分配效益較高,輸出電壓的範圍較廣,而能避免判斷上的誤差,且對電阻公差有較高之容忍度。同時,本發明之開關電路可彈性地增減開關數量,且透過適當調整開關之配置方式,更能輸出多種電壓比例之開關訊號。並且,在測試本發明所提供之開關電路時,不須逐一測試所有開關即可確認電路品質,因此可縮短測試電路時間。 In summary, the switch circuit provided by the present invention uses fewer types of resistors, thereby reducing the burden on the parts management, and can further reduce the manufacturing cost of the switch circuit and reduce the difficulty of preparing the materials by using common resistors. In addition, the switching circuit can equally divide the number of switches according to the number of switches The input voltage value becomes the output voltage, so the voltage distribution efficiency is high, the output voltage range is wide, and the judgment error can be avoided, and the resistance tolerance is highly tolerated. At the same time, the switching circuit of the present invention can flexibly increase or decrease the number of switches, and can appropriately output switching signals of various voltage ratios by appropriately adjusting the configuration of the switches. Moreover, when testing the switching circuit provided by the present invention, it is not necessary to test all the switches one by one to confirm the circuit quality, and thus the test circuit time can be shortened.

以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.

30‧‧‧開關電路 30‧‧‧Switch circuit

300‧‧‧電壓源 300‧‧‧voltage source

VDD3‧‧‧電壓 VDD3‧‧‧ voltage

302‧‧‧判斷模組 302‧‧‧Judgement module

304‧‧‧序列電阻 304‧‧‧Sequence resistance

R_1~R_n‧‧‧電阻 R_1~R_n‧‧‧resistance

Rin‧‧‧輸入電阻 Rin‧‧‧ input resistance

SW_1~SW_n‧‧‧開關 SW_1~SW_n‧‧‧Switch

GND‧‧‧接地端 GND‧‧‧ ground terminal

ND_3‧‧‧偵測節點 ND_3‧‧‧Detection node

Claims (10)

一種開關電路,包含有:一電壓源;一偵測節點;一序列電阻,電性連接於該電壓源與一接地端之間,包含有複數個電阻串接於一序列,該複數個電阻之電阻值大致相同;至少一第一類開關,每一第一類開關包含有一第一端電性連接於該複數個電阻中兩相鄰電阻之間,及一第二端電性連接於該偵測節點,用來於受外力按壓時,導通該第一端至該第二端之電流路徑;以及一輸入電阻,其一端電性連接於該電壓源與該序列電阻之間,另一端電性連接於該偵測節點,該輸入電阻之電阻值大於該複數個電阻之每一電阻的電阻值;其中,於該至少一第一類開關分別導通該第一端與該第二端之電流路徑時,該偵測節點具有複數個電壓。 A switching circuit includes: a voltage source; a detecting node; a sequence of resistors electrically connected between the voltage source and a ground, comprising a plurality of resistors connected in series, the plurality of resistors The resistance values are substantially the same; at least one switch of the first type, each of the first type switches includes a first end electrically connected between two adjacent resistors of the plurality of resistors, and a second end electrically connected to the detector a measuring node, configured to turn on a current path from the first end to the second end when pressed by an external force; and an input resistor, one end of which is electrically connected between the voltage source and the serial resistor, and the other end is electrically connected Connected to the detecting node, the resistance value of the input resistor is greater than the resistance value of each of the plurality of resistors; wherein, the at least one first type of switch respectively turns on the current path of the first end and the second end The detecting node has a plurality of voltages. 如請求項1所述之開關電路,其另包含一第二類開關,該第二類開關包含有一第一端電性連接於該序列電阻與該接地端之間,及一第二端電性連接於該偵測節點,用來於受外力按壓時,導通該第一端與該第二端之電流路徑。 The switching circuit of claim 1, further comprising a second type of switch, the second type of switch comprising a first end electrically connected between the serial resistor and the ground, and a second end electrical The detecting node is connected to the current path of the first end and the second end when pressed by an external force. 如請求項1所述之開關電路,其另包含一判斷模組,耦接於該偵測節點,用來根據該複數個電壓,判斷該至少一第一類開關之按壓情形,以產生複數個開關訊號。 The switch circuit of claim 1, further comprising a determining module coupled to the detecting node, configured to determine, according to the plurality of voltages, a pressing condition of the at least one first type switch to generate a plurality of Switch signal. 如請求項1所述之開關電路,其中該複數個電壓形成一等差數列。 The switching circuit of claim 1, wherein the plurality of voltages form an arithmetic progression. 如請求項1所述之開關電路,其中該輸入電阻之電阻值為該複數個電阻之每一電阻之電阻值的100倍。 The switching circuit of claim 1, wherein the resistance of the input resistor is 100 times the resistance of each of the plurality of resistors. 一種電子裝置,包含有: 一運作電路;一控制介面,用來控制該運作電路,包含有複數個按鍵及一開關電路,該複數個按鍵用來驅動該開關電路,該開關電路包含有:一電壓源;一偵測節點;一序列電阻,電性連接於該電壓源與一接地端之間,包含有複數個電阻串接於一序列,該複數個電阻之電阻值大致相同;至少一第一類開關,每一第一類開關包含有一第一端電性連接於該複數個電阻中兩相鄰電阻之間,及一第二端電性連接於該偵測節點,用來於受外力按壓時,導通該第一端至該第二端之電流路徑;以及一輸入電阻,其一端電性連接於該電壓源與該序列電阻之間,另一端電性連接於該偵測節點,該輸入電阻之電阻值大於該複數個電阻之每一電阻的電阻值;其中,於該至少一第一類開關分別導通該第一端與該第二端之電流路徑時,該偵測節點具有複數個電壓。 An electronic device comprising: An operation circuit; a control interface for controlling the operation circuit, comprising a plurality of buttons and a switch circuit, wherein the plurality of buttons are used to drive the switch circuit, the switch circuit comprises: a voltage source; a detection node a sequence of resistors electrically connected between the voltage source and a ground, comprising a plurality of resistors connected in series, the resistances of the plurality of resistors being substantially the same; at least one first type of switch, each of the first A switch includes a first end electrically connected between two adjacent resistors of the plurality of resistors, and a second end electrically connected to the detecting node for turning on the first when pressed by an external force a current path from the end to the second end; and an input resistor, one end of which is electrically connected between the voltage source and the serial resistor, and the other end is electrically connected to the detecting node, and the resistance of the input resistor is greater than the The resistance value of each of the plurality of resistors; wherein the detecting node has a plurality of voltages when the at least one first type of switch respectively turns on the current paths of the first end and the second end. 如請求項6所述之電子裝置,其另包含一第二類開關,該第二類開關包含有一第一端電性連接於該序列電阻與該接地端之間,及一第二端電性連接於該偵測節點,用來於受外力按壓時,導通該第一端與該第二端之電流路徑。 The electronic device of claim 6, further comprising a second type of switch, the second type of switch comprising a first end electrically connected between the serial resistor and the ground, and a second end electrical The detecting node is connected to the current path of the first end and the second end when pressed by an external force. 如請求項6所述之電子裝置,其另包含一判斷模組,耦接於該偵測節點,用來根據該複數個電壓,判斷該至少一第一類開關之按壓情形,以產生複數個開關訊號。 The electronic device of claim 6, further comprising a determining module coupled to the detecting node, configured to determine, according to the plurality of voltages, a pressing condition of the at least one first type switch to generate a plurality of Switch signal. 如請求項6所述之電子裝置,其中該複數個電壓形成一等差數列。 The electronic device of claim 6, wherein the plurality of voltages form an arithmetic progression. 如請求項6所述之電子裝置,其中該輸入電阻之電阻值為該複數個電阻之每一電阻之電阻值的100倍。 The electronic device of claim 6, wherein the resistance of the input resistor is 100 times the resistance of each of the plurality of resistors.
TW102132628A 2013-09-10 2013-09-10 Switching circuit and electronic device TW201511471A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW102132628A TW201511471A (en) 2013-09-10 2013-09-10 Switching circuit and electronic device
CN201310444671.2A CN104426520A (en) 2013-09-10 2013-09-26 Switching Circuit And Electronic Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102132628A TW201511471A (en) 2013-09-10 2013-09-10 Switching circuit and electronic device

Publications (1)

Publication Number Publication Date
TW201511471A true TW201511471A (en) 2015-03-16

Family

ID=52974614

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102132628A TW201511471A (en) 2013-09-10 2013-09-10 Switching circuit and electronic device

Country Status (2)

Country Link
CN (1) CN104426520A (en)
TW (1) TW201511471A (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3784829T3 (en) * 1986-10-20 1997-04-17 Matsushita Electric Ind Co Ltd Input device with buttons.
JPH09270685A (en) * 1996-04-02 1997-10-14 Nippon Columbia Co Ltd Operation device
JP3993354B2 (en) * 2000-01-26 2007-10-17 株式会社東芝 Voltage generation circuit
US7688230B2 (en) * 2006-07-13 2010-03-30 Emerson Electric Co. Switching device with critical switch detection
KR100807594B1 (en) * 2006-09-28 2008-02-28 주식회사 하이닉스반도체 On die thermal sensor and semiconductor device having the same
CN101841590B (en) * 2009-03-16 2013-01-09 联芯科技有限公司 Terminal equipment software and hardware self-adaptive matching method and terminal equipment using same
JP5365614B2 (en) * 2010-12-10 2013-12-11 株式会社Jvcケンウッド In-vehicle device and key identification method
CN103248370B (en) * 2012-02-03 2016-02-03 联发科技(新加坡)私人有限公司 Press keys setup method
CN103048942A (en) * 2012-12-17 2013-04-17 许如臣 Circuit with two-wire system structure of manual button box for electric door
CN103220592B (en) * 2013-04-28 2015-10-28 青岛歌尔声学科技有限公司 A kind of earphone and key control method thereof

Also Published As

Publication number Publication date
CN104426520A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
US8786482B1 (en) Integrated circuit with pin for setting digital address
US8314723B2 (en) Ghost key detecting circuit and related method
JP4794896B2 (en) Semiconductor circuit, semiconductor device, and inspection method of semiconductor circuit
US8368458B2 (en) Impedance tuning apparatus
KR101293280B1 (en) Multi input circuit
CN107764431B (en) Chip core temperature detection circuit
WO2004053507A1 (en) Voltage-application current measuring instrument and current buffer with switch used therefor
JP5805145B2 (en) Analog-to-digital conversion circuit having temperature detection function and electronic device thereof
TW201344409A (en) Electronic device
WO2015146510A1 (en) Transmission device and communication device
TW201511471A (en) Switching circuit and electronic device
US9728958B2 (en) Current electronic distributing device
TW201916697A (en) Detecting circuit and associated detecting method
TWI634740B (en) Impedance matching circuit and integrated circuit applying the impedance matching circuit
US20110068772A1 (en) Apparatus and method for detecting mode change in an electronic device
US20200309821A1 (en) Assembly With at Least Two Redundant Analog Input Units for a Measurement Current
US9360949B2 (en) Human interface device
US11018459B2 (en) Protection circuit against high voltages for USB type C receiver
EP3435107B1 (en) Voltage monitor with a trimming circuit
US10333522B2 (en) Selection of multiple configuration settings using a single configuration terminal
US9817034B2 (en) Measuring device
CN109901001B (en) System and method for detecting conduction of multiple power and grounding pins of central processing unit slot
US8766622B2 (en) Voltage measuring apparatus for buck circuit
CN213688717U (en) Multiplex detection circuitry and electrical apparatus of many temperature sensing package
JP2012047636A (en) Disconnection detection apparatus for bridge sensor