TWI726332B - Motherboard battery detection device - Google Patents

Motherboard battery detection device Download PDF

Info

Publication number
TWI726332B
TWI726332B TW108119930A TW108119930A TWI726332B TW I726332 B TWI726332 B TW I726332B TW 108119930 A TW108119930 A TW 108119930A TW 108119930 A TW108119930 A TW 108119930A TW I726332 B TWI726332 B TW I726332B
Authority
TW
Taiwan
Prior art keywords
voltage
output
resistor
terminal
transistor
Prior art date
Application number
TW108119930A
Other languages
Chinese (zh)
Other versions
TW202046109A (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 present 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 for reading and writing data on one of its motherboards and storing the current hardware-related configuration of the system. Referred to as), 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 electric energy to maintain the state where the real-time clock can be read, and retains the 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 power of the battery to avoid the loss of important CMOS RAM chip contents.

而現有的伺服器監控其主機板上的該電池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 It is implemented by a battery detection device, the battery detection device includes a first voltage divider 22, a transistor 23, a second voltage divider 24, and a baseboard management controller 25, the first voltage divider The device 22 includes a first resistor 221 electrically connected to the battery 21 and a second resistor 222 connected to ground. The transistor 23 includes a drain electrically connected to the first resistor 221 and a drain electrically connected to the second resistor 222. Source, 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 grounded first resistor 241 Two resistors 242. The baseboard management controller 25 includes a general purpose input and output pin (GPIO: General Purpose Input Output) 251 electrically connected to the first resistor 241 of the second voltage divider 24, and one electrically connected to the source Extremely analog-to-digital conversion unit 252.

當該電池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 through the universal input/output pin 251, and the analog-to-digital conversion unit 252 can receive the relevant information through the second resistor 222 The output voltage of the battery 21, when the power of 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, it 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 To avoid the misjudgment caused by the analog-to-digital conversion unit 252 when converting the voltage, the overall circuit needs to meet the requirement of extremely low leakage current. Therefore, the voltage divider resistance values of the first voltage divider 22 and the second voltage divider 24 must be lowered. However, Adjusting too low will cause the battery to increase its output current and consume excessive power, thereby reducing its lifespan. However, if the voltage divider resistance value is adjusted too high, the output current will decrease, making the baseboard management controller 25 analogous The power detected by the digital conversion unit 252 is too low, which may cause a misjudgment.

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

一、無法偵測電池不存在的情況。 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 battery detection device for a motherboard.

於是,本發明主機板電池偵測裝置,適用於偵測一電池,該主機板電池偵測裝置包含一電晶體、一第一電阻、一第二電阻、一基板管理控制器,及一電壓隨耦器。 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 baseboard 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 conducting state and a non-conducting state.

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

21:電池 21: battery

22:第一分壓器 22: The first voltage divider

221:第一電阻 221: first resistance

222:第二電阻 222: second resistor

23:電晶體 23: Transistor

24:第二分壓器 24: second voltage divider

241:第一電阻 241: first resistance

242:第二電阻 242: second resistor

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

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

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

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

9:分壓器 9: Voltage divider

91:第三電阻 91: third resistor

911:第一端 911: first end

912:第二端 912: second end

92:第四電阻 92: fourth resistor

921:第一端 921: first end

922:第二端 922: second end

Vcc:直流偏壓 Vcc: DC bias

Q1~Q13:電晶體 Q1~Q13: 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; Figure 2 is a circuit diagram illustrating the present invention An embodiment of the battery detection device for the motherboard of the invention; and FIG. 3 is a circuit diagram to assist in explaining the specific methods of some circuits in this embodiment.

參閱圖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), wherein 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 added 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, the second terminal 42 is an emitter, and the control terminal 43 is a 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 used to electrically connect 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, and the universal input/output pin 71 is electrically connected to the second terminal 42 of the transistor 4. 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-to-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接收一第一輸入電壓,該輸出端85輸出與該第一輸入電壓相同的電壓,配合參閱圖3,進一步說明該電壓隨耦器8的細部電路,在本實施例中,該電壓隨耦器8是採用型號為LM358的運算放大器搭配一第三電阻91與一第四電阻92所實現。 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 end 61, the reverse end 82 and the The output terminal 85 is electrically connected, so that the voltage follower 8 becomes a Unity-Gain Buffer with an overall amplifier gain of 1. Therefore, the overall amplifier gain of the voltage follower 8 is 1, and the non-inverting The terminal 81 receives a first input voltage from the first terminal 61 of the second resistor 6, and the output terminal 85 outputs the same voltage as the first input voltage. With reference to FIG. 3, the voltage follower 8 is further explained. In the detailed circuit, in this embodiment, the voltage follower 8 is implemented by using an operational amplifier model LM358 with a third resistor 91 and a fourth resistor 92.

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

Figure 108119930-A0305-02-0011-1
。 The voltage divider 9 includes the third resistor 91 and the 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 a first terminal 911 electrically connected to the output terminal 85 of the voltage follower 8 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 second end 922 that is grounded. 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 ratio of the resistance value of the third resistor 91 to the fourth resistor 92 is 1:3. In the 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, by matching the receiving voltage range of the analog-to-digital conversion unit 72, the design is adjusted The resistance values of the third resistor 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 , Assuming that the resistance value of the third resistor 91 is R 3 , the resistance value of the fourth resistor 92 is R 4 , and the output voltage of the output terminal is V , the voltage value of the signal received by the analog-to-digital conversion unit 72 is
Figure 108119930-A0305-02-0011-1
.

當該電晶體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 No conduction, this analog-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 signal via the universal input/output pin 71, that is, a high-level The logic signal is sent to the control terminal 43 of the transistor 4, so that the transistor 4 is switched on, the analog-to-digital conversion unit 72 receives the second output voltage from the first terminal 921 of the fourth resistor 92, and the substrate management The 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 whether the battery is present or has power .

一般來說,該電壓隨耦器8的直流偏壓Vcc為3伏特,而該電池2的電壓在未使用時為3.3伏特,在使用中則因電晶體導通,會在該第二電阻6的該第一端61形成壓降,而在本實施例中,該預設電壓值假設為1伏特,該第一電阻5的電阻值為10MΩ,該第二電阻6的電阻值為1MΩ,先依照電池是否存在於主機板,將各種狀況表列如下,並接著進一步探討各種狀況下該實施例的運作機制:

Figure 108119930-A0305-02-0012-2
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. the first end 61 creates a pressure drop, in the present embodiment, the predetermined voltage value is assumed to be 1 volt, the resistance of the first resistor 5 is 10 M Ω, the resistance value of the second resistor 6 of 1 M Ω, according to whether the battery is present on the motherboard, the various conditions are listed as follows, and then the operation mechanism of this embodiment under various conditions is further discussed:
Figure 108119930-A0305-02-0012-2

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

Figure 108119930-A0305-02-0013-3
),此時,該第一、第二輸出電壓的差值不大於該預設電壓值。 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 resistor 91 The voltage division ratio of the two resistors 92 is 1, that is, the resistance value 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 108119930-A0305-02-0013-3
), 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, if the second output voltage is 0 volts at this time, then the first output voltage is 0 volts. 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而言為接地,因此接收到的該第一輸入電壓為零伏特,由於虛短路(Virtual Short)特性,因此該輸出端85輸出零伏特的第二輸出電壓,此時,該第一第二輸出電壓的差值大於該預設電壓值。 3. The battery 2 does not exist: if the baseboard management controller 7 controls the transistor 4 to be non-conducting via the universal input and 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 Turn on, and Q5~Q6 turn on, because 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 controls the transistor through the universal input/output pin 71 4 is on, the non-inverting terminal 81 is grounded, so the received first input voltage is zero volts, due to the virtual short (Virtual Short) characteristic, the output terminal 85 outputs a second output voltage of zero volts, 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 If the voltage is 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. 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 then the analog-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 there are the following advantages:

一、藉由電壓隨耦器8直接偵測電池3在第二電阻6的分壓,無須考量電晶體4的漏電流情形,進而不會造成類比數位轉換單元72轉換數值的誤差。 1. The voltage follower 8 directly detects the voltage division 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 voltage follower 8 being 1, the voltage value of battery 3 can be changed The characteristics of the complete output, in conjunction with the control transistor 4 conduction or non-conduction, and then through the output value of the voltage follower 8 to determine the voltage difference of the battery 3 in these two states, respectively, it can be accurately judged that the battery 3 is present in the host The board has electricity, or the battery 3 is present on the motherboard and has no electricity, 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 voltage follower gain value 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 the objective of the invention can indeed be achieved.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 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 covered by the patent of the present invention.

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

9:分壓器 9: Voltage divider

91:第三電阻 91: third resistor

911:第一端 911: first end

912:第二端 912: second end

92:第四電阻 92: fourth 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 Terminal, the second terminal of the second resistor is used to electrically connect the battery; a substrate management controller, electrically connected to the control terminal of the transistor, and controls the transistor to switch between a conducting state and a non-conducting state One of them; and a voltage follower, including a reverse end, a non-reverse end electrically connected to the first end of the second resistor, and an output end electrically connected to the reverse end, the non-reverse end A first input voltage is received from the first terminal of the second resistor, and the output terminal outputs the same voltage as the first input voltage. When the transistor is in the non-conducting state, the baseboard management controller receives a positive correlation The first output voltage of the voltage output from the output terminal of the voltage follower, when the transistor is switched in the conducting state, the baseboard management controller receives a positive correlation with the output of the output terminal of the voltage follower Voltage of the second output voltage, the baseboard management controller compares the first output voltage with the second output Whether the difference of the output voltage is greater than a preset voltage value is used 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. 如請求項6所述的主機板電池偵測裝置,還包含一電連接該電壓隨耦器的輸出端與該類比數位轉換單元的分壓器,該分壓器依照一分壓比例將該電壓隨耦器的輸出端輸出的電壓轉換為該第一輸出電壓與該第二輸出電壓。 The motherboard battery detection device according to claim 6, 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 positively correlated with the voltage output from the output terminal of the voltage follower, and 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 TW202046109A (en) 2020-12-16
TWI726332B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230075399A1 (en) * 2021-09-08 2023-03-09 Nuvoton Technology Corporation Integrated circuit (ic) and electronic apparatus

Citations (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
TW201348726A (en) * 2012-05-18 2013-12-01 Hon Hai Prec Ind Co Ltd Charge detection apparatus and method thereof
US8649935B2 (en) * 2008-01-29 2014-02-11 Hitachi, Ltd. Battery system for vehicle, on-vehicle battery module, and cell controller
TW201430364A (en) * 2012-12-13 2014-08-01 Hon Hai Prec Ind Co Ltd Measurement circuit for battery
US20150106643A1 (en) * 2013-10-15 2015-04-16 Wistron Corporation Detecting circuit and configuration status detecting method of real-time clock battery and electronic apparatus using the same

Patent Citations (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
US8649935B2 (en) * 2008-01-29 2014-02-11 Hitachi, Ltd. Battery system for vehicle, on-vehicle battery module, and cell controller
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
US20150106643A1 (en) * 2013-10-15 2015-04-16 Wistron Corporation Detecting circuit and configuration status detecting method of real-time clock battery and electronic apparatus using the same

Also Published As

Publication number Publication date
TW202046109A (en) 2020-12-16

Similar Documents

Publication Publication Date Title
US8238126B2 (en) Current regulator
US7403021B2 (en) Testing circuit for a data interface
US8314723B2 (en) Ghost key detecting circuit and related method
US8443130B2 (en) USB port detecting circuit
TWI764195B (en) Usb interface detection module
US8330448B2 (en) Power supply testing system
CN102096620A (en) Method and device for detecting connection state of serial port, and communication system
TWI726332B (en) Motherboard battery detection device
CN110554725B (en) Power receiving equipment for power over Ethernet
WO2018032766A1 (en) Device for generating voltage and semiconductor chip
CN108496291A (en) Farad capacitor charging circuit and electronic equipment
US20200169041A1 (en) Detection circuit
CN112286739B (en) Motherboard battery detecting device
TW202025637A (en) Connection circuit and connection method thereof
KR102699367B1 (en) Digital quantity output circuit, digital quantity output device and digital quantity output system
CN207896706U (en) Farad capacitor charging circuit and electronic equipment
US20120254529A1 (en) Motherboard with ddr memory devices
CN110058140B (en) Go up electric voltage detection circuitry, electron device and thing networking device
CN207817458U (en) A kind of station acquisition circuit applied on automatic change-over
CN101353237B (en) Micro-current sensing circuit and micro-current switch circuit
TWI851026B (en) Motherboard battery detection device
CN217981776U (en) Power-on and input state detection circuit structure and electrical equipment
CN216670121U (en) Detection circuit of power receiving end equipment
WO2021100326A1 (en) Signal output device
TWI742434B (en) Output voltage regulator circuit