Server mainboard with power supply detection function
By introducing programmable logic circuits and switching circuits on the server motherboard, the plug-in direction of the EDSFF device is detected, and the short circuit problem caused by wrong plug-in in the prior art is solved, ensuring the safety and stability of the device.
Patent Information
- Application Number
- CN202310670630.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-07
- Publication Date
- 2024-12-10
AI Technical Summary
The existing EDSFF device connectors lack physical anti-duration mechanism, which may cause the server motherboard components to burn when the wrong direction is inserted.
Design a server motherboard, including programmable logic circuit, analog-to-digital conversion module, comparison module and switching circuit, to detect the analog-to-detection power supply voltage value, determine whether the external device is plugged in correctly, and disconnect the power supply when the error is plugged in. Circuit to avoid short circuits.
It effectively avoids power short circuits due to incorrect plugging, protects the server motherboard from damage, and ensures that the external device is properly plugged in.
Smart Images

Figure CN119105626A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to power detection technology, and in particular to a server mainboard with power detection function. Background Art
[0002] 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 function, support for PCIe Gen 4 protocol and PCIe Gen 5 protocol, etc.).
[0003] However, the connector of the existing EDSFF device (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 of the server system in the wrong insertion direction (for example, rotated 180 degrees), the high-level power pin (for example, 12 volts) of the motherboard will short-circuit with the low-level power pin (for example, ground) of the existing EDSFF device, causing the components (for example, capacitors, chips, etc.) on the motherboard to burn out. Summary of the invention
[0004] In order to solve the above problems, the present invention 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 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 circuit between the motherboard connector and the power circuit is open.
[0005] Particularly, the power circuit includes: a voltage divider circuit electrically connected to the programmable logic circuit for dividing the standby power into analog detection power; and a regulator electrically connected to the switch circuit for regulating the standby power into supply power.
[0006] In particular, 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 supply circuit and the other end of the first resistor, and the other end of the second resistor is grounded.
[0007] In particular, the switch circuit includes: 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 a 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 supply 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.
[0008] Particularly, the server motherboard further comprises 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 the capacitor is grounded. The capacitor is used to filter out noise in the power supply.
[0009] In particular, the switch circuit includes: a pull-down resistor, electrically connected to the programmable logic circuit, for pulling a first control signal; a pull-up resistor, one end of the pull-up resistor 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 the first switch is electrically connected to the programmable logic circuit, the output end of the first switch is electrically connected to the other end of the pull-up resistor, the ground end of the first switch is grounded, the first switch is turned on or off according to the first control signal, and the second control signal is output 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 turned on or off according to the second control signal.
[0010] Particularly, the server motherboard further comprises 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 out noise in the power supply.
[0011] In particular, 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 into the storage module.
[0012] Particularly, the server motherboard further includes a baseboard management control circuit electrically connected to the programmable logic circuit for reading and storing the debugging value.
[0013] Particularly, the server mainboard further comprises a lighting circuit electrically connected to the programmable logic circuit for emitting a corresponding indication light according to the voltage value of the first control signal.
[0014] Compared with the prior art, the server motherboard of the present invention detects the change of the voltage value of the analog detection power supply through the 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Other features and effects of the present invention will be clearly presented in the embodiments with reference to the accompanying drawings, in which: Figure 1 is a module block diagram of a first embodiment of a server motherboard of the present invention; Figure 2 yes Figure 1 A schematic diagram of a first embodiment of the server motherboard of the present invention being electrically connected to an external device; Figure 3 yes Figure 1 A schematic diagram of a second embodiment of the server motherboard of the present invention being electrically connected to an external device; Figure 4 yes Figure 3 A schematic diagram of an exemplary embodiment of the server motherboard of the present invention being electrically connected to an external device; Figure 5 yes Figure 1 Operation flow chart of some embodiments of the server motherboard of the present invention; Figure 6 yes Figure 1 A circuit diagram of a first embodiment of a switch circuit of the present invention; Figure 7 yes Figure 1 A circuit diagram of a second embodiment of the switch circuit of the present invention; Figure 8 is a module block diagram of a second embodiment of a server motherboard of the present invention; Fig. 9 yes Figure 8 Circuit diagrams of some embodiments of the voltage divider circuit of the present invention; Fig.10 yes Figure 8 The server motherboard of the present invention is Figure 5 Operational flow chart of some embodiments after step S100 is processed; and Fig.11 yes Figure 1 or Figure 8 The server motherboard of the present invention is Figure 5 Operational flow chart of some embodiments after step S150 is processed. DETAILED DESCRIPTION
[0016] Before the present invention is described in detail, it should be noted that similar elements are denoted by the same reference numerals in the following description.
[0017] Please refer to Figure 1 , Figure 1 1 is a module block diagram of a first embodiment of a server motherboard 10 according to the present invention. The server motherboard 10 comprises a motherboard connector 100, a power circuit 110, a programmable logic circuit 120 comprising 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.
[0018] Please refer to Figure 2 and Figure 3 , Figure 2 yes Figure 1 A schematic diagram of a first embodiment of the server motherboard 10 of the present invention being electrically connected to an external device 20, and Figure 3 yes Figure 1 FIG. 1 is a schematic diagram of a second embodiment of a server motherboard 10 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.
[0019] 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 (such as Figure 2 ) and a wrong direction (as shown Figure 3 shown).
[0020] The motherboard connector 100 is used to transmit or 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 functions of each pin on the motherboard connector 100 are 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.
[0021] In some embodiments, the voltage value of the normal detection power source VN is a high level (for example but not limited to 24 volts or 12 volts, 12 volts is used as an example below), and the voltage value of the abnormal state detection power source VAN is a low level (for example but not limited to 0.3 volts, 0.1 volts or 0 volts, etc., ground signals, 0 volts is used as an example below). In other embodiments, the pin 101 of the motherboard connector 100 is used to transmit the abnormal state detection power source VAN, and the pin 10N of the motherboard connector 100 is used to transmit the normal detection power source VN.
[0022] In some embodiments, the pin 201 of the peripheral connector 200 is also a pin for transmitting the normal detection power VN, and the pin 20N of the peripheral connector 200 is also a pin for transmitting the abnormal detection power VAN. In other embodiments, the pin 201 of the peripheral connector 200 is used to transmit the abnormal detection power VAN, and the pin 20N of the peripheral connector 200 is used to transmit the normal detection power VN.
[0023] In some embodiments, when the motherboard connector 100 is inserted in the correct direction, the pin 101 of the motherboard connector 100 corresponds to the pin 201 of the peripheral connector 200 which is also used to transmit the normal detection power VN, the pin 102 of the motherboard connector 100 corresponds to the pin 202 of the peripheral connector 200, ..., and the pin 10N of the motherboard connector 100 corresponds to the 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 (such as Figure 2 As shown in FIG. 1 , 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 the server motherboard 10 and the external device 20 can operate normally.
[0024] On the contrary, when the external device 20 is inserted into the server motherboard 10 in the wrong direction (such as Figure 3As shown in FIG. 1 , 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.
[0025] The following will use an embodiment to illustrate the problem that occurs when the external device 20 is inserted into the server motherboard 10 in the wrong direction. Figure 4 , Figure 4 yes Figure 3 1 is a schematic diagram of an exemplary embodiment of the server motherboard 10 of the present invention being electrically connected to an 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, the pins 101, 102, 105, 201-202, 205 are used to transmit a high-level normal detection power VN, and the pins 103, 104, 106, 203-204, 206 are used to transmit a low-level abnormal detection power VAN.
[0026] when Figure 4 When the external device 20 is inserted into the server motherboard 10 in the wrong direction, the pin 101 is electrically connected to the pin 206, the pin 102 is electrically connected to the pin 205, ..., and the pin 106 is electrically connected to the pin 201. Among them, since the functions of the pins 101 and 206 are different, a short circuit is formed between the pins 101 and 206, which may cause abnormal communication between the server motherboard 10 and the external device 20, and even cause the server motherboard 10 to burn. Similarly, since the functions of the pins 106 and 201 are different, 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, and even cause the server motherboard 10 to burn.
[0027] Please refer to Figures 1 to 5 , Figure 5 yes Figure 110 is a flowchart of some embodiments of the server motherboard 10 of the present invention. Before the implementation of the present embodiment, the external device 20 is first plugged into the server motherboard 10. The operation flow of the server motherboard 10 will be described below by taking the correct direction as the correct plugging direction and the wrong direction as the wrong plugging direction as an example. When a power supply external 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 the operating system (OS) of the server motherboard 10 is started, 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 (such as the normal detection power VN and the abnormal detection power VAN) required by the external device 20, 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, their respective voltage values are related to and affect each other (related discussions will be described later).
[0028] 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.
[0029] In addition, when the power supply externally connected 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 in the on state by default. 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.
[0030] 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 to generate a comparison signal Scp (step S120). The comparison threshold may be a default voltage value or a default voltage range.
[0031] In some embodiments, it is assumed that the comparison threshold is a default voltage value, and the default voltage value is, for example, 3 volts or 12 volts, but is not limited thereto. When the voltage value of the digital working power supply VDC meets the comparison threshold value (for example, when the voltage value of the digital working power supply 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 "compliant" comparison result (for example, a first specific parameter value). On the contrary, when the voltage value of the digital working power supply VDC does not meet the comparison threshold value (for example, when the voltage value of the digital working power supply VDC is lower 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 "non-compliant" comparison result (for example, a second specific parameter value).
[0032] 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 "conformity" and "non-conformity", 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.
[0033] In some embodiments, it is assumed that the comparison threshold is a default voltage range, and the default 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 supply 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 supply 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).
[0034] For the convenience of explanation, a high level will be used to represent the voltage value of the comparison result of "matching", and a low level will be used 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.
[0035] Continuing from step S120, the judgment module 123 of the programmable logic circuit 120 judges whether the voltage value of the comparison signal Scp is a voltage value representing a comparison result of "compliance" (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 "compliance", the judgment module 123 generates the first control signal Sc1 representing "pass" to control the switch circuit 130 to turn on (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 judgment module 123 generates the 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.
[0036] In some embodiments, the voltage value of the first control signal Sc1 representing "pass" is different from the first control signal Sc1 representing "fail". When the voltage value of the first control signal Sc1 representing "pass" is a high level, the voltage value of the first control signal Sc1 representing "fail" is a low level; when the voltage value of the first control signal Sc1 representing "pass" is a low level, the voltage value of the first control signal Sc1 representing "fail" is a high level.
[0037] When the external device 20 is inserted in the correct direction (such as Figure 2 When the server motherboard 10 is inserted into the server motherboard 10, the pin 101 in the motherboard connector 100 of the server motherboard 10 for transmitting the normal detection power VN is electrically connected to the pin 201 in the peripheral connector 200 of the external device 20 for transmitting the normal detection power VN. 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 conductive state (corresponding to step S140), so that the power circuit 110 can provide the supply power VSP to the external device 20.
[0038] When the external device 20 is inserted in the wrong direction (such as Figure 3When the programmable logic circuit 120 (as shown) is inserted into the server motherboard 10, the pin 101 in the motherboard connector 100 of the server motherboard 10 for transmitting the normal detection power VN is electrically connected to the pin 20N in the peripheral connector 200 of the external device 20 for transmitting the abnormal detection power VAN. At this time, the voltage value of the normal detection power VN is affected by the short circuit between the pin 101 and the pin 20N and decreases, thereby causing the voltage value of the analog detection power VAD related to the normal detection power VN to decrease accordingly. 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 "fail" to turn off the switch circuit 130, thereby preventing the voltage value of the supply power VSP from continuing to decrease.
[0039] Please refer to Figure 6 , Figure 6 yes Figure 1 FIG. 1 is a circuit diagram of a first embodiment of a switch circuit 130 of the present invention. 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.
[0040] 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.
[0041] Please refer to Figure 7 , Figure 7 yes Figure 1Schematic diagram of a circuit of a second embodiment of the switch circuit 130 of the present invention. 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. 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 end G2 of the second switch Q2 is electrically connected to the output end D1 of the first switch Q1 and the other end of the pull-up resistor Rp2, the output end S2 of the second switch Q2 is electrically connected to the power circuit 110, and the ground end D2 of the second switch Q2 is electrically connected to the motherboard connector 100.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] In some embodiments, the server motherboard 10 further includes a capacitor C1. The capacitor C1 is used to filter out noise in the power supply VSP. Figure 6 For 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. Figure 7 For example, in this embodiment, one end of the capacitor C1 is electrically connected to the power circuit 110 and the output end S2 of the second switch Q2, and the other end of the capacitor C1 is grounded.
[0046] Please refer to Figure 8 , Figure 8 1 is a block diagram of a 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.
[0047] Please refer to Fig. 9 , Fig. 9 yes Figure 8 Schematic diagram of some embodiments of the voltage divider circuit 111 of the present invention. 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.
[0048] Please refer to Fig.10 , Fig.10 yes Figure 8 The server motherboard of the present invention is Figure 5Operation flow chart of some embodiments after step S100 in the figure. In some embodiments, after step S100, the voltage divider 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 divider 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 medium-level analog detection power VAD through the voltage divider circuit 111, so that the programmable logic circuit 120 can operate normally without burning.
[0049] 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 in some embodiments. Therefore, the voltage regulator 112 is used to filter out the noise in the standby power VSB and generate the supply power VSP, so that the power circuit 110 provides a stable and clean supply power VSP to the external device 20.
[0050] 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. Figures 1 to 11 , Fig.11 yes Figure 1 or Figure 8 Server motherboard 10 Figure 5 150. The baseboard management controller 140 is electrically connected to the programmable logic circuit 120. Following step S150, when the switch circuit 130 is turned off, the voltage value of the comparison signal Scp is low level. At this time, the temporary storage module 124 of the programmable logic circuit 120 stores a debugging value Vdb corresponding to the low level comparison signal Scp (step S160). When the voltage value of the comparison signal Scp is low level, the debugging value Vdb is 1.
[0051] 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).
[0052] 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 in the wrong 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.
[0053] 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 a corresponding indicator light according 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. At this time, 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. At this time, the light emitting circuit 150 will continue to emit light at a fixed frequency to indicate that an error has occurred in the server motherboard 10. At this time, the user needs to shut down or power off the server motherboard 10, and re-plug the external device 20 into the server motherboard 10 in the correct plugging direction to stop 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 lamp, or an incandescent lamp.
[0054] In some embodiments, the programmable logic circuit 120 is a device with a 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.
[0055] 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.
[0056] In summary, according to some embodiments, the server motherboard detects the change in the voltage value of the analog detection power supply through the 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.
[0057] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A server motherboard, characterized in that: Include: 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, comprising: An analog-to-digital conversion module, used for converting the analog detection power into a digital working power; A comparison module, used for comparing the voltage value of the digital working power supply with a comparison threshold value to generate a comparison signal; as well as a determination module, used for generating a corresponding first control signal according to the comparison signal; as well as a switch circuit, electrically connected to the mainboard connector, the power circuit and the programmable logic circuit, for switching on or off according to the first control signal; When the switch circuit is turned on, the mainboard connector is electrically connected to the power circuit; when the switch circuit is turned off, the circuit between the mainboard connector and the power circuit is open.
2. The server motherboard according to claim 1, characterized in that: The power supply circuit includes: a voltage divider circuit, electrically connected to the programmable logic circuit, for dividing the standby power supply into the analog detection power supply; and A voltage regulator is electrically connected to the switch circuit and is used to adjust the standby power supply to the supply power supply.
3. The server motherboard according to claim 2, characterized in that: The voltage divider circuit includes: a first resistor, one end of the first resistor being electrically connected to the standby power supply, and the other end of the first resistor being electrically connected to the programmable logic circuit; and A second resistor, one end of which is electrically connected to the power circuit and the other end of the first resistor, and the other end of which is grounded.
4. The server motherboard according to claim 1, characterized in that: The switching 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, wherein 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, 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.
5. The server motherboard according to claim 4, characterized in that: The device further comprises 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.
6. The server motherboard according to claim 1, characterized in that: The switching circuit comprises: 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, wherein a control terminal of the first switch is electrically connected to the programmable logic circuit, an output terminal of the first switch is electrically connected to the other end of the pull-up resistor, a ground terminal of the first switch is grounded, the first switch is used to be turned on or off according to the first control signal, and output the second control signal at the output terminal of the first switch; as well as A second switch, wherein 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.
7. The server motherboard according to claim 6, characterized in that: The device further comprises 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 for filtering noise in the power supply.
8. The server motherboard according to claim 1, characterized in that: The programmable logic circuit further comprises: A temporary storage module for storing a debugging value corresponding to the voltage value of the first control signal; a storage module for storing the debug value; and A control module is used for reading the debug value from the temporary storage module and for writing the debug value into the storage module.
9. The server motherboard according to claim 8, characterized in that: The device further comprises a baseboard management control circuit electrically connected to the programmable logic circuit for reading and storing the debugging value.
10. The server motherboard according to claim 1, characterized in that: The device further comprises a light emitting circuit electrically connected to the programmable logic circuit for emitting a corresponding indicating light according to the voltage value of the first control signal.
