[go: up one dir, main page]

TW202046109A - Motherboard battery detection device - Google Patents

Motherboard battery detection device Download PDF

Info

Publication number
TW202046109A
TW202046109A TW108119930A TW108119930A TW202046109A TW 202046109 A TW202046109 A TW 202046109A TW 108119930 A TW108119930 A TW 108119930A TW 108119930 A TW108119930 A TW 108119930A TW 202046109 A TW202046109 A TW 202046109A
Authority
TW
Taiwan
Prior art keywords
voltage
output
resistor
terminal
transistor
Prior art date
Application number
TW108119930A
Other languages
Chinese (zh)
Other versions
TWI726332B (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 TW108119930A priority Critical patent/TWI726332B/en
Publication of TW202046109A publication Critical patent/TW202046109A/en
Application granted granted Critical
Publication of TWI726332B publication Critical patent/TWI726332B/en

Links

Images

Landscapes

  • Tests Of Electric Status Of Batteries (AREA)
  • Secondary Cells (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

A motherboard battery detection device, comprising a transistor, a first resistor, a second resistor, a baseboard management controller, and a voltage follower, the baseboard management controller controls the transistor is turned on or turned off, the voltage follower receives a first input voltage from the second resistor and receives an identical second input voltage, and outputs the same voltage as the second input voltage to the baseboard management controller, the baseboard management controller receives a first output voltage from the voltage follower, when the transistor is not conducting, the substrate baseboard controller receives a second output voltage from the voltage follower when the transistor is switched to be conductive, and the baseboard management controller compares the first output voltage with whether the difference of the second output voltage is greater than a predetermined voltage value to determine whether the battery is not present.

Description

主機板電池偵測裝置Motherboard battery detection device

本發明是有關於一種電源偵測裝置,特別是指一種主機板電池的偵測裝置。The invention relates to a power detection device, in particular to a detection device for a motherboard battery.

現有的伺服器具有一用以供其一主機板讀寫資料,並儲存系統當前的硬體相關配置的CMOS(Complementary Metal-Oxide-Semiconductor)RAM(Random Access Memory)晶片,(以下以CMOS RAM晶片簡稱),該CMOS RAM晶片藉由一即時時脈(RTC;Real Time Clock)以保持當前時間,當伺服器電源關閉時,該CMOS RAM晶片則藉由如圖1所示的主機板的一電池21接收電能以維持在可讀取該即時時脈的狀態,並保留其儲存的資料。當該電池21無法正常供電時,則CMOS RAM晶片原本儲存的資料將因而遺失,因此,伺服器通常都會監控此電池的電量,以免重要的CMOS RAM晶片内容丟失。The existing server has a CMOS (Complementary Metal-Oxide-Semiconductor) RAM (Random Access Memory) chip used to read and write data on one of its motherboards and store the current hardware-related configuration of the system, (hereinafter CMOS RAM chip Abbreviation), the CMOS RAM chip uses a real time clock (RTC; Real Time Clock) to maintain the current time. When the server power is turned off, the CMOS RAM chip uses a battery on the motherboard as shown in Figure 1. 21 receives electrical energy to maintain the state where the real-time clock can be read, and retains its stored data. When the battery 21 fails to supply power normally, the data originally stored in the CMOS RAM chip will be lost. Therefore, the server usually monitors the battery power to avoid loss of important CMOS RAM chip content.

而現有的伺服器監控其主機板上的該電池21的電量主要是藉由一電池偵測裝置執行,該電池偵測裝置包含一第一分壓器22、一電晶體23、一第二分壓器24,及一基板管理控制器25,該第一分壓器22包括一電連接該電池21的第一電阻221,及一接地的第二電阻222,該電晶體23包括一電連接該第一電阻221的汲極、一電連接該第二電阻222的源極,及一電連接該基板管理控制器25與該第二分壓器24的閘極,該第二分壓器24包括一電連接該閘極的第一電阻241,及一接地的第二電阻242,該基板管理控制器25包括一電連接該第二分壓器24的該第一電阻241的通用型輸入輸出接腳(GPIO: General Purpose Input Output)251,及一電連接該源極的類比數位轉換單元252。The existing server monitors the power of the battery 21 on its motherboard mainly by a battery detection device. The battery detection device includes a first voltage divider 22, a transistor 23, and a second divider. The voltage divider 24 and a baseboard management controller 25. The first voltage divider 22 includes a first resistor 221 electrically connected to the battery 21 and a second resistor 222 connected to ground. The transistor 23 includes an electrical connection to the The drain of the first resistor 221, a source electrically connected to the second resistor 222, and a gate electrically connected to the baseboard management controller 25 and the second voltage divider 24. The second voltage divider 24 includes A first resistor 241 electrically connected to the gate and a second resistor 242 connected to ground. The baseboard management controller 25 includes a universal input/output interface electrically connected to the first resistor 241 of the second voltage divider 24 Pin (GPIO: General Purpose Input Output) 251, and an analog-to-digital conversion unit 252 electrically connected to the source.

當該電池21正常供電,該電晶體23受該基板管理控制器25經由該通用型輸入輸出接腳251控制而導通/不導通,該類比數位轉換單元252可經由該第二電阻222接收相關於該電池21的輸出電壓,當該電池21電量為零,該電晶體23受該基板管理控制器25經由該通用型輸入輸出接腳251控制而導通/不導通,則該類比數位轉換單元252經由該第二電阻222接收相關於該電池21的零輸出電壓,然而,若該電池21不存在於主機板(即,未與該第一電阻221電連接),依照上述偵測機制,該類比數位轉換單元252經由該第二電阻222接收到的電壓值仍為零伏特,換句話說,當偵測到零伏特時,無法得知是電池不存在還是電池電量已耗盡。再者,為了避免該類比數位轉換單元252轉換電壓時造成誤判,整體電路需滿足極低漏電流的需求,因而必須將第一分壓器22以及第二分壓器24的分壓電阻值調低,然而,調得太低會使得電池因輸出電流增加,耗電過度,進而使其壽命降低,然而,若分壓電阻值調得太高則會使輸出電流減少,使得基板管理控制器25的類比數位轉換單元252檢測到的電量過低,進而使其有誤判之虞。When the battery 21 is normally powered, the transistor 23 is turned on/off controlled by the baseboard management controller 25 via the universal input/output pin 251, and the analog-to-digital conversion unit 252 can receive information related to it through the second resistor 222 The output voltage of the battery 21, when the battery 21 is zero, the transistor 23 is turned on/off controlled by the baseboard management controller 25 through the universal input/output pin 251, and the analog-to-digital conversion unit 252 passes through The second resistor 222 receives the zero output voltage related to the battery 21. However, if the battery 21 is not present on the motherboard (that is, not electrically connected to the first resistor 221), according to the above detection mechanism, the analog digital The voltage value received by the conversion unit 252 via the second resistor 222 is still zero volts. In other words, when zero volts are detected, it is impossible to know whether the battery is absent or the battery is exhausted. Furthermore, in order to avoid misjudgment when the analog-to-digital conversion unit 252 converts the voltage, the overall circuit needs to meet the requirement of extremely low leakage current, so the voltage divider resistance values of the first voltage divider 22 and the second voltage divider 24 must be changed. Turn it down, however, if it is adjusted too low, the output current of the battery will increase, and the battery will consume too much power, which will reduce its life. However, if the voltage divider resistance value is adjusted too high, the output current will decrease, which will make the board management control The power level detected by the analog-to-digital conversion unit 252 of the device 25 is too low, which may cause misjudgment.

總結現有的主機板電池的電池偵測裝置,主要有以下缺點:In summary, the existing battery detection devices for motherboard batteries have the following disadvantages:

一、無法偵測電池不存在的情況。1. It is impossible to detect the absence of the battery.

二、電晶體23的判斷架構,會造成類比數位轉換單元252進行數值轉換時的誤差進而誤判電池電壓。2. The judgment structure of the transistor 23 will cause errors when the analog-to-digital conversion unit 252 performs the value conversion and thus misjudge the battery voltage.

因此,現有偵測主機板電池的電池偵測裝置有改善的必要。Therefore, it is necessary to improve the existing battery detection device for detecting the battery on the motherboard.

因此,本發明的目的,即在提供一種主機板電池偵測裝置。Therefore, the purpose of the present invention is to provide a motherboard battery detection device.

於是,本發明主機板電池偵測裝置,適用於偵測一電池,該主機板電池偵測裝置包含一電晶體、一第一電阻、一第二電阻、一基板管理控制器,及一電壓隨耦器。Therefore, the motherboard battery detection device of the present invention is suitable for detecting a battery. The motherboard battery detection device includes a transistor, a first resistor, a second resistor, a substrate management controller, and a voltage follower Coupler.

該電晶體包括一第一端、一接地的第二端,及一控制端。The transistor includes a first terminal, a grounded second terminal, and a control terminal.

該第一電阻包括一電連接該電晶體的該第一端的第一端,及一第二端。The first resistor includes a first end electrically connected to the first end of the transistor, and a second end.

該第二電阻包括一電連接該第一電阻的該第二端的第一端,及一第二端,該第二電阻的第二端用以電連接該電池。The second resistor includes a first end electrically connected to the second end of the first resistor, and a second end, and the second end of the second resistor is used to electrically connect the battery.

該基板管理控制器電連接該電晶體的該控制端,並控制該電晶體切換於一導通狀態與不導通狀態二者其中之一。The substrate management controller is electrically connected to the control terminal of the transistor, and controls the transistor to switch to one of a conductive state and a non-conductive state.

該電壓隨耦器包括一電連接該第二電阻的該第一端的非反向端、一反向端,及一電連接該反向端的輸出端,該非反向端自該第二電阻的該第一端接收一第一輸入電壓,該反向端接收一與該第一輸入電壓相同的第二輸入電壓,該輸出端輸出與該第二輸入電壓相同的電壓。The voltage follower includes a non-reverse terminal electrically connected to the first terminal of the second resistor, a reverse terminal, and an output terminal electrically connected to the reverse terminal. The first terminal receives a first input voltage, the reverse terminal receives a second input voltage the same as the first input voltage, and the output terminal outputs the same voltage as the second input voltage.

當該電晶體處於該不導通狀態,該基板管理控制器接收一正相關於該電壓隨耦器的該輸出端輸出的電壓的第一輸出電壓,當該電晶體切換於該導通狀態,該基板管理控制器接收一正相關於該電壓隨耦器的該輸出端輸出的電壓的第二輸出電壓,該基板管理控制器比較該第一輸出電壓與該第二輸出電壓的差值是否大於一預設電壓值,以判斷該電池是否不存在。When the transistor is in the non-conducting state, the substrate management controller receives a first output voltage that is directly related to the voltage output from the output terminal of the voltage follower. When the transistor is switched to the conducting state, the substrate The management controller receives a second output voltage that is positively correlated with the voltage output from the output terminal of the voltage follower, and the baseboard management controller compares whether the difference between the first output voltage and the second output voltage is greater than a predetermined value. Set the voltage value to determine whether the battery does not exist.

本發明的功效在於:藉由電壓隨耦器其整體增益值為1的特性,在基板管理控制器控制電晶體導通或不導通時,將偵測到的電池電壓傳送到基板管理控制器並與預設電壓值做比較,以判斷電池是否存在。The effect of the present invention is that by the characteristic that the voltage follower has an overall gain value of 1, when the substrate management controller controls the conduction or non-conduction of the transistor, the detected battery voltage is transmitted to the substrate management controller and communicated with The preset voltage value is compared to determine whether the battery exists.

參閱圖2,本發明主機板電池偵測裝置的一實施例,適用於偵測一電池3,該主機板電池偵測裝置包含一電晶體4、一第一電阻5、一第二電阻6、一基板管理控制器7、一電壓隨耦器8,及一分壓器9。Referring to Fig. 2, an embodiment of the motherboard battery detection device of the present invention is suitable for detecting a battery 3. The motherboard battery detection device includes a transistor 4, a first resistor 5, a second resistor 6, A baseboard management controller 7, a voltage follower 8, and a voltage divider 9.

該電晶體4包括一第一端41、一接地的第二端42,及一控制端43,該電晶體4為N型金氧半場效電晶體(N-type MOSFET: N-type Metal Oxide Semiconductor Field Effect Transistor),其中,該第一端41是汲極,該第二端42是源極,該控制端43是閘極。需再補充說明的是,本實施例的該電晶體4亦可為P型金氧半場效電晶體(P-type MOSFET: N-type Metal Oxide Semiconductor Field Effect Transistor),其中,該第一端41是源極,該第二端42是汲極,該控制端43是閘極;或為雙極性接面型電晶體(BJT: Bipolar Junction Transistor),其中,該第一端41是集極,該第二端42是射極,該控制端43是基極。The transistor 4 includes a first terminal 41, a grounded second terminal 42, and a control terminal 43. The transistor 4 is an N-type MOSFET (N-type Metal Oxide Semiconductor). Field Effect Transistor), where the first terminal 41 is a drain, the second terminal 42 is a source, and the control terminal 43 is a gate. It should be supplemented that the transistor 4 of this embodiment can also be a P-type MOSFET (N-type Metal Oxide Semiconductor Field Effect Transistor), wherein the first terminal 41 Is a source, the second terminal 42 is a drain, and the control terminal 43 is a gate; or a bipolar junction transistor (BJT: Bipolar Junction Transistor), wherein the first terminal 41 is a collector, and the The second terminal 42 is the emitter, and the control terminal 43 is the base.

該第一電阻5包括一第一端51,及一第二端52,該地一端51電連接該電晶體4的該第一端41。The first resistor 5 includes a first terminal 51 and a second terminal 52. The ground terminal 51 is electrically connected to the first terminal 41 of the transistor 4.

該第二電阻6包括一第一端61,及一第二端62,該第一端61電連接該第一電阻5的該第二端52,該第二端62用以電連接該電池3。The second resistor 6 includes a first terminal 61 and a second terminal 62. The first terminal 61 is electrically connected to the second terminal 52 of the first resistor 5, and the second terminal 62 is electrically connected to the battery 3 .

該基板管理控制器7包括一通用型輸入輸出接腳71,及一類比數位轉換單元72,該通用型輸入輸出接腳71電連接該電晶體4的該第二端42,該通用型輸入輸出接腳71用以輸出一邏輯信號到該電晶體4的控制端,該邏輯信號由該基板管理控制器7設定於高準位與低準位之間變化,以控制該電晶體4切換於一導通狀態與不導通狀態二者其中之一,該類比數位轉換單元72為一類比數位轉換器(ADC: Analog Digital Converter),接收自該電壓隨耦器8輸出的類比形式的電壓。The baseboard management controller 7 includes a universal input/output pin 71 and an analog-to-digital conversion unit 72. The universal input/output pin 71 is electrically connected to the second terminal 42 of the transistor 4. The universal input/output The pin 71 is used to output a logic signal to the control terminal of the transistor 4. The logic signal is set by the substrate management controller 7 to change between a high level and a low level to control the transistor 4 to switch to a In one of the conducting state and the non-conducting state, the analog-to-digital conversion unit 72 is an analog-digital converter (ADC: Analog Digital Converter), which receives the analog voltage output from the voltage follower 8.

該電壓隨耦器8為一負回授放大器(negative feedback amplifier),包括一非反向端81、一反向端82,及一輸出端85,該非反向端81電連接該第二電阻6的該第一端61,該反向端82與該輸出端85電連接,使該電壓隨耦器8成為整體放大器增益為1的單位增益緩衝器(Unity-Gain Buffer),因此,該電壓隨耦器8整體的放大器增益為1,而該非反向端81自該第二電阻6的該第一端61接收一第一輸入電壓,該反向端82接收一與該第一輸入電壓相同的第二輸入電壓,該輸出端85輸出與該第二輸入電壓相同的電壓,配合參閱圖3,進一步說明該電壓隨耦器8的細部電路,在本實施例中,該電壓隨耦器8是採用型號為LM358的運算放大器搭配該回授電阻83與該接地電阻84所實現。The voltage follower 8 is a negative feedback amplifier, and includes a non-reverse terminal 81, a reverse terminal 82, and an output terminal 85. The non-reverse terminal 81 is electrically connected to the second resistor 6 The first terminal 61, the reverse terminal 82 and the output terminal 85 are electrically connected, so that the voltage follower 8 becomes a Unity-Gain Buffer with an overall amplifier gain of 1. Therefore, the voltage follows The overall amplifier gain of the coupler 8 is 1, and the non-inverting terminal 81 receives a first input voltage from the first terminal 61 of the second resistor 6, and the inverting terminal 82 receives a voltage equal to the first input voltage. The second input voltage, the output terminal 85 outputs the same voltage as the second input voltage. With reference to FIG. 3, the detailed circuit of the voltage follower 8 is further described. In this embodiment, the voltage follower 8 is It is realized by using an operational amplifier of model LM358 with the feedback resistor 83 and the ground resistor 84.

該分壓器9包括一第三電阻91,及一第四電阻92,該第三電阻91具有一電連接該電壓隨耦器8的該輸出端85的第一端911,及一電連接該類比數位轉換單元72的第二端912,該第四電阻92具有一電連接該第三電阻91的第二端912的第一端921,及一接地的第二端922,一般而言,類比數位轉換器有其對應的解析度,即,其有允許可正確接收的類比訊號的電壓範圍與對應可輸出離散數位訊號的個數,舉例來說:若類比數位轉換器為16位元,其可接收的信號電壓範圍是落在0~1.8伏特之間,當接收到的信號的電壓值高於1.8伏特,就必須先經由分壓電阻做分壓轉換,才可準確接收,以實務設計經驗來說,最佳的分壓值是類比數位轉換器可接收信號電壓範圍最大值的3/4,即,第三電阻與第四電阻的電阻值比例為1:3,在本實施例中,由於電壓隨耦器8的輸出信號的電壓值不一定是對應在該類比數位轉換單元72的可正確接收範圍內,藉由配合該類比數位轉換單元72的接收電壓範圍,設計調整該第三電阻91與該第四電阻92的電阻值,可將該電壓隨耦器8的該輸出端85的輸出電壓經過分壓後再傳送到該類比數位轉換單元72,使其可準確接收,假設該第三電阻91的電阻值為

Figure 02_image001
,該第四電阻92的電阻值為
Figure 02_image003
,該輸出端的輸出電壓為
Figure 02_image005
,則該類比數位轉換單元72接收到的信號的電壓值為
Figure 02_image007
。The voltage divider 9 includes a third resistor 91 and a fourth resistor 92. The third resistor 91 has a first terminal 911 electrically connected to the output terminal 85 of the voltage follower 8 and an electrically connected The second end 912 of the analog-to-digital conversion unit 72. The fourth resistor 92 has a first end 921 electrically connected to the second end 912 of the third resistor 91, and a grounded second end 922. Generally speaking, the analog The digital converter has its corresponding resolution, that is, it has the voltage range of the analog signal that can be correctly received and the corresponding number of discrete digital signals that can be output. For example, if the analog-to-digital converter is 16 bits, its The signal voltage range that can be received is between 0 and 1.8 volts. When the voltage value of the received signal is higher than 1.8 volts, it must be converted by a voltage divider resistor before it can be accurately received. Based on practical design experience In other words, the optimal voltage division value is 3/4 of the maximum value of the signal voltage range that the analog-to-digital converter can receive, that is, the resistance ratio of the third resistor and the fourth resistor is 1:3. In this embodiment, Since the voltage value of the output signal of the voltage follower 8 does not necessarily correspond to the correct receiving range of the analog-to-digital conversion unit 72, the third resistor is designed and adjusted by matching the receiving voltage range of the analog-to-digital conversion unit 72 The resistance value of 91 and the fourth resistor 92 can be divided into the output voltage of the output terminal 85 of the voltage follower 8 and then transmitted to the analog-to-digital conversion unit 72 so that it can be accurately received. The resistance value of the three resistor 91 is
Figure 02_image001
, The resistance value of the fourth resistor 92 is
Figure 02_image003
, The output voltage of the output terminal is
Figure 02_image005
, Then the voltage value of the signal received by the analog-to-digital conversion unit 72 is
Figure 02_image007
.

當該電晶體4處於該不導通狀態,該基板管理控制器7自該第四電阻92的第一端921接收一正相關於該電壓隨耦器8的該輸出端85輸出的電壓的第一輸出電壓,當該電晶體4切換於該導通狀態,該基板管理控制器7再自該第四電阻92的第一端921接收一正相關於該電壓隨耦器8的該輸出端85輸出的電壓的第二輸出電壓,該基板管理控制器7藉由比較該第一輸出電壓與該第二輸出電壓的差值是否大於一預設電壓值,以判斷該電池是否不存在,當該基板管理控制器7的比較結果為是,則判斷該電池不存在,當該基板管理控制器7的比較結果為否,則判斷該電池存在,並可進一步判斷電池電量,以下具體說明的更詳細做法。When the transistor 4 is in the non-conducting state, the baseboard management controller 7 receives a first terminal 921 of the fourth resistor 92 that is positively correlated with the voltage output by the output terminal 85 of the voltage follower 8 Output voltage. When the transistor 4 is switched to the on state, the baseboard management controller 7 then receives from the first terminal 921 of the fourth resistor 92 a positive correlation with the output terminal 85 of the voltage follower 8 The substrate management controller 7 compares whether the difference between the first output voltage and the second output voltage is greater than a preset voltage value to determine whether the battery does not exist. When the substrate management If the comparison result of the controller 7 is yes, it is judged that the battery does not exist, and when the comparison result of the baseboard management controller 7 is no, it is judged that the battery exists, and the battery power can be further judged, as described in more detail below.

首先,該基板管理控制器7經由該通用型輸入輸出接腳71輸出一禁能(disable)信號,即處於低準位的邏輯信號至該電晶體4的該控制端43,使該電晶體4不導通,該類比數位轉換單元72自該第四電阻92的第一端921接收該第一輸出電壓,接著,該基板管理控制器7經由該通用型輸入輸出接腳71輸出一致能(enable)信號,即處於高準位的邏輯信號至該電晶體4的該控制端43,使該電晶體4切換為導通,該類比數位轉換單元72再自該第四電阻92的第一端921接收該第二輸出電壓,該基板管理控制器7經由類比數位轉換單元72將該第一、第二輸出電壓進行類比至數位轉換並比較該第一輸出電壓與該第二輸出電壓的差值,以判斷該電池存在與否或有無電量。First, the baseboard management controller 7 outputs a disable signal via the universal input/output pin 71, that is, a logic signal at a low level to the control terminal 43 of the transistor 4, so that the transistor 4 Not conducting, the analog-to-digital conversion unit 72 receives the first output voltage from the first terminal 921 of the fourth resistor 92, and then, the baseboard management controller 7 outputs an enable through the universal input/output pin 71 Signal, that is, a logic signal at a high level to the control terminal 43 of the transistor 4, so that the transistor 4 is switched on, and the analog-to-digital conversion unit 72 receives the signal from the first terminal 921 of the fourth resistor 92 For the second output voltage, the baseboard management controller 7 performs analog-to-digital conversion of the first and second output voltages via the analog-to-digital conversion unit 72 and compares the difference between the first output voltage and the second output voltage to determine The presence or absence of the battery or power.

一般來說,該電壓隨耦器8的直流偏壓Vcc為3伏特,而該電池2的電壓在未使用時為3.3伏特,在使用中則因電晶體導通,會在該第二電阻6的該第一端61形成壓降,而在本實施例中,該預設電壓值假設為1伏特,該第一電阻5的電阻值為10

Figure 02_image009
,該第二電阻6的電阻值為1
Figure 02_image011
,先依照電池是否存在於主機板,將各種狀況表列如下,並接著進一步探討各種狀況下該實施例的運作機制:   狀況一: 有電池,電池正常供電 (3.3V) 狀況二: 有電池,電池電量為零 (0V) 狀況三: 無電池 電晶體不導通 3.3V(第一輸出電壓) 0V(第一輸出電壓) 3V 電晶體導通 3V(第二輸出電壓) 0V(第二輸出電壓) 0V 第一、第二電壓差值 0.3V 0V 3V Generally speaking, the DC bias voltage Vcc of the voltage follower 8 is 3 volts, and the voltage of the battery 2 is 3.3 volts when not in use. In use, because the transistor is turned on, the voltage of the second resistor 6 The first terminal 61 forms a voltage drop, and in this embodiment, the preset voltage value is assumed to be 1 volt, and the resistance value of the first resistor 5 is 10
Figure 02_image009
, The resistance value of the second resistor 6 is 1
Figure 02_image011
First, according to whether the battery exists on the motherboard, the various conditions are listed as follows, and then the operation mechanism of this embodiment under various conditions is further discussed: Condition 1: There is a battery, the battery is normally powered (3.3V) Condition 2: There is a battery, and the battery power is zero (0V) Condition 3: No battery Transistor does not conduct 3.3V (first output voltage) 0V (first output voltage) 3V Transistor on 3V (second output voltage) 0V (second output voltage) 0V The first and second voltage difference 0.3V 0V 3V

一、該電池2存在且可正常供電:若該基板管理控制器7經由該通用型輸入輸出接腳71控制該電晶體4不導通,電池的放電路徑等同開路,則該類比數位轉換單元72接收到的該第一輸出電壓即為與該電池2在未使用時的電壓值成正比的電壓,因此,該第一輸出電壓為3.3伏特(為方便說明,假設該第三電阻91與該第四電阻92二者組成的分壓比例為1,即該第三電阻91電阻值為零);若該基板管理控制器7經由該通用型輸入輸出接腳71控制該電晶體4導通,則該類比數位轉換單元72接收到的該第二輸出電壓即為該電池2在該第二電阻6的該第二端62的分壓(

Figure 02_image012
),此時,該第一、第二輸出電壓的差值不大於該預設電壓值。1. The battery 2 exists and can supply power normally: If the baseboard management controller 7 controls the transistor 4 to be non-conductive via the universal input and output pin 71, and the battery discharge path is equivalent to an open circuit, the analog-to-digital conversion unit 72 receives The first output voltage obtained is a voltage proportional to the voltage value of the battery 2 when it is not in use. Therefore, the first output voltage is 3.3 volts (for the convenience of description, it is assumed that the third resistor 91 and the fourth The voltage division ratio of the two resistors 92 is 1, that is, the resistance of the third resistor 91 is zero); if the baseboard management controller 7 controls the transistor 4 to be turned on through the universal input and output pin 71, the analogy The second output voltage received by the digital conversion unit 72 is the divided voltage of the battery 2 at the second end 62 of the second resistor 6 (
Figure 02_image012
), at this time, the difference between the first and second output voltages is not greater than the preset voltage value.

二、該電池2存在且電量為零:若該基板管理控制器7經由該通用型輸入輸出接腳71控制該電晶體4不導通,則該類比數位轉換單元72接收到的該第一輸出電壓即為該電池2在未使用時的電壓,因此,該第一輸出電壓此時為0伏特,若該基板管理控制器7經由該通用型輸入輸出接腳71控制該電晶體4導通,則該類比數位轉換單元72接收到的該第二輸出電壓即為該電池2在該第二電阻6的該第二端62的分壓,因此,該第二輸出電壓此時為0伏特,則該第一第二輸出電壓的差值不大於該預設電壓值。2. The battery 2 exists and the power is zero: if the baseboard management controller 7 controls the transistor 4 to be non-conductive via the universal input and output pin 71, the first output voltage received by the analog-to-digital conversion unit 72 This is the voltage of the battery 2 when it is not in use. Therefore, the first output voltage is 0 volts at this time. If the baseboard management controller 7 controls the transistor 4 to be turned on through the universal input and output pin 71, the The second output voltage received by the analog-to-digital conversion unit 72 is the divided voltage of the battery 2 at the second end 62 of the second resistor 6. Therefore, the second output voltage is 0 volts at this time, then the first The difference of a second output voltage is not greater than the preset voltage value.

三、該電池2不存在:若該基板管理控制器7經由該通用型輸入輸出接腳71控制該電晶體4不導通,則該類比數位轉換單元72接收到的該第一輸出電壓為該電壓隨耦器8的直流偏壓Vcc(3伏特),(即,該非反向端81與該電池2及該電晶體4之間視為開路,因此電壓隨耦器8的電晶體Q1~Q4不導通,而Q5~Q6導通,因此該類比數位轉換單元72接收到的該第一輸出電壓即為該電壓隨耦器8的直流偏壓Vcc),若該基板管理控制器7經由該通用型輸入輸出接腳71控制該電晶體4導通,對於該非反向端81而言為接地,因此接收到的該第一輸入電壓為零伏特,該反向端82則因虛短路(Virtual Short)特性同樣接收到零伏特的第二輸入電壓,因此該輸出端85輸出零伏特的第二輸出電壓,此時,該第一第二輸出電壓的差值大於該預設電壓值。3. The battery 2 does not exist: if the baseboard management controller 7 controls the transistor 4 to be non-conductive via the universal input/output pin 71, the first output voltage received by the analog-to-digital conversion unit 72 is the voltage The DC bias voltage Vcc (3 volts) of the follower 8 (that is, the non-inverting terminal 81 is regarded as an open circuit with the battery 2 and the transistor 4, so the transistors Q1~Q4 of the voltage follower 8 are not Q5~Q6 are turned on, so the first output voltage received by the analog-to-digital conversion unit 72 is the DC bias voltage Vcc of the voltage follower 8), if the baseboard management controller 7 receives the universal input The output pin 71 controls the transistor 4 to be turned on. For the non-inverting terminal 81, it is grounded. Therefore, the received first input voltage is zero volts, and the inverting terminal 82 is also due to the virtual short characteristic. A second input voltage of zero volt is received, so the output terminal 85 outputs a second output voltage of zero volt. At this time, the difference between the first and second output voltages is greater than the preset voltage value.

由上述三種情況可知,當該第一輸出電壓與該第二輸出電壓的差值大於該預設電壓值,代表該電池不存在,當該第一輸出電壓與該第二輸出電壓的差值不大於該預設電壓值,則代表該電池存在,且當該類比數位轉換單元72接收到的該第一、第二輸出電壓皆為零,代表該電池電量為零,當該類比數位轉換單元72接收到的該第一、第二輸出電壓不為零,代表該電池電量不為零。It can be seen from the above three situations that when the difference between the first output voltage and the second output voltage is greater than the preset voltage value, it means that the battery does not exist, and when the difference between the first output voltage and the second output voltage is not Greater than the preset voltage value, it means that the battery exists, and when the first and second output voltages received by the analog-to-digital conversion unit 72 are both zero, it means that the battery power is zero, and when the analog-to-digital conversion unit 72 The received first and second output voltages are not zero, which means that the battery power is not zero.

該實施例藉由基板管理控制器7經由通用型輸入輸出接腳71控制電晶體4導通/不導通,再由基板管理控制器7的類比數位轉換單元72接收由電壓隨耦器8傳送電壓值的差異進而判斷電池狀況,進而有以下優點:In this embodiment, the substrate management controller 7 controls the conduction/non-conduction of the transistor 4 through the universal input and output pins 71, and the analog-to-digital conversion unit 72 of the substrate management controller 7 receives the voltage value transmitted by the voltage follower 8 The difference in the battery status is then judged, and then has the following advantages:

一、藉由電壓隨耦器8直接偵測電池3在第二電阻6的分壓,無須考量電晶體4的漏電流情形,進而不會造成類比數位轉換單元72轉換數值的誤差。1. The voltage follower 8 directly detects the partial voltage of the battery 3 in the second resistor 6, without considering the leakage current of the transistor 4, and thus will not cause errors in the conversion value of the analog-to-digital conversion unit 72.

二、藉由電壓隨耦器8增益值為1,可將電池3的電壓值完整輸出的特性,配合控制電晶體4導通或不導通,進而透過電壓隨耦器8的輸出值判斷電池3在此二種狀態下的電壓差值,分別可準確判斷出電池3是存在於主機板且有電量、或電池3是存在於主機板且無電量,或電池3不存在於主機板。2. With the gain value of the voltage follower 8 being 1, the voltage value of the battery 3 can be completely output, and the transistor 4 can be controlled to be conductive or non-conductive, and then the output value of the voltage follower 8 can be used to determine whether the battery 3 is The voltage difference between the two states can accurately determine whether the battery 3 is present on the motherboard and has power, or whether the battery 3 is present on the motherboard and has no power, or the battery 3 does not exist on the motherboard.

綜上所述,本發明主機板電池偵測裝置藉由使用電壓隨耦器增益值為1的特性,在基板管理控制器控制電晶體導通或不導通時,將偵測到的電池的電壓值完整傳送到基板管理控制器,並由基板管理控制器將接收到的電壓值與預設電壓值做比較,以判斷電池是否存在,故確實能達成本發明的目的。In summary, the motherboard battery detection device of the present invention uses the characteristic that the gain value of the voltage follower is 1 to detect the voltage value of the battery when the baseboard management controller controls the conduction or non-conduction of the transistor It is completely transmitted to the baseboard management controller, and the baseboard management controller compares the received voltage value with the preset voltage value to determine whether the battery exists, so it can indeed achieve the purpose of the invention.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above are only examples of the present invention. When the scope of implementation of the present invention cannot be limited by this, all simple equivalent changes and modifications made in accordance with the scope of the patent application of the present invention and the content of the patent specification still belong to Within the scope of the patent for the present invention.

21:電池 22:第一分壓器 221:第一電阻 222:第二電阻 23:電晶體 24:第二分壓器 241:第一電阻 242:第二電阻 25:基板管理控制器 251:通用型輸入輸出接腳 252:類比數位轉換單元 3:電池 4:電晶體 41:第一端 42:第二端 43:控制端 5:第一電阻 51:第一端 52:第二端 6:第二電阻 61:第一端 62:第二端 7:基板管理控制器 71:通用型輸入輸出接腳 72:類比數位轉換單元 8:電壓隨耦器 81:非反向端 82:反向端 85:輸出端 91:第三電阻 911:第一端 912:第二端 92:第二電阻 921:第一端 922:第二端 Vcc:直流偏壓 Q1~Q10:電晶體 21: battery 22: The first voltage divider 221: first resistance 222: second resistor 23: Transistor 24: second voltage divider 241: first resistance 242: second resistor 25: baseboard management controller 251: General-purpose input and output pins 252: Analog-to-digital conversion unit 3: battery 4: Transistor 41: first end 42: second end 43: control terminal 5: The first resistance 51: first end 52: second end 6: second resistor 61: first end 62: second end 7: baseboard management controller 71: General-purpose input and output pins 72: Analog-to-digital conversion unit 8: Voltage follower 81: non-reverse end 82: reverse end 85: output 91: third resistor 911: first end 912: second end 92: second resistor 921: first end 922: second end Vcc: DC bias Q1~Q10: Transistor

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一電路圖,說明習知的一主機板電池偵測裝置; 圖2是一電路圖,說明本發明主機板電池偵測裝置的一實施例;及 圖3是一電路圖,輔助說明該實施例部分電路的具體做法。Other features and effects of the present invention will be clearly presented in the embodiments with reference to the drawings, in which: Figure 1 is a circuit diagram illustrating a conventional motherboard battery detection device; 2 is a circuit diagram illustrating an embodiment of the battery detection device for the motherboard of the present invention; and Fig. 3 is a circuit diagram to assist in explaining the specific methods of some circuits of this embodiment.

3:電池 3: battery

4:電晶體 4: Transistor

41:第一端 41: first end

42:第二端 42: second end

43:控制端 43: control terminal

5:第一電阻 5: The first resistance

51:第一端 51: first end

52:第二端 52: second end

6:第二電阻 6: second resistor

61:第一端 61: first end

62:第二端 62: second end

7:基板管理控制器 7: baseboard management controller

71:通用型輸入輸出接腳 71: General-purpose input and output pins

72:類比數位轉換單元 72: Analog-to-digital conversion unit

8:電壓隨耦器 8: Voltage follower

81:非反向端 81: non-reverse end

82:反向端 82: reverse end

85:輸出端 85: output

91:第一電阻 91: first resistance

911:第一端 911: first end

912:第二端 912: second end

92:第二電阻 92: second resistor

921:第一端 921: first end

922:第二端 922: second end

Claims (9)

一種主機板電池偵測裝置,適用於偵測一電池,該主機板電池偵測裝置包含: 一電晶體,包括一第一端、一接地的第二端,及一控制端; 一第一電阻,包括一電連接該電晶體的該第一端的第一端,及一第二端; 一第二電阻,包括一電連接該第一電阻的該第二端的第一端,及一第二端,該第二電阻的該第二端用以電連接該電池; 一基板管理控制器,電連接該電晶體的該控制端,並控制該電晶體切換於一導通狀態與不導通狀態二者其中之一;及 一電壓隨耦器,包括一電連接該第二電阻的該第一端的非反向端、一反向端,及一電連接該反向端的輸出端,該非反向端自該第二電阻的該第一端接收一第一輸入電壓,該反向端接收一與該第一輸入電壓相同的第二輸入電壓,該輸出端輸出與該第二輸入電壓相同的電壓, 當該電晶體處於該不導通狀態,該基板管理控制器接收一正相關於該電壓隨耦器的該輸出端輸出的電壓的第一輸出電壓, 當該電晶體切換於該導通狀態,該基板管理控制器接收一正相關於該電壓隨耦器的該輸出端輸出的電壓的第二輸出電壓, 該基板管理控制器比較該第一輸出電壓與該第二輸出電壓的差值是否大於一預設電壓值,以判斷該電池是否不存在。A motherboard battery detection device is suitable for detecting a battery. The motherboard battery detection device includes: A transistor including a first terminal, a grounded second terminal, and a control terminal; A first resistor, including a first end electrically connected to the first end of the transistor, and a second end; A second resistor, including a first end electrically connected to the second end of the first resistor, and a second end, and the second end of the second resistor is used to electrically connect the battery; A substrate management controller, which is electrically connected to the control terminal of the transistor, and controls the transistor to switch to one of a conducting state and a non-conducting state; and A voltage follower includes a non-reverse end electrically connected to the first end of the second resistor, a reverse end, and an output end electrically connected to the reverse end. The non-reverse end is from the second resistor The first terminal of the receiving terminal receives a first input voltage, the inverting terminal receives a second input voltage the same as the first input voltage, and the output terminal outputs the same voltage as the second input voltage, When the transistor is in the non-conducting state, the baseboard management controller receives a first output voltage that is directly related to the voltage output by the output terminal of the voltage follower, When the transistor is switched in the on state, the baseboard management controller receives a second output voltage that is directly related to the voltage output by the output terminal of the voltage follower, The baseboard management controller compares whether the difference between the first output voltage and the second output voltage is greater than a preset voltage value to determine whether the battery does not exist. 如請求項1所述的主機板電池偵測裝置,其中,當該第一輸出電壓與該第二輸出電壓的差值大於該預設電壓值,該電池不存在。The motherboard battery detection device according to claim 1, wherein when the difference between the first output voltage and the second output voltage is greater than the preset voltage value, the battery does not exist. 如請求項2所述的主機板電池偵測裝置,其中,該第一輸出電壓為該電壓隨耦器的操作電壓。The motherboard battery detection device according to claim 2, wherein the first output voltage is an operating voltage of the voltage follower. 如請求項1所述的主機板電池偵測裝置,其中,當該第一輸出電壓與該第二輸出電壓的差值不大於該預設電壓值,該電池存在。The motherboard battery detection device according to claim 1, wherein, when the difference between the first output voltage and the second output voltage is not greater than the preset voltage value, the battery exists. 如請求項1所述的主機板電池偵測裝置,其中,該基板管理控制器包括一電連接該電晶體的該控制端的通用型輸入輸出接腳,該通用型輸入輸出接腳用以輸出一邏輯信號到該電晶體的控制端,該邏輯信號由該基板管理控制器設定於高準位與低準位之間變化。The motherboard battery detection device according to claim 1, wherein the baseboard management controller includes a universal input/output pin electrically connected to the control terminal of the transistor, and the universal input/output pin is used to output a The logic signal is sent to the control terminal of the transistor, and the logic signal is set by the substrate management controller to change between a high level and a low level. 如請求項1所述的主機板電池偵測裝置,其中,該基板管理控制器還包括一接收該第一輸出電壓與該第二輸出電壓的類比數位轉換單元。The motherboard battery detection device according to claim 1, wherein the baseboard management controller further includes an analog-to-digital conversion unit that receives the first output voltage and the second output voltage. 如請求項1所述的主機板電池偵測裝置,還包含一電連接該電壓隨耦器的輸出端與該類比數位轉換單元的分壓器,該分壓器依照一分壓比例將該電壓隨耦器的輸出端輸出的電壓轉換為該第一輸出電壓與該第二輸出電壓。The motherboard battery detection device according to claim 1, further comprising a voltage divider electrically connecting the output terminal of the voltage follower and the analog-to-digital conversion unit, the voltage divider according to a voltage division ratio The voltage output from the output terminal of the follower is converted into the first output voltage and the second output voltage. 如請求項1所述的主機板電池偵測裝置,其中,該電壓隨耦器為負回授放大器。The motherboard battery detection device according to claim 1, wherein the voltage follower is a negative feedback amplifier. 如請求項7所述的主機板電池偵測裝置,其中,該分壓器包括一第三電阻,及一第四電阻,該第三電阻具有一電連接該電壓隨耦器的該輸出端的第一端,及一電連接該類比數位轉換單元的第二端,該第四電阻具有一電連接該第三電阻的第二端的第一端,及一接地的第二端,當該電晶體處於該不導通狀態,該基板管理控制器自該第四電阻的第一端接收一正相關於該電壓隨耦器的該輸出端輸出的電壓的第一輸出電壓,當該電晶體切換於該導通狀態,該基板管理控制器再自該第四電阻的第一端接收一正相關於該電壓隨耦器的該輸出端輸出的電壓的第二輸出電壓。The motherboard battery detection device according to claim 7, wherein the voltage divider includes a third resistor and a fourth resistor, and the third resistor has a first resistor electrically connected to the output terminal of the voltage follower One end, and a second end electrically connected to the analog-to-digital conversion unit, the fourth resistor has a first end electrically connected to the second end of the third resistor, and a second end that is grounded. When the transistor is in In the non-conductive state, the baseboard management controller receives a first output voltage from the first terminal of the fourth resistor that is directly related to the voltage output from the output terminal of the voltage follower. When the transistor is switched to the conductive In the state, the baseboard management controller receives a second output voltage from the first terminal of the fourth resistor, which is positively correlated with the output voltage of the output terminal of the voltage follower.
TW108119930A 2019-06-10 2019-06-10 Motherboard battery detection device TWI726332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108119930A TWI726332B (en) 2019-06-10 2019-06-10 Motherboard battery detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108119930A TWI726332B (en) 2019-06-10 2019-06-10 Motherboard battery detection device

Publications (2)

Publication Number Publication Date
TW202046109A true TW202046109A (en) 2020-12-16
TWI726332B TWI726332B (en) 2021-05-01

Family

ID=74668420

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108119930A TWI726332B (en) 2019-06-10 2019-06-10 Motherboard battery detection device

Country Status (1)

Country Link
TW (1) TWI726332B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI829332B (en) * 2021-09-08 2024-01-11 新唐科技股份有限公司 Integrated circuit and electronic apparatus
TWI851026B (en) * 2023-02-15 2024-08-01 神雲科技股份有限公司 Motherboard battery detection device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200976023Y (en) * 2006-06-30 2007-11-14 佛山市顺德区顺达电脑厂有限公司 CMOS battery voltage detecting circuit
JP5469813B2 (en) * 2008-01-29 2014-04-16 株式会社日立製作所 Battery system for vehicles
TW201348726A (en) * 2012-05-18 2013-12-01 Hon Hai Prec Ind Co Ltd Charge detection apparatus and method thereof
TW201430364A (en) * 2012-12-13 2014-08-01 Hon Hai Prec Ind Co Ltd Measurement circuit for battery
TWI495980B (en) * 2013-10-15 2015-08-11 緯創資通股份有限公司 Detecting circuit and configuration status detecting method of real-time clock battery and electronic apparatus using the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI829332B (en) * 2021-09-08 2024-01-11 新唐科技股份有限公司 Integrated circuit and electronic apparatus
US12362265B2 (en) 2021-09-08 2025-07-15 Nuvoton Technology Corporation Integrated circuit (IC) and electronic apparatus
TWI851026B (en) * 2023-02-15 2024-08-01 神雲科技股份有限公司 Motherboard battery detection device

Also Published As

Publication number Publication date
TWI726332B (en) 2021-05-01

Similar Documents

Publication Publication Date Title
US8314723B2 (en) Ghost key detecting circuit and related method
US8443130B2 (en) USB port detecting circuit
US7582987B2 (en) Double power sources switching circuit
CN102096620A (en) Method and device for detecting connection state of serial port, and communication system
CN101453313A (en) Communication circuit for master-slave equipment
TW202203511A (en) Usb interface detection module
TWI726332B (en) Motherboard battery detection device
CN110166259A (en) For supporting the observation circuit of a receiving end equipment of Ethernet power supply
TWI782555B (en) Power delivery system and related method of detecting overcurrent and failure
WO2018032766A1 (en) Device for generating voltage and semiconductor chip
TWI666875B (en) Connection circuit and connection method thereof
CN111624518A (en) Sensor and open circuit detection circuit thereof
CN101101502A (en) Network control device and method for starting network chip
CN112286739B (en) Motherboard battery detecting device
TWI798721B (en) Boot control circuit of computer system
CN1734269A (en) low-voltage detection circuit
WO2021100326A1 (en) Signal output device
US20120254529A1 (en) Motherboard with ddr memory devices
CN115453404A (en) Power supply voltage difference detection circuit, chip, electronic component and electronic equipment
CN108631377A (en) Power-on control circuit and mobile power supply device using same
CN114448221A (en) power supply device
TWI386788B (en) Power switch circuit
WO2019109361A1 (en) Charging circuit and electronic device
TWI530801B (en) Electronic device
CN222030116U (en) Circuit structures, circuit board assemblies and electronic devices