Nothing Special   »   [go: up one dir, main page]

TWI851026B - Motherboard battery detection device - Google Patents

Motherboard battery detection device Download PDF

Info

Publication number
TWI851026B
TWI851026B TW112105307A TW112105307A TWI851026B TW I851026 B TWI851026 B TW I851026B TW 112105307 A TW112105307 A TW 112105307A TW 112105307 A TW112105307 A TW 112105307A TW I851026 B TWI851026 B TW I851026B
Authority
TW
Taiwan
Prior art keywords
transistor
electrically connected
resistor
logic signal
battery
Prior art date
Application number
TW112105307A
Other languages
Chinese (zh)
Other versions
TW202434899A (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 TW112105307A priority Critical patent/TWI851026B/en
Application granted granted Critical
Publication of TWI851026B publication Critical patent/TWI851026B/en
Publication of TW202434899A publication Critical patent/TW202434899A/en

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

A motherboard battery detection device includes a first resistor electrically connected to the battery, a first transistor, a second resistor, a capacitor, an regulated voltage generator, and a baseboard management controller. The first transistor is electrically connected to the first resistor and controlled by a control signal to conduct or not conduct, and operates in a saturation region. The second resistor and the capacitor are respectively electrically connected between the first transistor and the ground. The regulated voltage generator adjusts a voltage level of a logic signal to generate the control signal and output it to the first transistor. The baseboard management controller generates and outputs the logic signal to the regulated voltage generator. When the first transistor is turned on under the control of the control signal, the baseboard management controller receives an output voltage positively related to the battery capacity from the first transistor to judge the battery capacity.

Description

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

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

現有的伺服器具有一用以供其一主機板讀寫資料並儲存系統當前的硬體相關配置的記憶體晶片,該記憶體晶片為一互補金屬氧化物半導體(Complementary Metal-Oxide-Semiconductor,CMOS)隨機存取記憶體(Random Access Memory,RAM)晶片。該記憶體晶片藉由一即時時脈(Real Time Clock,RTC)以保持當前時間。當伺服器電源關閉時,該記憶體晶片則經由該主機板的一電池接收電能,以維持在可讀取該即時時脈的狀態,並保留其儲存的資料。當該電池無法正常供電時,則該記憶體晶片原本儲存的資料將因而遺失。因此,伺服器通常都會監控該電池的電量,以避免重要的記憶體晶片所儲存的資料丟失。The existing server has a memory chip for a motherboard to read and write data and store the current hardware-related configuration of the system. The memory chip is a complementary metal oxide semiconductor (CMOS) random access memory (RAM) chip. The memory chip uses a real time clock (RTC) to maintain the current time. When the server power is turned off, the memory chip receives power from a battery on the motherboard to maintain a state where the real time clock can be read and retain its stored data. When the battery fails to supply power normally, the data originally stored in the memory chip will be lost. Therefore, servers usually monitor the battery level to avoid losing data stored in important memory chips.

現有伺服器監控該主機板上的該電池的方式為,該電池直接電連接一基板管理控制器的電量偵測埠(其僅供該基板管理控制器偵測該電池電量,而非自該電池接收其自身運作所需的電源),以由該基板管理控制器偵測該電池電量。該基板管理控制器對於偵測該電池的剩餘電量是週期性進行而非持續進行偵測,但由於該基板管理控制器是直接電連接該電池,因此就算該基板管理控制器沒有在偵測並計算該電池剩餘電量的期間,該電池仍然持續的輸出電源至該基板管理控制器,而造成該電池不必要的電耗。因此,勢必得提出一個解決方案。The existing server monitors the battery on the motherboard in a way that the battery is directly electrically connected to a power detection port of a baseboard management controller (which is only used by the baseboard management controller to detect the battery power, rather than receiving power from the battery for its own operation) so that the baseboard management controller detects the battery power. The baseboard management controller detects the remaining power of the battery periodically rather than continuously, but because the baseboard management controller is directly electrically connected to the battery, even if the baseboard management controller is not detecting and calculating the remaining power of the battery, the battery still continues to output power to the baseboard management controller, resulting in unnecessary power consumption of the battery. Therefore, a solution must be proposed.

因此,本發明的目的,即在提供一種能夠避免過度消耗主機板電池電量之主機板電池偵測裝置。Therefore, the purpose of the present invention is to provide a motherboard battery detection device that can avoid excessive consumption of motherboard battery power.

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

該第一電阻具有一電連接該電池的第一端,及一第二端。The first resistor has a first terminal electrically connected to the battery, and a second terminal.

該第一電晶體具有一電連接該第一電阻的該第二端的第一端、一第二端,及一接收一控制信號的控制端,該第一電晶體受該控制信號控制而導通或不導通,且操作在一飽和區域並具有低導通電阻。The first transistor has a first end electrically connected to the second end of the first resistor, a second end, and a control end receiving a control signal. The first transistor is controlled by the control signal to be turned on or off, and operates in a saturation region and has a low on-resistance.

該第二電阻電連接在該第一電晶體的該第二端與地之間。The second resistor is electrically connected between the second end of the first transistor and ground.

該電容電連接在該第一電晶體的該第二端與地之間。The capacitor is electrically connected between the second terminal of the first transistor and ground.

該調節電壓產生器電連接該第一電晶體的該控制端,且接收一邏輯信號,並調節該邏輯信號的電壓準位,以產生該控制信號且輸出至該第一電晶體的該控制端。The regulated voltage generator is electrically connected to the control end of the first transistor, receives a logic signal, and regulates the voltage level of the logic signal to generate the control signal and output it to the control end of the first transistor.

該基板管理控制器電連接該調節電壓產生器及該第一電晶體的該第二端,且產生並輸出該邏輯信號至該調節電壓產生器,當該第一電晶體受該控制信號控制而導通時,該基板管理控制器自該第一電晶體的該第二端接收一正相關於該電池電量的輸出電壓,以判斷該電池的電量。The baseboard management controller is electrically connected to the regulating voltage generator and the second end of the first transistor, and generates and outputs the logic signal to the regulating voltage generator. When the first transistor is turned on by the control signal, the baseboard management controller receives an output voltage positively related to the battery power from the second end of the first transistor to determine the battery power.

本發明的功效在於:利用該基板管理控制器並非直接電連接該電池,而是經由該第一電晶體電連接該電池,如此可避免該電池持續的對該基板管理控制器輸出電源,而造成該電池不必要的電耗,且利用該調節電壓產生器產生該控制信號,以使該第一電晶體導通後操作在該飽和區域並具有低導通電阻,如此一來,該第一電晶體導通時具有低功率損耗,可避免過度消耗該電池的電量,進而避免該電池壽命降低。The effect of the present invention is that the baseboard management controller is not directly electrically connected to the battery, but is electrically connected to the battery through the first transistor, so that the battery can be prevented from continuously outputting power to the baseboard management controller, thereby causing unnecessary power consumption of the battery, and the control signal is generated by the regulating voltage generator so that the first transistor operates in the saturation region and has a low on-resistance after being turned on. In this way, the first transistor has low power loss when it is turned on, which can avoid excessive consumption of the battery power and thus avoid reducing the battery life.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that similar components are represented by the same reference numerals in the following description.

參閱圖1與圖2,本發明主機板電池偵測裝置2的一實施例,適用於偵測一電池20。該主機板電池偵測裝置2包含一第一電阻21、一第一電晶體22、一第二電阻23、一電容24、一調節電壓產生器25,及一基板管理控制器(Board Management Controller,BMC)26。1 and 2 , an embodiment of the motherboard battery detection device 2 of the present invention is suitable for detecting a battery 20. The motherboard battery detection device 2 includes a first resistor 21, a first transistor 22, a second resistor 23, a capacitor 24, a regulated voltage generator 25, and a baseboard management controller (BMC) 26.

該第一電阻21具有一電連接該電池20的第一端,及一第二端。該第一電晶體22具有一電連接該第一電阻21的該第二端的第一端、一接收一控制信號的控制端,及一受控於該控制端而選擇性的與該第一電晶體22的該第一端導通的第二端。該第一電晶體22受該控制信號控制而選擇性導通或不導通其第一端及其第二端,且操作在一飽和區域並具有低導通電阻(R DS(ON))。該第二電阻23電連接在該第一電晶體22的該第二端與地之間。該電容24電連接在該第一電晶體22的該第二端與地之間。在本實施例中,該第一電晶體22為一N型金氧半場效電晶體(Metal-Oxide-Semiconductor Field-Effect Transistor,以下簡稱MOSFET),其中汲極、源極及閘極分別為該第一電晶體22的該第一端、該第二端及該控制端,但不限於此。在其他實施例中,該第一電晶體22可為一NPN型雙極性接面型電晶體(bipolar junction transistor,以下簡稱BJT)、一PNP型BJT、或一P型MOSFET。 The first resistor 21 has a first end electrically connected to the battery 20, and a second end. The first transistor 22 has a first end electrically connected to the second end of the first resistor 21, a control end receiving a control signal, and a second end controlled by the control end to selectively conduct with the first end of the first transistor 22. The first transistor 22 is controlled by the control signal to selectively conduct or not conduct its first end and its second end, and operates in a saturation region and has a low conduction resistance (R DS(ON) ). The second resistor 23 is electrically connected between the second end of the first transistor 22 and the ground. The capacitor 24 is electrically connected between the second end of the first transistor 22 and the ground. In the present embodiment, the first transistor 22 is an N-type metal-oxide-semiconductor field-effect transistor (hereinafter referred to as MOSFET), wherein the drain, source and gate are the first end, the second end and the control end of the first transistor 22, respectively, but not limited thereto. In other embodiments, the first transistor 22 may be an NPN bipolar junction transistor (hereinafter referred to as BJT), a PNP BJT, or a P-type MOSFET.

該調節電壓產生器25電連接該第一電晶體22的該控制端,且接收一邏輯信號,並調節該邏輯信號的電壓準位,以產生該控制信號且輸出至該第一電晶體22的該控制端。在本實施例中,該邏輯信號由該基板管理控制器26設定於一第一邏輯準位,例如為高準位(例如3.3V)與一第二邏輯準位,例如為低準位(例如0V)之間變化。當需要知道該電池20電量時,該基板管理控制器26將該邏輯信號設定為具有該第一邏輯準位(即,高準位),但不以此為限,當該第一電晶體22是採用P-MOSFET或是PNP型BJT時,當需要知道該電池20電量時,該基板管理控制器26將該邏輯信號設定為具有該第二邏輯準位(即,低準位)。該調節電壓產生器25包括一位準偏移電路251,及一第三電阻252。The regulated voltage generator 25 is electrically connected to the control end of the first transistor 22, receives a logic signal, and regulates the voltage level of the logic signal to generate the control signal and output it to the control end of the first transistor 22. In this embodiment, the logic signal is set by the baseboard management controller 26 to change between a first logic level, such as a high level (such as 3.3V) and a second logic level, such as a low level (such as 0V). When the battery 20 power level needs to be known, the baseboard management controller 26 sets the logic signal to have the first logic level (i.e., high level), but not limited to this, when the first transistor 22 is a P-MOSFET or a PNP type BJT, when the battery 20 power level needs to be known, the baseboard management controller 26 sets the logic signal to have the second logic level (i.e., low level). The regulated voltage generator 25 includes a level offset circuit 251 and a third resistor 252.

該第三電阻252具有一電連接該第一電晶體22的該控制端的第一端,及一電連接該位準偏移電路251且接收該控制信號的第二端。The third resistor 252 has a first end electrically connected to the control end of the first transistor 22, and a second end electrically connected to the level shift circuit 251 and receiving the control signal.

該位準偏移電路251接收該邏輯信號,並將該邏輯信號位準偏移(level shift),以產生該控制信號。該控制信號的電壓準位大於該邏輯信號的該高準位。詳細來說,當該邏輯信號具有該高準位時,該位準偏移電路251將該邏輯信號位準偏移,以致其所產生的該控制信號的電壓準位大於該邏輯信號的該高準位,當該邏輯信號具有該低準位時,該位準偏移電路251未將該邏輯信號位準偏移。在本實施例中,該位準偏移電路251包括第四至第八電阻R4、R5、R6、R7、R8、第二與第三電晶體M2、M3,及第一至第四二極體D1、D2、D3、D4。The level shift circuit 251 receives the logic signal and level shifts the logic signal to generate the control signal. The voltage level of the control signal is greater than the high level of the logic signal. Specifically, when the logic signal has the high level, the level shift circuit 251 level shifts the logic signal so that the voltage level of the control signal generated by it is greater than the high level of the logic signal. When the logic signal has the low level, the level shift circuit 251 does not level shift the logic signal. In this embodiment, the level shift circuit 251 includes fourth to eighth resistors R4, R5, R6, R7, R8, second and third transistors M2, M3, and first to fourth diodes D1, D2, D3, D4.

該第四電阻R4具有一接收該邏輯信號的第一端,及一接地的第二端。該第二電晶體M2具有一第一端、一接地的第二端,及一電連接該第四電阻R4的該第一端且接收該邏輯信號的控制端。該第二電晶體M2受該邏輯信號控制而導通或不導通。該等第一與第二二極體D1、D2串聯連接在該第二電晶體M2的該第二端與該控制端之間。該等第一與第二二極體D1、D2各自具有一陰極及一陽極,該等第一與第二二極體D1、D2的該等陽極彼此電連接,該等第一與第二二極體D1、D2的該等陰極分別電連接該第二電晶體M2的該第二端與該控制端。該第三電晶體M3具有一電連接該第三電阻252的該第二端的第一端、一接地的第二端,及一電連接該第二電晶體M2的該第一端的控制端。該等第三與第四二極體D3、D4串聯連接在該第三電晶體M3的該第二端與該控制端之間。該等第三與第四二極體D3、D4各自具有一陰極及一陽極,該等第三與第四二極體D3、D4的該等陽極彼此電連接,該等第三與第四二極體D3、D4的該等陰極分別電連接該第三電晶體M3的該第二端與該控制端。該第五電阻R5具有一用於接收一輸入電壓Vin(該輸入電壓Vin的電壓值大於該電池20電量的最大值,該輸入電壓Vin,例如為12V)的第一端,及一電連接該第二電晶體M2的該第一端的第二端。該輸入電壓Vin的電壓準位大於該邏輯信號的該高準位。該第六電阻R6電連接在該第五電阻R5的該第一端與該第三電阻252的該第二端之間。該第七電阻R7電連接該第二電晶體M2之該控制端,且接收該邏輯信號。該第八電阻R8電連接在該第二電晶體M2的該第一端與該第三電晶體M3的該控制端之間。該等第一至第四二極體D1~D4各自為一稽納二極體。在本實施例中,當該第二電晶體M2受該邏輯信號控制而導通時,該第三電晶體M3不導通,且該輸入電壓Vin作為該控制信號,此時該第一電晶體22受該控制信號控制而導通。當該第二電晶體M2受該邏輯信號控制而不導通時,該第三電晶體M3導通,且該第三電晶體M3之該第二端的電位作為該控制信號,此時該第一電晶體22受該控制信號控制而不導通。該等第二與第三電晶體M2、M3各自為一N型MOSFET,其中汲極、源極及閘極分別為該等第二與第三電晶體M2、M3中每一者的該第一端、該第二端及該控制端,但不限於此。在其他實施例中,該等第二與第三電晶體M2、M3各自可為一NPN型BJT、一PNP型BJT、或一P型MOSFET。該等第七及第八電阻R7、R8、該等第二與第三電晶體M2、M3,及該等第一至第四二極體D1、D2、D3、D4可為例如但不限於設置於一個六針腳的SOT-363封裝中。The fourth resistor R4 has a first end for receiving the logic signal, and a second end for grounding. The second transistor M2 has a first end, a second end for grounding, and a control end electrically connected to the first end of the fourth resistor R4 and receiving the logic signal. The second transistor M2 is controlled by the logic signal to conduct or not conduct. The first and second diodes D1, D2 are connected in series between the second end and the control end of the second transistor M2. The first and second diodes D1, D2 each have a cathode and an anode, the anodes of the first and second diodes D1, D2 are electrically connected to each other, and the cathodes of the first and second diodes D1, D2 are electrically connected to the second end of the second transistor M2 and the control end, respectively. The third transistor M3 has a first end electrically connected to the second end of the third resistor 252, a second end grounded, and a control end electrically connected to the first end of the second transistor M2. The third and fourth diodes D3 and D4 are connected in series between the second end and the control end of the third transistor M3. The third and fourth diodes D3 and D4 each have a cathode and an anode, the anodes of the third and fourth diodes D3 and D4 are electrically connected to each other, and the cathodes of the third and fourth diodes D3 and D4 are electrically connected to the second end and the control end of the third transistor M3, respectively. The fifth resistor R5 has a first end for receiving an input voltage Vin (the voltage value of the input voltage Vin is greater than the maximum value of the battery 20, the input voltage Vin, for example, is 12V), and a second end electrically connected to the first end of the second transistor M2. The voltage level of the input voltage Vin is greater than the high level of the logic signal. The sixth resistor R6 is electrically connected between the first end of the fifth resistor R5 and the second end of the third resistor 252. The seventh resistor R7 is electrically connected to the control end of the second transistor M2 and receives the logic signal. The eighth resistor R8 is electrically connected between the first end of the second transistor M2 and the control end of the third transistor M3. Each of the first to fourth diodes D1-D4 is a Zener diode. In this embodiment, when the second transistor M2 is controlled by the logic signal to be turned on, the third transistor M3 is not turned on, and the input voltage Vin is used as the control signal, and the first transistor 22 is controlled by the control signal to be turned on. When the second transistor M2 is controlled by the logic signal to be turned off, the third transistor M3 is turned on, and the potential of the second end of the third transistor M3 is used as the control signal, and the first transistor 22 is controlled by the control signal to be turned off. The second and third transistors M2, M3 are each an N-type MOSFET, wherein the drain, source and gate are the first terminal, the second terminal and the control terminal of each of the second and third transistors M2, M3, respectively, but not limited thereto. In other embodiments, the second and third transistors M2, M3 can each be an NPN-type BJT, a PNP-type BJT, or a P-type MOSFET. The seventh and eighth resistors R7, R8, the second and third transistors M2, M3, and the first to fourth diodes D1, D2, D3, D4 can be, for example but not limited to, disposed in a six-pin SOT-363 package.

該基板管理控制器26電連接該調節電壓產生器25之該位準偏移電路251的該第四電阻R4的該第一端及該第一電晶體22的該第二端,且產生並輸出該邏輯信號至該第四電阻R4的該第一端。當該第一電晶體22受該控制信號控制而導通時,該基板管理控制器26自該第一電晶體22的該第二端接收一正相關於該電池20電量的輸出電壓,以判斷該電池20的電量。在本實施例中,該基板管理控制器26包括一類比數位轉換單元261,及一通用型輸入輸出接腳(General Purpose Input Output,GPIO)262。The baseboard management controller 26 is electrically connected to the first end of the fourth resistor R4 of the level shift circuit 251 of the regulating voltage generator 25 and the second end of the first transistor 22, and generates and outputs the logic signal to the first end of the fourth resistor R4. When the first transistor 22 is turned on by the control signal, the baseboard management controller 26 receives an output voltage positively related to the power of the battery 20 from the second end of the first transistor 22 to determine the power of the battery 20. In this embodiment, the baseboard management controller 26 includes an analog-to-digital conversion unit 261 and a general purpose input output pin (GPIO) 262.

該類比數位轉換單元261電連接該第一電晶體22的該第二端以接收類比形式的該輸出電壓,並將該輸出電壓進行類比至數位轉換,以產生一相關於該電池20電量的數位信號,以致該基板管理控制器26據以判斷該電池20的電量。該類比數位轉換單元261為一類比數位轉換器(Analog Digital Converter,ADC)。舉例來說,該基板管理控制器26儲存有一查找表,該查找表具有多筆分別對應不同數位信號的數位值,及多筆分別對應該等數位值的電池電量。在本實施例中,該查找表是以表格的方式儲存於該基板管理控制器26的內部記憶體(圖未示),但不限於此。在其他實施例中,該查找表可以表格的方式儲存於與該基板管理控制器26耦接的記憶體,或是以參數的形式存在於該基板管理控制器26所執行的韌體中。該基板管理控制器26根據該類比數位轉換單元261所產生的該數位信號取得一對應數位值,並根據該對應數位值於該查找表進行查找,以取得該對應數位值所對應的一電池電量,但不限於此。需補充說明的是,由於該電池20的電量充足的時候,該電池20可以穩定的輸出額定電池電壓,也就是說該電池20提供的電池電壓可符合其規格所定義的標準電池電壓。當該電池20的電量逐漸減少時,該電池20輸出的電池電壓也會依照一電壓衰減曲線而對應的衰減,所以該基板管理控制器26即可根據所接收到的正相關於該電池20電量的該輸出電壓並依據該基板管理控制器26儲存的該查找表,獲得目前該電池20的參考電量。The analog-to-digital conversion unit 261 is electrically connected to the second end of the first transistor 22 to receive the output voltage in analog form, and performs analog-to-digital conversion on the output voltage to generate a digital signal related to the power of the battery 20, so that the baseboard management controller 26 can judge the power of the battery 20 accordingly. The analog-to-digital conversion unit 261 is an analog-to-digital converter (ADC). For example, the baseboard management controller 26 stores a lookup table, which has a plurality of digital values corresponding to different digital signals, and a plurality of battery powers corresponding to the digital values. In this embodiment, the lookup table is stored in the internal memory (not shown) of the baseboard management controller 26 in a table form, but is not limited thereto. In other embodiments, the lookup table can be stored in a table in a memory coupled to the baseboard management controller 26, or in a parameter form in a firmware executed by the baseboard management controller 26. The baseboard management controller 26 obtains a corresponding digital value according to the digital signal generated by the analog-to-digital conversion unit 261, and searches the lookup table according to the corresponding digital value to obtain a battery power corresponding to the corresponding digital value, but is not limited thereto. It should be noted that when the battery 20 has sufficient power, the battery 20 can stably output the rated battery voltage, that is, the battery voltage provided by the battery 20 can meet the standard battery voltage defined by its specification. When the power of the battery 20 gradually decreases, the battery voltage output by the battery 20 will also decay accordingly according to a voltage decay curve, so the baseboard management controller 26 can obtain the current reference power of the battery 20 based on the received output voltage that is positively correlated to the power of the battery 20 and the lookup table stored in the baseboard management controller 26.

該通用型輸入輸出接腳262電連接該調節電壓產生器25之該位準偏移電路251的該第四電阻R4的該第一端。該基板管理控制器26藉由該通用型輸入輸出接腳262將該邏輯信號輸出至該第四電阻R4的該第一端。The universal input-output pin 262 is electrically connected to the first end of the fourth resistor R4 of the level shift circuit 251 of the regulated voltage generator 25. The baseboard management controller 26 outputs the logic signal to the first end of the fourth resistor R4 through the universal input-output pin 262.

進一步參閱圖3,說明該第一電晶體22的一導通電阻R DS(ON)對其一汲源極電流I D的變化。從圖3可推知,當對該第一電晶體22的該控制端施予電壓值為12V的該控制信號(即,V GS=12V)時,該第一電晶體22導通後操作在該飽和區域,該汲源極電流I D可操作在大於1A,該導通電阻R DS(ON)可控制在3Ω以下。簡言之,本發明主機板電池偵測裝置2的該第一電晶體22是操作在該飽和區域並具有低導通電阻,如此一來,該第一電晶體22導通時具有低功率損耗,可避免過度消耗該電池20的電量,進而避免該電池20壽命降低。再者,由於該第一電晶體22具有低導通電阻,因此該第一電晶體22的汲極與源極之間的導通效果較好,可避免該基板管理控制器26經由該第一電晶體22的該第二端接收到不正確的該輸出電壓。 Further referring to FIG3, the change of a drain-source current ID of an on-resistance R DS(ON) of the first transistor 22 is explained. It can be inferred from FIG3 that when the control signal with a voltage value of 12V (i.e., V GS =12V) is applied to the control terminal of the first transistor 22, the first transistor 22 is turned on and operates in the saturation region, the drain-source current ID can be operated to be greater than 1A, and the on-resistance R DS(ON) can be controlled to be less than 3Ω. In short, the first transistor 22 of the motherboard battery detection device 2 of the present invention operates in the saturation region and has a low on-resistance. In this way, the first transistor 22 has low power loss when conducting, which can avoid excessive consumption of the battery 20 and thus avoid reducing the life of the battery 20. Furthermore, since the first transistor 22 has a low on-resistance, the conduction effect between the drain and the source of the first transistor 22 is better, which can prevent the baseboard management controller 26 from receiving the incorrect output voltage through the second end of the first transistor 22.

參閱圖4,其為該實施例的該調節電壓產生器25的另一實施態樣,在此另一實施態樣中,以一調節電壓產生器25’取代圖2中的該調節電壓產生器25,二者不同之處在於:該調節電壓產生器25’ 包括一第三電阻253及一第四電阻254。該調節電壓產生器25’實際上為一分壓器,當該邏輯信號具有該高準位(例如3.3V)時,該調節電壓產生器25’使其所輸出的該控制信號的電壓準位為一預定電壓值(例如2.5V),但不限於此。該第一電晶體22例如型號為2N7002的場效電晶體(切換速度較慢),或型號為FDV301N的場效電晶體(切換速度較快,較佳)。Referring to FIG. 4 , it is another embodiment of the regulating voltage generator 25 of the embodiment. In this embodiment, a regulating voltage generator 25′ replaces the regulating voltage generator 25 in FIG. 2 . The difference between the two is that the regulating voltage generator 25′ includes a third resistor 253 and a fourth resistor 254. The regulating voltage generator 25′ is actually a voltage divider. When the logic signal has the high level (e.g., 3.3V), the regulating voltage generator 25′ makes the voltage level of the control signal outputted by the regulating voltage generator 25′ a predetermined voltage value (e.g., 2.5V), but is not limited thereto. The first transistor 22 is, for example, a field effect transistor of type 2N7002 (slower switching speed) or a field effect transistor of type FDV301N (faster switching speed, better).

該第三電阻253(例如1KΩ)具有一電連接該基板管理控制器26(見圖1)的該通用型輸入輸出接腳262以接收該邏輯信號的第一端,及一電連接該第一電晶體22的該控制端且輸出該控制信號的第二端。該第四電阻254(例如47KΩ)電連接在該第三電阻253的該第二端與地之間。The third resistor 253 (e.g., 1KΩ) has a first end electrically connected to the universal input/output pin 262 of the baseboard management controller 26 (see FIG. 1 ) to receive the logic signal, and a second end electrically connected to the control end of the first transistor 22 and outputting the control signal. The fourth resistor 254 (e.g., 47KΩ) is electrically connected between the second end of the third resistor 253 and ground.

進一步參閱圖5,說明在此另一實施態樣中,該第一電晶體22的一導通電阻R DS(ON)對其一汲源極電流I D的變化。從圖5可推知,當該第一電晶體22的該控制端所接收的該控制信號的電壓準位為3.3V(即,V GS=3.3V)時,該第一電晶體22是操作在該飽和區域並具有低導通電阻,如此一來,本發明主機板電池偵測裝置2具有低功率損耗,可避免過度消耗該電池20的電量,進而避免該電池20壽命降低。 Referring to FIG. 5 , the change of a drain-source current ID of the first transistor 22 due to an on-resistance R DS(ON) is described in another embodiment. It can be inferred from FIG. 5 that when the voltage level of the control signal received by the control terminal of the first transistor 22 is 3.3V (i.e., V GS =3.3V), the first transistor 22 operates in the saturation region and has a low on-resistance. In this way, the motherboard battery detection device 2 of the present invention has low power consumption, which can avoid excessive consumption of the battery 20, thereby avoiding a reduction in the life of the battery 20.

綜上所述,本發明主機板電池偵測裝置2中,該基板管理控制器26並非直接電連接該電池20,而是經由該第一電晶體22電連接該電池20,且該第一電晶體22並非一直持續導通,如此可避免該電池20持續的對該基板管理控制器26輸出電源,而造成該電池20不必要的電耗。此外,本發明主機板電池偵測裝置2利用該調節電壓產生器25、25’ 產生該控制信號,以使該第一電晶體22導通後操作在該飽和區域並具有低導通電阻,如此一來,該第一電晶體22導通時具有低功率損耗,可避免過度消耗該電池20的電量,進而避免該電池20壽命降低。再者,由於該第一電晶體22具有低導通電阻,因此該第一電晶體22的汲極與源極之間的導通效果較好,可避免該基板管理控制器26經由該第一電晶體22的該第二端接收到不正確的該輸出電壓,進而避免該基板管理控制器26誤判該電池20電量。In summary, in the motherboard battery detection device 2 of the present invention, the baseboard management controller 26 is not directly electrically connected to the battery 20, but is electrically connected to the battery 20 via the first transistor 22, and the first transistor 22 is not always turned on, so that the battery 20 can be prevented from continuously outputting power to the baseboard management controller 26, thereby causing unnecessary power consumption of the battery 20. In addition, the motherboard battery detection device 2 of the present invention utilizes the regulated voltage generator 25, 25' to generate the control signal so that the first transistor 22 operates in the saturation region and has a low on-resistance after being turned on. In this way, the first transistor 22 has low power loss when turned on, which can avoid excessive consumption of the power of the battery 20, thereby preventing the battery 20 from having its life reduced. Furthermore, since the first transistor 22 has a low on-resistance, the conduction effect between the drain and the source of the first transistor 22 is better, which can prevent the baseboard management controller 26 from receiving an incorrect output voltage through the second end of the first transistor 22, thereby preventing the baseboard management controller 26 from misjudging the battery 20 power.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above is only an embodiment of the present invention and should not be used to limit the scope of implementation of the present invention. All simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the content of the patent specification are still within the scope of the present patent.

2:主機板電池偵測裝置 20:電池 21:第一電阻 22:第一電晶體 23:第二電阻 24:電容 25、25’:調節電壓產生器 251:位準偏移電路 252:第三電阻 253、254:第三與第四電阻 26:基板管理控制器 261:類比數位轉換單元 262:通用型輸入輸出接腳 R4、R5:第四與第五電阻 R6、R7:第六與第七電阻 R8:第八電阻 M2、M3:第二與第三電晶體 D1、D2、D3、D4:第一至第四二極體 V GS:第一電晶體閘源極電壓 2: Motherboard battery detection device 20: Battery 21: First resistor 22: First transistor 23: Second resistor 24: Capacitor 25, 25': Regulated voltage generator 251: Level shift circuit 252: Third resistor 253, 254: Third and fourth resistors 26: Baseboard management controller 261: Analog-to-digital conversion unit 262: Universal input and output pins R4, R5: Fourth and fifth resistors R6, R7: Sixth and seventh resistors R8: Eighth resistor M2, M3: Second and third transistors D1, D2, D3, D4: First to fourth diodes V GS : First transistor gate-source voltage

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一電路方塊圖,說明本發明主機板電池偵測裝置的一實施例; 圖2是一電路方塊圖,說明該實施例的一調節電壓產生器的一實施態樣; 圖3是一曲線圖,說明該實施態樣的一第一電晶體的一導通電阻對其一汲源極電流的變化; 圖4是一電路方塊圖,說明該實施例的該調節電壓產生器的另一實施態樣;及 圖5是一曲線圖,說明該另一實施態樣的一第一電晶體的一導通電阻對其一汲源極電流的變化。 Other features and effects of the present invention will be clearly presented in the embodiments with reference to the drawings, wherein: FIG. 1 is a circuit block diagram illustrating an embodiment of the motherboard battery detection device of the present invention; FIG. 2 is a circuit block diagram illustrating an embodiment of a regulated voltage generator of the embodiment; FIG. 3 is a curve diagram illustrating the change of a conduction resistance of a first transistor of the embodiment to a drain-source current; FIG. 4 is a circuit block diagram illustrating another embodiment of the regulated voltage generator of the embodiment; and FIG. 5 is a curve diagram illustrating the change of a conduction resistance of a first transistor of the other embodiment to a drain-source current.

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

20:電池 20:Battery

21:第一電阻 21: First resistor

22:第一電晶體 22: First transistor

23:第二電阻 23: Second resistor

24:電容 24: Capacitor

25:調節電壓產生器 25: Regulated voltage generator

26:基板管理控制器 26: Baseboard management controller

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

262:通用型輸入輸出接腳 262: Universal input and output pins

Claims (7)

一種主機板電池偵測裝置,適用於偵測一電池,包含:一第一電阻,具有一電連接該電池的第一端,及一第二端;一第一電晶體,具有一電連接該第一電阻的該第二端的第一端、一第二端,及一接收一控制信號的控制端,該第一電晶體受該控制信號控制而導通或不導通,且操作在一飽和區域並具有低導通電阻;一第二電阻,電連接在該第一電晶體的該第二端與地之間;一電容,電連接在該第一電晶體的該第二端與地之間;一調節電壓產生器,電連接該第一電晶體的該控制端,且接收一邏輯信號,並調節該邏輯信號的電壓準位,以產生該控制信號且輸出至該第一電晶體的該控制端;及一基板管理控制器,電連接該調節電壓產生器及該第一電晶體的該第二端,且產生並輸出該邏輯信號至該調節電壓產生器,當該第一電晶體受該控制信號控制而導通時,該基板管理控制器自該第一電晶體的該第二端接收一正相關於該電池電量的輸出電壓,以判斷該電池的電量,該調節電壓產生器包括一位準偏移電路、一第三電阻、一第四電阻、一第二電晶體、一第一二極體、一第二 二極體、一第三電晶體、一第三二極體與一第四二極體與一第六電阻一第五電阻,該位準偏移電路電連接該基板管理控制器以接收該邏輯信號,並將該邏輯信號位準偏移,以產生該控制信號,該控制信號的電壓準位大於該邏輯信號的一高準位,該第三電阻具有一電連接該第一電晶體的該控制端的第一端,及一電連接該位準偏移電路且接收該控制信號的第二端,該第四電阻具有一電連接該基板管理控制器以接收該邏輯信號的第一端,及一接地的第二端,該第二電晶體具有一第一端、一接地的第二端,及一電連接該第四電阻的該第一端且接收該邏輯信號的控制端,該第二電晶體受該邏輯信號控制而導通或不導通,該第一二極體與該第二二極體,串聯連接在該第二電晶體的該第二端與該控制端之間,該等第一與第二二極體各自具有一陰極及一陽極,該等第一與第二二極體的該等陽極彼此電連接,該第三電晶體具有一電連接該第三電阻的該第二端的第一端、一接地的第二端,及一電連接該第二電晶體的該第一端的控制端,當該第二電晶體導通時,該第三電晶體不導通,當該第二電晶體不導通時,該第三電晶體導通,該第三二極體與該第四二極體,串聯連接在該第三電晶體的該第二端與該控制端之間,該等第三與第四二 極體各自具有一陰極及一陽極,該等第三與第四二極體的該等陽極彼此電連接,該第五電阻具有一用於接收一輸入電壓的第一端,及一電連接該第二電晶體的該第一端的第二端,該輸入電壓的電壓準位大於該邏輯信號的一高準位,該第六電阻電連接在該第五電阻的該第一端與該第三電阻的該第二端之間,其中,當該第二電晶體受該邏輯信號控制而導通時,該輸入電壓作為該控制信號。 A motherboard battery detection device is used for detecting a battery, comprising: a first resistor having a first end electrically connected to the battery and a second end; a first transistor having a first end electrically connected to the second end of the first resistor, a second end, and a control end receiving a control signal, the first transistor being controlled by the control signal to conduct or not conduct, and operating in a saturation region and having a low on-resistance; a second resistor electrically connected between the second end of the first transistor and ground; a capacitor electrically connected between the second end of the first transistor and ground; a regulating voltage generator electrically connected to the control end of the first transistor and receiving a logic signal and regulating the voltage level of the logic signal to generate the control signal and output it to the control end of the first transistor; and a baseboard management controller electrically connected to the regulating voltage generator. The voltage generator and the second end of the first transistor generate and output the logic signal to the regulating voltage generator. When the first transistor is turned on by the control signal, the baseboard management controller receives an output voltage positively related to the battery power from the second end of the first transistor to determine the power of the battery. The regulating voltage generator includes a level shift circuit, a third resistor, a fourth resistor, a second transistor, a first diode, a second diode, a third transistor, a third diode, a fourth diode, a sixth resistor, and a fifth resistor. The level shift circuit is electrically connected to the baseboard management controller to receive the logic signal and level-shift the logic signal to generate the control signal. The voltage level of the control signal is greater than a high level of the logic signal. The third resistor has an electrical connection to the The first transistor has a first end of the control end, and a second end electrically connected to the level shift circuit and receiving the control signal. The fourth resistor has a first end electrically connected to the baseboard management controller to receive the logic signal, and a second end grounded. The second transistor has a first end, a second end grounded, and a control end electrically connected to the first end of the fourth resistor and receiving the logic signal. The second transistor is The logic signal controls the conduction or non-conduction, the first diode and the second diode are connected in series between the second end of the second transistor and the control end, the first and second diodes each have a cathode and an anode, the anodes of the first and second diodes are electrically connected to each other, the third transistor has a first end electrically connected to the second end of the third resistor, a second end grounded, and an anode electrically connected to the The control end of the first end of the second transistor, when the second transistor is turned on, the third transistor is not turned on, when the second transistor is not turned on, the third transistor is turned on, the third diode and the fourth diode are connected in series between the second end of the third transistor and the control end, the third and fourth diodes each have a cathode and an anode, the anodes of the third and fourth diodes are electrically connected to each other The fifth resistor has a first end for receiving an input voltage and a second end electrically connected to the first end of the second transistor, the voltage level of the input voltage is greater than a high level of the logic signal, and the sixth resistor is electrically connected between the first end of the fifth resistor and the second end of the third resistor, wherein when the second transistor is controlled by the logic signal to be turned on, the input voltage serves as the control signal. 如請求項1所述的主機板電池偵測裝置,其中,該邏輯信號由該基板管理控制器設定於該高準位與一低準位之間變化,當該邏輯信號具有該高準位時,該位準偏移電路將該邏輯信號位準偏移,以致其所產生的該控制信號的電壓準位大於該邏輯信號的該高準位。 The motherboard battery detection device as described in claim 1, wherein the logic signal is set by the baseboard management controller to change between the high level and a low level, and when the logic signal has the high level, the level shift circuit shifts the level of the logic signal so that the voltage level of the control signal generated by it is greater than the high level of the logic signal. 如請求項1所述的主機板電池偵測裝置,其中,該位準偏移電路還包括,一第七電阻,電連接該第二電晶體之該控制端,且接收該邏輯信號,及一第八電阻,電連接在該第二電晶體的該第一端與該第三電晶體的該控制端之間。 The motherboard battery detection device as described in claim 1, wherein the level shift circuit further includes a seventh resistor electrically connected to the control end of the second transistor and receiving the logic signal, and an eighth resistor electrically connected between the first end of the second transistor and the control end of the third transistor. 如請求項1所述的主機板電池偵測裝置,其中,該等第一至第四二極體各自為一稽納二極體。 A motherboard battery detection device as described in claim 1, wherein each of the first to fourth diodes is a Zener diode. 如請求項1所述的主機板電池偵測裝置,其中,該調節電 壓產生器包括,一第三電阻,具有一電連接該基板管理控制器以接收該邏輯信號的第一端,及一電連接該第一電晶體的該控制端且輸出該控制信號的第二端,及一第四電阻,電連接在該調節電壓產生器的該第三電阻的該第二端與地之間。 The motherboard battery detection device as described in claim 1, wherein the regulated voltage generator includes a third resistor having a first end electrically connected to the baseboard management controller to receive the logic signal, and a second end electrically connected to the control end of the first transistor and outputting the control signal, and a fourth resistor electrically connected between the second end of the third resistor of the regulated voltage generator and ground. 如請求項1所述的主機板電池偵測裝置,其中,該基板管理控制器包括,一類比數位轉換單元,電連接該第一電晶體的該第二端以接收該輸出電壓,並將該輸出電壓進行類比至數位轉換,以產生一相關於該電池電量的數位信號,以致該基板管理控制器據以判斷該電池的電量。 The motherboard battery detection device as described in claim 1, wherein the baseboard management controller includes an analog-to-digital conversion unit electrically connected to the second end of the first transistor to receive the output voltage, and performs analog-to-digital conversion on the output voltage to generate a digital signal related to the battery power, so that the baseboard management controller can judge the battery power accordingly. 如請求項8所述的主機板電池偵測裝置,其中,該基板管理控制器還包括,一通用型輸入輸出接腳,電連接該調節電壓產生器,該通用型輸入輸出接腳用以輸出該邏輯信號至該調節電壓產生器。 The motherboard battery detection device as described in claim 8, wherein the baseboard management controller further includes a universal input-output pin electrically connected to the regulated voltage generator, and the universal input-output pin is used to output the logic signal to the regulated voltage generator.
TW112105307A 2023-02-15 2023-02-15 Motherboard battery detection device TWI851026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112105307A TWI851026B (en) 2023-02-15 2023-02-15 Motherboard battery detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112105307A TWI851026B (en) 2023-02-15 2023-02-15 Motherboard battery detection device

Publications (2)

Publication Number Publication Date
TWI851026B true TWI851026B (en) 2024-08-01
TW202434899A TW202434899A (en) 2024-09-01

Family

ID=93283679

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112105307A TWI851026B (en) 2023-02-15 2023-02-15 Motherboard battery detection device

Country Status (1)

Country Link
TW (1) TWI851026B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2599596Y (en) * 2002-12-30 2004-01-14 英业达股份有限公司 Predetecting and processing device before cell depletion
TW201400838A (en) * 2012-06-21 2014-01-01 Via Tech Inc Battery management system
US20170271896A1 (en) * 2014-08-21 2017-09-21 Zte Corporation Information processing method, smart battery, terminal and computer storage medium
US20180046990A1 (en) * 2016-08-15 2018-02-15 Yung-Sheng Huang Trackable battery apparatus and method of tracking same
TW202046109A (en) * 2019-06-10 2020-12-16 神雲科技股份有限公司 Motherboard battery detection device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2599596Y (en) * 2002-12-30 2004-01-14 英业达股份有限公司 Predetecting and processing device before cell depletion
TW201400838A (en) * 2012-06-21 2014-01-01 Via Tech Inc Battery management system
US20170271896A1 (en) * 2014-08-21 2017-09-21 Zte Corporation Information processing method, smart battery, terminal and computer storage medium
US20180046990A1 (en) * 2016-08-15 2018-02-15 Yung-Sheng Huang Trackable battery apparatus and method of tracking same
TW202046109A (en) * 2019-06-10 2020-12-16 神雲科技股份有限公司 Motherboard battery detection device

Similar Documents

Publication Publication Date Title
US7746243B2 (en) Pump failure alarm device
US7750504B2 (en) Power supply apparatus to selectively output one of a plurality of input powers
US20070118322A1 (en) Testing circuit for a data interface
US9966793B2 (en) Supply-switching system
US7639152B2 (en) Fan failure alarm device
US20170300077A1 (en) Power management circuit and associated power management method
US8395520B2 (en) Device for monitoring voltage of motherboard
US20060197582A1 (en) Voltage providing circuit
TWI851026B (en) Motherboard battery detection device
US10748470B2 (en) Level shifter and projector
US10405400B2 (en) Power supply system and voltage output module
TW201422919A (en) Circuit for controlling fan
TW202434899A (en) Motherboard battery detection device
JP3852399B2 (en) Power switching circuit
TWI726332B (en) Motherboard battery detection device
US8495394B2 (en) Timing control circuit and power supply using the same
US9419618B1 (en) Interface circuit and electronic system using the same
US7853810B2 (en) Core voltage controlling apparatus
CN118534991A (en) Motherboard battery detecting device
TWI798721B (en) Boot control circuit of computer system
US20120254529A1 (en) Motherboard with ddr memory devices
US6690612B2 (en) Voltage supply for semiconductor memory
CN218783796U (en) Power-on circuit based on time delay reset chip
CN219918421U (en) Electronic equipment
US20240113703A1 (en) Oring fet control circuit and method