Author Topic: Level shifting  (Read 6194 times)

0 Members and 1 Guest are viewing this topic.

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Level shifting
« on: December 23, 2018, 12:05:37 am »
Hi, what is the best way to level shift an Composite signal which includes AC and DC signal? (Adding DC bias to CVBS signal)

 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Level shifting
« Reply #1 on: December 23, 2018, 01:38:35 am »
If your just adding a DC bias to it, the simplest way is a resistor divider for the DC with an AC passthrough (capacitor) For more detailed information you can look at things like TV antenna amplifiers that require a DC supply to power to mast antenna, they just use a capacitor for the signal and feed in the DC voltage through a resistance.
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7606
  • Country: au
Re: Level shifting
« Reply #2 on: December 23, 2018, 01:55:39 am »
Hi, what is the best way to level shift an Composite signal which includes AC and DC signal? (Adding DC bias to CVBS signal)
Build a keyed clamper circuit, but instead of clamping the blanking(or black level for NTSC) to zero volts,
clamp it to whatever DC voltage you require.

This was quite commonly done back in the day.

PS:- Reading your other thread, it was suggested to clamp the sync pulse tips------- this is the alternative to
clamping black level, but remember, with that method,  if you are trying to restore your video signal to standard levels, you will need to clamp the sync tip to around -300 mV.

« Last Edit: December 23, 2018, 02:19:18 am by vk6zgo »
 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #3 on: December 23, 2018, 10:25:53 am »
Problem is that when I use the circuits like Bias tee, they completely purifies the signal from DC. However, that is not what I want.  I attached the signal that I am working with. I just want to shift the level of it.  Bias tee circuit eliminates the DC components in the signal.
 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #4 on: December 23, 2018, 10:29:31 am »
Thank you for your suggestion, I was trying to find easier solution but it seems I have to do it like you said. Is there any reference that I can use to build that circuit?  It would be great.
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7606
  • Country: au
Re: Level shifting
« Reply #5 on: December 23, 2018, 10:46:56 am »
There is a simpler solution, a thing called a "DC Restorer" .
It doesn't work as well as the keyed clamper, but was widely used in the video stages of BW TVs.
From memory, it consists of a Coupling capacitor, a diode & a few other bits, but I haven't seen one for so
long, I had forgotten about them.
I will Google, but I'm not very hopeful.
 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #6 on: December 23, 2018, 10:55:24 am »
I am familiar with DC restorer. However, isn't it shifting negative part of the signal to positive level? Best to my knowledge CVBS signals do not have negative part.
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: de
Re: Level shifting
« Reply #7 on: December 23, 2018, 12:07:09 pm »
Sync extraction (LM1881) and clamping is the way to go, like I said in your other thread. You can clamp to any DC voltage you like.
As vk6zgo says, it's best to clamp to black/blanking, as sync amplitude may vary (although it shouldn't, it often does in practice).

« Last Edit: December 23, 2018, 12:09:37 pm by Benta »
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7606
  • Country: au
Re: Level shifting
« Reply #8 on: December 23, 2018, 12:49:37 pm »
I am familiar with DC restorer. However, isn't it shifting negative part of the signal to positive level? Best to my knowledge CVBS signals do not have negative part.

Yes,they do!
Unfortunately, from Googling, you wouldn't find that out, which is why I find the Internet a little underwhelming as a resource.

As you have found, analog video signals need to maintain particular set levels for the interconnection of equipment.

All the websites I've found that show video waveforms have them simply shown as a 1 volt  peak to peak  signal, starting at zero volts at the sync tips, & extending to 1 volt at peak white luma.

It makes it easy to show the relevant levels, but it is equine faeces!
In a standard PAL video signal, blanking is at zero volts, peak white luma is at +0.7volts & sync tips are at -0.3volts.

With NTSC, they distinguish between black level & blanking, with zero level at black, so the positive & negative voltages are slightly different, but not really enough to worry about.

DC restorers (which can shift signal DC components both ways) are normally shown on website descriptions  with simple waveforms, but video waveforms are not simple.
The CR time constant ends up being a compromise between what works best at line rate, & what works best at field rate.

For this reason DC restorer  use is mainly in TV receiver use, where its advantage is cheapness.
The device of choice in Broadcast TV is the keyed clamper.

Even with the use of ICs, a keyed clamper is a reasonably complex device.

Why do you have to feed the DC down the coax?
It is possible to buy cables which have audio & coax cables in the same sheath.
They are a bit more unwieldy than normal coax, but the audio conductors are usually big enough use for a  DC supply connection,& would allow you to dispense with both the "Bias T" & the need to reset the video DC reference level.
« Last Edit: January 02, 2019, 12:05:06 am by vk6zgo »
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7606
  • Country: au
Re: Level shifting
« Reply #9 on: December 23, 2018, 12:55:56 pm »
Sync extraction (LM1881) and clamping is the way to go, like I said in your other thread. You can clamp to any DC voltage you like.
As vk6zgo says, it's best to clamp to black/blanking, as sync amplitude may vary (although it shouldn't, it often does in practice).
Yes, but it must be "soft" clamping,so it doesn't mangle the colour burst.
Many years ago, we spent a lot of time modifying the clamping on our originally BW transmitter so we could run it with PAL.
Ultimately, a simple 4.433mHz trap in series with the clamp diode was the best.
Those "clamp diodes" were 6AL5s, if my memory doesn't deceive me! ;D
 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #10 on: December 23, 2018, 01:51:52 pm »
Correct me if I am wrong , Clamper circuits are for limiting voltage right? how does it help me to DC shift the signal? I didn't get that part.  The waveform that I am trying to achieve is in attachment.

Edit: Okay I get the point. You mean "keyedclamping.png" circuit.
« Last Edit: December 23, 2018, 02:55:38 pm by syntax333 »
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: de
Re: Level shifting
« Reply #11 on: December 23, 2018, 03:39:12 pm »
Exactly. This is how it's done in all the video circuits I've seen, except it's usually deeply embedded in the video processors. The LM1881 is an exception as stand-alone IC.
The simplest is clamping on the sync tips, where the switch is controlled by the CSOUT signal, a bit more complicated is using the BPOUT for clamping on black/blank.

 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #12 on: December 23, 2018, 03:58:08 pm »
What is the main difference between clamping using CSOUT and BPOUT? Is there any specific reason to use BPOUT to clamp since it is more complicated?
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: de
Re: Level shifting
« Reply #13 on: December 23, 2018, 04:29:16 pm »
Sync tips are not always correct in amplitude. Black/blank is the reference level in a CVBS signal and preferable. It's a question of signal integrity and precision.
That being said, you probably won't notice any visual difference when looking at the video.

As vk6zgo said, you need to be careful not to mess with the colour burst when choosing black/blank clamping.

 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #14 on: December 23, 2018, 04:59:03 pm »
I think safest option for me to go is sync tips since I am not experienced about CVBS. So I have two final questions?

1. Is it enough to simply connect the lm1881 CSOUT pin to key to achieve DC biasing? or do I need any additional circuitry?

2. Can you recommend Analog Switch alternatives to DG419B?
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: de
Re: Level shifting
« Reply #15 on: December 23, 2018, 05:59:26 pm »
Here's a quick little sketch.
If you need to drive your output into a 75 ohm load over longer distances, you need a x2 amplification somewhere.

Concerning DG419B, there are lots of analog switches out there. It's just that I've used them successfully in several CVBS projects. You might even consider just a transistor or MOSFET.

« Last Edit: December 23, 2018, 06:27:58 pm by Benta »
 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #16 on: December 23, 2018, 06:43:48 pm »
Thank you for the circuit diagram I will definitely try it out.
I just wanted to learn that is there any specific parameter that I need to look while choosing Analog switches for using for my application.
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: de
Re: Level shifting
« Reply #17 on: December 23, 2018, 06:53:40 pm »
I'd say below 100 ohms and as little feed through when off as possible. But that's just an approximation, in this application it's not really critical.
My use of analog switches (DG419B) was directly in the CVBS line, which is much more demanding.
 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #18 on: December 26, 2018, 07:12:27 pm »
I am assuming the circuit with bjts are for Zout << Zin condition. However, I am worried that bjt switching speed won't keep up with the 4.3Mhz PAL color carrier. I am asking that will the bjts create a problem about switching speed, should I use MOSFET instead of bjt since they have faster switching characteristics?
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: de
Re: Level shifting
« Reply #19 on: December 26, 2018, 07:32:37 pm »
I am assuming the circuit with bjts are for Zout << Zin condition. However, I am worried that bjt switching speed won't keep up with the 4.3Mhz PAL color carrier. I am asking that will the bjts create a problem about switching speed, should I use MOSFET instead of bjt since they have faster switching characteristics?

Don't worry, in-your-drawer BC547/557 or BC 847/857 will work perfectly. They're 250 MHz fT transistors and operating as emitter followers will give you zero problems.
MOSFETs would be a nightmare. Why are you so down on BJTs?

You'll find this buffer configuration in all kinds of commercial video equipment, it preserves the DC level of your signal. Simple, easy and cheap.

 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #20 on: January 01, 2019, 05:52:52 pm »
Hi, the circuit that you suggested worked perfectly thanks for the suggestion. However, I got two issues, this could be due to my low knowledge about the buffer circuits.

1) You can see the output of the clamp circuit (indicated by White) + output of the buffer circuit ( indicated by Yellow). Output of the buffer seems to have degraded compared to output of the clamp circuit. Also there is no load connected to output of buffer at the moment.

Is this due to wrong chosen values of follower configuration parameters such as voltage and resistor values or something else?

The values that are chosen is shown in attachment.

2) I want to drive a 200mA load with this configuration. Probably due to wrong values of resistors and supplied voltage, resistors and transistors are heating up pretty quickly. The load is approximately 17.5-20 ohms.

How do I get rid of the heating problem? Should I buy high power resistors like 5W?  Or cooling down transistors with heat sink etc.

(NOTE: currently I am using BC327 and BC337 as bjts)
« Last Edit: January 01, 2019, 06:10:55 pm by syntax333 »
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: de
Re: Level shifting
« Reply #21 on: January 01, 2019, 07:00:26 pm »
I see several issues.
It looks as if you're clamping on sync, which is fine. But it's very obvious that your Vref is not able to deliver the current needed when clamping occurs. It needs to clamp a 75 ohm signal and is not able to do it, otherwise the sync tips wouldn't be angled, but horizontal.
You might be able to cure this by using a larger decoupling cap for Vref, if not you'll need to buffer Vref.

For the first emitter follower, I'd try using 1 kohm as emitter resistor, this will bring down power consumption and gain demand.
For the second, with a 100 ohm emitter resistor, you're burning around 0.6 W of power in the transistor and resistor (I'm assuming 12 V supply) and yes, this will get hot.

Let's know how you get on.
 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #22 on: January 01, 2019, 08:01:58 pm »
sync tips being angled is probably due to the ac coupling cap at input I changed the value with 10uF. However, this time there are spikes at certain times as shown in attachment.

I have changed the value of resistor on first follower with 1kohm. Besides that is there anything you can suggest for the heating problem?
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5898
  • Country: de
Re: Level shifting
« Reply #23 on: January 01, 2019, 08:45:41 pm »
This is getting interesting. To move on, I have a few questions:

What exactly is your CVBS source? is it 1 Vpp, 75 ohms or something else?
Did you follow the LM1881 component recommendations 100%?
What is your Vref?
Is the input cap polarized correctly (positive side to the emitter followers)?
Have you decoupled everything correctly (mix of 10n and 100n caps?
Are the wires too long (everything should be close together)? If you're using a plug-in breadboard, I'll find you and kill you.   :)

The spikes are not important, we can take of them along the way. But what I see in your second trace is, that the CSOUT is only present on the second video line. So the LM1881 is not operating correctly.
I also see a level shift, so I suggest increasing the input cap to 47...100 uF

 

Offline syntax333Topic starter

  • Regular Contributor
  • *
  • Posts: 158
  • Country: 00
Re: Level shifting
« Reply #24 on: January 01, 2019, 09:21:18 pm »
1) Yes I just checked again and it is exacly 74.4ohms and 2.76Vpp (is this normal?).
2) Well, I don't have the 680kohm resistor so I made it with using other resistor values parallel and series combination to get the desired value. Besides that everything is according to datasheet.
3) I give 6V as reference voltage. Also supply voltage to the lm1881.
4) Yeah it polarized correctly.
5) If you mean supply voltages and reference voltage yes I did.
6) Wires are not too long. Unfortunately, I am using breadboard while experimenting  :-[

I increased input cap to 100uf.

You are probably right about the lm1881 working not correctly as we can see from the attachment..

I will create a schematic of the circuit that I build and post here to make things clear.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf