Author Topic: Double inverted signal  (Read 2439 times)

0 Members and 1 Guest are viewing this topic.

Offline MomchiloTopic starter

  • Regular Contributor
  • *
  • Posts: 98
  • Country: de
Double inverted signal
« on: June 14, 2018, 02:49:20 am »
Hi,
I have a 1Vpp square wave from 0 to 1V from a function generator. I want to increase the peak-to-peak voltage to 0V to 5V and I also need the inverted signal from 0V to 5V. The frequency of the square wave will be varied between 5Hz and 200kHz.
I know there are converter and inverter ICs, who would do the job perfectly.
But I tried to do this with some components which I have at home. The inverter is built by a npn-transistor (BC547) and two resistors. It works just fine, also at 200kHz. I thought the simpliest way would be to invert the inverted signal again to get the original square wave with an increased voltage. The schematic is attached and also the LTspice simulation.
But the double inverted signal isn't useable at frequencies higher than 40kHz, I attached a picture of the scope with the 200kHz double inverted signal and the output of the function generator. You can see that the rise time of transistor Q2 is way too slow. If I lower the value of R2, the rise time will be faster, but the voltage of the inverted signal will decrease (voltage divider). In the LTspice simulation the rise time is better than enough.
Is there a simple solution for my problem? Thanks for your help.
Best regards
Momchilo 
« Last Edit: June 14, 2018, 02:51:37 am by Momchilo »
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19514
  • Country: gb
  • 0999
Re: Double inverted signal
« Reply #1 on: June 14, 2018, 09:16:03 am »
It's more likely the transistor's base charge, which is responsible for the slow off time and rise time of the double inverted signal.

Try removing R2 altogether and adding another transistor to give the inverted output. Another possibility is adding a 100pF capacitor across R2, but that might delay the rise time of the inverted signal too much.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Double inverted signal
« Reply #2 on: June 14, 2018, 02:42:37 pm »
If you remove R2 the inverted output will never rise higher than Vbe of the second inverter.
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Double inverted signal
« Reply #3 on: June 14, 2018, 03:14:11 pm »
 :-/O 'ed
« Last Edit: June 14, 2018, 03:16:23 pm by StillTrying »
.  That took much longer than I thought it would.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16611
  • Country: us
  • DavidH
Re: Double inverted signal
« Reply #4 on: June 14, 2018, 03:43:15 pm »
A single diode Baker clamp needs the lower forward voltage drop of a schottky or germanium diode to work.  A silicon diode Baker clamp can be made with two diodes.

https://en.wikipedia.org/wiki/Baker_clamp

Instead of a Baker clamp, I would start by bypassing R2 with enough capacitance to allow fast removal of base charge like Hero999 suggests.  100 picofarads is about right but try different values.

I am not familiar with the switching characteristics of the BC547 but that storage time seems awfully long.  I would expect more like 200ns maximum.

The circuit you really want is called a "data slicer" and is commonly made with a comparator, resistor, and capacitor but a couple of transistor inverters like you have should work also.

https://www.maximintegrated.com/en/app-notes/index.mvp/id/3435
« Last Edit: June 14, 2018, 03:46:06 pm by David Hess »
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Double inverted signal
« Reply #5 on: June 14, 2018, 05:15:06 pm »
Swapping the BC547 for the much slower 2N3904 seems to show the slow TR turn off better in simulation, it takes 1.6us to turn off. There's 3 versions in the .asc, the single diode is winning!
.  That took much longer than I thought it would.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19514
  • Country: gb
  • 0999
Re: Double inverted signal
« Reply #6 on: June 14, 2018, 06:36:37 pm »
If you remove R2 the inverted output will never rise higher than Vbe of the second inverter.
I know, which is why I suggested adding another transistor for the inverted output.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: Double inverted signal
« Reply #7 on: June 14, 2018, 08:07:00 pm »
If you've got supply rails above and below the logic ones (e.g. +/- 12V), it looks like a carefully biassed clamped long tailed pair with speedup caps across the base resistors and chokes in series with the collector resistors and the tail resistor could get you logic level signals with rise and fall times as fast as 10ns, and negligible timing skew between the inverted and noninverted outputs.

n.b all caps Cpn are parasitics and strays, not actual components.
« Last Edit: June 14, 2018, 08:10:09 pm by Ian.M »
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19514
  • Country: gb
  • 0999
Re: Double inverted signal
« Reply #8 on: June 15, 2018, 03:18:09 pm »
Interesting, for educational purposes, but might not be practical as it requires a bipolar PSU and those inductors won't be cheap.

Here's what I was suggesting above. It won't be as fast and may benefit from Baker clamps, but will probably do.
« Last Edit: June 15, 2018, 08:27:44 pm by Hero999 »
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: Double inverted signal
« Reply #9 on: June 15, 2018, 04:28:51 pm »
Interesting, for educational purposes, but might not be practical as it requires a bipolar PSU and those inductors won't be cheap.
Omit the inductors - they only buy you a few ns.   However back in the early days when transistors were nearly as valuable weight for weight as gold, IMHO that would have been a viable solution.

If you want to see the difference, parametrise the inductors as {x} and add:
Code: [Select]
.step param x list 1p 100uto the sim.   1pH is a very short wire!  It helps see the timing variation if you add a trace for the input pulse signal at a similar size by plotting V(pulse)/1v
Here's what I was suggesting above. It won't be as fast and may benefit from Baker clamps, but will probably do.
Yes, I came up with something similar.   Baker clamps wont help much, and if you use them on Q2 or Q3, can actually make it worse due to the junction capacitance and the Miller effect.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16611
  • Country: us
  • DavidH
Re: Double inverted signal
« Reply #10 on: June 15, 2018, 06:35:01 pm »
Swapping the BC547 for the much slower 2N3904 seems to show the slow TR turn off better in simulation, it takes 1.6us to turn off. There's 3 versions in the .asc, the single diode is winning!

The simulation is just wrong.  And 2N3904s aren't any slower than BC547s.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf