Embedded Systems and Power Electronics

Total Pageviews

About Me

My photo
I am currently a PhD student at UC Berkeley, following a 6-year journey working at Apple after my undergrad years at Cornell University. I grew up in Dhaka, Bangladesh where my interest in electronics was cultivated, resulting in the creation of this blog.

BTemplates.com

Powered by Blogger.

Jan 20, 2013

Using the high-low side driver IR2110 - explanation and plenty of example circuits



Update: Please refer to this updated post for bootstrap cap sizing: https://tahmidmc.blogspot.com/2023/12/sizing-ir2110-high-side-bootstrap.html
=================================================================
In many situations, we need to use MOSFETs configured as high-side switches. Many a times we need to use MOSFETs configured as high-side and low-side switches. Such as in bridge circuits. In half-bridge circuits, we have 1 high-side MOSFET and 1 low-side MOSFET. In full-bridge circuits we have 2 high-side MOSFETs and 2 low-side MOSFETs. In such situations, there is a need to use high-side drive circuitry alongside low-side drive circuitry. The most common way of driving MOSFETs in such cases is to use high-low side MOSFET drivers. Undoubtedly, the most popular such driver chip is the IR2110. And in this article/tutorial, I will talk about the IR2110.

You can download the IR2110 datasheet from the IR website. Here's the download link:

First let’s take a look at the block diagram and the pin assignments and pin definitions (also called lead assignments and lead definitions):


Fig. 1 - IR2110 block diagram (click on image to enlarge)




 Fig. 2 - IR2110 Pin/Lead Assignments (click on image to enlarge)


Fig. 3 - IR2110 Pin/Lead Definitions (click on image to enlarge)



Notice that the IR2110 comes in two packages – 14 pin through-hole PDIP package and the 16-pin surface mount SOIC package.

Now let's talk about the different pins.

VCC is the low-side supply and should be between 10V and 20V. VDD is the logic supply to the IR2110. It can be between +3V to +20V (with reference to VSS). The actual voltage you choose to use depends on the voltage level of your input signals. Here’s the chart:


Fig. 4 - IR2110 Logic "1" Input Threshold vs VDD (click on image to enlarge)


It is common practice to use VDD = +5V. When VDD = +5V, the logic 1 input threshold is slightly higher than 3V. Thus when VDD = +5V, the IR2110 can be used to drive loads when input “1” is higher than 3 point something volts. This means that it can be used for almost all circuits, since most circuits tend to have around 5V outputs. When you’re using microcontrollers the output voltage will be higher than 4V (when the microcontroller has VDD = +5V, which is quite common). When you’re using SG3525 or TL494 or other PWM controller, you are probably going to have them powered off greater than 10V, meaning the outputs will be higher than 8V when high. So, the IR2110 can be easily used.

You may lower the VDD down to about 4V if you’re using a microcontroller or any chip that gives output of 3.3V (eg dsPIC33). While designing circuits with the IR2110, I had noticed that sometimes the circuit didn’t work properly when IR2110 VDD was selected as less than +4V. So, I do not recommend using VDD less than +4V.

In most of my circuits, I do not have signal levels which have voltages less than 4V as high and so I use VDD = +5V.

If for some reason, you have signals levels with logic “1” having lower than 3V, you will need a level converter / translator that will boost the voltage to acceptable limits. In such situations, I recommend boosting up to 4V or 5V and using IR2110 VDD = +5V.

Now let’s talk about VSS and COM. VSS is the logic supply ground. COM is “low side return” – basically, low side drive ground connection. It seems that they are independent and you might think you could perhaps isolate the drive outputs and drive signals. However, you’d be wrong. While they are not internally connected, IR2110 is a non-isolated driver, meaning that VSS and COM should both be connected to ground.

HIN and LIN are the logic inputs. A high signal to HIN means that you want to drive the high-side MOSFET, meaning a high output is provided on HO. A low signal to HIN means that you want to turn off the high-side MOSFET, meaning a low output is provided on HO. The output to HO – high or low – is not with respect to ground, but with respect to VS. We will soon see how a bootstrap circuitry (diode + capacitor) – utilizing VCC, VB and VS – is used to provide the floating supply to drive the MOSFET. VS is the high side floating supply return. When high, the level on HO is equal to the level on VB, with respect to VS. When low, the level on HO is equal to VS, with respect to VS, effectively zero.

A high signal to LIN means that you want to drive the low-side MOSFET, meaning a high output is provided on LO. A low signal to LIN means that you want to turn off the low-side MOSFET, meaning a low output is provided on LO. The output on LO is with respect to ground. When high, the level on LO is equal to the level of VCC, with respect to VSS, effectively ground. When low, the level on LO is equal to the level on VSS, with respect to VSS, effectively zero.

SD is used as shutdown control. When this pin is low, IR2110 is enabled – shutdown function is disabled. When this pin is high, the outputs are turned off, disabling the IR2110 drive.
Now let’s take a look at the common IR2110 configuration for driving MOSFETs in both high and low side configurations – a half bridge stage.

 Fig. 5 - Basic IR2110 circuit for driving half-bridge (click on image to enlarge)


D1, C1 and C2 along with the IR2110 form the bootstrap circuitry. When LIN = 1 and Q2 is on, C1 and C2 get charged to the level on VB, which is one diode drop below +VCC. When LIN = 0 and HIN = 1, this charge on the C1 and C2 is used to add the extra voltage – VB in this case – above the source level of Q1 to drive the Q1 in high-side configuration. A large enough capacitance must be chosen for C1 so that it can supply the charge required to keep Q1 on for all the time. C1 must also not be too large that charging is too slow and the voltage level does not rise sufficiently to keep the MOSFET on. The higher the on time, the higher the required capacitance. Thus, the lower the frequency, the higher the required capacitance for C1. The higher the duty cycle, the higher the required capacitance for C1. Yes, there are formulae available for calculating the capacitance. However, there are many parameters involved, some of which we may not know – for example, the capacitor leakage current. So, I just estimate the required capacitance. For low frequencies such as 50Hz, I use between 47µF and 68µF capacitance. For high frequencies like 30kHz to 50kHz, I use between 4.7µF and 22µF. Since we’re using an electrolytic capacitor, a ceramic capacitor should be used in parallel with this capacitor. The ceramic capacitor is not required if the bootstrap capacitor is tantalum. Update: Please refer to this updated post for bootstrap cap sizing: https://tahmidmc.blogspot.com/2023/12/sizing-ir2110-high-side-bootstrap.html

D2 and D3 discharge the gate capacitances of the MOSFET quickly, bypassing the gate resistors, reducing the turn off time. R1 and R2 are the gate current-limiting resistors.

+MOSV can be up to a maximum of 500V.

+VCC should be from a clean supply. You should use filter capacitors and decoupling capacitors from +VCC to ground for filtering.

Now let’s look at a few example application circuits of the IR2110.

 Fig. 6 - IR2110 circuit for high-voltage half-bridge drive (click on image to enlarge)


 Fig. 7 - IR2110 circuit for high-voltage full-bridge drive with independent switch control (click on image to enlarge)



In Fig. 7 we see the IR2110 being used to drive a full bridge. The functionality is simple and you should understand it by now. A common thing that is often done is that, HIN1 is tied/shorted to LIN2 and HIN2 is tied/shorted to LIN1, enabling the control of all 4 MOSFETs from 2 signal inputs, instead of 4 as shown below in Fig. 8.


 Fig. 8 - IR2110 circuit for high-voltage full-bridge drive with tied switch control - control with 2 input signals (click on image to enlarge)



 Fig. 9 - Using the IR2110 as a single high-voltage high-side driver (click on image to enlarge)



In Fig. 9 we see the IR2110 being used as a single high-side driver. The circuit is simple enough and follows the same functionality described above. One thing to remember is that, since there is no low-side switch, there must a load connected from OUT to ground. Otherwise the bootstrap capacitors can not charge.


 Fig. 10 - Using the IR2110 as a single low-side driver (click on image to enlarge)



 Fig. 11 - Using the IR2110 as a dual low-side driver (click on image to enlarge)


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

If you've had failures with IR2110 and had driver after driver, MOSFET after MOSFET get damaged, burn and fail, I'm pretty sure that it's due to you not using gate-to-source resistors, assuming of course that you designed the IR2110 driver stage properly. NEVER OMIT THE GATE-TO-SOURCE RESISTORS. If you're curious, you can read about my experience with them here (I have also explained the reason that the resistors prevent damage):


For further reading, you should go through this:

I have seen in many forums that people struggle with designing circuits with IR2110. I too had a lot of difficulty before I could confidently and consistently build successful driver circuits with IR2110. I have tried to explain the application and use of IR2110 thoroughly through explanation and plenty of examples and hope that it helps you in your endeavors with IR2110.

Jan 7, 2013

Using the SG3525 PWM Controller - Explanation and Example: Circuit Diagram / Schematic of Push-Pull Converter



PWM is used in all sorts of power control and converter circuits. Some common examples include motor control, DC-DC converters, DC-AC inverters and lamp dimmers. There are numerous PWM controllers available that make the use and application of PWM quite easy. One of the most popular of such controllers is the versatile and ubiquitous SG3525 produced by multiple manufacturers – ST Microelectronics, Fairchild Semiconductors, On Semiconductors, to name a few.

SG3525 is used extensively in DC-DC converters, DC-AC inverters, home UPS systems, solar inverters, power supplies, battery chargers and numerous other applications. With proper understanding, you can soon start using SG3525 yourself in such applications or any other application really that demands PWM control.

Before going on to the description and application, let’s first take a look at the block diagram and the pin layout.







Pins 1 (Inverting Input) and 2 (Non Inverting Input) are the inputs to the on-board error amplifier. If you are wondering what that is, you can think of it as a comparator that controls the increase or decrease of the duty cycle for the “feedback” that you associate with Pulse Width Modulation (PWM).

This functions either to increase or decrease the duty cycle depending on the voltage levels on the Inverting and Non-Inverting Inputs – pins 1 and 2 respectively.

  • When voltage on the Inverting Input (pin 1) is greater than voltage on the Non-Inverting Input (pin 2), duty cycle is decreased.
  • When voltage on the Non-Inverting Input (pin 2) is greater than voltage on the Inverting Input (pin 1), duty cycle is increased.
 
The frequency of PWM is dependent on the timing capacitance and the timing resistance. The timing capacitor (CT) is connected between pin 5 and ground. The timing resistor (RT) is connected between pin 6 and ground. The resistance between pins 5 and 7 (RD) determines the deadtime (and also slightly affects the frequency). 

The frequency is related to RT, CT and RD by the relationship:


With RT and RD in Ω and CT in F, f is in Hz.

Typical values of RD are in the range 10Ω to 47Ω. The range of values usable (as specified by the manufacturers of SG3525) is 0Ω to 500Ω.

RT must be within the range 2kΩ to 150kΩ. CT must be within the range 1nF (code 102) to 0.2µF (code 224). The oscillator frequency must be within the range 100Hz to 400kHz. There is a flip-flop before the driver stage, due to which your output signals will have frequencies half that of the oscillator frequency that is calculated using the above mentioned formula. So, if you are looking to use this for a 50Hz inverter, you require drive signals of 50Hz. So, the oscillator frequency must be 100Hz.

A capacitance connected between pin 8 and ground provides the soft-start functionality. The larger the capacitance, the larger the soft-start time. This means that the time taken to go from 0% duty cycle to the desired duty cycle or maximum duty cycle is larger. So, the duty cycle increases more slowly initially. Keep in mind that this only affects initial rate of increase of duty cycle, ie, the rate of increase of duty cycle after the SG3525 starts up.

Typical values of the soft-start capacitance lie within the range 1µF to 22µF depending on the desired soft-start time.

Pin 16 is the output from the voltage reference section. SG3525 contains an internal voltage reference module rated at +5.1V that is trimmed to provide a ±1% accuracy. This reference is often used to provide a reference voltage to the error amplifier for setting the feedback reference voltage. It can be directly connected to one of the inputs or a voltage divider can be used to further scale down the voltage.

Pin 15 is VCC – the supply voltage to the SG3525 that makes it run. VCC must lie within the range 8V to 35V. SG3525 has an under-voltage lockout circuit that prevents operation when VCC is below 8V, thus preventing erroneous operation or malfunction.

Pin 13 is VC – the supply voltage to the SG3525 driver stage. It is connected to the collectors of the NPN transistors in the output totem-pole stage. Hence the name VC. VC must lie within the range 4.5V to 35V. The output drive voltage will be one transistor voltage drop below VC. So when driving Power MOSFETs, VC should be within the range 9V to 18V (as most Power MOSFETs require minimum 8V to be fully on and have a maximum VGS breakdown voltage of 20V). For driving logic level MOSFETs, lower VC may be used. Care must be taken to ensure that the maximum VGS breakdown voltage of the MOSFET is not crossed. Similarly when the SG3525 outputs are fed to another driver or IGBT, VC must be selected accordingly, keeping in mind the required voltage for the device being fed or driven. It is common practice to tie VC to VCC when VCC is below 20V.

Pin 12 is the Ground connection and should be connected to the circuit ground. It must share a common ground with the device it drives.

Pins 11 and 14 are the outputs from which the drive signals are to be taken. They are the outputs of the SG3525 internal driver stage and can be used to directly drive MOSFETs and IGBTs. They have a continuous current rating of 100mA and a peak rating of 500mA. When greater current or better drive is required, a further driver stage using discrete transistors or a dedicated driver stage should be used. Similarly a driver stage should be used when driving the device causing excessive power dissipation and heating of SG3525. When driving MOSFETs in a bridge configuration, high-low side drivers or gate-drive transformers must be used as the SG3525 is designed only for low-side drive.

Pin 10 is shutdown. When this pin is low, PWM is enabled. When this pin is high, the PWM latch is immediately set. This provides the fastest turn-off signal to the outputs. At the same time the soft-start capacitor is discharged with a 150µA current source. An alternative method of shutting down the SG3525 is to pull either pin 8 or pin 9 low. However, this is not as quick as using the shutdown pin. So, when quick shutdown is required, a high signal must be applied to pin 10. This pin should not be left floating as it could pick up noise and cause problems. So, this pin is usually held low with a pull-down resistor.

Pin 9 is compensation. It may be used in conjunction with pin 1 to provide feedback compensation.

Now that we’ve seen the function of each pin, let’s design a circuit with the SG3525 and see how it is put to use practically.

Let’s make a circuit running at 50kHz, driving MOSFETs (in a push-pull configuration) that drive a ferrite core which then steps up the high frequency AC and then is rectified and filtered to give a 290V regulated output DC that can be used to run one or more CFLs.

For the turns calculation, check out my article "Ferrite Transformer Turns Calculation for High-Frequency/SMPS Inverter": http://tahmidmc.blogspot.com/2012/12/ferrite-transformer-turns-calculation.html

So here’s the circuit (click on the circuit to enlarge the image):



Let’s analyze it and see what I’ve done.

You can firstly see that the supply voltage has been provided and ground has been connected. Also notice that VC has been connected to VCC. I’ve added a bulk and a decoupling capacitor across the supply pins. The decoupling capacitor (0.1µF) should be placed as close to the SG3525 as possible. You should always use this in all your designs. Do not omit the bulk capacitor either, although you may use a smaller value.

Let’s see pins 5, 6 and 7. I’ve added a small resistance RD (between pins 5 and 7) that provides a little deadtime. I’ve connected RT between pin 6 and ground and CT between pin 5 and ground. RD = 22, CT = 1nF (Code: 102) and RT = 15k. This gives an oscillator frequency of:


As the oscillator frequency is 94.6kHz, the switching frequency is 0.5 * 94.6kHz = 47.3kHz and this is close enough to our target frequency of 50kHz. Now if you had needed 50kHz accurate, then the best way would have been to use a pot (variable resistor) in series with RT and adjust the pot, or to use a pot (variable resistor) as RT, although I prefer the first as it allows for fine tuning the frequency.

Let’s look at pin 8 now. I’ve connected a 1µF capacitor from pin 8 to ground and this provides a small soft-start. I’ve avoided using too large a soft-start as the slow duty cycle increase (and thus the slow increase in voltage) causes problems when using CFLs at the output.

Let’s look at pin 10 now. Initially it’s pulled up to VREF with a pull-up resistor. So, PWM is disabled and does not run. However, when the switch is on, pin 10 is now at ground and so PWM is enabled. So, we’ve made use of the SG3525 shutdown option (via pin 10). Thus the switch acts like an on/off switch.

Pin 2 is connected to VREF and is thus at a potential of +5.1V (±1%). The output of the converter is connected to pin 1 through a voltage divider with resistances 56kΩ and 1kΩ. Voltage ratio is 57:1. At feedback “equilibrium”, voltage at pin 1 is 5.1V as well as this is the target of the error amplifier – to adjust the duty cycle to adjust the voltage at pin 1 so that it is equal to that of pin 2. So, when voltage at pin 1 is 5.1V, voltage at output is 5.1V * 57 = 290.7V and this is close enough to our 290V target. If greater accuracy is required, one of the resistors can be either replaced with a pot or in series with a pot and the pot adjusted to give required reading.

The parallel combination of the resistor and capacitor between pins 1 and 9 provides feedback compensation. I won’t go into detail into feedback compensation as it is a vast topic on its own.

Pins 11 and 14 drive the MOSFETs. There are resistors in series with the gate to limit gate current. The resistors from gate-to-source ensure that MOSFETs don’t get accidentally turned on.

So that’s about it. You can see that this is quite an easy circuit to design. If you’ve understood all of this, you can now design circuits with SG3525 yourself. Try to make a few, eg for 50Hz output and with isolated feedback. If you can’t don’t worry, I’ll put up another article with a few more circuits using SG3525 so that you become completely clear with it (if you haven’t already).

-----------------------------------------------------------------------------------------------------

Reference documents:

Ferrite Transformer Turns Calculation for High-Frequency/SMPS Inverter: http://tahmidmc.blogspot.com/2012/12/ferrite-transformer-turns-calculation.html