[go: up one dir, main page]

TW201909557A - Voltage monitoring circuit and voltage monitoring method - Google Patents

Voltage monitoring circuit and voltage monitoring method Download PDF

Info

Publication number
TW201909557A
TW201909557A TW106124654A TW106124654A TW201909557A TW 201909557 A TW201909557 A TW 201909557A TW 106124654 A TW106124654 A TW 106124654A TW 106124654 A TW106124654 A TW 106124654A TW 201909557 A TW201909557 A TW 201909557A
Authority
TW
Taiwan
Prior art keywords
voltage
comparison
circuit
controller
multiplexer
Prior art date
Application number
TW106124654A
Other languages
Chinese (zh)
Other versions
TWI696346B (en
Inventor
梁磊
鄒小兵
Original Assignee
英業達股份有限公司
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 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW106124654A priority Critical patent/TWI696346B/en
Publication of TW201909557A publication Critical patent/TW201909557A/en
Application granted granted Critical
Publication of TWI696346B publication Critical patent/TWI696346B/en

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

A voltage monitoring circuit includes a first multiplexer, a controller, a resistor-network circuit and a first comparison circuit. The first multiplexer receives a plurality of first subject voltages. The controller controls the first multiplexer to output one of the plurality of first subject voltages and generates a testing signal. The testing signal includes a plurality of potentials. The controller is configured to output the plurality of potentials switching according to a switch command. The resistor-network circuit is configured to sequentially generate a plurality of first reference voltages according to switching of the plurality of potentials. The first comparison circuit is configured to sequentially compare each of the plurality of first reference voltages to the first subject voltage for sequentially outputting a plurality of first comparing results and sending the plurality of first comparing results to the controller so that a voltage value of the first subject voltage is determined.

Description

電壓監控電路與電壓監控方法Voltage monitoring circuit and voltage monitoring method

本發明係關於一種電壓監控電路與電壓監控方法,特別是一種應用電組網絡的電壓監控電路與電壓監控方法。The invention relates to a voltage monitoring circuit and a voltage monitoring method, in particular to a voltage monitoring circuit and a voltage monitoring method for applying a power group network.

類比數位轉換器(Analog Digital Converter, ADC)係一種常用的電路,主要是用於將類比信號轉換成數位信號。在進行伺服器的設計時,經常使用ADC電路進行伺服器內的各通道的電壓監控,或是用以識別不同板卡ID電壓。以既有的ADC電路來說,通常係採用積體電路匯流排(I2C)類型的ADC晶片,亦可以採用CPLD的差分端口,以利用RC積分原理來設計具有ADC功能的轉換電路。Analog Digital Converter (ADC) is a commonly used circuit used to convert analog signals into digital signals. In the design of the server, the ADC circuit is often used to monitor the voltage of each channel in the server, or to identify different board ID voltages. In the case of an existing ADC circuit, an integrated circuit bus (I2C) type ADC chip is usually used, and a CPLD differential port can also be used to design an ADC-equipped conversion circuit using the RC integration principle.

然而,若是採用I2C類型的ADC晶片,其所需的成本較高,而若是採用CPLD的差分端口,依據ADC的積分比較器原理所設計的轉換電路會受限於RC電路的非線性特性以及CPLD端口電位比較器的誤差,導致實用的準確度大大地降低。However, if an I2C type ADC chip is used, the cost is higher, and if the CPLD differential port is used, the conversion circuit designed according to the ADC's integral comparator principle is limited by the nonlinear characteristics of the RC circuit and the CPLD. The error of the port potential comparator results in a greatly reduced practical accuracy.

本發明提出一種電壓監控電路與電壓監控方法,係將電阻權重網絡與電壓比較器結合,並搭配多路切換的架構,進而形成成本低、具有良好穩定性且僅佔用少量輸出/輸入端口資源的電壓監控電路。The invention provides a voltage monitoring circuit and a voltage monitoring method, which combines a resistance weight network and a voltage comparator, and is matched with a multi-switching architecture, thereby forming a low cost, good stability and occupying only a small amount of output/input port resources. Voltage monitoring circuit.

依據本發明之一實施例揭露一種電壓監控電路,包含第一多工器、控制器、電阻網絡電路及第一比較電路。第一多工器具有多個輸入端、輸出端與控制端。第一多工器的每一輸入端接收多個第一受測電壓之中對應的一個。控制器電性連接第一多工器的控制端。控制器通過第一多工器的控制端控制第一多工器於第一多工器的輸出端輸出該些第一受測電壓其中之一,且控制器產生檢測信號。檢測信號包含多個電位,控制器具有一部件,用於輸出依據控制器的切換指令進行切換的該些電位。電阻網絡電路包含多個第一電阻,該些第一電阻的一端連接控制器,用以分別對應接收檢測信號的該些電位。電阻網絡電路用以依據該些電位的切換以依序產生多個第一參考電壓。第一比較電路具有第一輸入端、第二輸入端與輸出端。第一比較電路的第一輸入端電性連接第一多工器的輸出端,第一比較電路的第二輸入端電性連接電阻網絡電路。第一比較電路用以依序將該些第一參考電壓分別與所輸出的第一受測電壓進行比較,以依序對應產生多個第一比較結果且依序將該些第一比較結果通過第一比較電路的輸出端傳送至控制器,據以判斷第一受測電壓的電壓值,其中每一第一比較結果具有電位資訊。According to an embodiment of the invention, a voltage monitoring circuit includes a first multiplexer, a controller, a resistor network circuit, and a first comparison circuit. The first multiplexer has a plurality of inputs, outputs and controls. Each input of the first multiplexer receives a corresponding one of the plurality of first measured voltages. The controller is electrically connected to the control end of the first multiplexer. The controller controls the first multiplexer to output one of the first measured voltages at an output end of the first multiplexer through a control end of the first multiplexer, and the controller generates a detection signal. The detection signal includes a plurality of potentials, and the controller has a component for outputting the potentials that are switched in accordance with a switching instruction of the controller. The resistor network circuit includes a plurality of first resistors, and one end of the first resistors is connected to the controller for respectively receiving the potentials of the detection signals. The resistor network circuit is configured to sequentially generate the plurality of first reference voltages according to the switching of the potentials. The first comparison circuit has a first input, a second input, and an output. The first input end of the first comparison circuit is electrically connected to the output end of the first multiplexer, and the second input end of the first comparison circuit is electrically connected to the resistance network circuit. The first comparison circuit is configured to compare the first reference voltages with the outputted first measured voltages in sequence, to sequentially generate a plurality of first comparison results, and sequentially pass the first comparison results The output of the first comparison circuit is transmitted to the controller to determine a voltage value of the first measured voltage, wherein each of the first comparison results has potential information.

依據本發明之一實施例揭露一種電壓監控方法,適於電壓監控電路。電壓監控方法包含以下步驟:依據來自控制器的控制指令,控制多工器輸出多個受測電壓其中之一。接著,依據來自控制器的切換指令,使控制器所產生的檢測信號所包含的多個電位進行切換,以依序重複執行比較程序,以產生多個比較結果,重複執行的次數為k次。接者,依據該些比較結果判斷受測電壓的電壓值。其中所述的比較程序包含以下步驟:當該些電位進行第i次切換時,依據第i次切換的該些電位產生參考電壓,k為大於3的整數,i為小於k且大於或等於0的整數。接著,比較所述的參考電壓與受測電壓。其中,該些電位的切換包含該些電位至少其中之一由高準位切換為低準位或由低準位切換為高準位。According to an embodiment of the invention, a voltage monitoring method is disclosed, which is suitable for a voltage monitoring circuit. The voltage monitoring method includes the steps of controlling the multiplexer to output one of a plurality of measured voltages according to a control command from the controller. Then, according to the switching instruction from the controller, the plurality of potentials included in the detection signal generated by the controller are switched, and the comparison program is repeatedly executed in order to generate a plurality of comparison results, and the number of repeated executions is k times. The receiver determines the voltage value of the measured voltage based on the comparison results. The comparison program includes the following steps: when the potentials are switched for the ith, the reference voltage is generated according to the potentials of the i-th switching, k is an integer greater than 3, and i is less than k and greater than or equal to 0. The integer. Next, the reference voltage and the measured voltage are compared. The switching of the potentials includes switching at least one of the potentials from a high level to a low level or from a low level to a high level.

綜上所述,於本發明所提出的電壓監控電路與電壓監控方法中,主要係藉由多工器的多路切換的架構,搭配電阻權重網絡及電壓比較電路的組合,使多個電位切換所產生的多個參考電壓可透過電壓比較電路與受測電壓進行比較,而使得電壓監控電路的控制器可以依序地量測伺服器內多個通道的電壓值,從而實現伺服器各通道電壓量測過程的穩定性,且減少佔用控制器的輸出/輸入端口的資源。In summary, in the voltage monitoring circuit and the voltage monitoring method proposed by the present invention, the multi-switching architecture of the multiplexer is matched with the combination of the resistance weight network and the voltage comparison circuit to enable multiple potential switching. The generated plurality of reference voltages can be compared with the measured voltage through the voltage comparison circuit, so that the controller of the voltage monitoring circuit can sequentially measure the voltage values of the plurality of channels in the server, thereby realizing the voltage of each channel of the server. Measure the stability of the process and reduce the resources that occupy the controller's output/input ports.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention has been disclosed above in the foregoing embodiments, it is not intended to limit the invention. It is within the scope of the invention to be modified and modified without departing from the spirit and scope of the invention. Please refer to the attached patent application for the scope of protection defined by the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The detailed features and advantages of the present invention are set forth in the Detailed Description of the Detailed Description of the <RTIgt; </ RTI> <RTIgt; </ RTI> </ RTI> </ RTI> <RTIgt; The objects and advantages associated with the present invention can be readily understood by those skilled in the art. The following examples are intended to describe the present invention in further detail, but are not intended to limit the scope of the invention.

請參照圖1,圖1係依據本發明之一實施例所繪示的電壓監控電路的電路架構圖。如圖1所示,電壓監控電路1包含第一多工器10、控制器12、電阻網絡電路14及第一比較電路16。第一多工器10具有多個輸入端I101~I108、輸出端R1與控制端C1。第一多工器10的每一輸入端接收多個第一受測電壓V1~V8之中對應的一個。舉例來說,輸入端I101接收第一受測電壓V1、輸入端I102接收第一受測電壓V2、輸入端I103接收第一受測電壓V3等,以此類推。於實務上,所述的多個第一受測電壓V1~V8係來自於伺服器中的多個待測通道的電壓。控制器12電性連接第一多工器10的控制端C1。控制器12通過第一多工器10的控制端C1控制第一多工器10於輸出端R1輸出該些第一受測電壓V1~V8其中之一。控制器12可產生檢測信號VT,且該檢測信號VT包含多個電位。於此實施例中,控制器12具有一部件121,其用於輸出依據控制器12的切換指令進行切換的該些電位。於實務上,所述的多個電位係以高低電位(高電位:1;低電位:0)呈現。於一個實施例中,所述的多個電位的切換包含該些電位至少其中之一由高電位切換為低電位或由低電位切換為高電位。舉例來說,控制器12的切換指令可使多個電位由00000000依序切換至11111111。於一個例子中,控制器12可以係為複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD),但本發明不以此為限。Please refer to FIG. 1. FIG. 1 is a circuit diagram of a voltage monitoring circuit according to an embodiment of the invention. As shown in FIG. 1, the voltage monitoring circuit 1 includes a first multiplexer 10, a controller 12, a resistor network circuit 14, and a first comparison circuit 16. The first multiplexer 10 has a plurality of input terminals I101 to I108, an output terminal R1 and a control terminal C1. Each input end of the first multiplexer 10 receives a corresponding one of the plurality of first measured voltages V1 V V8. For example, the input terminal I101 receives the first measured voltage V1, the input terminal I102 receives the first measured voltage V2, the input terminal I103 receives the first measured voltage V3, and the like, and so on. In practice, the plurality of first measured voltages V1 V V8 are derived from voltages of a plurality of channels to be tested in the server. The controller 12 is electrically connected to the control terminal C1 of the first multiplexer 10. The controller 12 controls the first multiplexer 10 to output one of the first measured voltages V1 VV8 at the output terminal R1 through the control terminal C1 of the first multiplexer 10. The controller 12 can generate a detection signal VT, and the detection signal VT includes a plurality of potentials. In this embodiment, the controller 12 has a component 121 for outputting the potentials that are switched in accordance with the switching command of the controller 12. In practice, the plurality of potentials are presented at high and low potentials (high potential: 1; low potential: 0). In one embodiment, the switching of the plurality of potentials includes switching at least one of the potentials from a high potential to a low potential or from a low potential to a high potential. For example, the switching instruction of the controller 12 can sequentially switch multiple potentials from 00000000 to 11111111. In one example, the controller 12 can be a Complex Programmable Logic Device (CPLD), but the invention is not limited thereto.

請進一步參照圖2,圖2係依據本發明之圖1實施例所繪示的電壓監控電路的細部電路架構圖。電阻網絡電路14包含多個第一電阻141~148。該些第一電阻141~148的一端均連接至控制器12,用以分別對應接收檢測信號VT所包含的該些電位P1~P8。電阻網絡電路14用以依據該些電位的切換以依序產生多個第一參考電壓。另,如圖2所示,第一比較電路16具有比較器161、電阻163及電容165。第一比較電路16具有第一輸入端I161、第二輸入端I162與輸出端R163。第一比較電路16的第一輸入端I161電性連接第一多工器10的輸出端R1,第一比較電路16的第二輸入端I162電性連接電阻網絡電路14。第一比較電路16用以依序將所述的多個第一參考電壓分別與輸出端R1所輸出的第一受測電壓進行比較,以依序對應產生多個第一比較結果,且依序將該些第一比較結果通過第一比較電路16的輸出端R163傳送至控制器12,據以判斷輸出端R1所輸出的第一受測電壓的電壓值,其中每一第一比較結果具有電位資訊。Please refer to FIG. 2, which is a detailed circuit diagram of the voltage monitoring circuit according to the embodiment of FIG. 1 of the present invention. The resistor network circuit 14 includes a plurality of first resistors 141-148. One ends of the first resistors 141 148 148 are connected to the controller 12 for respectively receiving the potentials P1 pp P8 included in the detection signal VT. The resistor network circuit 14 is configured to sequentially generate a plurality of first reference voltages according to the switching of the potentials. Further, as shown in FIG. 2, the first comparison circuit 16 has a comparator 161, a resistor 163, and a capacitor 165. The first comparison circuit 16 has a first input terminal I161, a second input terminal I162 and an output terminal R163. The first input terminal I161 of the first comparison circuit 16 is electrically connected to the output terminal R1 of the first multiplexer 10, and the second input terminal I162 of the first comparison circuit 16 is electrically connected to the resistor network circuit 14. The first comparison circuit 16 is configured to sequentially compare the plurality of first reference voltages with the first measured voltage outputted by the output terminal R1, to sequentially generate a plurality of first comparison results, and sequentially The first comparison result is transmitted to the controller 12 through the output terminal R163 of the first comparison circuit 16, and the voltage value of the first measured voltage outputted by the output terminal R1 is determined, wherein each first comparison result has a potential News.

於一實施例中,如圖2所示,電阻網絡電路14更包含第二電阻149及運算器140。第二電阻149具有第一端T1與第二端T2。運算器140具有第一端I141、第二端I142與第三端R143。運算器140的第一端I141電性連接該些第一電阻141~148的另一端,運算器140的第二端電性連接第二電阻149的第一端T1以及運算器140的第三端R143,所述的多個第一參考電壓係由第二電阻149的第二端所輸出,其中該些第一電阻141~148的阻值大於第二電阻149的阻值。於一個實際操作的例子中,第二電阻149的阻值可以係為300歐姆,而第一電阻141~148的阻值實質上係以兩倍遞增。 例如,第一電阻141~148的阻值可分別係為1.27千歐姆、2.49千歐姆、4.99千歐姆、10千歐姆、20千歐姆、40.2千歐姆、80.6千歐姆、162千歐姆。前述的阻值僅係用以舉例說明,本發明並不以此為限。於一實施例中,第一電阻141~148的阻值的範圍實質介於1.27千歐姆至162千歐姆。In an embodiment, as shown in FIG. 2, the resistor network circuit 14 further includes a second resistor 149 and an operator 140. The second resistor 149 has a first end T1 and a second end T2. The arithmetic unit 140 has a first end I141, a second end I142, and a third end R143. The first end I141 of the computing device 140 is electrically connected to the other ends of the first resistors 141-148. The second end of the computing device 140 is electrically connected to the first end T1 of the second resistor 149 and the third end of the computing unit 140. R143, the plurality of first reference voltages are output by the second end of the second resistor 149, wherein the resistances of the first resistors 141-148 are greater than the resistance of the second resistor 149. In a practical example, the resistance of the second resistor 149 can be 300 ohms, and the resistance of the first resistors 141 148 is substantially doubled. For example, the resistance values of the first resistors 141 to 148 may be 1.27 kilo ohms, 2.49 kilo ohms, 4.99 kilo ohms, 10 kilo ohms, 20 kilo ohms, 40.2 kilo ohms, 80.6 kilo ohms, and 162 kilo ohms, respectively. The foregoing resistance values are for illustrative purposes only, and the invention is not limited thereto. In one embodiment, the resistance values of the first resistors 141-148 are substantially in the range of 1.27 kilo ohms to 162 kilo ohms.

以一個實際的例子來說明電壓監控電路1係如何判斷受測電壓的電壓值,請一併參照表一,表一係依據本發明之一實施例所繪示的電壓監控圖表。假設電壓監控電路1一開始所欲偵測的電壓係為第一受測電壓 V1,則控制器12便會通過控制端C1發送一個控制指令CNT至第一多工器10以導通輸入端I101與輸出端R1的電流路徑。此時,第一多工器10便通過輸出端R1輸出第一受測電壓 V1至第一比較電路16的第一輸入端I161。另一方面,控制器12的部件121輸出多個電位P1~P8,其中該些電位P1~P8係會隨著控制器12的切換指令依序進行切換。更具體來說,電位P1~P8每進行一次切換,便會對應產生一個第一參考電壓。而電壓監控電路1會將第一受測電壓 V1與所產生的第一參考電壓進行比較,以產生第一比較結果。舉例來說,如表一所示,部件121所輸出的電位P1~P8之初始狀態係為00000000,其會對應產生第一參考電壓VR_1並輸出至第一比較電路16的第二輸入端I162。第一參考電壓VR_1與第一受測電壓 V1會透過第一比較電路16進行比較,進而產生第一比較結果L1,而第一比較結果L1會通過輸出端R163被傳送至控制器12。接著,電位P1~P8會依據控制器12的切換指令而切換成00000001,其會對應產生第一參考電壓VR_2並輸出至第一比較電路16的第二輸入端I162。第一參考電壓VR_2與第一受測電壓 V1會透過第一比較電路16進行比較,進而產生第一比較結果L2,而第一比較結果L2會通過輸出端R163被傳送至控制器12。依序類推,控制器12會接收到多個第一比較結果L1~L256,並依據該些第一比較結果L1~L256來判斷第一受測電壓V1的電壓值。 表一 A practical example is given to illustrate how the voltage monitoring circuit 1 determines the voltage value of the measured voltage. Referring to Table 1, Table 1 is a voltage monitoring chart according to an embodiment of the present invention. Assuming that the voltage to be detected by the voltage monitoring circuit 1 is the first measured voltage V1, the controller 12 sends a control command CNT to the first multiplexer 10 through the control terminal C1 to turn on the input terminal I101 and Current path at output R1. At this time, the first multiplexer 10 outputs the first measured voltage V1 to the first input terminal I161 of the first comparison circuit 16 through the output terminal R1. On the other hand, the component 121 of the controller 12 outputs a plurality of potentials P1 to P8, wherein the potentials P1 to P8 are sequentially switched in accordance with the switching instruction of the controller 12. More specifically, each time the potentials P1 to P8 are switched, a first reference voltage is generated correspondingly. The voltage monitoring circuit 1 compares the first measured voltage V1 with the generated first reference voltage to generate a first comparison result. For example, as shown in Table 1, the initial state of the potentials P1 P P8 outputted by the component 121 is 00000000, which correspondingly generates the first reference voltage VR_1 and outputs to the second input terminal I162 of the first comparison circuit 16. The first reference voltage VR_1 and the first measured voltage V1 are compared by the first comparison circuit 16, thereby generating a first comparison result L1, and the first comparison result L1 is transmitted to the controller 12 through the output terminal R163. Then, the potentials P1 to P8 are switched to 00000001 according to the switching instruction of the controller 12, which correspondingly generates the first reference voltage VR_2 and outputs to the second input terminal I162 of the first comparison circuit 16. The first reference voltage VR_2 and the first measured voltage V1 are compared by the first comparison circuit 16, thereby generating a first comparison result L2, and the first comparison result L2 is transmitted to the controller 12 through the output terminal R163. By analogy, the controller 12 receives the plurality of first comparison results L1 L L256, and determines the voltage value of the first measured voltage V1 according to the first comparison results L1 L L256. Table I

於一實施例中,若相鄰的二個第一比較結果的電位資訊相異,則控制器12便判斷第一受測電壓的電壓值係介於相鄰的所述二個第一比較結果所分別對應之二個第一參考電壓的電壓值之間。以前述表一的例子來說,假設第一比較結果L1~L4的電位資訊均係保持為低電位,而由第一比較結果L5開始轉換成高電位時,也就表示第一受測電壓V1的電壓值係界於第一參考電壓VR_4與第一參考電壓VR_5的電壓值之間。藉此,電壓監控電路1便可推估第一受測電壓V1的電壓值。於實際的操作上,當電壓監控電路1的控制器12完成第一受測電壓V1的電壓值的判斷後,控制器12可導通第一多工器10中的另一個電流路徑,以輸出另一第一受測訊號,並利用上述的檢測方式判斷此另一第一受測電壓的電壓值。換言之,本發明的電壓監控電路1係利用第一多工器10的多路切換架構,並搭配多電位切換使電阻網絡電路14依序輸出多個參考電壓,用以與受測電壓進行比較,以實現伺服器中多個通道電壓的監控。如此一來,便可以減少佔用控制器(例如CPLD)的輸入/輸出端口,且提升監控電壓過程中電路運行的穩定性。In an embodiment, if the potential information of the two adjacent first comparison results are different, the controller 12 determines that the voltage value of the first measured voltage is between the adjacent two first comparison results. Between the voltage values of the two first reference voltages respectively corresponding to each other. In the example of the foregoing Table 1, it is assumed that the potential information of the first comparison result L1~L4 is kept at a low potential, and when the first comparison result L5 starts to be converted to a high potential, the first measured voltage V1 is also indicated. The voltage value is between the first reference voltage VR_4 and the voltage value of the first reference voltage VR_5. Thereby, the voltage monitoring circuit 1 can estimate the voltage value of the first measured voltage V1. In actual operation, after the controller 12 of the voltage monitoring circuit 1 completes the determination of the voltage value of the first measured voltage V1, the controller 12 can turn on another current path in the first multiplexer 10 to output another a first signal to be measured, and using the above detection method to determine the voltage value of the other first measured voltage. In other words, the voltage monitoring circuit 1 of the present invention utilizes the multi-switching architecture of the first multiplexer 10, and the multi-potential switching causes the resistor network circuit 14 to sequentially output a plurality of reference voltages for comparison with the measured voltage. To achieve monitoring of multiple channel voltages in the server. In this way, the input/output ports of the controller (such as the CPLD) can be reduced, and the stability of the circuit operation during the monitoring voltage can be improved.

請參照圖3,圖3係依據本發明之另一實施例所繪示的電壓監控電路的電路架構圖。圖3的電壓監控電路2包含第一多工器20、第一比較電路26、第二多工器28、第二比較電路30、控制器22及電阻網絡電路24。第一多工器20具有多個輸入端I201~I208、輸出端R2與控制端C2。第一多工器20的每一輸入端接收多個第二受測電壓V1~V8之中對應的一個。相仿地,第二多工器28具有多個輸入端I281~I288、輸出端R3與控制端C3。第二多工器28的每一輸入端接收多個第二受測電壓V9~V16之中對應的一個。控制器22分別電性連接第一多工器20的控制端C2及第二多工器28的控制端C3。控制器22用以通過第一多工器20的控制端C2控制第一多工器20於輸出端R2輸出該些第二受測電壓V1~V8其中之一,且用以通過第二多工器28的控制端C3控制第二多工器28於輸出端R3輸出該些第二受測電壓V9~V16其中之一。控制器22內部的部件221可提供檢測信號VT,其包含多個電位P1~P8。電阻網絡電路24可依據該些電位P1~P8的切換以依序產生多個第一參考電壓及多個第二參考電壓。與圖2的實施例相仿,第一比較電路26具有比較器261、電阻263及電容265,而第二比較電路30具有比較器301、電阻303及電容305。而電阻網絡電路24包含多個第一電阻241~248、第二電阻249、251及運算器240。Please refer to FIG. 3. FIG. 3 is a circuit diagram of a voltage monitoring circuit according to another embodiment of the present invention. The voltage monitoring circuit 2 of FIG. 3 includes a first multiplexer 20, a first comparison circuit 26, a second multiplexer 28, a second comparison circuit 30, a controller 22, and a resistor network circuit 24. The first multiplexer 20 has a plurality of input terminals I201 to I208, an output terminal R2, and a control terminal C2. Each input end of the first multiplexer 20 receives a corresponding one of the plurality of second measured voltages V1 V V8. Similarly, the second multiplexer 28 has a plurality of input terminals I281 to I288, an output terminal R3 and a control terminal C3. Each input of the second multiplexer 28 receives a corresponding one of the plurality of second measured voltages V9-V16. The controller 22 is electrically connected to the control terminal C2 of the first multiplexer 20 and the control terminal C3 of the second multiplexer 28, respectively. The controller 22 is configured to control, by the control terminal C2 of the first multiplexer 20, the first multiplexer 20 to output one of the second measured voltages V1 V V8 at the output end R2, and to pass the second multiplex The control terminal C3 of the controller 28 controls the second multiplexer 28 to output one of the second measured voltages V9-V16 at the output terminal R3. The component 221 inside the controller 22 can provide a detection signal VT comprising a plurality of potentials P1~P8. The resistor network circuit 24 can sequentially generate a plurality of first reference voltages and a plurality of second reference voltages according to the switching of the potentials P1 to P8. Similar to the embodiment of FIG. 2, the first comparison circuit 26 has a comparator 261, a resistor 263 and a capacitor 265, and the second comparison circuit 30 has a comparator 301, a resistor 303 and a capacitor 305. The resistor network circuit 24 includes a plurality of first resistors 241 248, 248, 251, and an operator 240.

第一比較電路26具有第一輸入端I261、第二輸入端I262與輸出端R263。第一比較電路26的第一輸入端I261電性連接第一多工器20的輸出端R2,第一比較電路26的第二輸入端I262電性連接電阻網絡電路24。第一比較電路26用以依序將產生的該些第一參考電壓分別與所輸出的第一受測電壓進行比較,以依序對應產生多個第二比較結果且依序將該些第二比較結果通過第一比較電路26的輸出端R263傳送至控制器22,據以判斷第一受測電壓的電壓值。The first comparison circuit 26 has a first input terminal I261, a second input terminal I262 and an output terminal R263. The first input terminal I261 of the first comparison circuit 26 is electrically connected to the output terminal R2 of the first multiplexer 20, and the second input terminal I262 of the first comparison circuit 26 is electrically connected to the resistor network circuit 24. The first comparison circuit 26 is configured to sequentially compare the generated first reference voltages with the outputted first measured voltages, to sequentially generate a plurality of second comparison results, and sequentially perform the second The comparison result is transmitted to the controller 22 through the output terminal R263 of the first comparison circuit 26, whereby the voltage value of the first measured voltage is determined.

第二比較電路30具有第一輸入端I301、第二輸入端I302與輸出端R303。第二比較電路30的第一輸入端I301電性連接第二多工器28的輸出端R3,第二比較電路30的第二輸入端I302電性連接電阻網絡電路24,第二比較電路30用以依序將產生的該些第二參考電壓分別與所輸出的第二受測電壓進行比較,以依序對應產生多個第二比較結果且依序將該些第二比較結果通過第二比較電路30的輸出端R303傳送至控制器22,據以判斷第二受測電壓的電壓值。關於圖3的電壓監控電路2判斷第一受測電壓與第二受測電壓的電壓值的方式於圖2的實施例相仿,故於此不再贅述。由於一些伺服器內部的線路架構相當複雜,因此相對的有更多通道的電壓需要被檢測。透過前述本發明所提出的電壓監控電路1與電壓監控電路2,可以分別檢測8路的通道電壓與16路的通道電壓。而所屬領域具有通常知識者可將前述的電壓監控電路的電路架構進一步地擴張應用至32路的通道電壓的檢測。藉此可減少檢測電壓時所需佔用的控制器(例如CPLD)的輸入/輸出端口,亦可提升檢測電壓過程中電路運行的穩定性。The second comparison circuit 30 has a first input terminal I301, a second input terminal I302 and an output terminal R303. The first input terminal I301 of the second comparison circuit 30 is electrically connected to the output terminal R3 of the second multiplexer 28, and the second input terminal I302 of the second comparison circuit 30 is electrically connected to the resistor network circuit 24, and the second comparison circuit 30 is used. Comparing the generated second reference voltages with the outputted second measured voltages in sequence, respectively, sequentially generating a plurality of second comparison results and sequentially passing the second comparison results through the second comparison The output R303 of the circuit 30 is passed to the controller 22 for determining the voltage value of the second measured voltage. The manner in which the voltage monitoring circuit 2 of FIG. 3 determines the voltage values of the first measured voltage and the second measured voltage is similar to the embodiment of FIG. 2, and thus will not be described again. Since the wiring architecture inside some servers is quite complex, the relative voltage of more channels needs to be detected. Through the voltage monitoring circuit 1 and the voltage monitoring circuit 2 proposed by the present invention, it is possible to detect the channel voltage of 8 channels and the channel voltage of 16 channels, respectively. Those skilled in the art can further extend the circuit architecture of the aforementioned voltage monitoring circuit to the detection of 32 channel voltages. This reduces the input/output ports of the controller (such as the CPLD) that are required to detect the voltage, and also improves the stability of the circuit during the detection of the voltage.

請參照圖4,圖4係依據本發明之一實施例所繪示的電壓監控方法的方法流程圖,其適用於圖2的電壓監控電路。如圖2與圖4所示,於步驟S401中,電壓監控電路1會依據來自控制器12的控制指令CNT,控制第一多工器10輸出多個第一受測電壓V1~V8其中之一。於步驟S403中,電壓監控電路1會依據來自控制器12的切換指令,使控制器12所產生的檢測信號VT所包含的多個電位P1~P8進行切換,以依序重複執行比較程序,進而產生多個第一比較結果。於步驟S405中,電壓監控電路1依據該些比較結果判斷所輸出的第一受測電壓的電壓值。所述的比較程序包含以下二個步驟。步驟一:當該些電位進行第i次切換時,依據該第i次切換的該些電位產生一參考電壓,k為大於3的整數,i為小於k且大於或等於0的整數。步驟二:比較所述的參考電壓與所輸出的受測電壓。該些電位P1~P8的切換包含該些電位P1~P8至少其中之一由高電位切換為低電位或由低電位切換為高電位。Please refer to FIG. 4. FIG. 4 is a flowchart of a method for monitoring a voltage according to an embodiment of the present invention, which is applicable to the voltage monitoring circuit of FIG. As shown in FIG. 2 and FIG. 4, in step S401, the voltage monitoring circuit 1 controls the first multiplexer 10 to output one of the plurality of first measured voltages V1 to V8 according to the control command CNT from the controller 12. . In step S403, the voltage monitoring circuit 1 switches the plurality of potentials P1 to P8 included in the detection signal VT generated by the controller 12 according to the switching instruction from the controller 12, and repeatedly executes the comparison program in sequence, thereby further A plurality of first comparison results are generated. In step S405, the voltage monitoring circuit 1 determines the voltage value of the output first measured voltage according to the comparison results. The comparison procedure described above comprises the following two steps. Step 1: When the potentials are switched for the ith time, a reference voltage is generated according to the potentials of the ith switching, k is an integer greater than 3, and i is an integer less than k and greater than or equal to 0. Step 2: Compare the reference voltage with the measured voltage to be measured. The switching of the potentials P1 to P8 includes switching at least one of the potentials P1 to P8 from a high potential to a low potential or from a low potential to a high potential.

具體來說,如前述表一所載,電位P1~P8的初始狀態係為00000000,其對應產生第一參考電壓VR_1。第一參考電壓VR_1與第一受測電壓 V1會透過第一比較電路16進行比較,進而產生第一比較結果L1,並將第一比較結果L1傳送至控制器12。接著,電位P1~P8會依據控制器12的切換指令進行第一次切換而轉換成00000001,其對應產生第一參考電壓VR_2。第一參考電壓VR_2與第一受測電壓 V1會透過第一比較電路16進行比較,進而產生第一比較結果L2,並將第一比較結果L2傳送至控制器12。接著,電位P1~P8會依據控制器12的切換指令進行第二次切換而轉換成00000010,其對應產生第一參考電壓VR_3。第一參考電壓VR_3與第一受測電壓 V1會透過第一比較電路16進行比較,進而產生第一比較結果L3,並將第一比較結果L3傳送至控制器12,依序類推。Specifically, as shown in the foregoing Table 1, the initial states of the potentials P1 to P8 are 00000000, which correspondingly generate the first reference voltage VR_1. The first reference voltage VR_1 and the first measured voltage V1 are compared by the first comparison circuit 16, thereby generating a first comparison result L1, and transmitting the first comparison result L1 to the controller 12. Then, the potentials P1 P P8 are converted into 00000001 according to the switching instruction of the controller 12 for the first time, which correspondingly generates the first reference voltage VR_2. The first reference voltage VR_2 and the first measured voltage V1 are compared by the first comparison circuit 16, thereby generating a first comparison result L2, and transmitting the first comparison result L2 to the controller 12. Then, the potentials P1 P P8 are switched to 00000010 according to the switching instruction of the controller 12, which correspondingly generates the first reference voltage VR_3. The first reference voltage VR_3 and the first measured voltage V1 are compared by the first comparison circuit 16, thereby generating a first comparison result L3, and transmitting the first comparison result L3 to the controller 12, and so on.

換言之,每一次電位切換所對應產生的第一參考電壓會分別透過第一比較電路16與所輸出的第一受測電壓進行比較,進而產生多個比較結果。於此實施例中,第一比較電路16會輸出256個比較結果至控制器12。控制器12再根據該些第一比較結果來判斷所輸出的第一受測電壓的電壓值。由於本發明的實施例係以八位元的電位P1~P8為主,因此總共所進行的電位切換次數係為255次(由00000000依序切換至11111111) 。然而,本發明不限於八位元的電位。In other words, the first reference voltage corresponding to each potential switching is compared with the output first measured voltage through the first comparison circuit 16, respectively, to generate a plurality of comparison results. In this embodiment, the first comparison circuit 16 outputs 256 comparison results to the controller 12. The controller 12 determines the voltage value of the output first measured voltage according to the first comparison results. Since the embodiment of the present invention is based on the octet potentials P1 to P8, the total number of potential switching times is 255 (sequentially switched from 00000000 to 11111111). However, the invention is not limited to an octet potential.

請參照圖5,圖5係依據本發明之另一實施例所繪示的電壓監控方法的方法流程圖。如圖5所示,步驟S501與步驟S503係與步驟S401與步驟S403相仿,惟差異在於步驟S505中,控制器依據該些比較結果判斷受測電壓的電壓值進一步包含步驟S505a~S505c。於步驟S505a中,控制器判斷該些比較結果中相鄰的第一比較結果及第二比較結果的電位資訊是否相異。當第一比較結果及第二比較結果的電位資訊係為相異時,於步驟S505b中,控制器判斷受測電壓的電壓值係介於該第一比較結果及該第二比較結果所分別對應之二個參考電壓的電壓值之間。反之,當第一比較結果及第二比較結果的電位資訊係為相同時,於步驟S505c中,控制器會再進一步判斷第二比較結果及第三比較結果的電位資訊是否相異,其中第三比較結果係與第二比較結果相鄰。以前述的表一來說,控制器會依序地判斷該些比較結果的電位狀態。當相鄰的比較結果相同時,例如第一比較結果L3與L4同為低電位,則會進一步地判斷下一個比較結果與前一個比較結果的電位狀態。當兩者電位狀態不同時,例如第一比較結果L4與L5分別為低電位與高電位,便可判斷受測電壓的電壓值係界於第一參考電壓VR_4與VR_5之間。Please refer to FIG. 5. FIG. 5 is a flowchart of a method for monitoring a voltage according to another embodiment of the present invention. As shown in FIG. 5, step S501 and step S503 are similar to step S401 and step S403, except that in step S505, the controller determines, according to the comparison results, that the voltage value of the measured voltage further includes steps S505a to S505c. In step S505a, the controller determines whether the potential information of the adjacent first comparison result and the second comparison result among the comparison results are different. When the potential information of the first comparison result and the second comparison result are different, in step S505b, the controller determines that the voltage value of the measured voltage is corresponding to the first comparison result and the second comparison result respectively. Between the voltage values of the two reference voltages. On the other hand, when the potential information of the first comparison result and the second comparison result are the same, in step S505c, the controller further determines whether the potential information of the second comparison result and the third comparison result are different, wherein the third The comparison result is adjacent to the second comparison result. In the foregoing Table 1, the controller sequentially determines the potential states of the comparison results. When the adjacent comparison results are the same, for example, the first comparison result L3 and L4 are both low, the potential state of the next comparison result and the previous comparison result is further judged. When the potential states of the two are different, for example, the first comparison results L4 and L5 are low potential and high potential, respectively, it can be determined that the voltage value of the measured voltage is between the first reference voltages VR_4 and VR_5.

綜合以上所述,於本發明所提出的電壓監控電路與電壓監控方法中,主要係藉由多工器的多路切換的架構,搭配電阻權重網絡及電壓比較電路的組合,使多個電位切換所產生的多個參考電壓可透過電壓比較電路與受測電壓進行比較,而使得電壓監控電路的控制器可以依序地量測伺服器內多個通道的電壓值,從而實現伺服器各通道電壓量測過程的穩定性,且減少佔用控制器的輸出/輸入端口的資源。In summary, in the voltage monitoring circuit and the voltage monitoring method proposed by the present invention, the multi-switching architecture of the multiplexer is combined with the combination of the resistor weight network and the voltage comparison circuit to enable multiple potential switching. The generated plurality of reference voltages can be compared with the measured voltage through the voltage comparison circuit, so that the controller of the voltage monitoring circuit can sequentially measure the voltage values of the plurality of channels in the server, thereby realizing the voltage of each channel of the server. Measure the stability of the process and reduce the resources that occupy the controller's output/input ports.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention has been disclosed above in the foregoing embodiments, it is not intended to limit the invention. It is within the scope of the invention to be modified and modified without departing from the spirit and scope of the invention. Please refer to the attached patent application for the scope of protection defined by the present invention.

1、2‧‧‧電壓監控電路1, 2‧‧‧ voltage monitoring circuit

10、20‧‧‧第一多工器10, 20‧‧‧ first multiplexer

12、22‧‧‧控制器12, 22‧‧‧ controller

14、24‧‧‧電阻網絡電路14, 24‧‧‧Resistor network circuit

16、26‧‧‧第一比較電路16, 26‧‧‧ First comparison circuit

121、221‧‧‧部件121, 221‧‧‧ parts

140、240‧‧‧運算器140, 240‧‧‧ arithmetic

141~148、241~248‧‧‧第一電阻141~148, 241~248‧‧‧ first resistance

149、251‧‧‧第二電阻149, 251‧‧‧second resistance

16、26‧‧‧第一比較電路16, 26‧‧‧ First comparison circuit

161、261、301‧‧‧比較器161, 261, 301‧ ‧ comparator

263、303‧‧‧電阻263, 303‧‧‧ resistance

265、305‧‧‧電容265, 305‧‧‧ capacitor

28‧‧‧第二多工器28‧‧‧Second multiplexer

30‧‧‧第二比較電路30‧‧‧Second comparison circuit

I101~I108、I201~I208、I281~I288‧‧‧輸入端I101~I108, I201~I208, I281~I288‧‧‧ input

R1、R2、R3‧‧‧輸出端R1, R2, R3‧‧‧ output

C1、C2、C3‧‧‧控制端C1, C2, C3‧‧‧ control end

V1~V8‧‧‧第一受測電壓V1~V8‧‧‧ first measured voltage

V9~V16‧‧‧第二受測電壓V9~V16‧‧‧Second measured voltage

P1~P8‧‧‧電位P1~P8‧‧‧ potential

I141、T1‧‧‧第一端I141, T1‧‧‧ first end

I142、T2‧‧‧第二端I142, T2‧‧‧ second end

R143‧‧‧第三端R143‧‧‧ third end

I161、I261、I301‧‧‧第一輸入端I161, I261, I301‧‧‧ first input

I162、I262、I302‧‧‧第二輸入端I162, I262, I302‧‧‧ second input

R163、R263、R303‧‧‧輸出端R163, R263, R303‧‧‧ output

CNT‧‧‧控制指令CNT‧‧‧ control instructions

VT‧‧‧檢測信號VT‧‧‧ detection signal

圖1係依據本發明之一實施例所繪示的電壓監控電路的電路架構圖。 圖2係依據本發明之圖1實施例所繪示的電壓監控電路的細部電路架構圖。 圖3係依據本發明之另一實施例所繪示的電壓監控電路的電路架構圖。 圖4係依據本發明之一實施例所繪示的電壓監控方法的方法流程圖。 圖5係依據本發明之另一實施例所繪示的電壓監控方法的方法流程圖。FIG. 1 is a circuit diagram of a voltage monitoring circuit according to an embodiment of the invention. 2 is a detailed circuit diagram of a voltage monitoring circuit according to the embodiment of FIG. 1 of the present invention. FIG. 3 is a circuit diagram of a voltage monitoring circuit according to another embodiment of the present invention. 4 is a flow chart of a method of voltage monitoring method according to an embodiment of the invention. FIG. 5 is a flow chart of a method for monitoring a voltage according to another embodiment of the present invention.

Claims (9)

一種電壓監控電路,包含:一第一多工器,具有多個輸入端、一輸出端與一控制端,該第一多工器的每一該輸入端接收多個第一受測電壓之中對應的一個;一控制器,電性連接該第一多工器的該控制端,該控制器通過該第一多工器的該控制端控制該第一多工器於該第一多工器的該輸出端輸出該些第一受測電壓其中之一,且該控制器產生一檢測信號,該檢測信號包含多個電位,該控制器具有一部件,用於輸出依據該控制器的一切換指令進行切換的該些電位;一電阻網絡電路,包含多個第一電阻,該些第一電阻的一端連接該控制器,用以分別對應接收該檢測信號的該些電位,該電阻網絡電路用以依據該些電位的切換以依序產生多個第一參考電壓;以及一第一比較電路,具有一第一輸入端、一第二輸入端與一輸出端,該第一比較電路的該第一輸入端電性連接該第一多工器的該輸出端,該第一比較電路的該第二輸入端電性連接該電阻網絡電路,該第一比較電路用以依序將該些第一參考電壓分別與所輸出的該第一受測電壓進行比較,以依序對應產生多個第一比較結果且依序將該些第一比較結果通過該第一比較電路的該輸出端傳送至該控制器,據以判斷該第一受測電壓的電壓值,其中每一該第一比較結果具有電位資訊。A voltage monitoring circuit includes: a first multiplexer having a plurality of input terminals, an output terminal and a control terminal, each of the input terminals of the first multiplexer receiving a plurality of first measured voltages Corresponding one; a controller electrically connected to the control end of the first multiplexer, the controller controlling the first multiplexer to the first multiplexer through the control end of the first multiplexer The output terminal outputs one of the first measured voltages, and the controller generates a detection signal, the detection signal includes a plurality of potentials, and the controller has a component for outputting a switching instruction according to the controller And the resistor network circuit includes a plurality of first resistors, and one end of the first resistors is connected to the controller for respectively receiving the potentials of the detection signals, and the resistor network circuit is used for And generating, according to the switching of the potentials, a plurality of first reference voltages; and a first comparison circuit having a first input end, a second input end, and an output end, the first of the first comparison circuit Input electrical Connected to the output end of the first multiplexer, the second input end of the first comparison circuit is electrically connected to the resistor network circuit, and the first comparison circuit is configured to respectively sequentially connect the first reference voltages Comparing the outputted first measured voltages to sequentially generate a plurality of first comparison results and sequentially transmitting the first comparison results to the controller through the output end of the first comparison circuit, according to Determining a voltage value of the first measured voltage, wherein each of the first comparison results has potential information. 如請求項1所述的電壓監控電路,其中若相鄰的二個第一比較結果的電位資訊相異,該控制器判斷該第一受測電壓的電壓值係介於相鄰的該二個第一比較結果所分別對應之二個第一參考電壓的電壓值之間。The voltage monitoring circuit of claim 1, wherein if the potential information of the two adjacent first comparison results are different, the controller determines that the voltage value of the first measured voltage is between the adjacent two The first comparison result corresponds between the voltage values of the two first reference voltages. 如請求項1所述的電壓監控電路,其中該些電位的切換包含該些電位至少其中之一由高準位切換為低準位或由低準位切換為高準位。The voltage monitoring circuit of claim 1, wherein the switching of the potentials comprises at least one of the potentials being switched from a high level to a low level or from a low level to a high level. 如請求項1所述的電壓監控電路,其中該電阻網絡電路更包含:一第二電阻,具有一第一端與一第二端;以及一運算器,具有一第一端、一第二端與一第三端,該運算器的該第一端電性連接該些第一電阻的另一端,該運算器的該第二端電性連接該第二電阻的該第一端以及該運算器的該第三端,該些第一參考電壓由該第二電阻的該第二端輸出,其中該些第一電阻的阻值大於該第二電阻的阻值。The voltage monitoring circuit of claim 1, wherein the resistor network circuit further comprises: a second resistor having a first end and a second end; and an operator having a first end and a second end The first end of the computing device is electrically connected to the other end of the first resistor, and the second end of the computing device is electrically connected to the first end of the second resistor and the operator The first reference voltage is output by the second end of the second resistor, and the resistance of the first resistors is greater than the resistance of the second resistor. 如請求項1所述的電壓監控電路,其中該些第一電阻係為k個電阻,第(i+1)個第一電阻的阻值實質上係為第i個第一電阻的阻值的兩倍,k為大於1的整數,i為大於0且小於k的整數。The voltage monitoring circuit of claim 1, wherein the first resistors are k resistors, and the resistance of the (i+1)th first resistor is substantially the resistance of the ith first resistor. Twice, k is an integer greater than 1, and i is an integer greater than 0 and less than k. 如請求項1所述的電壓監控電路,其中該些第一電阻的阻值的範圍實質介於1.27千歐姆至162千歐姆。The voltage monitoring circuit of claim 1, wherein the resistance values of the first resistors are substantially in the range of 1.27 kilo ohms to 162 kilo ohms. 如請求項1所述的電壓監控電路,更包含:一第二多工器,具有多個輸入端、一輸出端與一控制端,該第二多工器的每一該輸入端接收多個第二受測電壓之中對應的一個,該控制器電性連接該第二多工器的該控制端,該控制器用以通過該第二多工器的該控制端控制該第二多工器於該第二多工器的該輸出端輸出該些第二受測電壓其中之一,其中該電阻網絡電路更依據該些電位的切換以依序產生多個第二參考電壓;以及一第二比較電路,具有一第一輸入端、一第二輸入端與一輸出端,該第二比較電路的該第一輸入端電性連接該第二多工器的該輸出端,該第二比較電路的該第二輸入端電性連接該電阻網絡電路,該第二比較電路用以依序將產生的該些第二參考電壓分別與所輸出的該第二受測電壓進行比較,以依序對應產生多個第二比較結果且依序將該些第二比較結果通過該第二比較電路的該輸出端傳送至該控制器,據以判斷該第二受測電壓的電壓值。The voltage monitoring circuit of claim 1, further comprising: a second multiplexer having a plurality of inputs, an output, and a control, each of the inputs of the second multiplexer receiving Corresponding one of the second measured voltages, the controller is electrically connected to the control end of the second multiplexer, and the controller is configured to control the second multiplexer through the control end of the second multiplexer Outputting, at the output end of the second multiplexer, one of the second measured voltages, wherein the resistor network circuit further generates a plurality of second reference voltages according to the switching of the potentials; and a second a comparison circuit having a first input end, a second input end and an output end, the first input end of the second comparison circuit being electrically connected to the output end of the second multiplexer, the second comparison circuit The second input end is electrically connected to the resistor network circuit, and the second comparison circuit is configured to sequentially compare the generated second reference voltages with the outputted second measured voltages to sequentially correspond Generating a plurality of second comparison results and sequentially ordering the second The comparison result is transmitted to the controller through the output end of the second comparison circuit to determine the voltage value of the second measured voltage. 一種電壓監控方法,適於一電壓監控電路,該電壓監控方法包含:依據來自一控制器的一控制指令,控制一多工器輸出多個受測電壓其中之一;依據來自該控制器的一切換指令,使該控制器所產生的一檢測信號所包含的多個電位進行切換,以依序重複執行一比較程序,以產生多個比較結果,重複執行的次數為k次;以及依據該些比較結果判斷該受測電壓的電壓值;其中,該比較程序包含:當該些電位進行第i次切換時,依據該第i次切換的該些電位產生一參考電壓,k為大於3的整數,i為小於k且大於或等於0的整數;以及比較該參考電壓與該受測電壓;其中,該些電位的切換包含該些電位至少其中之一由高準位切換為低準位或由低準位切換為高準位。A voltage monitoring method is suitable for a voltage monitoring circuit, the voltage monitoring method includes: controlling a multiplexer to output one of a plurality of measured voltages according to a control command from a controller; Switching instructions, so that a plurality of potentials included in a detection signal generated by the controller are switched, and a comparison program is repeatedly executed in sequence to generate a plurality of comparison results, and the number of repeated executions is k times; The comparison result determines the voltage value of the measured voltage; wherein the comparison program includes: when the potentials are switched for the ith, generating a reference voltage according to the potentials of the ith switching, k is an integer greater than 3. And i is an integer less than k and greater than or equal to 0; and comparing the reference voltage with the measured voltage; wherein the switching of the potentials includes at least one of the potentials being switched from a high level to a low level or by The low level switches to a high level. 如請求項8所述的電壓監控方法,其中依據該些比較結果判斷該受測電壓的電壓值包含:判斷該些比較結果中相鄰的一第一比較結果及一第二比較結果的電位資訊是否相異;當該第一比較結果及該第二比較結果的電位資訊係為相異時,該控制器判斷該受測電壓的電壓值係介於該第一比較結果及該第二比較結果所分別對應之二個參考電壓的電壓值之間;以及當該第一比較結果及該第二比較結果的電位資訊係為相同時,再判斷該第二比較結果及一第三比較結果的電位資訊是否相異,其中該第三比較結果係與該第二比較結果相鄰。The voltage monitoring method of claim 8, wherein determining the voltage value of the measured voltage according to the comparison results comprises: determining potential information of a first comparison result and a second comparison result of the comparison results Whether the difference is different when the potential information of the first comparison result and the second comparison result are different, the controller determines that the voltage value of the measured voltage is between the first comparison result and the second comparison result Between the voltage values of the two corresponding reference voltages; and when the potential information of the first comparison result and the second comparison result are the same, determining the potential of the second comparison result and a third comparison result Whether the information is different, wherein the third comparison result is adjacent to the second comparison result.
TW106124654A 2017-07-21 2017-07-21 Voltage monitoring circuit and voltage monitoring method TWI696346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106124654A TWI696346B (en) 2017-07-21 2017-07-21 Voltage monitoring circuit and voltage monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106124654A TWI696346B (en) 2017-07-21 2017-07-21 Voltage monitoring circuit and voltage monitoring method

Publications (2)

Publication Number Publication Date
TW201909557A true TW201909557A (en) 2019-03-01
TWI696346B TWI696346B (en) 2020-06-11

Family

ID=66590179

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106124654A TWI696346B (en) 2017-07-21 2017-07-21 Voltage monitoring circuit and voltage monitoring method

Country Status (1)

Country Link
TW (1) TWI696346B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100626377B1 (en) * 2004-06-07 2006-09-20 삼성전자주식회사 Nonvolatile memory device that can vary the increase in program voltage according to the operating mode
US8450989B2 (en) * 2010-07-26 2013-05-28 Texas Instruments Incorporated Tracking current through switching devices
KR101366015B1 (en) * 2012-07-06 2014-02-24 한국전자통신연구원 Apparatus and method for measuring altitude
CN104485816B (en) * 2014-12-15 2017-05-24 矽力杰半导体技术(杭州)有限公司 Interleaved switching power supply and control method thereof

Also Published As

Publication number Publication date
TWI696346B (en) 2020-06-11

Similar Documents

Publication Publication Date Title
JP3088727B2 (en) Quiescent current measuring device
CN106771828B (en) Detection device and method for powered device of Ethernet power supply system
US20150198647A1 (en) On-chip test for integrated ac coupling capacitors
CN106354591A (en) Detection circuit of universal serial bus
CN108226794B (en) Secondary battery monitoring device and fault diagnosis method
EP3336565A1 (en) Secondary battery monitoring device and method for diagnosing failure
TWI648962B (en) Inspection device and method for multiple powered devices in a power over ethernet system
US9396155B2 (en) Envelope detection device and related communication device
JP6272379B2 (en) Cable inspection device and cable inspection system
US6922071B2 (en) Setting multiple chip parameters using one IC terminal
CN107329879B (en) Voltage monitoring circuit and voltage monitoring method
CN1933465B (en) Method and device for eliminating differential transmission delay difference
TWI696346B (en) Voltage monitoring circuit and voltage monitoring method
JP4948421B2 (en) Test apparatus, adjustment apparatus, adjustment method, and adjustment program
CN114720889A (en) Synchronous monitoring circuit and synchronous monitoring method applied to battery management system
CN118413461B (en) Method and device for detecting node port faults of bus type network and electronic equipment
CN112180265B (en) Battery tester
CN109031058B (en) Insulation detection device and insulation detection circuit
KR101614910B1 (en) Test apparatus
CN111044085A (en) Safety circuit and method for testing safety circuit in automation equipment
TW201830825A (en) Multi-port connector and power management method
CN121356584A (en) A sampling method, sampling device and switching power supply
HK1232957A1 (en) Inspection device and method for powered devices in a power over ethernet system
HK1232957A (en) Inspection device and method for powered devices in a power over ethernet system
US20180275179A1 (en) Detection device and detection method