How Can a Digital Delay Line Enhance Signal Alignment in Circuit Design?

In summary, Jason is working on an experimental control board that will phase shift input signals onto three output channels. He found a great IC that will take care of the phasing for him, but he wants to be able to adjust the output signals to precisely line up the outputs. He thinks the simplest way to accomplish this would be with a digital delay line. However, he does not know how to program a microcontroller for this purpose yet, so he is playing with various components to practice. He also plans to use two 68HC12 microcontroller boards in the future for the controller. He is constantly making changes to the board so it is in the prototype stage. He has also proposed
  • #1
Jdo300
554
5
Hello All,

I'm still working on my experimental control board and up to this point have been determining the best way to do the phase shifting of the input signal onto three output channels.

After doing some experiments, I realized that a simple 120 degree phase shift between the three signals would be fine so I found a great IC here that would take care of the phasing for me:

http://www.allaboutcircuits.com/vol_4/chpt_12/6.html

But I want to be able to adjust the output signals from the chip to precisely line up the outputs (and compensate for any length differences on my board and other lines) so that the signals are lined up as precisely as I can get them.

I thought the simplest way to accomplish this would be with a digital delay line of some sort. I only need adjustments within 1 uS but I want to have precise control over the phasing (with a potentiometer or something). Does anyone know of any simple ways to delay the signal between the output of the ring counter chip and the next stage of the circuit (which is a comparator-driven MOSFET driver chip)?

Thank you,
Jason O
 
Last edited:
Engineering news on Phys.org
  • #2
Can you just use counters? What frequency will the ring counter output be running at?
 
  • #3
How about RC time delay?

I don't think you can find an accurate method of doing a delay for such a short time as a 1uS quite easy. However, consider of doing a simple RC delay line which is adjusted to have delay of 1uS. You have to use signal conditioning circuit such as AND-circuit or similar before and after it to have sharp edges, but that is the simplest method i could come up with. By replacing that resistor with a pot, you may adjust the delay.
The next method would be a microprosessor, and that is a different story.
 
  • #4
I agree, the only way that doesn't involve either rather
uncommon or somewhat high speed / complex digital logic
(e.g. microcontroller or FPGA) is to use a RC delay
followed by a schmidt triggered buffer to give a good
digital transition from the RC circuit.

They make fixed delay delay line products in the
various-ns range, but that's useless for you.

FPGAs commonly have skew correction and delay
blocks in them and so they could be used for ps to us
range programmable delays.

What is the overall application that causes you need
such precise phase control over MOSFETS? It's
not common that I've seen ns level phasing concerns
expressed over motor control (if I recall what you said
you were doing with the FETs) applications.

Also be aware that due to process variations in the
FET drivers and FETs themselves you'll probably see
dozens or hundreds of nanoseconds of skew between the
switched outputs even with 'identical' devices. High
power devices don't tend to be the most precise in timing..
 
  • #5
@ Berkeman,

The ring counter I have will be designed to run at up to 1MHz. Any faster and I'll have to many problems with wire lengths and capacitance between pieces and parts.

@TechSpec,

You said exactly what I have been thinking. I haven't thought of exactly how to accomplish it but given your description, it sounds very simple. Would you have any recommendations for a good capacitor type that would be well suited for this purpoose? I know some caps are very susceptible to outside influences which can change the delays.

xez,

I'm glad you asked what I'm using this for. It is, in essence a type of motor controller only I'm not controlling motor statora with it. The ultimate goal is to produce a rotating magnetic field, but I need to have precise control of the phasing because I'm working with extremely fast rotating fields. on the order of millions of RPMs if you equated them with a physical armature. But in this case, I don't intend to spin a mechanical rotor with this; it's purely for experimental purposes.

I actually have two 68HC12 microcontroller boards (which I don't know how to program yet) and I plan to utilizing them in the future for the controller, but for now, I'm playing with the anaolg components for now to get some practice working with ICs and also to make quick changes to my setup until I know exactly how I want the board to work. I'm constantly making changes to it so it's very much in the prototype stage for now.

Also, you make a good point about the MOSFETs. In attempts to mitigate the problem, I'm using drivers to get them to come on as fast as possible but I can definitely understand the issues with them not triggering precisely. I really don't know how bad the delays will end up being by the time the input signals reach the MOSFET gates, which Is why I proposed to make the delay circuit to compensate for it.

@All,

I attached a proposed diagram for the delay line circuit. Would this do the trick?

Thanks,
Jason O
 

Attachments

  • Phase Delay Circuit.GIF
    Phase Delay Circuit.GIF
    1.3 KB · Views: 895
  • #6
That diagram has a series C and shunt to ground R,
whereas for a low-pass ('integrator') type delay
you'd want the series R feeding into a C
which is shunted to ground with the RC junction
going out into your schmitt trigger.

Then your R (being in series) controls the
current flow into the cap, and the RC time constant
slows the rise (and fall) of the pulse propagating
from the R's input to give the output whenever
the C is sufficiently (dis)charged.

The rotating magnetic field sounds interesting;
can you elaborate as to what you're trying
to accomplish or research with such a thing?

The microcontroller boards should help you
generate more easily programmable timing
when you get around to using them, though I
expect their limit will be a resolution somewhere
in the 100ns to 20ns range depending on the
maximum clock speed you can run them at and
whether their peripheral timer/counters are used
or the software driven timing etc. That's probably
good enough unless you're really getting into the
several 100kHz to 1MHz cycle range and need
better purely digital phase precision down to a
few degrees or less.

I've used some similar magnetics technology
in the past for various kinds of industrial
scientific equipment.
 
  • #7
PS use a relatively large R value so that you don't
over-load the output drive capability of your
logic buffer that's driving the RC circuit. Most
kinds of digital logic can drive 50k ohms into
a short circuit pretty well; I'd stay above 15k
anyway. It shouldn't be a problem since you'll
be able to do something like use capacitors around
18pF range with a 10k
resistor in series with a low capacitance
10k ohm pot and get a good range of
sub-to-near-microsecond timings depending
on the particulars of your parts.

Use care with the layout and wiring (keep all
components as close as possible together with
insignificant amounts of interconnecting
distance / wire), and you should have no real
problem with the capacitance varying too much
with environmental effects. Actually for this
kind of thing it's common to just solder the
components together by their own short-trimmed
lead stubs, and put the whole thing in a metallized
enclosure to prevent EMI and environmental
electronic or mechanically coupled disturbance.

If you use an 'identical' circuit on all phase leads
you don't even have to use such small values of
capacitance to minimize the absolute delay,
since the only thing relevant to you is the
relative delay between the three phases, so if
they all had a nominal delay of even more
than 1uS it's OK since it's the incremental
variance of delay due to the adjustment that
matters. Given that, you could increase the
R and C if desired as long as you have the
+/- delta range you want whatever the
center delay value is.

But working with 18pF capacitance in a well
constructed delay circuit shouldn't be problematic,
you just don't want to try it on a prototyping
board or with sloppy wire wrap / sloppy large
distance soldering.
 
  • #8
PPS I wouldn't worry about the susceptability of
the cap itself to environmental effects, in the
10pF to 47pF range you're probably looking at
some pretty compact disc ceramic or silver-mica
caps, and they're relatively stable.
Temperature and vibration would likely cause
more variance than stray capacitive coupling as
long as the delay section is tiny (e.g. < 1cm^2
in size) and shielded with grounded metal walls.
You can find a relatively better
temperature compensated resistor, but by default
the metal film one you're likely to get is probably
OK. Use a nice small precision pot for mechanical
stability.

and
 
  • #9
RC delay

i agree with xez, circuit should look like this.

im not sure which capacitors are the most suitable for the circuit, as they all tend to have variations over temperature. But with a little search i found Murata ceramic capacitor type C0G which is extremely stabile over temperature.
http://www.murata.com/cap/nproduct/index.html#11

But if the circuit is to be within a decent temperature range, normal XR7 type ceramic will work fine.
 

Attachments

  • RC.JPG
    RC.JPG
    4.2 KB · Views: 609
Last edited by a moderator:
  • #10
Hello All,

I just tested out the circuit using a 74LS14 inverting Schmitt trigger buffer, a 680pF cap, and a 1KOhm 15-turn pot. with an input clock frequency of 100kHz, I was able to shift the output wave between 0 and 1 uS with 1 nS resolution! The surprising thing was the stability of the output waveform. I was viewing this all on a 100MHz dual-channel scope that was triggered off of the input frequency.

Works like a charm, thanks!

-Jason O
 
  • #11
Thank you all, great info. Thank you Jason for sharing your experiment.

wcernuska
 
  • #12
Jdo300 said:
Hello All,

I just tested out the circuit using a 74LS14 inverting Schmitt trigger buffer, a 680pF cap, and a 1KOhm 15-turn pot. with an input clock frequency of 100kHz, I was able to shift the output wave between 0 and 1 uS with 1 nS resolution! The surprising thing was the stability of the output waveform. I was viewing this all on a 100MHz dual-channel scope that was triggered off of the input frequency.

Works like a charm, thanks!

-Jason O

Jason,

How about adding a 100K Ohm Pot' in series with that 10K Ohm Pot'? That should increase Phase Adjust Range to 11uS while retaining the 1nS Phase Resolution you found in your experiment. Just a thought.

Ward
 
  • #13
Jason,

I have linked your great idea to use in the ARM7024 from Futurelec here: http://en.mikrocontroller.net/topic/116189. This will do well for low frequencies this uCntrl will resolve well.

If I keep the ARM7024's 3 Phase PWM at 50% duty-cycle, and use this excellent RC-timer circuit, and top it off with this method of delivering critically short pulses,
http://www.overunity.com/index.php?topic=2582.10 (Reply #17, read all schematic text).
... then we have a fantastic combination. I had never thought of using a transmission line to deliver anything but AC this way. Now we know what is possible.

If one could buy a DDS twenty in the US, or a better DDS based on the AD9959, I never would have learned all this. AD9959 shown here: http://www.analog.com/en/prod/0,2877,AD9959,00.html

Thank you all for helping maximize what can be had from a simple RC-timer circuit.
 
Last edited:

FAQ: How Can a Digital Delay Line Enhance Signal Alignment in Circuit Design?

What is a simple digital delay line?

A simple digital delay line is a type of electronic circuit that is used to delay the transmission of a digital signal. It is a linear circuit that stores a digital signal for a certain amount of time and then releases it, producing a delayed version of the original signal.

How does a simple digital delay line work?

A simple digital delay line works by using a series of memory elements, such as flip-flops or delay registers, to store the digital signal. The signal is then released after a predetermined amount of time, creating a delayed version of the original signal. This delay is achieved by controlling the clock speed of the memory elements.

What are the main components of a simple digital delay line?

The main components of a simple digital delay line include memory elements, a clock signal, and control circuitry. The memory elements store the digital signal, the clock signal controls the delay time, and the control circuitry determines the amount of delay and manages the flow of data.

What are the applications of a simple digital delay line?

Simple digital delay lines are commonly used in digital signal processing, communication systems, and audio processing. They can be used for tasks such as echo and reverb effects, time alignment of signals, and synchronization of multiple signals.

How is a simple digital delay line different from an analog delay line?

A simple digital delay line differs from an analog delay line in that it stores and processes digital signals, while an analog delay line works with analog signals. Digital delay lines also offer more precision and control over the delay time, as well as the ability to store and process multiple signals simultaneously.

Back
Top