TWI839235B - Server motherboard with power detectiion function - Google Patents

Server motherboard with power detectiion function Download PDF

Info

Publication number
TWI839235B
TWI839235B TW112119791A TW112119791A TWI839235B TW I839235 B TWI839235 B TW I839235B TW 112119791 A TW112119791 A TW 112119791A TW 112119791 A TW112119791 A TW 112119791A TW I839235 B TWI839235 B TW I839235B
Authority
TW
Taiwan
Prior art keywords
power
circuit
electrically connected
switch
motherboard
Prior art date
Application number
TW112119791A
Other languages
Chinese (zh)
Inventor
吳威宏
Original Assignee
神雲科技股份有限公司
Filing date
Publication date
Application filed by 神雲科技股份有限公司 filed Critical 神雲科技股份有限公司
Application granted granted Critical
Publication of TWI839235B publication Critical patent/TWI839235B/en

Links

Images

Abstract

A server motherboard includes a motherboard connector, a power circuit, a programmable logic circuit, and a switch circuit. The programmable logic circuit includes an analog-to-digital conversion module, a comparison module, and a judgement module. The motherboard connector is configured to transmit a supply power to an external device. The power circuit is configured to generate the supply power, a standby power and an analog detecting power. The analog-to-digital conversion module is configured to convert the analog detecting power into a digital working power. The programmable logic circuit is electrically connected to the power circuit. The comparison module is configured to compare the voltage value of the digital working power and a comparing threshold to generate a comparing signal. The judgement module is configured to generate a first control signal according to the comparing signal. The switch circuit is electrically connected to the motherboard connector, the power circuit, and the programmable logic circuit, and configured to turn-on or turn-off according to the first control signal.

Description

具有電源偵測功能之伺服器主機板Server motherboard with power detection function

本案係有關於電源偵測技術,特別是有關於一種具有電源偵測功能之伺服器主機板。This case relates to power detection technology, and in particular to a server motherboard with power detection function.

EDSFF(Enterprise and Date-center SSD Form Factor)是一種固態硬碟的連接器規格標準。其中,符合ESDFF規格標準之裝置(以下簡稱為EDSFF裝置)適於伺服器系統或數據中心,以提供更多元的功能及支援度(例如熱插拔功能、支援PCIe Gen 4協定及PCIe Gen 5協定等)。EDSFF (Enterprise and Date-center SSD Form Factor) is a connector specification standard for solid-state drives. Devices that comply with the EDSFF specification standard (hereinafter referred to as EDSFF devices) are suitable for server systems or data centers to provide more diverse functions and support (such as hot-swap functions, support for PCIe Gen 4 and PCIe Gen 5 protocols, etc.).

然而,現有的EDSFF裝置之連接器(包含金手指及相對應之插槽)並不具有物理特性上的防呆機制。因此,若將現有的EDSFF裝置以錯誤的插設方向(例如旋轉180度)插設於伺服器系統中主機板之插槽上時,主機板之高位準電源引腳(例如12伏特)會與現有的EDSFF裝置之低位準電源引腳(例如接地)形成短路而導致主機板上之元件(例如電容器、晶片等)燒毀。However, the existing EDSFF device connector (including the gold finger and the corresponding slot) does not have a physical foolproof mechanism. Therefore, if the existing EDSFF device is inserted into the slot of the motherboard in the server system in the wrong insertion direction (for example, rotated 180 degrees), the high-level power pin of the motherboard (for example, 12 volts) will short-circuit with the low-level power pin of the existing EDSFF device (for example, ground) and cause the components on the motherboard (for example, capacitors, chips, etc.) to burn out.

為了解決上述問題,本案提出一種伺服器主機板。伺服器主機板包含一主板連接器,用以傳輸一供應電源至一外部裝置;一電源電路,用以產生供應電源、一待機電源及一類比偵測電源;一可編程邏輯電路,電性連接於電源電路,包含:一類比數位轉換模組,用以將類比偵測電源轉換為一數位工作電源;一比較模組,用以比較數位工作電源之電壓值及一比較閾值而產生一比較訊號;以及一判斷模組,用以根據比較訊號而產生相對應之一第一控制訊號;以及一開關電路,電性連接於主板連接器、電源電路及可編程邏輯電路,用以根據第一控制訊號而導通或關斷;其中,當開關電路導通時,主板連接器電性連接於電源電路;當開關電路關斷時,主板連接器與電源電路之間開路。In order to solve the above problems, this case proposes a server motherboard. The server motherboard includes a motherboard connector for transmitting a supply power to an external device; a power circuit for generating a supply power, a standby power and an analog detection power; a programmable logic circuit electrically connected to the power circuit, including: an analog-to-digital conversion module for converting the analog detection power into a digital working power; a comparison module for comparing the voltage value of the digital working power and a comparison threshold value. Generate a comparison signal; and a judgment module, used to generate a corresponding first control signal according to the comparison signal; and a switch circuit, electrically connected to the motherboard connector, the power circuit and the programmable logic circuit, used to turn on or off according to the first control signal; wherein, when the switch circuit is turned on, the motherboard connector is electrically connected to the power circuit; when the switch circuit is turned off, the circuit between the motherboard connector and the power circuit is open.

在一些實施例中,電源電路包含:一分壓電路,電性連接於可編程邏輯電路,用以將待機電源分壓為類比偵測電源;以及一穩壓器,電性連接於開關電路,用以將待機電源調節為供應電源。In some embodiments, the power circuit includes: a voltage divider circuit electrically connected to the programmable logic circuit for dividing the standby power into an analog detection power; and a voltage regulator electrically connected to the switch circuit for regulating the standby power into a supply power.

在一些實施例中,分壓電路包含:一第一電阻,第一電阻之一端電性連接於待機電源,第一電阻之另一端電性連接於可編程邏輯電路;以及一第二電阻,第二電阻之一端電性連接於電源電路及第一電阻之另一端,第二電阻之另一端接地。In some embodiments, the voltage divider circuit includes: a first resistor, one end of the first resistor is electrically connected to the standby power supply, and the other end of the first resistor is electrically connected to the programmable logic circuit; and a second resistor, one end of the second resistor is electrically connected to the power circuit and the other end of the first resistor, and the other end of the second resistor is grounded.

在一些實施例中,開關電路包含:一下拉電阻,下拉電阻之一端電性連接於可編程邏輯電路,下拉電阻之另一端接地,用以拉引第一控制訊號;以及一第一開關,第一開關之控制端電性連接於可編程邏輯電路,第一開關之輸出端電性連接於電源電路,第一開關之接地端電性連接於主板連接器,第一開關用以根據第一控制訊號而導通或關斷。In some embodiments, the switch circuit includes: a pull-down resistor, one end of the pull-down resistor is electrically connected to the programmable logic circuit, and the other end of the pull-down resistor is grounded, for pulling a first control signal; and a first switch, the control end of the first switch is electrically connected to the programmable logic circuit, the output end of the first switch is electrically connected to the power circuit, and the ground end of the first switch is electrically connected to the motherboard connector, and the first switch is used to turn on or off according to the first control signal.

在一些實施例中,伺服器主機板更包含一電容器,電容器之一端電性連接於電源電路及第一開關之輸出端,電容器之另一端接地,電容器用以濾除供應電源中的雜訊。In some embodiments, the server motherboard further includes a capacitor, one end of the capacitor is electrically connected to the power circuit and the output end of the first switch, and the other end of the capacitor is grounded. The capacitor is used to filter noise in the supply power.

在一些實施例中,開關電路包含:一下拉電阻,電性連接於可編程邏輯電路,用以拉引第一控制訊號;一上拉電阻,上拉電阻之一端電性連接於電源電路,用以拉引待機電源而產生一第二控制訊號;一第一開關,第一開關之控制端電性連接於可編程邏輯電路,第一開關之輸出端電性連接於上拉電阻之另一端,第一開關之接地端接地,第一開關用以根據第一控制訊號而導通或關斷,並於第一開關之輸出端輸出第二控制訊號;以及一第二開關,第二開關之控制端電性連接於第一開關之輸出端及上拉電阻之另一端,第二開關之輸出端電性連接於電源電路,第二開關之接地端電性連接於主板連接器,第二開關用以根據第二控制訊號而導通或關斷。In some embodiments, the switch circuit includes: a pull-down resistor electrically connected to the programmable logic circuit for pulling the first control signal; a pull-up resistor, one end of which is electrically connected to the power circuit for pulling the standby power to generate a second control signal; a first switch, the control end of which is electrically connected to the programmable logic circuit, the output end of which is electrically connected to the other end of the pull-up resistor, and the contact end of the first switch is electrically connected to the control end of the programmable logic circuit. The ground terminal is grounded, the first switch is used to turn on or off according to the first control signal, and the second control signal is output at the output terminal of the first switch; and a second switch, the control terminal of the second switch is electrically connected to the output terminal of the first switch and the other end of the pull-up resistor, the output terminal of the second switch is electrically connected to the power circuit, the ground terminal of the second switch is electrically connected to the motherboard connector, and the second switch is used to turn on or off according to the second control signal.

在一些實施例中,伺服器主機板更包含一電容器,電容器之一端電性連接於電源電路及第二開關之輸出端,電容器之另一端接地,電容器用以濾除供應電源中的雜訊。In some embodiments, the server motherboard further includes a capacitor, one end of which is electrically connected to the power circuit and the output end of the second switch, and the other end of the capacitor is grounded. The capacitor is used to filter noise in the power supply.

在一些實施例中,可編程邏輯電路更包含:一暫存模組,用以儲存對應於第一控制訊號之電壓值的一除錯數值;一儲存模組,用以儲存除錯數值;以及一控制模組,用以自暫存模組讀取除錯數值,以及用以將除錯數值寫入至儲存模組中。In some embodiments, the programmable logic circuit further includes: a temporary storage module for storing a debug value corresponding to the voltage value of the first control signal; a storage module for storing the debug value; and a control module for reading the debug value from the temporary storage module and writing the debug value to the storage module.

在一些實施例中,伺服器主機板更包含一基板管理控制電路,電性連接於可編程邏輯電路,用以讀取並儲存除錯數值。In some embodiments, the server motherboard further includes a baseboard management control circuit electrically connected to the programmable logic circuit for reading and storing debug values.

在一些實施例中,伺服器主機板更包含一發光電路,電性連接於可編程邏輯電路,用以根據第一控制訊號之電壓值發出相對應之一指示光線。In some embodiments, the server motherboard further includes a light-emitting circuit electrically connected to the programmable logic circuit for emitting an indicator light corresponding to the voltage value of the first control signal.

綜上所述,依據一些實施例,伺服器主機板係透過可編程邏輯電路偵測類比偵測電源之電壓值的變化,以判斷外部裝置是否以正確的插設方向插設於伺服器主機板之主板連接器上。當外部裝置以錯誤的插設方向插設於伺服器主機板之主板連接器上時,伺服器主機板係立即關斷開關電路以斷開電源電路與主板連接器之間的線路,進而避免電源電路所產生高位準之供應電源完全短路而導致伺服器主機板燒毀。In summary, according to some embodiments, the server motherboard detects the change of the voltage value of the analog detection power supply through a programmable logic circuit to determine whether the external device is plugged into the motherboard connector of the server motherboard in the correct plugging direction. When the external device is plugged into the motherboard connector of the server motherboard in the wrong plugging direction, the server motherboard immediately turns off the switch circuit to disconnect the line between the power circuit and the motherboard connector, thereby preventing the high-level supply power generated by the power circuit from being completely short-circuited and causing the server motherboard to burn out.

請參照圖1,圖1是依據本案之伺服器主機板10之第一實施例的模組方塊圖。伺服器主機板10包含一主板連接器100、一電源電路110、包含一類比數位轉換模組121、一比較模組122以及一判斷模組123之一可編程邏輯電路120以及一開關電路130。其中,可編程邏輯電路120電性連接於電源電路110,並且開關電路130電性連接於主板連接器100、電源電路110及可編程邏輯電路120。Please refer to FIG. 1, which is a module block diagram of a first embodiment of a server motherboard 10 according to the present invention. The server motherboard 10 includes a motherboard connector 100, a power circuit 110, a programmable logic circuit 120 including an analog-to-digital conversion module 121, a comparison module 122, and a judgment module 123, and a switch circuit 130. The programmable logic circuit 120 is electrically connected to the power circuit 110, and the switch circuit 130 is electrically connected to the motherboard connector 100, the power circuit 110, and the programmable logic circuit 120.

請參照圖2及圖3A,圖2是圖1中本案之伺服器主機板10電性連接於外部裝置20之第一實施例的示意圖,並且圖3A是圖1中伺服器主機板10電性連接於外部裝置20之第二實施例的示意圖。其中,主板連接器100包含複數引腳101~10N,並且外部裝置20之周邊連接器200亦包含複數引腳201~20N(N為一正整數)。因此,外部裝置20係可透過周邊連接器200插設於伺服器主機板10之主板連接器100上。Please refer to FIG. 2 and FIG. 3A. FIG. 2 is a schematic diagram of a first embodiment of the server motherboard 10 of FIG. 1 being electrically connected to an external device 20, and FIG. 3A is a schematic diagram of a second embodiment of the server motherboard 10 of FIG. 1 being electrically connected to an external device 20. The motherboard connector 100 includes a plurality of pins 101 to 10N, and the peripheral connector 200 of the external device 20 also includes a plurality of pins 201 to 20N (N is a positive integer). Therefore, the external device 20 can be plugged into the motherboard connector 100 of the server motherboard 10 through the peripheral connector 200.

在一些實施例中,主板連接器100及周邊連接器200皆符合EDSFF之規格標準,但不以此為限,只要外部裝置20的周邊連接器200可以兩種方向插設於伺服器主機板10的主板連接器100上即可。其中,兩種方向包含一正確方向(如圖2所示)及一錯誤方向(如圖3A所示)。In some embodiments, both the motherboard connector 100 and the peripheral connector 200 comply with the EDSFF specification standard, but the present invention is not limited thereto, as long as the peripheral connector 200 of the external device 20 can be plugged into the motherboard connector 100 of the server motherboard 10 in two directions. The two directions include a correct direction (as shown in FIG. 2 ) and an incorrect direction (as shown in FIG. 3A ).

主板連接器100用以傳輸/接收通信訊號,例如符合I2C、UART等介面的信號。其中,主板連接器100還用以傳輸一供應電源VSP至外部裝置20。並且,主板連接器100上的每一個引腳之功能不完全相同。當主板連接器100以正確方向電性連接於周邊連接器200時,主板連接器100上的各引腳皆分別對應於周邊連接器200上的各引腳。在一些實施例中,供應電源VSP包含一常態偵測電源VN及一異態偵測電源VAN。其中,主板連接器100之引腳101用以傳輸常態偵測電源VN,並且主板連接器100之引腳10N用以傳輸異態偵測電源VAN。The motherboard connector 100 is used to transmit/receive communication signals, such as signals that comply with interfaces such as I2C, UART, etc. Among them, the motherboard connector 100 is also used to transmit a supply power VSP to the external device 20. In addition, the function of each pin on the motherboard connector 100 is not exactly the same. When the motherboard connector 100 is electrically connected to the peripheral connector 200 in the correct direction, each pin on the motherboard connector 100 corresponds to each pin on the peripheral connector 200. In some embodiments, the supply power VSP includes a normal detection power VN and an abnormal detection power VAN. Among them, the pin 101 of the motherboard connector 100 is used to transmit the normal detection power VN, and the pin 10N of the motherboard connector 100 is used to transmit the abnormal detection power VAN.

在一些實施例中,常態偵測電源VN之電壓值為一高位準(例如但不限於24伏特或12伏特,以下以12伏特為例),並且異態偵測電源VAN之電壓值為一低位準(例如但不限於0.3伏特、0.1伏特或0伏特等接地訊號,以下以0伏特為例)。在另一些實施例中,主板連接器100之引腳101用以傳輸異態偵測電源VAN,並且主板連接器100之引腳10N用以傳輸常態偵測電源VN。In some embodiments, the voltage value of the normal detection power VN is a high level (for example, but not limited to 24 volts or 12 volts, hereinafter 12 volts is taken as an example), and the voltage value of the abnormal detection power VAN is a low level (for example, but not limited to 0.3 volts, 0.1 volts or 0 volts, etc., ground signals, hereinafter 0 volts is taken as an example). In other embodiments, the pin 101 of the motherboard connector 100 is used to transmit the abnormal detection power VAN, and the pin 10N of the motherboard connector 100 is used to transmit the normal detection power VN.

在一些實施例中,周邊連接器200之引腳201亦為用以傳輸常態偵測電源VN之引腳,並且周邊連接器200之引腳20N亦為用以傳輸異態偵測電源VAN之引腳。在另一些實施例中,周邊連接器200之引腳201用以傳輸異態偵測電源VAN,並且周邊連接器200之引腳20N用以傳輸常態偵測電源VN。In some embodiments, pin 201 of peripheral connector 200 is also a pin for transmitting normal detection power VN, and pin 20N of peripheral connector 200 is also a pin for transmitting abnormal detection power VAN. In other embodiments, pin 201 of peripheral connector 200 is used to transmit abnormal detection power VAN, and pin 20N of peripheral connector 200 is used to transmit normal detection power VN.

在一些實施例中,當主板連接器100以正確方向插設,此時主板連接器100之引腳101對應於同樣用來傳輸常態偵測電源VN的周邊連接器200之引腳201、主板連接器100之引腳102對應於周邊連接器200之引腳202、…、並且主板連接器100之引腳10N對應於同樣用來傳輸異態偵測電源VAN的周邊連接器200之引腳20N。因此,當外部裝置20以正確方向插設於伺服器主機板10上時(如圖2所示),主板連接器100之所有引腳皆正確地對應於具有相同功能或屬性的周邊連接器200之所有引腳,使得伺服器主機板10及外部裝置20皆可正常運作。In some embodiments, when the motherboard connector 100 is inserted in the correct direction, pin 101 of the motherboard connector 100 corresponds to pin 201 of the peripheral connector 200 which is also used to transmit the normal detection power VN, pin 102 of the motherboard connector 100 corresponds to pin 202 of the peripheral connector 200, ..., and pin 10N of the motherboard connector 100 corresponds to pin 20N of the peripheral connector 200 which is also used to transmit the abnormal detection power VAN. Therefore, when the external device 20 is inserted into the server motherboard 10 in the correct direction (as shown in FIG. 2 ), all pins of the motherboard connector 100 correctly correspond to all pins of the peripheral connector 200 having the same function or attribute, so that both the server motherboard 10 and the external device 20 can operate normally.

反之,當外部裝置20以錯誤方向插設於伺服器主機板10上時(如圖3A所示),主板連接器100之部分引腳錯誤地電性連接於周邊連接器200之部分引腳。換言之,主板連接器100之部分引腳電性連接周邊連接器200具有相異功能或屬性的部分引腳,使得伺服器主機板10及外部裝置20無法正常運作。並且,伺服器主機板10中用以傳輸高位準之常態偵測電源VN的引腳101會與外部裝置20中用以傳輸低位準之異態偵測電源VAN的引腳20N形成短路而可能導致伺服器主機板10燒毀。On the contrary, when the external device 20 is inserted into the server motherboard 10 in the wrong direction (as shown in FIG. 3A ), some pins of the motherboard connector 100 are mistakenly electrically connected to some pins of the peripheral connector 200. In other words, some pins of the motherboard connector 100 are electrically connected to some pins of the peripheral connector 200 with different functions or properties, so that the server motherboard 10 and the external device 20 cannot operate normally. In addition, the pin 101 of the server motherboard 10 for transmitting the high-level normal detection power VN will form a short circuit with the pin 20N of the external device 20 for transmitting the low-level abnormal detection power VAN, which may cause the server motherboard 10 to burn out.

以下將以一實施例來說明當外部裝置20以錯誤方向插設於伺服器主機板10上時所產生的問題。請參照圖3B,圖3B是圖3A中本案之伺服器主機板10電性連接於外部裝置20之一示範態樣的示意圖。在本實施例中,伺服器主機板10之主板連接器100包含六個引腳101~106,並且外部裝置20之周邊連接器200亦包含六個引腳201~206。其中,引腳101、102、105、201~202、205用以傳輸高位準之常態偵測電源VN,並且引腳103、104、106、203~204、206用以傳輸低位準之異態偵測電源VAN。The following will use an embodiment to illustrate the problem that occurs when the external device 20 is plugged into the server motherboard 10 in the wrong direction. Please refer to FIG. 3B , which is a schematic diagram of an exemplary state in which the server motherboard 10 of the present case in FIG. 3A is electrically connected to the external device 20. In this embodiment, the motherboard connector 100 of the server motherboard 10 includes six pins 101-106, and the peripheral connector 200 of the external device 20 also includes six pins 201-206. Among them, pins 101, 102, 105, 201-202, 205 are used to transmit a high-level normal detection power VN, and pins 103, 104, 106, 203-204, 206 are used to transmit a low-level abnormal detection power VAN.

當圖3B所示之外部裝置20以錯誤方向插設於伺服器主機板10上時,引腳101係電性連接於引腳206、引腳102係電性連接於引腳205、…、並且引腳106係電性連接於引腳201。其中,由於引腳101與引腳206各自之功能不同,引腳101與引腳206之間係形成短路而可能導致伺服器主機板10與外部裝置20溝通異常,甚至導致伺服器主機板10燒毀。同理,由於引腳106與引腳201各自之功能不同,引腳106與引腳201之間係形成短路而可能導致伺服器主機板10與外部裝置20溝通異常,甚至導致伺服器主機板10燒毀。When the external device 20 shown in FIG. 3B is inserted into the server motherboard 10 in the wrong direction, pin 101 is electrically connected to pin 206, pin 102 is electrically connected to pin 205, ..., and pin 106 is electrically connected to pin 201. Since pin 101 and pin 206 have different functions, a short circuit is formed between pin 101 and pin 206, which may cause abnormal communication between the server motherboard 10 and the external device 20, or even cause the server motherboard 10 to burn out. Similarly, since the pins 106 and 201 have different functions, a short circuit is formed between the pins 106 and 201, which may cause abnormal communication between the server motherboard 10 and the external device 20, or even cause the server motherboard 10 to burn out.

請參照圖1至圖4,圖4是圖1中描述本案之伺服器主機板10之一些實施例的運作流程圖。在本實施例開始執行之前,外部裝置20係先插設於伺服器主機板10上。其中,以下將以正確方向為正確的插設方向,並且以錯誤方向為錯誤的插設方向為例來說明伺服器主機板10之運作流程。當伺服器主機板10所外接之一電源供應器上電而提供電力給伺服器主機板10,並且不論伺服器主機板10之基本輸入輸出系統(BIOS)或作業系統(OS)是否啟動運作時,伺服器主機板10之電源電路110係產生一供應電源VSP、一待機電源VSB及一類比偵測電源VAD(步驟S100)。其中,供應電源VSP用以提供外部裝置20所需的基本電源(例如常態偵測電源VN及異態偵測電源VAN),並且待機電源VSB用以提供伺服器主機板10中各裝置於待機時所需的基本電源。在一些實施例中,由於供應電源VSP、待機電源VSB及類比偵測電源VAD皆由電源電路110所產生,因此供應電源VSP、待機電源VSB及類比偵測電源VAD各自的電壓值係彼此相關且相互影響(相關論述將於後說明)。Please refer to FIG. 1 to FIG. 4 , FIG. 4 is an operation flow chart of some embodiments of the server motherboard 10 of the present case described in FIG. 1 . Before the present embodiment starts to be executed, the external device 20 is first plugged into the server motherboard 10 . Hereinafter, the operation flow of the server motherboard 10 will be described by taking the correct direction as the correct plugging direction and the incorrect direction as the incorrect plugging direction as an example. When a power supply externally connected to the server motherboard 10 is powered on to provide power to the server motherboard 10 , and regardless of whether the basic input and output system (BIOS) or operating system (OS) of the server motherboard 10 is started and operated, the power circuit 110 of the server motherboard 10 generates a supply power VSP, a standby power VSB and an analog detection power VAD (step S100 ). The supply power VSP is used to provide the basic power required by the external device 20 (such as the normal detection power VN and the abnormal detection power VAN), and the standby power VSB is used to provide the basic power required by each device in the server motherboard 10 when in standby mode. In some embodiments, since the supply power VSP, the standby power VSB and the analog detection power VAD are all generated by the power circuit 110, the voltage values of the supply power VSP, the standby power VSB and the analog detection power VAD are related to each other and affect each other (the relevant discussion will be explained later).

在一些實施例中,當系統尚未開機而處於待機狀態時,待機電源VSB係用以提供電源給伺服器主機板10中仍在運作的元件,並且類比偵測電源VAD係用以提供電源給伺服器主機板10以偵測伺服器主機板10與外部裝置20之間的插置狀態。其中,由於類比偵測電源VAD之電壓值相關於常態偵測電源VN之電壓值,因此可編程邏輯電路120係可透過類比偵測電源VAD判斷伺服器主機板10與外部裝置20之間的插置狀態。In some embodiments, when the system is not powered on and is in a standby state, the standby power VSB is used to provide power to the components in the server motherboard 10 that are still in operation, and the analog detection power VAD is used to provide power to the server motherboard 10 to detect the plug-in state between the server motherboard 10 and the external device 20. Since the voltage value of the analog detection power VAD is related to the voltage value of the normal detection power VN, the programmable logic circuit 120 can determine the plug-in state between the server motherboard 10 and the external device 20 through the analog detection power VAD.

此外,當伺服器主機板10所外接之此電源供應器上電而提供電力給伺服器主機板10時,伺服器主機板10之開關電路130係預設為導通狀態。因此,電源電路110係電性連接於主板連接器100,並透過主板連接器100將供應電源VSP傳輸至外部裝置20。In addition, when the power supply external to the server motherboard 10 is powered on to provide power to the server motherboard 10, the switch circuit 130 of the server motherboard 10 is preset to the on state. Therefore, the power circuit 110 is electrically connected to the motherboard connector 100 and transmits the supply power VSP to the external device 20 through the motherboard connector 100.

接續步驟S100,可編程邏輯電路120之類比數位轉換模組121係將類比偵測電源VAD轉換為一數位工作電源VDC(步驟S110)。隨後,可編程邏輯電路120之比較模組122係比較數位工作電源VDC之電壓值及一比較閾值而產生一比較訊號Scp(步驟S120)。其中,此比較閾值可為一預設電壓值或一預設電壓範圍。Following step S100, the analog-to-digital conversion module 121 of the programmable logic circuit 120 converts the analog detection power VAD into a digital working power VDC (step S110). Subsequently, the comparison module 122 of the programmable logic circuit 120 compares the voltage value of the digital working power VDC with a comparison threshold value to generate a comparison signal Scp (step S120). The comparison threshold value can be a preset voltage value or a preset voltage range.

在一些實施例中,假設此比較閾值為此預設電壓值,並且此預設電壓值例如為3伏特或12伏特,不以此為限。當數位工作電源VDC之電壓值符合此比較閾值時(例如當數位工作電源VDC之電壓值高於此比較閾值時),比較模組122所產生之比較訊號Scp之電壓值為代表「符合」的比較結果之電壓值(例如一第一特定參數值)。反之,當數位工作電源VDC之電壓值不符合此比較閾值時(例如當數位工作電源VDC之電壓值低於此比較閾值時),比較模組122所產生之比較訊號Scp之電壓值為代表「不符合」的比較結果之電壓值(例如一第二特定參數值)。In some embodiments, it is assumed that the comparison threshold is the preset voltage value, and the preset voltage value is, for example, 3 volts or 12 volts, but is not limited thereto. When the voltage value of the digital working power source VDC meets the comparison threshold value (for example, when the voltage value of the digital working power source VDC is higher than the comparison threshold value), the voltage value of the comparison signal Scp generated by the comparison module 122 is a voltage value representing a "matching" comparison result (for example, a first specific parameter value). On the contrary, when the voltage value of the digital working power source VDC does not meet the comparison threshold (for example, when the voltage value of the digital working power source VDC is lower than the comparison threshold), the voltage value of the comparison signal Scp generated by the comparison module 122 is a voltage value representing a "non-compliant" comparison result (for example, a second specific parameter value).

在一些實施例中,此第一特定參數值與此第二特定參數值之間彼此相異以分別代表「符合」及「不符合」的比較結果。其中,當此第一特定參數值為一高位準時,此第二特定參數值為一低位準;當此第一特定參數值為一低位準時,此第二特定參數值為一高位準。In some embodiments, the first specific parameter value and the second specific parameter value are different from each other to represent the comparison results of "matching" and "not matching", respectively. When the first specific parameter value is a high level, the second specific parameter value is a low level; when the first specific parameter value is a low level, the second specific parameter value is a high level.

在一些實施例中,假設此比較閾值為此預設電壓範圍,並且此預設電壓範圍例如為2.5伏特至3.5伏特或11.5伏特至15伏特,不以此為限。當數位工作電源VDC之電壓值落入此比較閾值之範圍中時,比較模組122所產生之比較訊號Scp之電壓值為代表「符合」的比較結果之電壓值(例如前述之第一特定參數值)。反之,當數位工作電源VDC之電壓值未落入此比較閾值之範圍中時,比較模組122所產生之比較訊號Scp之電壓值為代表「不符合」的比較結果之電壓值(例如前述之第二特定參數值)。In some embodiments, it is assumed that the comparison threshold is the preset voltage range, and the preset voltage range is, for example, 2.5 volts to 3.5 volts or 11.5 volts to 15 volts, but is not limited thereto. When the voltage value of the digital working power source VDC falls within the range of the comparison threshold, the voltage value of the comparison signal Scp generated by the comparison module 122 is a voltage value representing a "compliant" comparison result (e.g., the aforementioned first specific parameter value). On the contrary, when the voltage value of the digital working power source VDC does not fall within the range of the comparison threshold, the voltage value of the comparison signal Scp generated by the comparison module 122 is a voltage value representing a "non-compliant" comparison result (e.g., the aforementioned second specific parameter value).

為方便說明,以下將以一高位準來代表「符合」的比較結果之電壓值,並且以一低位準來代表「不符合」的比較結果之電壓值。需注意的是,此設定並非本發明之限制。For the sake of convenience, the following will use a high level to represent the voltage value of the comparison result of "matching", and a low level to represent the voltage value of the comparison result of "not matching". It should be noted that this setting is not a limitation of the present invention.

接續步驟S120,可編程邏輯電路120之判斷模組123係判斷比較訊號Scp之電壓值是否為代表「符合」的比較結果之電壓值(步驟S130),並且根據比較訊號Scp之電壓值而產生相對應之一第一控制訊號Sc1。其中,當比較訊號Scp之電壓值為代表「符合」之一高位準時,判斷模組123係產生代表「通過」之第一控制訊號Sc1以控制開關電路130導通(步驟S140),使得主板連接器100電性連接於電源電路110。當比較訊號Scp之電壓值為代表「不符合」之一低位準時,判斷模組123係產生代表「不通過」之第一控制訊號Sc1以控制開關電路130關斷(步驟S150),使得主板連接器100與電源電路110之間開路(Open)。Following step S120, the determination module 123 of the programmable logic circuit 120 determines whether the voltage value of the comparison signal Scp is a voltage value representing a comparison result of "matching" (step S130), and generates a corresponding first control signal Sc1 according to the voltage value of the comparison signal Scp. When the voltage value of the comparison signal Scp is a high level representing "matching", the determination module 123 generates the first control signal Sc1 representing "pass" to control the switch circuit 130 to conduct (step S140), so that the motherboard connector 100 is electrically connected to the power circuit 110. When the voltage value of the comparison signal Scp is a low level representing "non-compliance", the determination module 123 generates a first control signal Sc1 representing "failure" to control the switch circuit 130 to turn off (step S150), so that the circuit between the motherboard connector 100 and the power circuit 110 is open.

在一些實施例中,代表「通過」之第一控制訊號Sc1之電壓值相異於代表「不通過」之第一控制訊號Sc1。其中,當代表「通過」之第一控制訊號Sc1之電壓值為一高位準時,代表「不通過」之第一控制訊號Sc1之電壓值1為一低位準;當代表「通過」之第一控制訊號Sc1之電壓值為一低位準時,代表「不通過」之第一控制訊號Sc1之電壓值為一高位準。In some embodiments, the voltage value of the first control signal Sc1 representing "pass" is different from that of the first control signal Sc1 representing "fail". When the voltage value of the first control signal Sc1 representing "pass" is high, the voltage value of the first control signal Sc1 representing "fail" is low; when the voltage value of the first control signal Sc1 representing "pass" is low, the voltage value of the first control signal Sc1 representing "fail" is high.

當外部裝置20以正確的插設方向(如圖2所示)插設於伺服器主機板10上時,伺服器主機板10之主板連接器100中用以傳輸常態偵測電源VN的引腳101係電性連接於外部裝置20之周邊連接器200中用以傳輸常態偵測電源VN的引腳201。其中,引腳101及引腳201係共同傳輸供應電源VSP以作為常態偵測電源VN,使得伺服器主機板10及外部裝置20皆可正常運作。因此,開關電路130係維持導通狀態(對應於步驟S140),使得電源電路110得以提供供應電源VSP給外部裝置20。When the external device 20 is inserted into the server motherboard 10 in the correct insertion direction (as shown in FIG. 2 ), the pin 101 for transmitting the normal detection power VN in the mainboard connector 100 of the server motherboard 10 is electrically connected to the pin 201 for transmitting the normal detection power VN in the peripheral connector 200 of the external device 20. Among them, the pin 101 and the pin 201 transmit the supply power VSP together as the normal detection power VN, so that the server motherboard 10 and the external device 20 can operate normally. Therefore, the switch circuit 130 maintains the on state (corresponding to step S140), so that the power circuit 110 can provide the supply power VSP to the external device 20.

當外部裝置20以錯誤的插設方向(如圖3A所示)插設於伺服器主機板10上時,伺服器主機板10之主板連接器100中用以傳輸常態偵測電源VN的引腳101係電性連接於外部裝置20之周邊連接器200中用以傳輸異態偵測電源VAN的引腳20N。此時,常態偵測電源VN之電壓值係受到引腳101與引腳20N短路的影響而下降,進而導致相關於常態偵測電源VN之類比偵測電源VAD之電壓值亦隨之下降。因此,當可編程邏輯電路120判斷數位工作電源VDC(對應於類比偵測電源VAD)之值不符合比較閾值時,可編程邏輯電路120係產生代表「不通過」之第一控制訊號Sc1以關斷開關電路130,進而避免供應電源VSP之電壓值繼續下降。When the external device 20 is inserted into the server motherboard 10 in an incorrect insertion direction (as shown in FIG. 3A ), the pin 101 for transmitting the normal detection power VN in the mainboard connector 100 of the server motherboard 10 is electrically connected to the pin 20N for transmitting the abnormal detection power VAN in the peripheral connector 200 of the external device 20. At this time, the voltage value of the normal detection power VN is reduced due to the short circuit between the pin 101 and the pin 20N, thereby causing the voltage value of the analog detection power VAD related to the normal detection power VN to also decrease. Therefore, when the programmable logic circuit 120 determines that the value of the digital working power VDC (corresponding to the analog detection power VAD) does not meet the comparison threshold, the programmable logic circuit 120 generates a first control signal Sc1 representing "not pass" to turn off the switch circuit 130, thereby preventing the voltage value of the supply power VSP from continuing to drop.

請參照圖5,圖5是圖1中本案之開關電路130之第一實施例的電路示意圖。在一些實施例中,開關電路130包含一下拉電阻Rp1以及一第一開關Q1。其中,下拉電阻Rp1之一端電性連接於可編程邏輯電路120,並且下拉電阻Rp1之另一端接地。第一開關Q1之控制端G1電性連接於可編程邏輯電路120,第一開關Q1之輸出端D1電性連接於電源電路110,並且第一開關Q1之接地端S1電性連接於主板連接器100。Please refer to FIG. 5 , which is a circuit diagram of a first embodiment of the switch circuit 130 of the present case in FIG. 1 . In some embodiments, the switch circuit 130 includes a pull-down resistor Rp1 and a first switch Q1. One end of the pull-down resistor Rp1 is electrically connected to the programmable logic circuit 120, and the other end of the pull-down resistor Rp1 is grounded. The control end G1 of the first switch Q1 is electrically connected to the programmable logic circuit 120, the output end D1 of the first switch Q1 is electrically connected to the power circuit 110, and the ground end S1 of the first switch Q1 is electrically connected to the motherboard connector 100.

在一些實施例中,下拉電阻Rp1用以拉引第一控制訊號Sc1,並且第一開關Q1用以根據第一控制訊號Sc1而導通或關斷。其中,當第一控制訊號Sc1之電壓值為高位準時,第一開關Q1係導通而使得主板連接器100電性連接於電源電路110。當第一控制訊號Sc1之電壓值為低位準時,第一開關Q1係關斷而使得主板連接器100與電源電路110之間開路。In some embodiments, the pull-down resistor Rp1 is used to pull the first control signal Sc1, and the first switch Q1 is used to turn on or off according to the first control signal Sc1. When the voltage value of the first control signal Sc1 is high, the first switch Q1 is turned on so that the motherboard connector 100 is electrically connected to the power circuit 110. When the voltage value of the first control signal Sc1 is low, the first switch Q1 is turned off so that the circuit between the motherboard connector 100 and the power circuit 110 is open.

請參照圖6,圖6是圖1中本案之開關電路130之第二實施例的電路示意圖。在一些實施例中,開關電路130包含一下拉電阻Rp1、一上拉電阻Rp2、一第一開關Q1以及一第二開關Q2。其中,下拉電阻Rp1之一端電性連接於可編程邏輯電路120,並且下拉電阻Rp1之另一端接地。上拉電阻Rp2之一端電性連接於電源電路110。第一開關Q1之控制端G1電性連接於可編程邏輯電路120,第一開關Q1之輸出端D1電性連接於上拉電阻Rp2之另一端,並且第一開關Q1之接地端S1接地。第二開關Q2之控制端G2電性連接於第一開關Q1之輸出端D1及上拉電阻Rp2之另一端,第二開關Q2之輸出端S2電性連接於電源電路110,第二開關Q2之接地端D2電性連接於主板連接器100。Please refer to FIG. 6 , which is a circuit diagram of a second embodiment of the switch circuit 130 of the present case in FIG. 1 . In some embodiments, the switch circuit 130 includes a pull-down resistor Rp1, a pull-up resistor Rp2, a first switch Q1, and a second switch Q2. Among them, one end of the pull-down resistor Rp1 is electrically connected to the programmable logic circuit 120, and the other end of the pull-down resistor Rp1 is grounded. One end of the pull-up resistor Rp2 is electrically connected to the power circuit 110. The control end G1 of the first switch Q1 is electrically connected to the programmable logic circuit 120, the output end D1 of the first switch Q1 is electrically connected to the other end of the pull-up resistor Rp2, and the ground end S1 of the first switch Q1 is grounded. The control terminal G2 of the second switch Q2 is electrically connected to the output terminal D1 of the first switch Q1 and the other end of the pull-up resistor Rp2. The output terminal S2 of the second switch Q2 is electrically connected to the power circuit 110. The ground terminal D2 of the second switch Q2 is electrically connected to the motherboard connector 100.

在一些實施例中,下拉電阻Rp1用以拉引第一控制訊號Sc1,並且上拉電阻Rp2用以拉引待機電源VSB而產生一第二控制訊號Sc2。第一開關Q1用以根據第一控制訊號Sc1而導通或關斷,並於第一開關Q1之輸出端D1輸出第二控制訊號Sc2。第二開關Q2用以根據第二控制訊號Sc2而導通或關斷。其中,當第一控制訊號Sc1之電壓值為高位準時,第一開關Q1係導通而使得第一開關Q1之輸出端D1接地,進而使第二控制訊號Sc2之電壓值下降至低位準。因此,第二開關Q2係根據低位準之第二控制訊號Sc2而導通,進而使主板連接器100電性連接於電源電路110。In some embodiments, the pull-down resistor Rp1 is used to pull the first control signal Sc1, and the pull-up resistor Rp2 is used to pull the standby power VSB to generate a second control signal Sc2. The first switch Q1 is used to turn on or off according to the first control signal Sc1, and output the second control signal Sc2 at the output terminal D1 of the first switch Q1. The second switch Q2 is used to turn on or off according to the second control signal Sc2. When the voltage value of the first control signal Sc1 is high, the first switch Q1 is turned on and the output terminal D1 of the first switch Q1 is grounded, thereby causing the voltage value of the second control signal Sc2 to drop to a low level. Therefore, the second switch Q2 is turned on according to the low-level second control signal Sc2, thereby electrically connecting the motherboard connector 100 to the power circuit 110.

當第一控制訊號Sc1之電壓值為低位準時,第一開關Q1係關斷而使得第一開關Q1之輸出端D1電性連接於電源電路110,進而使第二控制訊號Sc2之電壓值上升至高位準。因此,第二開關Q2係根據高位準之第二控制訊號Sc2而關斷,進而使主板連接器100與電源電路110之間開路。When the voltage value of the first control signal Sc1 is low, the first switch Q1 is turned off, so that the output terminal D1 of the first switch Q1 is electrically connected to the power circuit 110, thereby increasing the voltage value of the second control signal Sc2 to a high level. Therefore, the second switch Q2 is turned off according to the high-level second control signal Sc2, thereby opening the circuit between the motherboard connector 100 and the power circuit 110.

在一些實施例中,第一開關Q1為N型金氧半場效電晶體(NMOS),並且第二開關Q2為P型金氧半場效電晶體(PMOS)。其中,第一開關Q1之控制端G1對應於NMOS之閘極(Gate),第一開關Q1之輸出端D1對應於NMOS之汲極(Drain),並且第一開關Q1之接地端S1對應於NMOS之源極(Source)。第二開關Q2之控制端G2對應於PMOS之閘極,第二開關Q2之輸出端S2對應於PMOS之源極,並且第二開關Q2之接地端D2對應於PMOS之汲極。In some embodiments, the first switch Q1 is an N-type metal oxide semiconductor field effect transistor (NMOS), and the second switch Q2 is a P-type metal oxide semiconductor field effect transistor (PMOS). The control terminal G1 of the first switch Q1 corresponds to the gate of the NMOS, the output terminal D1 of the first switch Q1 corresponds to the drain of the NMOS, and the ground terminal S1 of the first switch Q1 corresponds to the source of the NMOS. The control terminal G2 of the second switch Q2 corresponds to the gate of the PMOS, the output terminal S2 of the second switch Q2 corresponds to the source of the PMOS, and the ground terminal D2 of the second switch Q2 corresponds to the drain of the PMOS.

在一些實施例中,伺服器主機板10更包含一電容器C1。其中,電容器C1係用以濾除供應電源VSP中的雜訊。以圖5為例,在本實施例中,電容器C1之一端電性連接於電源電路110及第一開關Q1之輸出端D1,並且電容器C1之另一端接地。又以圖6為例,在本實施例中,電容器C1之一端電性連接於電源電路110及第二開關Q2之輸出端S2,並且電容器C1之另一端接地。In some embodiments, the server motherboard 10 further includes a capacitor C1. The capacitor C1 is used to filter noise in the supply power VSP. Taking FIG. 5 as an example, in this embodiment, one end of the capacitor C1 is electrically connected to the power circuit 110 and the output terminal D1 of the first switch Q1, and the other end of the capacitor C1 is grounded. Taking FIG. 6 as an example, in this embodiment, one end of the capacitor C1 is electrically connected to the power circuit 110 and the output terminal S2 of the second switch Q2, and the other end of the capacitor C1 is grounded.

請參照圖7,圖7是本案之伺服器主機板10之第二實施例的模組方塊圖。在一些實施例中,電源電路110更包含一分壓電路111以及一穩壓器(Voltage regulator)112。其中,分壓電路111電性連接於可編程邏輯電路120,並且穩壓器112電性連接於開關電路130。Please refer to FIG. 7 , which is a module block diagram of the second embodiment of the server motherboard 10 of the present invention. In some embodiments, the power circuit 110 further includes a voltage divider circuit 111 and a voltage regulator 112 . The voltage divider circuit 111 is electrically connected to the programmable logic circuit 120 , and the voltage regulator 112 is electrically connected to the switch circuit 130 .

請參照圖8,圖8是圖7中本案之分壓電路111之一些實施例的電路示意圖。在一些實施例中,分壓電路111包含一第一電阻R1以及一第二電阻R2。其中,第一電阻R1之一端電性連接於電源電路110,第一電阻R1之另一端電性連接於可編程邏輯電路120。第二電阻R2之一端電性連接於可編程邏輯電路120及第一電阻R1之另一端,第二電阻R2之另一端接地。Please refer to FIG. 8, which is a circuit diagram of some embodiments of the voltage divider circuit 111 of the present invention in FIG. 7. In some embodiments, the voltage divider circuit 111 includes a first resistor R1 and a second resistor R2. One end of the first resistor R1 is electrically connected to the power circuit 110, and the other end of the first resistor R1 is electrically connected to the programmable logic circuit 120. One end of the second resistor R2 is electrically connected to the programmable logic circuit 120 and the other end of the first resistor R1, and the other end of the second resistor R2 is grounded.

請參照圖9,圖9是圖7中本案之伺服器主機板經過圖4中步驟S100處理後之一些實施例的運作流程圖。在一些實施例中,於步驟S100之後,分壓電路111係將待機電源VSB分壓為類比偵測電源VAD(步驟S105)。其中,待機電源VSB之電壓值為一高位準,例如但不限於12伏特、24伏特或48伏特等。並且,分壓電路111之第一電阻R1及第二電阻R2係將高位準之待機電源VSB分壓為一中位準(例如為3.3伏特或5伏特)之類比偵測電源VAD。由於可編程邏輯電路120無法負荷高位準之待機電源VSB,因此伺服器主機板10需要先透過分壓電路111將高位準之待機電源VSB分壓為中位準之類比偵測電源VAD,可編程邏輯電路120方能正常運作而不會燒毀。Please refer to FIG. 9, which is an operation flow chart of some embodiments of the server motherboard of the present case in FIG. 7 after being processed in step S100 in FIG. 4. In some embodiments, after step S100, the voltage dividing circuit 111 divides the standby power VSB into the analog detection power VAD (step S105). The voltage value of the standby power VSB is a high level, such as but not limited to 12 volts, 24 volts or 48 volts. In addition, the first resistor R1 and the second resistor R2 of the voltage dividing circuit 111 divide the high-level standby power VSB into a medium-level (such as 3.3 volts or 5 volts) analog detection power VAD. Since the programmable logic circuit 120 cannot load the high-level standby power VSB, the server motherboard 10 needs to first divide the high-level standby power VSB into the middle-level analog detection power VAD through the voltage divider circuit 111, so that the programmable logic circuit 120 can operate normally without burning out.

在一些實施例中,穩壓器112用以將待機電源VSB調節為供應電源VSP。由於電源電路110所直接產生之供應電源VSP可能包含有雜訊,並且此雜訊會導致一些實施例之高精密度的外部裝置20產生問題而損壞。因此,穩壓器112係用以濾除待機電源VSB中的雜訊而產生供應電源VSP,使得電源電路110提供穩定且乾淨的供應電源VSP給外部裝置20。In some embodiments, the voltage regulator 112 is used to adjust the standby power VSB to the supply power VSP. Since the supply power VSP directly generated by the power circuit 110 may contain noise, and this noise may cause problems and damage to the high-precision external device 20 of some embodiments. Therefore, the voltage regulator 112 is used to filter the noise in the standby power VSB to generate the supply power VSP, so that the power circuit 110 provides a stable and clean supply power VSP to the external device 20.

在一些實施例中,可編程邏輯電路120更包含一暫存模組124、一儲存模組125以及一控制模組126,並且伺服器主機板10更包含一基板管理控制器(Baseboard Management Controller,BMC)140。請參照圖1至圖10,圖10是圖1或圖7中伺服器主機板10經過圖4中步驟S150處理後之一些實施例的運作流程圖。其中,基板管理控制器140電性連接於可編程邏輯電路120。接續步驟S150,當開關電路130被關斷時,代表比較訊號Scp之電壓值為低位準,此時可編程邏輯電路120之暫存模組124係儲存對應於低位準之比較訊號Scp的一除錯數值Vdb(步驟S160)。其中,當比較訊號Scp之電壓值為低位準時,除錯數值Vdb為1。In some embodiments, the programmable logic circuit 120 further includes a temporary storage module 124, a storage module 125, and a control module 126, and the server motherboard 10 further includes a baseboard management controller (BMC) 140. Please refer to Figures 1 to 10, Figure 10 is an operation flow chart of some embodiments of the server motherboard 10 in Figure 1 or Figure 7 after the processing of step S150 in Figure 4. Among them, the baseboard management controller 140 is electrically connected to the programmable logic circuit 120. Continuing with step S150, when the switch circuit 130 is turned off, it means that the voltage value of the comparison signal Scp is at a low level, and the buffer module 124 of the programmable logic circuit 120 stores a debug value Vdb corresponding to the low-level comparison signal Scp (step S160). When the voltage value of the comparison signal Scp is at a low level, the debug value Vdb is 1.

接續步驟S160,可編程邏輯電路120之控制模組126係讀取除錯數值Vdb,並將除錯數值Vdb寫入至可編程邏輯電路120之儲存模組125中(步驟S170)。最後,接續步驟S170,伺服器主機板10之基板管理控制器140係讀取並儲存除錯數值Vdb(步驟S180)。Following step S160, the control module 126 of the programmable logic circuit 120 reads the debug value Vdb and writes the debug value Vdb into the storage module 125 of the programmable logic circuit 120 (step S170). Finally, following step S170, the baseboard management controller 140 of the server motherboard 10 reads and stores the debug value Vdb (step S180).

在一些實施例中,當電源電路110停止供應待機電源VSB至可編程邏輯電路120時(例如伺服器主機板10關機或斷電),儲存於暫存模組124中的數據係會消失,而儲存於儲存模組125中的數據並不會消失。因此,控制模組126係將除錯數值Vdb備份至儲存模組125中,以避免除錯數值Vdb消失而無法得知外部裝置20曾以錯誤的插設方向插設於伺服器主機板10上。此外,在一些實施例中,基板管理控制器140係可進一步將除錯數值Vdb儲存為一記錄檔(Log file),以確保此錯誤記錄有被儲存下來,進而提供使用者進行除錯。In some embodiments, when the power circuit 110 stops supplying the standby power VSB to the programmable logic circuit 120 (for example, the server motherboard 10 is shut down or powered off), the data stored in the temporary storage module 124 will disappear, while the data stored in the storage module 125 will not disappear. Therefore, the control module 126 backs up the debug value Vdb to the storage module 125 to avoid the debug value Vdb disappearing and not being able to know that the external device 20 was plugged into the server motherboard 10 with an incorrect plugging direction. In addition, in some embodiments, the baseboard management controller 140 can further store the debug value Vdb as a log file to ensure that the error record is stored, and then provide the user with debugging.

在一些實施例中,伺服器主機板10更包含一發光電路150。其中,發光電路150電性連接於可編程邏輯電路120。發光電路150用以根據第一控制訊號Sc1之電壓值發出相對應之一指示光線。其中,當第一控制訊號Sc1之電壓值為高位準時,代表外部裝置20係以正確的插設方向插設於伺服器主機板10上,此時發光電路150不會發出任何光線。當第一控制訊號Sc1之電壓值為低位準時,代表外部裝置20係以錯誤的插設方向插設於伺服器主機板10上,此時發光電路150會以一固定頻率持續發出光線以指示伺服器主機板10出現錯誤。此時,使用者需要將伺服器主機板10關機或斷電,並以正確的插設方向重新將外部裝置20插設於伺服器主機板10上,方能解除發光電路150之運作。在一些實施例中,發光電路150為具有發光功能之裝置,例如但不限於LED指示燈、螢光燈或白熾燈。In some embodiments, the server motherboard 10 further includes a light-emitting circuit 150. The light-emitting circuit 150 is electrically connected to the programmable logic circuit 120. The light-emitting circuit 150 is used to emit an indication light corresponding to the voltage value of the first control signal Sc1. When the voltage value of the first control signal Sc1 is high, it means that the external device 20 is plugged into the server motherboard 10 in the correct plugging direction, and the light-emitting circuit 150 will not emit any light. When the voltage value of the first control signal Sc1 is low, it means that the external device 20 is plugged into the server motherboard 10 in the wrong plugging direction, and the light-emitting circuit 150 will continue to emit light at a fixed frequency to indicate that an error occurs in the server motherboard 10. At this time, the user needs to shut down or power off the server motherboard 10 and re-insert the external device 20 into the server motherboard 10 in the correct insertion direction to disable the operation of the light-emitting circuit 150. In some embodiments, the light-emitting circuit 150 is a device with a light-emitting function, such as but not limited to an LED indicator light, a fluorescent light, or an incandescent light.

在一些實施例中,可編程邏輯電路120是具有韌體編程功能的裝置,例如但不限於複雜可編程邏輯裝置(Complex Programmable Logic Device,CPLD)或現場可編程邏輯閘陣列(Field Programmable Gate Array,FPGA)。換言之,可編程邏輯電路120中各裝置(包含類比數位轉換模組121、比較模組122、判斷模組123、暫存模組124、儲存模組125及控制模組126)之功能係由燒錄至可編程邏輯電路120中的韌體所實現。In some embodiments, the programmable logic circuit 120 is a device with firmware programming function, such as but not limited to a complex programmable logic device (CPLD) or a field programmable gate array (FPGA). In other words, the functions of each device in the programmable logic circuit 120 (including the analog-to-digital conversion module 121, the comparison module 122, the judgment module 123, the temporary storage module 124, the storage module 125 and the control module 126) are implemented by the firmware burned into the programmable logic circuit 120.

在一些實施例中,由於可編程邏輯電路120中各裝置係由韌體所實現,可編程邏輯電路120之工作週期(例如為1奈秒)係遠小於電源電路110之工作週期(例如為1毫秒)。換言之,可編程邏輯電路120之運作速度係遠快於電源電路110之運作速度。因此,可編程邏輯電路120係可於供應電源VSP完全短路之前將開關電路130關斷,以避免伺服器主機板10燒毀。In some embodiments, since each device in the programmable logic circuit 120 is implemented by firmware, the duty cycle of the programmable logic circuit 120 (e.g., 1 nanosecond) is much smaller than the duty cycle of the power circuit 110 (e.g., 1 millisecond). In other words, the operation speed of the programmable logic circuit 120 is much faster than the operation speed of the power circuit 110. Therefore, the programmable logic circuit 120 can turn off the switch circuit 130 before the supply power VSP is completely short-circuited to prevent the server motherboard 10 from burning out.

綜上所述,依據一些實施例,伺服器主機板係透過可編程邏輯電路偵測類比偵測電源之電壓值的變化,以判斷外部裝置是否以正確的插設方向插設於伺服器主機板之主板連接器上。當外部裝置以錯誤的插設方向插設於伺服器主機板之主板連接器上時,伺服器主機板係立即關斷開關電路以斷開電源電路與主板連接器之間的線路,進而避免電源電路所產生高位準之供應電源完全短路而導致伺服器主機板燒毀。In summary, according to some embodiments, the server motherboard detects the change of the voltage value of the analog detection power supply through a programmable logic circuit to determine whether the external device is plugged into the motherboard connector of the server motherboard in the correct plugging direction. When the external device is plugged into the motherboard connector of the server motherboard in the wrong plugging direction, the server motherboard immediately turns off the switch circuit to disconnect the line between the power circuit and the motherboard connector, thereby preventing the high-level supply power generated by the power circuit from being completely short-circuited and causing the server motherboard to burn out.

雖然本案已以實施例揭露如上,然其並非用以限定本案之創作,任何所屬技術領域中具有通常知識者,在不脫離本揭露內容之精神和範圍內,當可作些許之修改與變化,惟該些許之修改與變化仍然在本案之申請專利範圍內。Although the present invention has been disclosed as above by way of embodiments, it is not intended to limit the invention of the present invention. Anyone with ordinary knowledge in the relevant technical field may make some modifications and changes without departing from the spirit and scope of the present disclosure. However, such modifications and changes are still within the scope of the patent application of the present invention.

10:伺服器主機板 100:主板連接器 101, 102, 10N:引腳 110:電源電路 111:分壓電路 112:穩壓器 120:可編程邏輯電路 121:類比數位轉換模組 122:比較模組 123:判斷模組 124:暫存模組 125:儲存模組 126:控制模組 130:開關電路 140:基板管理控制電路 150:發光電路 20:外部裝置 200:周邊連接器 201, 202, 20(N-1), 20N:引腳 C1:電容器 D1:輸出端 D2:接地端 G1:控制端 G2:控制端 Q1:第一開關 Q2:第二開關 R1:第一電阻 R2:第二電阻 Rp1:下拉電阻 Rp2:上拉電阻 S1:接地端 S2:輸出端 S100~S180, S105:步驟 Sc1:第一控制訊號 Sc2:第二控制訊號 Scp:比較訊號 Vdb:除錯數值 VAD:類比偵測電源 VAN:異態偵測電源 VDC:數位工作電源 VN:常態偵測電源 VSB:待機電源 VSP:供應電源 10: Server motherboard 100: Motherboard connector 101, 102, 10N: Pins 110: Power circuit 111: Voltage divider circuit 112: Voltage regulator 120: Programmable logic circuit 121: Analog-to-digital conversion module 122: Comparison module 123: Judgment module 124: Memory module 125: Storage module 126: Control module 130: Switching circuit 140: Baseboard management control circuit 150: Light-emitting circuit 20: External device 200: Peripheral connector 201, 202, 20(N-1), 20N: Pins C1: Capacitor D1: output terminal D2: ground terminal G1: control terminal G2: control terminal Q1: first switch Q2: second switch R1: first resistor R2: second resistor Rp1: pull-down resistor Rp2: pull-up resistor S1: ground terminal S2: output terminal S100~S180, S105: steps Sc1: first control signal Sc2: second control signal Scp: comparison signal Vdb: debugging value VAD: analog detection power supply VAN: abnormal detection power supply VDC: digital working power supply VN: normal detection power supply VSB: standby power supply VSP: supply power supply

圖1是本案之伺服器主機板之第一實施例的模組方塊圖。 圖2是圖1中本案之伺服器主機板電性連接於外部裝置之第一實施例的示意圖。 圖3A是圖1中本案之伺服器主機板電性連接於外部裝置之第二實施例的示意圖。 圖3B是圖3A中本案之伺服器主機板電性連接於外部裝置之一示範態樣的示意圖。 圖4是圖1中本案之伺服器主機板之一些實施例的運作流程圖。 圖5是圖1中本案之開關電路之第一實施例的電路示意圖。 圖6是圖1中本案之開關電路之第二實施例的電路示意圖。 圖7是本案之伺服器主機板之第二實施例的模組方塊圖。 圖8是圖7中本案之分壓電路之一些實施例的電路示意圖。 圖9是圖7中本案之伺服器主機板經過圖4中步驟S100處理後之一些實施例的運作流程圖。 圖10是圖1或圖7中本案之伺服器主機板經過圖4中步驟S150處理後之一些實施例的運作流程圖。 FIG. 1 is a module block diagram of a first embodiment of a server motherboard of the present invention. FIG. 2 is a schematic diagram of a first embodiment of a server motherboard of the present invention in FIG. 1 being electrically connected to an external device. FIG. 3A is a schematic diagram of a second embodiment of a server motherboard of the present invention in FIG. 1 being electrically connected to an external device. FIG. 3B is a schematic diagram of a sample state of a server motherboard of the present invention in FIG. 3A being electrically connected to an external device. FIG. 4 is an operation flow chart of some embodiments of the server motherboard of the present invention in FIG. 1. FIG. 5 is a circuit diagram of a first embodiment of a switch circuit of the present invention in FIG. 1. FIG. 6 is a circuit diagram of a second embodiment of a switch circuit of the present invention in FIG. 1. FIG. 7 is a module block diagram of a second embodiment of a server motherboard of the present invention. FIG8 is a circuit diagram of some embodiments of the voltage divider circuit in FIG7. FIG9 is an operation flow chart of some embodiments of the server motherboard in FIG7 after being processed in step S100 in FIG4. FIG10 is an operation flow chart of some embodiments of the server motherboard in FIG1 or FIG7 after being processed in step S150 in FIG4.

10:伺服器主機板 10: Server motherboard

100:主板連接器 100: Motherboard connector

110:電源電路 110: Power circuit

120:可編程邏輯電路 120: Programmable logic circuit

121:類比數位轉換模組 121: Analog-to-digital conversion module

122:比較模組 122: Comparison module

123:判斷模組 123: Judgment module

124:暫存模組 124: Temporary module

125:儲存模組 125: Storage module

126:控制模組 126: Control module

130:開關電路 130: Switching circuit

140:基板管理控制電路 140: Baseboard management control circuit

150:發光電路 150: Luminescent circuit

Sc1:第一控制訊號 Sc1: First control signal

Scp:比較訊號 Scp: Comparison signal

VAD:類比偵測電源 VAD: Analog Detector Power

Vdb:除錯數值 Vdb:debug value

VDC:數位工作電源 VDC: Digital working power supply

VSB:待機電源 VSB: Standby power

VSP:供應電源 VSP: Power supply

Claims (9)

一種伺服器主機板,包含:一主板連接器,用以傳輸一供應電源至一外部裝置;一電源電路,用以產生該供應電源、一待機電源及一類比偵測電源;一可編程邏輯電路,電性連接於該電源電路,包含:一類比數位轉換模組,用以將該類比偵測電源轉換為一數位工作電源;一比較模組,用以比較該數位工作電源之電壓值及一比較閾值而產生一比較訊號;以及一判斷模組,用以根據該比較訊號而產生相對應之一第一控制訊號;以及一開關電路,電性連接於該主板連接器、該電源電路及該可編程邏輯電路,用以根據該第一控制訊號而導通或關斷;其中,當該開關電路導通時,該主板連接器電性連接於該電源電路;當該開關電路關斷時,該主板連接器與該電源電路之間開路;該開關電路包含:一下拉電阻,電性連接於該可編程邏輯電路,用以拉引該第一控制訊號;一上拉電阻,該上拉電阻之一端電性連接於該電源電路,用以拉引該待機電源而產生一第二控制訊號;一第一開關,該第一開關之控制端電性連接於該可編程邏輯電路,該第一開關之輸出端電性連接於該上拉電阻之另一端,該第一開關之 接地端接地,該第一開關用以根據該第一控制訊號而導通或關斷,並於該第一開關之輸出端輸出該第二控制訊號;以及一第二開關,該第二開關之控制端電性連接於該第一開關之輸出端及該上拉電阻之另一端,該第二開關之輸出端電性連接於該電源電路,該第二開關之接地端電性連接於該主板連接器,該第二開關用以根據該第二控制訊號而導通或關斷。 A server motherboard includes: a motherboard connector for transmitting a supply power to an external device; a power circuit for generating the supply power, a standby power and an analog detection power; a programmable logic circuit electrically connected to the power circuit, including: an analog-to-digital conversion module for converting the analog detection power into a digital working power; a comparison module for comparing the voltage value of the digital working power with a comparison threshold to generate a comparison signal; and a judgment module for generating a corresponding first control signal according to the comparison signal; and a switch circuit electrically connected to the motherboard connector, the power circuit and the programmable logic circuit, for turning on or off according to the first control signal; wherein, when the switch circuit is turned on, the motherboard connector is electrically connected to the power circuit; when the switch circuit is turned off, the motherboard connector and the power circuit are open; the switch circuit is electrically connected to the motherboard connector and the power circuit. The switch circuit includes: a pull-down resistor electrically connected to the programmable logic circuit for pulling the first control signal; a pull-up resistor, one end of which is electrically connected to the power circuit for pulling the standby power to generate a second control signal; a first switch, the control end of which is electrically connected to the programmable logic circuit, the output end of which is electrically connected to the other end of the pull-up resistor, and the ground end of which is grounded. The first switch is used to turn on or off according to the first control signal, and outputs the second control signal at the output end of the first switch; and a second switch, the control end of the second switch is electrically connected to the output end of the first switch and the other end of the pull-up resistor, the output end of the second switch is electrically connected to the power circuit, the ground end of the second switch is electrically connected to the motherboard connector, and the second switch is used to turn on or off according to the second control signal. 如請求項1所述之伺服器主機板,其中該電源電路包含:一分壓電路,電性連接於該可編程邏輯電路,用以將該待機電源分壓為該類比偵測電源;以及一穩壓器,電性連接於該開關電路,用以將該待機電源調節為該供應電源。 The server motherboard as described in claim 1, wherein the power circuit comprises: a voltage divider circuit electrically connected to the programmable logic circuit for dividing the standby power into the analog detection power; and a voltage regulator electrically connected to the switch circuit for regulating the standby power into the supply power. 如請求項2所述之伺服器主機板,其中該分壓電路包含:一第一電阻,該第一電阻之一端電性連接於該待機電源,該第一電阻之另一端電性連接於該可編程邏輯電路;以及一第二電阻,該第二電阻之一端電性連接於該電源電路及該第一電阻之另一端,該第二電阻之另一端接地。 The server motherboard as described in claim 2, wherein the voltage divider circuit comprises: a first resistor, one end of which is electrically connected to the standby power supply, and the other end of which is electrically connected to the programmable logic circuit; and a second resistor, one end of which is electrically connected to the power supply circuit and the other end of the first resistor, and the other end of which is grounded. 如請求項1所述之伺服器主機板,其中該開關電路包含:一下拉電阻,該下拉電阻之一端電性連接於該可編程邏輯電路,該下拉電阻之另一端接地,用以拉引該第一控制訊號;以及一第一開關,該第一開關之控制端電性連接於該可編程邏輯電路,該第一開關之輸出端電性連接於該電源電路,該第一開關之接地端電性連接於該主板連接器,該第一開關用以根據該第一控制訊號而導通或關斷。 A server motherboard as described in claim 1, wherein the switch circuit comprises: a pull-down resistor, one end of which is electrically connected to the programmable logic circuit, and the other end of which is grounded, for pulling the first control signal; and a first switch, the control end of which is electrically connected to the programmable logic circuit, the output end of which is electrically connected to the power circuit, and the ground end of which is electrically connected to the motherboard connector, and the first switch is used to turn on or off according to the first control signal. 如請求項4所述之伺服器主機板,更包含一電容器,該電容器之一端電性連接於該電源電路及該第一開關之輸出端,該電容器之另一端接地,該電容器用以濾除該供應電源中的雜訊。 The server motherboard as described in claim 4 further includes a capacitor, one end of which is electrically connected to the power circuit and the output end of the first switch, and the other end of which is grounded. The capacitor is used to filter out noise in the power supply. 如請求項1所述之伺服器主機板,更包含一電容器,該電容器之一端電性連接於該電源電路及該第二開關之輸出端,該電容器之另一端接地,該電容器用以濾除該供應電源中的雜訊。 The server motherboard as described in claim 1 further includes a capacitor, one end of which is electrically connected to the power circuit and the output end of the second switch, and the other end of which is grounded. The capacitor is used to filter out noise in the power supply. 如請求項1所述之伺服器主機板,其中該可編程邏輯電路更包含:一暫存模組,用以儲存對應於該第一控制訊號之電壓值的一除錯數值;一儲存模組,用以儲存該除錯數值;以及一控制模組,用以自該暫存模組讀取該除錯數值,以及用以將該除錯數值寫入至該儲存模組中。 The server motherboard as described in claim 1, wherein the programmable logic circuit further comprises: a temporary storage module for storing a debug value corresponding to the voltage value of the first control signal; a storage module for storing the debug value; and a control module for reading the debug value from the temporary storage module and writing the debug value to the storage module. 如請求項7所述之伺服器主機板,更包含一基板管理控制電路,電性連接於該可編程邏輯電路,用以讀取並儲存該除錯數值。 The server motherboard as described in claim 7 further includes a baseboard management control circuit electrically connected to the programmable logic circuit for reading and storing the debug value. 如請求項1所述之伺服器主機板,更包含一發光電路,電性連接於該可編程邏輯電路,用以根據該第一控制訊號之電壓值發出相對應之一指示光線。 The server motherboard as described in claim 1 further includes a light-emitting circuit electrically connected to the programmable logic circuit for emitting a corresponding indicator light according to the voltage value of the first control signal.
TW112119791A 2023-05-26 Server motherboard with power detectiion function TWI839235B (en)

Publications (1)

Publication Number Publication Date
TWI839235B true TWI839235B (en) 2024-04-11

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190179353A1 (en) 2017-12-12 2019-06-13 Boe Technology Group Co., Ltd. Voltage control circuit and method, panel and display apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190179353A1 (en) 2017-12-12 2019-06-13 Boe Technology Group Co., Ltd. Voltage control circuit and method, panel and display apparatus

Similar Documents

Publication Publication Date Title
US7295051B2 (en) System and method for monitoring a power supply level
US7368960B2 (en) Circuit and method for monitoring the integrity of a power supply
US7839026B2 (en) Power discharge control system
US8010724B2 (en) 12C/SMBus ladders and ladder enabled ICs
TWI410793B (en) Computer, and method for error-detecting and booting of bios thereof
JP4988671B2 (en) Serial bus system and hang-up slave reset method
US9946329B2 (en) Electronic apparatus
TW201327123A (en) Circuit for starting up plural electronic devices in an orderly manner
US10332600B2 (en) Chip programming device and protecting method thereof
US7354278B2 (en) Recovery apparatus for BIOS chip in a computer system
TWI839235B (en) Server motherboard with power detectiion function
TWI451235B (en) Connecting module for coupling output ends of a host device to an external storage device and coupling method thereof
US7216241B2 (en) Self-testing power supply which indicates when an output voltage is within tolerance while not coupled to an external load
TWI410787B (en) Power control unit
CN115391260A (en) PCIe bandwidth configuration device, method, server and readable storage medium
TWI798721B (en) Boot control circuit of computer system
TW202338380A (en) Board card detection and controlling circuit, method and server system
US8713392B2 (en) Circuitry testing module and circuitry testing device
TWI401854B (en) A protection circuit
TWI583979B (en) Detection device, detection method and electronic apparatus
TWI530801B (en) Electronic device
TWI844847B (en) Power protection circuit
TWI789265B (en) Over-voltage protection device, memory storage device and over-voltage protection method
CN111142916B (en) Configuration device and method of flash memory
TW202422356A (en) Electronic device with m.2 connector compatible with two communication modules and compatible method and computer-implemented method thereof