Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resistor buffering of the clock lines

Status
Not open for further replies.

homoly

Electrical
Jun 11, 2007
100
Hello,

I would need some advice with one problem related to clock signal picking up noise.

First the layout. The source of the clock signals ( actually 2 identical clocks which are complementar to each other and are selected by logic ) is gated 555 output of 22kHz by CMOS AND gate. The target of the clocks are CMOS inputs of the CLK of CD4013 D-type flip flop.

As the PCB containing the 4013 flip flops is a "patch" to existing design so unfortunatelly I have to route the clock signals to target PCB from the source PCB with a quite a long wire of 70cm.

First phenomena I have observed on osciloscope is that after a nice clean pulse train of the clocks I got a series of pulses which have a sag on the top. I assume this is due the fact I have not performed any kind of impedance fitting between the two interconnected PCBs and I have connected the output of the CMOS and gate with the CLK CMOS input of the 4013 flip flop directly through a wire.

Second phenomena I have observed is if I am swapping the clocks quickly ( f.e. the clock1 is feeding FF1 CLK for 10 seconds than it is terminated for 10 seconds and than again restored ) cycling in this way tends to result in building up distorsion of the clock signal I am measuring at the clock input of the D-FF. I have found in one book in the case of long clock lines ( I do not know if I can consider 70 cm wire for that ) the output of the CMOS should not be connected with the CMOS input directly but it should be terminated by some resistor as "resistor buffering" but I did not found more description on this. Could somebody give me more information on this concept how does the resistors should be connected and what is the philosophy of the resistor value selection?

Any advice is very appreciated.

Gabriel.
 
Replies continue below

Recommended for you

You haven't stated the voltage you're running.

With 5V you are starting to barely push the line distance with regard to a standard driver having to charge and discharge the line.

22kHz is pokey-boring-slow so you should get away with it.

With slight distortion of the pulse you shouldn't have an issue. If the pulse shape is so distorted that the driven device might start thinking it's two pulses then you'd have to change something. If that's not the case don't bother.

As for resistors altering or helping the shape, that shouldn't happen until your line becomes a "transmission line" which requires the wavelength of the signal to reach 10% of the cable length. 22kHz is 1300m which is a little longer than your 70cm.

For fun you could drop a 120 ohm resistor across the load end and see if that improves anything,

Keith Cress
kcress -
 
Hello Keith,

The voltage is 12V.

OK thanks for the suggestion, I can try to connect the 120ohm resistor across the load ( as a pull down between the CMOS input and the GND ) but at first sight the 120 Ohm value seems to be too low to be driven directly with the output of the CMOS AND gate. Maybe I am just overlooking something...
 
Ahh. 12V? Better not try the 120 ohms as that would be 100mA which your 4000 series can't begin to dish out.

Series resistors would exacerbate the problem.

Keith Cress
kcress -
 
The 22 kHz doesn’t make the PCB layout a transmission line. It’s the rising edge of the 22 kHz signal. If you have a really fast rise time then you could get reflections and you need to treat the circuit as a transmission line. If you just have a point to point a resistor at the output is good enough. Do you know what the rise time of your driver is?
 
Hi,

I will try to post the sag if I can find. After a few measurements I have realized the distorsion comes from turning on the second 12V power supply which is a prerequisity the swap between the clock. I can post also the the schematics of the the supplies ( standard diode bridge/LM7812 and LM7912 circuitry). I have tried to filter the noise out on the source side by trying to add some ceramic caps to LM regulators , also adding decoupling caps on my new board supply connector and filter ceramic caps on the clock line but all my efforts to solve the problem in this way failed.

The switching between clocks also before this clock sag has occured induced a problem to via setting the D output to "H" as a pulse for some time ( I do not want to go to deteils here but it was unavoidable ). For this I have implemented an RC filter to D output which was connected as an input to LM339 comparator producing "H" only for long duration not temporary pulse "H" from the D output.

I have reused this RC and comparator circuitry to solve the issue with asynchronous permanent "H" output od the D provoked by clock sag. I have designed a 555 timing circuitry which produces cyclic reset pulse ( each 200ms a short 10ms reset signal ).Now even if the clock sag produce a "H" which should normally remain on output it will be reseted during next reseting pulse because now there is clock stable on the second D flip flop. So I have not succeed to remove the root cause but with this averaging filter the top level problem is solved.

But as I said I will try to post waveforms and schematics as I will have a bit more time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor