Need Help: Class D Cross Over

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
Hello, I'm building a class D amp that can be used in a car as a school project. So, the input is 12Vdc, output is 20Hz-20kHz, and I'm trying to get as much power coming out of it (hopefully 30W). For amplification, I'm using the H-bridge topology. Right now, I'm getting cross over distortion, and I don't know how to get the MOSFETs to get some dead time, so both MOSFETs will never be on at the same time. Attached is how the H-bridge looks like, any help is appreciated. Thanks.
 

Attachments

  • h-bridge.jpg
    h-bridge.jpg
    84.4 KB · Views: 709
Hi

I don't know how I would do it, but see how I have it done...
4070 is my inverter to get + and - signal for IR. Dead time is made with RCD circuit between 4070 and IR... but in your case I have no idea how to add dead time...it is too early in the morning :cannotbe:
 

Attachments

  • classd.pdf
    97.1 KB · Views: 186
Hi Munky
if you drive direcly the P-mos with the same signal as the N-mos you will always have cross conduction.
The only way to avoid it is to introduce some dead time, ie a small amount of time where neither the P-mos nor the N-mos will conduct.

In an implementation like yours the easiest way is to use two comparator in place of U2E.
The inverting inputs of the two comparators must be set to two slightly different DC levels. The voltage difference between the two levels will set the amount of dead time.

The output of the first comparator will drive Q2 and Q8 (at the same time) the output of the second comparator will drive Q1 and Q7.

What is your PWM frequency? The output filter sounds strange with only 2uH of inductance. To do this filter design a 2nd order low pass filter with a cutoff of around 25-30Khz when loaded with 2ohm (you are running in full bridge so every side of the bridge sees the half of the total load impedance).

If you are doing this project just to learn something about class-D it is ok but I suggest you to use a dedicated mosfet driver IC to simplify the things and make it more reliable.
 
Disabled Account
Joined 2004
Probably not....

Like what others have said the thing you are trying might be done in a better way...

However, having had a look at your circuits and being an old fart it reminded of this one.

http://focus.ti.com/lit/an/slua137/slua137.pdf

Yah yah yah, it is a DC motor controller and therefore plorp but the whizz gives a circuit good to a whole 30KHz that might plug in with what you are trying to do.

DNA
 
Hello, THANKS for all the replies, I've tried to implement the circuit according to what you guys have told me. When I've added the resistors to the emitters of the transistors, the response is not squre anymore, will that cause a big problem? At least it improved the switching. I haven't tried the comparator idea yet, will do that very soon. Also, I made a very stupid mistake, I'm using a 4ohm speaker, so I should of put 8ohm load. Sorry for the confusion. By the way, for the project, I'm only allowed to use discrete components, so that's why I didnt have any high side/ low side driver ICs. Attached is the output with the resistors on the emitters. I will try the other ideas given to me really soon, and will keep you up to date. Thanks for the help, I appreciate it.
 

Attachments

  • hbridge.jpg
    hbridge.jpg
    87.4 KB · Views: 451
mag said:
What is your PWM frequency?

The PWM frequency is 170kHz, so I just rounded it up to 200kHz in the hbridge circuit.

mag said:
use two comparator in place of U2E

I'm not too sure on how to put the comparators, so one is after the inverter, but what is it comparing with? Is the other comparator just right after the first one? Sorry, I'm a little slow on this.
 
Hi Munky,
look at my schematics.
It is just a suggestion, not a real schematics.

I have changed the mosfet gate drivers with push-pull BJT pairs to
have fast turn on and turn off of the mosfets.

If you are using a 4ohm speaker you should put a 4ohm load for simulations.
Every half of the H-bridge will see 2ohm impedance towards GND, so the output filter shall be designed coordingly. In my shematics you will find an output filter with 30khz cutoff when loaded with 2ohm (ie with a 4ohm speaker).

Two comparators are used to drive the two branches of the H-bridge, they receive the same input signal but two different triangle wave ramps. One of the two ramps is shifted trough a constant offset voltage (V_offset) allowing to implement dead-time.

The fact that now the waveform are no more square is probably because you are driving the mosfet gate too slow.
 

Attachments

  • h_bridge.pdf
    34.4 KB · Views: 114
hey munkey

Hey munkey, please look at the following changes. Other members please let me know what you think?? I changed the values of the pull up resistors allowing for faster roll-off and added capacitors to slow down the response of the switching.
 

Attachments

  • hbmosfet.jpg
    hbmosfet.jpg
    85 KB · Views: 400
As mag said, 2 uH is too small!

I don't know why did you change Rl to 8 ohm!

You don't have to slow down switching, it was already too slow!

I also don't know what do you want with these measurements. Where do you suppose to see the existence of dead time? And what do you measure actually? Y Axis is scaled in volts, and it seems to be real, but you have written I2_2 and I1_1 (currents) next to the curves.

Dead time is invisible with these measurements! Dead time means that Q1 have to switch off before Q2 switch on. You have to watch drain voltage of Q1 and gate voltage of Q2, or drain currents! Time relation between A and C is not really important!
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.