
|
  
Digital quadrature oscillator, part 1) A response to this thread on dsprelated.com.
Problem Generate a quadrature local oscillator signal that performs an upconversion to a frequency of of the clock rate, for example for use as a wavetable.
Matlab script n=16;
angle=(0:n-1)*2*pi/n;
LO_I=cos(angle);
LO_Q=-sin(angle);
figure(); hold on;
plot(LO_I, 'r+-');
plot(LO_Q, 'g+-');
legend('I', 'Q');
I and Q waveforms | For downconversion, invert the sign of I or Q signal.
  A possible implementation in C |
  
© Markus Nentwig 2007-2008
The content of this page is provided without any warranty and may not be reproduced without permission.
Comments? Questions?
Please send me a mail!
mnentwig@elisanet.fi
|