Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Phase-shifter 90 degree

Status
Not open for further replies.

MacBam

Newbie level 6
Newbie level 6
Joined
Nov 11, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
86
Hi,

I am looking for a phase-shifter circuit, that can shift a signal with 90 degrees - over a frequency range (eg. 50kHz to 200 kHz). Any suggestion?

Best regards,
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
50,994
Helped
14,632
Reputation
29,540
Reaction score
13,741
Trophy points
1,393
Location
Bochum, Germany
Activity points
291,755
Differential 90 degree phaseshift can be implemented as an approximation with all-pass filter chains. Number of filter stages depend on acceptable phase ripple.
 

MacBam

Newbie level 6
Newbie level 6
Joined
Nov 11, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
86
Differential 90 degree phaseshift can be implemented as an approximation with all-pass filter chains. Number of filter stages depend on acceptable phase ripple.

Ok, do you have any link to some litterature.
 

BradtheRad

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 1, 2011
Messages
14,753
Helped
2,872
Reputation
5,756
Reaction score
2,888
Trophy points
1,393
Location
Minneapolis, Minnesota, USA
Activity points
110,266
If you're talking about sine waves, a capacitor automatically creates 90 degree phase difference, measuring voltage across it versus current through it. These are not necessarily in phase with the original signal.
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
50,994
Helped
14,632
Reputation
29,540
Reaction score
13,741
Trophy points
1,393
Location
Bochum, Germany
Activity points
291,755

LvW

Advanced Member level 6
Advanced Member level 6
Joined
May 7, 2008
Messages
5,866
Helped
1,749
Reputation
3,504
Reaction score
1,353
Trophy points
1,393
Location
Germany
Activity points
39,877
Hi,
I am looking for a phase-shifter circuit, that can shift a signal with 90 degrees - over a frequency range (eg. 50kHz to 200 kHz). Any suggestion?
Best regards,
90 deg (exact !) over such a frequency range is impossible.
Therefore: What are your accuracy requirements?
Perhaps an opamp-based integrating stage?
The phase will be exact 90 deg at one single frequency only - however, the deviation (for smaller and larger frequencies) might be some degree only
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
50,994
Helped
14,632
Reputation
29,540
Reaction score
13,741
Trophy points
1,393
Location
Bochum, Germany
Activity points
291,755
An integrator (or differentiator) is basically not suited as wideband phase shifter due to frequency dependent magnitude. All-pass chains can achieve good accuracy (below 1 degree) with respective number of stages.
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,269
Helped
4,741
Reputation
9,503
Reaction score
5,127
Trophy points
1,393
Activity points
154,155
Hi,

Is "constant amplitude" a requirement?

Klaus
 

MacBam

Newbie level 6
Newbie level 6
Joined
Nov 11, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
86
Yes the amplitude is important, I am going to use in a lock-in configuration. What about using Phase-lock loop is that possible?
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
50,994
Helped
14,632
Reputation
29,540
Reaction score
13,741
Trophy points
1,393
Location
Bochum, Germany
Activity points
291,755
Really depends on what you want to achieve. PLL can generate a signal phase shifted relative to a reference input, usually with fixed magnitude.
--- Updated ---

To be tracked by a PLL, the reference signal must be single frequency and quasi stationary.
 

danadakk

Advanced Member level 5
Advanced Member level 5
Joined
Mar 26, 2018
Messages
2,296
Helped
351
Reputation
720
Reaction score
530
Trophy points
113
Activity points
10,092
Is this an analog or digital signal you want phase shifted ?





https://community.cypress.com/message/142285#142285 Project using hilbert transform filter

Single chip approach -

1603235839390.png


Regards, Dana.
 

MacBam

Newbie level 6
Newbie level 6
Joined
Nov 11, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
86
Is this an analog or digital signal you want phase shifted ?





https://community.cypress.com/message/142285#142285 Project using hilbert transform filter

Single chip approach -

View attachment 164992

Regards, Dana.
Inetresting, it is an analog signal. Can I generate sine waves in PSoC5?
 

danadakk

Advanced Member level 5
Advanced Member level 5
Joined
Mar 26, 2018
Messages
2,296
Helped
351
Reputation
720
Reaction score
530
Trophy points
113
Activity points
10,092
Yes on sine with WaveDAC component. In PSOC land a component
is an onchip resource. What freqs do you need ?

Attached is a component catalog for PSOC 5LP, there are lower end familes
with not as many on chip components. On chip you have logic, LUTs, DACs
OpAmps, Comparators, serial COM like USB, SPI, I2C, UART. DSP, PWM, Counters,
Timers, QuadDec, DDS.... Youc an do custom compoennts using the fabric as
well, I did a SIPO 64 bit shifter recently to learn. There is a community of folks
that have created some components not in standard IDE, like DDS, 74HC
type logic, CORDIC

**broken link removed**

The low end board is $ 10, complete with debug.


1603282713847.png


A board with more I/o, and higher cost - https://www.sparkfun.com/products/13714



IDE, PSOC Creator, and compiler free.

**broken link removed**


Regards, Dana.
 

Attachments

  • Component List (2).pdf
    183 KB · Views: 69
Last edited:

MacBam

Newbie level 6
Newbie level 6
Joined
Nov 11, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
86
Yes on sine with WaveDAC component. In PSOC land a component
is an onchip resource. What freqs do you need ?

Attached is a component catalog for PSOC 5LP, there are lower end familes
with not as many on chip components. On chip you have logic, LUTs, DACs
OpAmps, Comparators, serial COM like USB, SPI, I2C, UART. DSP, PWM, Counters,
Timers, QuadDec, DDS.... Youc an do custom compoennts using the fabric as
well, I did a SIPO 64 bit shifter recently to learn. There is a community of folks
that have created some components not in standard IDE, like DDS, 74HC
type logic, CORDIC

**broken link removed**

The low end board is $ 10, complete with debug.


View attachment 165007

A board with more I/o, and higher cost - https://www.sparkfun.com/products/13714



IDE, PSOC Creator, and compiler free.



Regards, Dana.


MacBam

Newbie level 5

blevel2.gif

JoinedNov 11, 2014Messages8Helped0Reputation0Reaction score0Trophy points1Activity points47
Hi,
What is the resolution? I want to generate signal up to 300kHz with 100Hz steps. I already have the one at the top pictur
 

danadakk

Advanced Member level 5
Advanced Member level 5
Joined
Mar 26, 2018
Messages
2,296
Helped
351
Reputation
720
Reaction score
530
Trophy points
113
Activity points
10,092
300 Khz is a push. Its predicated by DAC settling time and sample rate
of the sine wave. So if we used 32 samples/cycle for the sine, then sample
rate is 300 Khz x 32 =~ 10 Msps. The VDAC is limited to 1 Msps. The IDAC
6 Msps. Note this is full scale

That being said these are 50% full scale transitions for the VDAC, 100%
for the IDAC. Since the step response is between adjacent samples that
would produce a much faster possible rate.

If you want I will test at 300 Khz both VDAC and IDAC and produce a spectral
response to see what we get ?

Regards, Dana.
 

danadakk

Advanced Member level 5
Advanced Member level 5
Joined
Mar 26, 2018
Messages
2,296
Helped
351
Reputation
720
Reaction score
530
Trophy points
113
Activity points
10,092
I think I can come close to 100 Khz, but 300 out of the question. Largely
due to rate I can trigger DMA to send out a sample. I did not look at
interleaved DMA which might help though.

Regards, Dana.
 

BradtheRad

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 1, 2011
Messages
14,753
Helped
2,872
Reputation
5,756
Reaction score
2,888
Trophy points
1,393
Location
Minneapolis, Minnesota, USA
Activity points
110,266
Simulated lissajous figure demonstrates, at all frequencies a capacitor produces 90 degree phase shift (with sine waves). This basic principle applies for all Farad values.
It changes phase from the original signal, so there's a question whether it can be put to work in your own project.

capacitor 90 degree phase shift lissajous.PNG
 

danadakk

Advanced Member level 5
Advanced Member level 5
Joined
Mar 26, 2018
Messages
2,296
Helped
351
Reputation
720
Reaction score
530
Trophy points
113
Activity points
10,092
I did a work around to run the WaveDAC8 at ~ 12 Mhz sample rate, 16 samples/cycle,
and got ~ 144 Khz sine, third harmonic was 25 db down. Keep in mind the sample rate
is set by the DMA rate (and its cycles needed).

This violated the timing on the VDAC8 used inside the WaveDAC8, so is not really a reproducible
solution.

FYI.

Regards, Dana.
 

MacBam

Newbie level 6
Newbie level 6
Joined
Nov 11, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
86
I did a work around to run the WaveDAC8 at ~ 12 Mhz sample rate, 16 samples/cycle,
and got ~ 144 Khz sine, third harmonic was 25 db down. Keep in mind the sample rate
is set by the DMA rate (and its cycles needed).

This violated the timing on the VDAC8 used inside the WaveDAC8, so is not really a reproducible
solution.

FYI.

Regards, Dana.
Ok thanks. 180kHz is unfortunately not enough for me.
--- Updated ---

Really depends on what you want to achieve. PLL can generate a signal phase shifted relative to a reference input, usually with fixed magnitude.
--- Updated ---

To be tracked by a PLL, the reference signal must be single frequency and quasi stationary.

I am going with the all-pass filter. Do you have any suggestions for a good Op-Amp ( I am running from 50kHz to 400kHz). I am thinking the GBW should be 20 X400 kHz and with low slew-rate?
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
50,994
Helped
14,632
Reputation
29,540
Reaction score
13,741
Trophy points
1,393
Location
Bochum, Germany
Activity points
291,755
High rather than low slew rate, according to the maximum signal voltage. I think many of recent CMOS general purpose OP can do. Don't know if the dynamic range requirements are particularly high? What's the acceptable differential phase ripple?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top