level shifter: 12 to 5 volts-PWM

Thread Starter

lmartinez

Joined Mar 8, 2009
224
:p

I have two 100K Hz square waves which are being produced by a TL598 chip set up for a push pull configuration. The magnitude of the square waves are 12 volts peak to peak since the voltage source for the TL598 has to be 12 volts DC. However, I need to convert those square waves' magnitude to 5 volts peak to peak in order to feed them to a high voltage, high speed power mosfet driver (IR2181). Do any of you guys might have an idea of a level shifter that can convert a 12 to 5 volt peak to peak square wave. Please advise if any of you can help me. Thank you in advance
 

Thread Starter

lmartinez

Joined Mar 8, 2009
224
Thank you for your prompt reply. However, a simple voltage divider by using two resistors did not worked as expected. As I understand, at higher frequencies the parasitic capacitance of the resistors is playing a big factor which affected the shape of the square wave symmetry (not a square wave any more). I am still searching for a remedy by adding capacitors in parallel with the voltage divider resistors. So far I have not identified the solution for the problem. Indeed, I would like to come up with a simple circuit to do level shifting from 12 to 5 volts. Any feedback on this question will be highly appreciated.
 

mik3

Joined Feb 4, 2008
4,843
You can use a transistor driver by the 12V signal via a current limiting resistor and a resistor between its collector and 5V supply. Take the output from the collector.
 

Ron H

Joined Apr 14, 2005
7,063
Thank you for your prompt reply. However, a simple voltage divider by using two resistors did not worked as expected. As I understand, at higher frequencies the parasitic capacitance of the resistors is playing a big factor which affected the shape of the square wave symmetry (not a square wave any more). I am still searching for a remedy by adding capacitors in parallel with the voltage divider resistors. So far I have not identified the solution for the problem. Indeed, I would like to come up with a simple circuit to do level shifting from 12 to 5 volts. Any feedback on this question will be highly appreciated.
What is the switching frequency? What are the minimum and maximum duty cycles?
 

t_n_k

Joined Mar 6, 2009
5,455
I'm not sure I'm really permitted to recommend particular devices / manufacturers.

Anyway - You could interpose a device similar or equivalent to Philips HEF 4050B or HEF 4049B (inverting type) - these are Hex buffers which should run out to your 100kHz requirement. These will accept input voltages up 15V DC for translation to standard TTL levels. Obviously you'll need a 5V DC supply to go with them.

Good luck.
 

Ron H

Joined Apr 14, 2005
7,063
Thank you for your prompt reply. However, a simple voltage divider by using two resistors did not worked as expected. As I understand, at higher frequencies the parasitic capacitance of the resistors is playing a big factor which affected the shape of the square wave symmetry (not a square wave any more). I am still searching for a remedy by adding capacitors in parallel with the voltage divider resistors. So far I have not identified the solution for the problem. Indeed, I would like to come up with a simple circuit to do level shifting from 12 to 5 volts. Any feedback on this question will be highly appreciated.
What value resistors did you use?
 

Thread Starter

lmartinez

Joined Mar 8, 2009
224
The resistor values were 10k ohms. I will work on getting the drawing posted. I currently only have the schematic on paper. Thank you all for your assistance
 

Ron H

Joined Apr 14, 2005
7,063
According to the datasheet, there is no lower limit for Vc on the TL598. Have you tried connecting Vc to +5V?
 

Thread Starter

lmartinez

Joined Mar 8, 2009
224
The data sheet for the TL598 recommends that the voltage values for Vc shall be within 7 volts minimum and 40 volts DC max. The reasoning for 7 volts DC being a magical minimum voltage is because the TL598 internal five volts reference establishes a stable supply from which the output control logic, pulse steering flipflop, oscillator dead time control comparator, and pulse width modulation comparator are powered from. In addition, the five volts DC reference is also available on pin 14 of the TL598. This makes it easier for me as the designer to develop other circutry to monitor the voltages which are being provided by Vc(Power source in this case) to the TL598. With that in mind, yes I have applied 5 volts to the Vc of the TL598 and the referenced voltage did not provided the five stable voltage reference until the voltage on Vc reached 5.40 volts DC. In addition, I did not observed any square waves on the outputs until Vc reached 5.40 volts DC as well. As you can see, My reasoning for using 12 volts DC is based on what I have just described and also to reduced the amount of circuitry on my design. However, you bring up a good point with regard to Vc. I can possibly utilize the 12 volts DC source and then lower it to about 8 volts DC with a voltage regulator.

I still would like to come up with a circuit for level shifting the amplitude of the square wave to 5 volts peak to peak. Thank you for taking the time on helping me with this fun project. By the way, it is a DC to AC power inverter project that I am working on.
 

Ron H

Joined Apr 14, 2005
7,063
The data sheet for the TL598 recommends that the voltage values for Vc shall be within 7 volts minimum and 40 volts DC max. The reasoning for 7 volts DC being a magical minimum voltage is because the TL598 internal five volts reference establishes a stable supply from which the output control logic, pulse steering flipflop, oscillator dead time control comparator, and pulse width modulation comparator are powered from. In addition, the five volts DC reference is also available on pin 14 of the TL598. This makes it easier for me as the designer to develop other circutry to monitor the voltages which are being provided by Vc(Power source in this case) to the TL598. With that in mind, yes I have applied 5 volts to the Vc of the TL598 and the referenced voltage did not provided the five stable voltage reference until the voltage on Vc reached 5.40 volts DC. In addition, I did not observed any square waves on the outputs until Vc reached 5.40 volts DC as well. As you can see, My reasoning for using 12 volts DC is based on what I have just described and also to reduced the amount of circuitry on my design. However, you bring up a good point with regard to Vc. I can possibly utilize the 12 volts DC source and then lower it to about 8 volts DC with a voltage regulator.

I still would like to come up with a circuit for level shifting the amplitude of the square wave to 5 volts peak to peak. Thank you for taking the time on helping me with this fun project. By the way, it is a DC to AC power inverter project that I am working on.
Have you noticed that Vc and Vcc can be different voltages? I was suggesting that you try changing only Vc to +5V. This will not screw up the reference voltage. It might not work, but it's simple to try.
 

Thread Starter

lmartinez

Joined Mar 8, 2009
224
Have you noticed that Vc and Vcc can be different voltages? I was suggesting that you try changing only Vc to +5V. This will not screw up the reference voltage. It might not work, but it's simple to try.

Yes, indeed, I should of have noticed that you said Vc and not Vcc. It works!!! However, I have severe ringing issues with the output 5 Volts DC square wave. It probably has something to do with having two voltage sources. Thank you very much for all of your help.:)
 

Ron H

Joined Apr 14, 2005
7,063
Yes, indeed, I should of have noticed that you said Vc and not Vcc. It works!!! However, I have severe ringing issues with the output 5 Volts DC square wave. It probably has something to do with having two voltage sources. Thank you very much for all of your help.:)
You need good decoupling between Vcc and GND, and Vc and GND, right at the chip, and with short leads on the caps. 100nF for each one should work.
 

Thread Starter

lmartinez

Joined Mar 8, 2009
224
You need good decoupling between Vcc and GND, and Vc and GND, right at the chip, and with short leads on the caps. 100nF for each one should work.
OK, I have to ask this? How did you come up with 100nF. And what do you mean by good decoupling at the voltage(Vc and Vcc) sources being utilized for the chip. Thank you:p
 

thatoneguy

Joined Feb 19, 2009
6,359
Decoupling capacitors effectively move the power supply closer to the IC, which reduces the effective source inductance/resistance from several inches to fractions of an inch.

100nF / 0.1uF is "the standard size" decoupling cap between power and ground. This value works universally well for low to mid frequencies (under 100Mhz), as long as the the supply is stable, and the PCB is designed correctly.

A long while back, a company actually sold 14, 16, and 18 pin Wire Wrap IC Sockets for TTL with a 0.1uF cap "built in" between the standard TTL supply pins - Vcc and Gnd (opposite corners, such as pins 8 and 16).
 

Ron H

Joined Apr 14, 2005
7,063
I'll essentially reiterate what thatoneguy said:
If you have ringing on the rising edge of the output, it is probably caused by inductance in the wire between the chip's power pin and the power supply itself,
 

Thread Starter

lmartinez

Joined Mar 8, 2009
224
Thank you all. I will provide a stiff voltage source to the TL598 by reducing the length of the jumpers on my circuit to minimize the inductance and capacitance effects.
 
Top