L DESIGN FEATURES Compact Solution for Hot Swap and Supply Monitoring in CompactPCI and PCI Express Systems by Pinkesh Sachdev Introduction Servers that operate in critical industrial applications, such as communications and data-storage, must do so with near-zero down-time. Such high availability systems cannot be shut down to replace or upgrade circuit boards, so Hot Swap capabilities are paramount. Once a board is in the system, it is also important to continually monitor its power consumption to anticipate board failure. The LTC4245 makes it easy to satisfy both the Hot Swap and monitoring needs of high availability systems. It incorporates a quad-supply Hot Swap controller and an 8-bit ADC for board supply voltage and current monitoring. Access to supply monitoring data is via an I2C-compatible interface. The LTC4245 is designed to be used in a CompactPCI (CPCI) Hot Swap board, where the four supplies are 12V, 5V, 3.3V, with an optional –12V. The LTC4245 can also work with one 12V and two 3.3V supplies as in a PCI Express system. Other features of the device include: ❑External N-channel MOSFET switches on all four supplies allow flexible power distribution among the supplies. ❑dI/dt limited inrush current control prevents supply glitches on backplane due to L • dI/dt drops. ❑Each supply has a circuit breaker with a 20µs filter and a fast current limit at 3× the circuit breaker threshold, thus preventing minor load current surges from causing spurious resets. ❑The four board supplies can be turned on together, in a built-in sequence or in any other sequence through the I2C interface. ❑A power good input with timeout allows external supply monitors to turn off the board supplies in case of downstream faults. ❑Integrated CPCI bus precharge voltage output and PCI reset signal logic saves board space in CPCI designs. All of the above is available in a 36pin SSOP package and a space-saving 5mm × 7mm 38-pin QFN package. The QFN package includes two GPIO pins in addition to the one on the SSOP package. Measure Board Power Consumption with Integrated ADC As soon as the 12V supply is available to the LTC4245, the onboard ADC starts measuring its thirteen input channels one after another. Twelve of these are the input voltage, current sense voltage, and output voltage of The LTC4245 makes it easy to satisfy both the Hot Swap and monitoring needs of high availability systems. It incorporates a quadsupply Hot Swap controller and an 8-bit ADC for board supply voltage and current monitoring. Access to supply monitoring data is via an I2C-compatible interface. This all comes in a 36-pin SSOP package or a spacesaving 5mm × 7mm 38-pin QFN package. each supply. The thirteenth channel can be multiplexed to any of the three GPIO pins. Each channel’s conversion result is written to a separate 8-bit register. The I2C interface is used to access the registers. The voltage and current data, when collected over a period of time, can provide insight into the health of a board. It also facilitates real-time power budgeting and management of the entire system. The ADC can be halted by writing to a register bit. This can be used to convert only one channel repeatedly instead of allowing the ADC to cycle through all its inputs. It even allows reading and writing to the ADC data registers for software testing purposes. Typical CompactPCI Hot Swap Application In a CPCI application the LTC4245 resides on the plug-in board side of the connector, as shown in Figure 1. The four N-channel pass transistors, Q1–Q4, isolate the backend supplies from the inputs. Supply current sensing is provided by the voltage drop across resistors R1–R4. Resistors R5– R8 prevent high-frequency oscillations in Q1–Q4 respectively. C8 compensates the 12V current limit loop, while the other supply loops are compensated by their respective MOSFET gate capacitances and require no additional compensation components. The CPCI male connector on the backplane has staggered pin lengths to ensure that all power supplies are physically connected before backend power is allowed to ramp. The following is a typical hot-plug sequence: 1.ESD clips make contact. 2.Long power (5V, 3.3V, V(I/O)) and ground pins make contact and the 1V PRECHARGE voltage becomes valid. Power is applied to the pull-up resistors connected to the HEALTHY# and BD_SEL# signals. LOCAL_PCI_RST# is held in reset. All power switches are held off. 3.Medium length pins make contact. The internal low voltage Linear Technology Magazine • September 2006 Linear Technology Magazine • September 2006 BACKPLANE CONNECTOR (MALE) I/O PIN 1 •• • I/O PIN 128 –12V MEDIUM 3.3V LONG 3.3V GROUND PCI_RST# GA[3] GA[2] GA[1] GA[0] ALERT# SCL SDA HEALTHY# BD_SEL# LONG V(I/0) LONG 5V MEDIUM 5V 12V R19 1.74Ω 10nF C7 PER PIN R12 10k BOARD CONNECTOR (FEMALE) R13 10k Z3 R14 10k R11 1Ω C3 10nF R15 10k R17 1.2k Z1 , Z4: DIODES INC. SMAJ12A Z2 , Z3: DIODES INC. SMAJ5.0A I/O DATA LINE 128 I/O DATA LINE 1 C6 3VIN R16 10k 10nF C5 PER PIN C9 10nF C4 R18, 2.74Ω Z4 9 25 32 31 30 29 14 13 12 1 10 5VIN 36 GND R21 10Ω R20 10Ω PCI_RST# ADR3 ADR2 ADR1 ADR0 ALERT# SCL SDA HEALTHY# 35 R6 10Ω 34 Q2, Si788ODP 33 21 3VSENSE R3 2.5mΩ 22 3VIN 5 R7 10Ω LTC4245G 19 3VOUT 6 7 R5 10Ω Q1, IRF7413 8 ON CFG SS TIMER GPIO1 PRECHARGE LOCAL_PCI_RST# PGI INTVCC 12VOUT C8 2.2nF • • • 15 Q4, Si4872 R8 10Ω 17 18 VEESENSE VEEGATE VEEOUT R4 100mΩ 16 VEEIN 12VSENSE 12VGATE R1 50mΩ 12VIN Z1 Q3, Si7880DP 20 3VGATE 5VSENSE 5VGATE 5VOUT R2, 3.5mΩ BD_SEL# Z2 R10 1Ω C1 0.1 µF CSS 220nF CT 2.2 µF ADC INPUT CL(12VOUT) 100 µF 23 R9 18Ω R23 10k R22 10k 26 TO RESET OF SUPPLY MONITOR 24 28 3 11 4 2 27 + RESET PCI BRIDGE CHIP + R24 10k 3.3V 7A 5V 5A 12V 600mA CL(VEEOUT) 100 µF –12V 300mA CL (3VOUT) 2200 µF CL(5VOUT) 2200 µF 3VOUT + + C2 10nF DESIGN FEATURES L Figure 1. CompactPCI Hot Swap board application using the LTC4245 to control and monitor power on ±12V, 5V and 3.3V supplies. The bus I/O lines are precharged to 1V during insertion and extraction. The CPCI geographical slot address is used to set the I2C slave address of the part. L DESIGN FEATURES BD_SEL# 5V/DIV 3.3V SUPPLY CURRENT 1A/DIV TIMER 2.5V/DIV SS 2.5V/DIV 12VOUT, 5VOUT 3VOUT, VEEOUT, 10V/DIV 3VGATE 2V/DIV HEALTHY# 5V/DIV 3VOUT 2V/DIV LOCAL_PCI_RST# 5V/DIV TIME 1ms/DIV TIME 50ms/DIV Figure 2. Typical power-up sequence activated 100ms after BD_SEL# goes low. supply (INTVCC) powers up from the 12V supply. Other connector pins that mate are HEALTHY#, PCI_RST# and the bus I/O pins (which are precharged to 1V). 4.Short pin BD_SEL# makes contact. If it remains low for 100ms, the plug-in board power-up cycle may begin immediately. If the ON pin is tied high, turn-on is automatic, otherwise the LTC4245 waits for a serial bus turn-on command. Power-Up Sequence Figure 2 shows the backend supplies powering up after BD_SEL# goes low. Internal current sources charge up the gates to turn on the external switches. The TIMER pin is pulled up to 2.56V with 100µA and is then reset to ground by an internal switch. Current limit faults are ignored until TIMER falls to 0.23V. HEALTHY# pulls low at the end of this start-up timing cycle if all supply outputs are above their power bad thresholds. LOCAL_PCI_RST#, which was low, now follows PCI_RST#. A 10µA current pulls up on TIMER to start the power good input timeout cycle. The PGI pin must remain high at the end of the cycle, or all the switches are turned off. dI/dt Controlled Soft Start The LTC4245 uses the capacitor at the SS pin to set the ramp rate of the inrush current (dI/dt) for each supply. Initially SS is at ground. At start-up it is pulled up with a 20µA internal current source. Each supply has a current limit amplifier that servos the gate of its external MOSFET so that 10 the inrush current never exceeds an internal current limit set by the SS pin voltage. The voltage ramp on the SS pin sets the rate of rise of this internal limit. When the gate voltage reaches the MOSFET threshold voltage, the switch begins to turn on. The amplifier modulates the gate pull-up current so that the sense resistor voltage drop follows the internally set current limit. Figure 3 shows this for the 3.3V supply. Isolating Faults Prevents System Resets Figure 3. dI/dt controlled soft-start on 3.3V supply during sequenced turn-on. Inrush current rise rate of 750mA/ms is set by the SS pin capacitor. 12V SUPPLY CURRENT 2A/DIV 12VGATE 5V/DIV 12VOUT 5V/DIV TIME 5µs/DIV The other job of a Hot Swap controller, apart from controlling inrush current, is to prevent faults on the output from propagating to the input and affecting other boards in the system. The LTC4245 features an electronic circuit breaker with a 20µs filter and a fast current limit at 3× the circuit breaker threshold for each supply. In the event of a short circuit at the output, the fast current limit pulls the gate of the MOSFET to the source in less than 1µs. Figure 4 illustrates this for the 12V supply. This limits the Figure 4. Fast current limit responds to a short-circuit on 12V output in less than 1µs, by pulling down 12VGATE to 12VOUT. 20µs later, the internal circuit breaker timer expires and all switches are turned off. fault current and prevents damage to board traces and connector pins. The 20µs filter prevents temporary load current surges from activating the gate pull-down, eliminating unnecessary board resets. During start-up, if any of the supply outputs has a short to ground, the ramping internal current limit is folded back to a lower value to mini- BD_SEL# 5V/DIV TIMER 2.5V/DIV SS 2.5V/DIV 12VOUT, 5VOUT 3VOUT, VEEOUT, 10V/DIV HEALTHY# 5V/DIV LOCAL_PCI_RST# 5V/DIV TIME 50ms/DIV Figure 5. By setting the Sequencing Enable bit in the CONTROL register before taking BD_SEL# low, the supplies turn on in a 12V, 5V, 3.3V, –12V sequence. Compare this to Figure 2. Linear Technology Magazine • September 2006 DESIGN FEATURES L R7 R1 8mΩ VIN 12V PRST#2 Q1 Si7880DP VOUT 12V 5.5A R2 7mΩ R4 10Ω VIN 3.3V Q2 Si7880DP VOUT 3.3V 3A R5 10Ω VAUX 3.3V R3 60mΩ Q3 IRF7413 AUX OUTPUT 3.3V 375mA R6 10Ω 12VIN 12VSENSE 12VGATE 12VOUT 3VIN 3VSENSE 3VGATE 3VOUT 5VIN 5VSENSE 5VGATE PWREN BD_SEL# 5VOUT PWREN ON GPI01 PWRGD PCI EXPRESS HOT-PLUG CONTROLLER PWRGD GPI02 R8 10k GPI03 HEALTHY# VEEIN LTC4245 R9 10k VEESENSE LOCAL_PCI_RST# PWRFLT VEEGATE ALERT# VEEOUT SDA SYSTEM MANAGEMENT BUS CONTROLLER A/D INPUT SCL SS TIMER ADR0 ADR1 ADR2 ADR3 PGI PCI_RST# INTVCC CFG GND PRECHARGE PRST#1 N/C CSS 10nF N/C CT 2.2µF C1 0.1µF BACKPLANE CONNECTOR CARD CONNECTOR Figure 6. PCI Express backplane application to hot-plug and monitor 12V, 3.3V main and 3.3V auxiliary power. Tying the CFG pin to INTVCC lowers the 5V undervoltage and power bad thresholds to 3.3V levels, while also disabling those functions on the VEE pins. mize MOSFET power dissipation. If a supply is still in current limit at the end of the start-up timing cycle, all R1 8mΩ VIN 12V switches are turned off and the TIMER pin goes through a cool-down timing cycle using a 2µA pull-up current. If Q1 Si7880DP VOUT 12V 5.5A R3 10Ω R5 27k 12VIN 12VSENSE 12VGATE 12VOUT VEEIN 5VOUT VEESENSE INTVCC C1 0.1µF CFG N/C LTC4245 VEEGATE VEEOUT 5VGATE GND 5VSENSE 5VIN 3VIN 3VSENSE 3VGATE 3VOUT R4 10Ω VIN 3.3V GND R2 2.5mΩ Q2 Si7880DP VOUT 3.3V 9A Figure 7. A 12V and 3.3V application, similar to Figure 6, but one less 3.3V supply. Linear Technology Magazine • September 2006 overcurrent auto-retry is enabled, the 2% duty-cycle protects the MOSFET from excessive heating. Switch On Supplies in Any Order The ON and BD_SEL# pins can be used to turn the external MOSFET switches on or off. The BD_SEL# pin must be low for 100ms and ON pin set high to turn all switches on. The 100ms delay takes care of pin debounce when the BD_SEL# signal goes across a connector to implement detection of card insertion and extraction. The default LTC4245 behavior is to turn-on all switches together under the control of a single TIMER and SS cycle, as shown in Figure 2. The turn-on behavior can be modified by writing to the ON and CONTROL registers through the I2C interface. Setting the sequence bit in the CONTROL register before taking BD_SEL# low turns the switches on in a 12V, 5V, 3.3V, –12V sequence. This 11 L DESIGN FEATURES is shown in Figure 5. The most flexible turn-on behavior is afforded by the ON register. For this the ON pin should be set low. Now when BD_SEL# goes low the switches remain off. The ON register has four bits to control the state of each supply switch. Writing a one to any of these bits turns on that particular switch. In this way a host controller can turn on the supplies in any desired sequence or combination. GND LTC2928, continued from page unintended sequencing in the event that the ON pin is not in the correct state at power-up since the RT pins would be near ground (all sequencing channels disabled). 12 Q1 Si7880DP VOUT 12V 5.5A R3 10Ω 12VIN 12VSENSE 12VGATE 12VOUT VEEIN N/C CFG N/C 3VGATE VEESENSE 3VOUT VEEGATE LTC4245 R5 10k VEEOUT 3VSENSE Extensive Fault Information Aids Diagnosis If a board fault occurs, diagnosing the problem is simplified by checking the LTC4245’s onboard fault information. One status and two fault registers contain a record of faults that are present or have occurred. The STATUS register reports if any supply is in an undervoltage or power bad state and if any switch is potentially shorted. It also indicates the state of the SS, PCI_RST#, LOCAL_PCI_RST#, BD_SEL# pins and the ADC. The fault registers log any faults that have occurred but may no longer be present. Individual bits record input undervoltage, output power bad and overcurrent faults on each supply. Each of these faults has an auto-retry bit in the CONTROL register. If a fault occurs and its auto-retry bit is set, then once the fault is removed the LTC4245 turns on the external switches automatically. Otherwise the switches are latched off until the fault bit is cleared. Another 8-bit register called the ALERT register controls whether the occurrence of a particular kind of fault triggers the LTC4245 to pull the ALERT# pin low. This can be used to interrupt a host controller in real-time so it can query the LTC4245 register information and take appro- R1 8mΩ VIN 12V GND 3VIN 5VIN 5VSENSE 5VGATE 5VOUT R4 10Ω VIN 5V R2 3.5mΩ Q2 Si7880DP VOUT 5V 6A Figure 8. A 12V and 5V application. Floating the CFG pin disables the VEE undervoltage and power bad functions, allowing those pins to be tied to GND. priate remedial action. When multiple LTC4245s are present in a system, the SMBus Alert Response Protocol can be used to find the faulting LTC4245. The default behavior is to not pull ALERT# low for any fault. Flexible Supply Configuration The CFG pin on the LTC4245 can be used to deal with applications that do not utilize a –12V supply, or use another 3.3V supply instead of 5V. In a normal CPCI application the CFG pin is tied low. When the –12V supply is absent, the CFG pin is left unconnected. In this case, the LTC4245 disables the undervoltage lockout and power bad comparators on –12V, thus allowing 12V, 5V and 3.3V to powerup. By tying the CFG pin to INTVCC, not only is the –12V undervoltage and power bad ignored but 5V thresholds change to 3.3V levels. Figure 6 shows the LTC4245 on a PCI Express backplane controlling one 12V and two 3.3V supplies. The VEE pins are all tied to ground. PRST#1 and PRST#2 signals sense when the plug-in card is seated. These signals are used by the PCI Express Hot-Plug Controller to command the LTC4245 to turn the switches on and off. Figures 7 and 8 show the LTC4245 controlling just two supplies, one of them 12V, the other being either 3.3V or 5V. Conclusion The LTC4245 packs a 4-supply Hot Swap controller, ADC, I2C interface and numerous other features into a 5mm × 7mm QFN package, simplifying the task of inrush control, fault isolation and power monitoring on a plug-in board. The simple default behavior can be customized through onboard registers. It provides a space-saving Hot Swap solution for any high-availability system utilizing multiple supplies such as CompactPCI or PCI Express. L Conclusion The LTC2928 greatly reduces the time and cost of power management design by eliminating the need to develop, verify and load firmware at back end test. System control issues such as sequence order, timing, reset generation, supply monitoring and fault management are all handled with the LTC2928. L Linear Technology Magazine • September 2006