DSPRelated.com

fred harris (@fred_harris)

Professor of ECE. Following 50 years at SDSU now at UCSD. Specialty, Multirate Signal Processing, Physical Layer Modem Design, DSP Based Synchronization, Software Defined Radios, Fast Fourier transforms and Spectral Analysis. My nerd joke is that my housekeeper doesn't do windows, but I do widows.

Re: FFT Channelizer and PFB

Reply posted 5 years ago (10/08/2019)
here is myfrf called by channelizer_60_xfunction [DH,DW] = myfrf(N, F, GF, W, A, diff_flag)%---function [DH,DW] = remezfrf(N, F, GF, W, A, diff_flag)%REMEZFRF Frequency...

Re: FFT Channelizer and PFB

Reply posted 5 years ago (10/08/2019)
Try my 60-path, non-maximally decimated, perfect reconstruction filter bank:performs 30-to-1 down-sample, a binary mask (turn off subset of channels) and 1-to-30...

Re: reconstruct phase-shifted sine tone

Reply posted 5 years ago (08/04/2019)
my pleasure!hope the ideas are useful to you.fred

Re: reconstruct phase-shifted sine tone

Reply posted 5 years ago (08/04/2019)
Absurd isn't it? that's why i located my manuscript and added it my last reply...(and why I offered to send a copy in response to a request)fred

Re: reconstruct phase-shifted sine tone

Reply posted 5 years ago (08/04/2019)
try this versionautotestcon_2005.docfred h

Re: reconstruct phase-shifted sine tone

Reply posted 5 years ago (08/04/2019)
here is a paper that guides you to the phase continuity reconstructionUsing the FFT as an Arbitrary Function Generator, harris & LowdermilkAbstract:The inverse...
Hello Ronnu,You are mistaking an artifact for aliasing. The artifact is tied to your thinking that one can approximate a smooth signal by straight lines connecting...

Re: FFT Interpolation

Reply posted 5 years ago (07/26/2019)
My turn: The Fourier transform of a sampled data time series is a continuous periodic function of frequency. This is the Sampled Data Fourier Transform. We can use...

Re: 50Hz and harmonics filtering

Reply posted 5 years ago (02/09/2019)
hello all,the multiple notch filters do leave a residue as the signal plus 50 Hz harmonics go through multiple notch filter. We can do some house  cleaning with...

Re: 50Hz and harmonics filtering

Reply posted 5 years ago (02/07/2019)
what you want is a periodic notch... this is a comb filter with the periodic zeros accompanied by periodic poles slightly offset from the zeros.Same as zero packing...

Re: 50Hz and harmonics filtering

Reply posted 5 years ago (02/07/2019)
A few questions.Is the 50 Hz a power main signal?Are the harmonics large compared to signal?What is sample rate? How many harmonics (1, 2,... all the way out to...

Re: Understanding the concept of Polyphase Filters

Reply posted 5 years ago (02/05/2019)
Code_warrior,The book in which my chapter appears is"Orthogonal Waveforms and Filter banks for Future Communication Systems"Editors: Markku Refors, Xavier Mestre,...

Re: Folded FIR filter in Matlab or Octave

Reply posted 5 years ago (02/04/2019)
Attached is matlab script I used for solution to a HW problem. Compare time interval for convolution of 415 tap filter with 100 K data set using 5 options. 1:Direct...

Re: Folded FIR filter in Matlab or Octave

Reply posted 5 years ago (02/01/2019)
Hi Mark,It is indeed a small world. Where are you located?We should meet some time and I can show you some really interesting stuff.I just sent out the attached...

Re: Understanding the concept of Polyphase Filters

Reply posted 5 years ago (02/01/2019)
This is a small chapter of a book on filter banks.It is a nice introduction to polyphase filters. Also a supplement that contains some matlab code.might also want...

Re: PSD estimation when I have oversampled data

Reply posted 5 years ago (01/18/2019)
Hello dsavio,You did not describe the BW of the noise. You described its density function but not its spectral spread. Is the noise band-limited to the signal bandwidth...

Re: Folded FIR filter in Matlab or Octave

Reply posted 5 years ago (01/15/2019)
You didn't tell us some other important things. Is the BW small compared to the sample rate? If it is you can partition the filter to an M-path filter operating...

Re: fixing sample rate error/mismatch

Reply posted 5 years ago (01/15/2019)
xilinx_DSP_Small_room.pdf. This is a common problem when you are presenting and accepting data streams with different clock domains: it is called clock domain alignment....

Re: Matlab-implementation of dynamic range compressor

Reply posted 5 years ago (01/14/2019)
AGC_paper_.pdfThe second log/ln block is the inverse log... you have to undo the input log... you have a feed forward system... might want to consider a feedback...

Re: Overlap-add with window

Reply posted 5 years ago (01/09/2019)
hello CTLEE,fast_conv_2.mAttached is a matlab HW solution and demonstration I used for my DSP class,,, It performs a convolution of a 100000 data sequence (two sinusoids)...

Re: SDR Direct-RF User Symbol Rate

Reply posted 5 years ago (01/04/2019)
The problem you have is that the center frequency you want is not in the baseband Nyquist zone. You have to access a higher Nyquist zone. The way you do this is...

Re: Understanding AD9364 Direct Conversion RFIC

Reply posted 5 years ago (01/02/2019)
The signal presented to the mixer is presented to two mixers, with quadrature versions of the local oscillator. There is an in-phase and quadrature version of the...

Re: SDR Direct-RF User Symbol Rate

Reply posted 5 years ago (12/31/2018)
Hello ee3sdc,If you can find a copy of my book, Mulirate signal processing, I do an OK job describing the modulator structure which includes a polyphase filter for...

Re: SDR Direct-RF User Symbol Rate

Reply posted 5 years ago (12/30/2018)
You can follow your shaping filter output with the arbitrary interpolator and go to any sample rate you want and the heterodyne trivially to the quarter sample rate.run...

Re: SDR Direct-RF User Symbol Rate

Reply posted 5 years ago (12/30/2018)
spawar_modem_2a.mThe standard approach is to use the sqrt Nyquist filter for two tasks: the first is to perform the spectral and temporal shaping and the second...

Re: Real to Complex conversion

Reply posted 5 years ago (12/14/2018)
Hilb_xfrm_options.mThe real to complex transformation of the time series can also be performed by the weaver modulator... Heterodyne the quarter sample rate to DC,...
There should be a "recall" button to perform that function!fred
Don't confuse linear phase with even symmetric. Normally linear phase comes from a zero phase design which builds a non causal impulse response... the linear phase...
PLL_Derivation.pdfThe two signals presented to the product phase detector are sin(w_o t  + phi_1) and cos(w_o t + phi_2) ... or sin(w_o t  + phi_1) and sin(w_o...
% quad phase FIR filterfor k=1:80H0=zeros(1,64);H0(33+(-7:7))=[0.23 0.77 ones(1,11) 0.77 0.23];H1=[0 H0(2:64).*exp(+1i*2*pi*0.0002*k*(-31:31).^2)];H1=fftshift(H1);h11=fftshift(fft(H1));h1=h11(1:64);h1=h1/sum(h1);figure(22)subplot(2,1,1)stem(-32:31,h1,'linewidth',2);grid...
The problem I was solving was building a control signal with a given power spectra but with a small PAPR. That's why I modified the white noise by a spectral product...
This is an old problem. I would suggest book by Manfred Schroeder,Number Theory in Science and Communication: with applications in Cryptography, Physics, Biology,...

Re: Automatic Frequency Correction AFC in DSP

Reply posted 6 years ago (10/12/2018)
WPMC_2010_BE_Filters_5 .pdfThere are a number of ways to estimate small frequency offsets... most traditional one is to first perform time estimate then sample output...

Re: DC Blocking unexpected results

Reply posted 6 years ago (08/11/2018)
tony,, the window changed the amount of dc by weighting the envelope... I ran into that years ago when i plated a lot with windows. You can apply the window ad take...
Hello Milad,You are trying to build a biquad low-pass filter with a large ratio of sample rate to bandwidth. The biquad is ill conditioned for this task, see attached...
Your problem is probably the costas loop.. you really want to have a timing recovery loop to identify the correct timing samples... using a polyphase matched filter...

Re: Interpolated FIR filter group delay

Reply posted 6 years ago (05/18/2018)
I have written lots and lots of papers on how to design very narrow bandwidth filters.. Have two options IIR and FIR... in IIR you design filter bandwidth at 1/4...

Re: CIC filters with decimation ratio jitter

Reply posted 6 years ago (05/06/2018)
The problem you are describing is not the fault of the cIC. The CIC is a recasting of the N-Tap boxcar integrator which becomes the cascade of an integrator (the...

Re: DSP diagramming software?

Reply posted 6 years ago (04/14/2018)
I use corel-draw... great graphics package ... i get compliments all the time for their quality and often have people switch from their drawing package to corel-draw. A...
simplest possible waveshape, complex sinusoid with a phase angle:x=(1+j1)*exp(j*phi*n)= sqrt(2) exp(j*phi*n+j*pi/4)
Mr E.I ran the coefficients of the A-weighted filters you identified in(http://jenshee.dk/signalprocessing/aweighting.pdf)The coefficients for each biquad form filters...

Re: spectrum of rectangular pulse using two methods

Reply posted 6 years ago (03/04/2018)
I couldn't attach matlab file so here it is in textf_h1a=zeros(1,211);f_h1a(107+(-10:10))=ones(1,21);f_h1=fftshift(f_h1a);figure(1)subplot(2,1,1)plot((-0.5-1/422:1/211:0.5-2/422)*211,f_h1a,'linewidth',2)grid...

Re: spectrum of rectangular pulse using two methods

Reply posted 6 years ago (03/04/2018)
Here is the problem...The continuous rectangle spanning the interval -NT to +NT has a continuous transform often called the sinc of the form h(f)= 1/(2*NT) *sin(2*pi*f*2NT/2)/(2*pi*f*2NT/2)the...

Re: Looking for tips to improve SNR

Reply posted 6 years ago (01/22/2018)
It sounds as if the I-Q down conversion from the first (digital) IF to second (digital) IF centered at 1 kHz i keeping the signal real unless you are using the...

Re: Looking for tips to improve SNR

Reply posted 6 years ago (01/22/2018)
Hi greg... we need some more information... you said "demodulate and detect tones"... "tones" suggests more than one option. Is the tone a single tone with one of...

Re: Side lobes reduction after FFT

Reply posted 6 years ago (01/19/2018)
Hi Rick,always nice to reach out and touch you (old phone company advertisement)...I always enjoy your contributions too!fred

Re: Side lobes reduction after FFT

Reply posted 6 years ago (01/18/2018)
editing out undesired high sidelobes is a process called excision... it is a messy process that is often applied in frequency domain to remove tonal jammers in...

Re: Side lobes reduction after FFT

Reply posted 6 years ago (01/18/2018)
...

Re: Side lobes reduction after FFT

Reply posted 6 years ago (01/18/2018)
Hello Imosh,standard response to high spectral side-lobes is to increase "beta", the time bandwidth product of the Kaiser window... doing so of course increases...
tst_pdm_41717.mI made some changes in your code... run this version ( I didn't change name)
last comment... don't use full amplitude in sigma-delta ... scale input to be less than 1 as shownx = 0.9*sin(1*pi*[-n:1:n]*(f1/fs)); 
I have spent a fair amount of time  with your code so i feel ok making some other suggestionsget rid of the window on the data... you want the window in the transform%x1...
One more suggestion, change your filter to have falling sidelobes rather than constant sidelobes.. use my modified remez.. that calls myfrf... see remez_frf_example...
Chalil,I tried running your code... i don't have thd(-,-)Strange as it seems, try changing the frequency of the fundamental so it is no longer harmonically related...
Chalil,I'm suggesting you read a paper i wrote with titleReduce Energy Requirements by Coupling a Poly-Phase Pre-filter and CIC Filter in High-Performance Sigma-Delta...

Re: Impulse behavior of FIR LP filter

Reply posted 6 years ago (01/12/2018)
You can eliminate, or reduce to any desired level, the overshoot in the ring-up transient by reducing the size of the impulse response side lobes... one way to do...

Re: Impulse behavior of FIR LP filter

Reply posted 6 years ago (01/12/2018)
ah,ha... got it!fred

Re: Impulse behavior of FIR LP filter

Reply posted 6 years ago (01/11/2018)
Rick, how does one attach a figure to the reply?

Re: Impulse behavior of FIR LP filter

Reply posted 6 years ago (01/11/2018)
Hi, all,I think the 3% amplitude ripple is simply the starting transient of the 1-to-8 interpolator. If we have a random phase between cosine and sampling process...

Re: WLAN Demodulation in MATLAB

Reply posted 6 years ago (01/07/2018)
your multiplication is performing a circular convolution with the channel power spectrum.. the channel and its matched filter response to account for the spectral...

Re: Artifacts in Time Varying IIR Filters

Reply posted 6 years ago (01/04/2018)
Dan, send my your e-mail address (fjharris [at] eng.ucsd.edu) and I'll send you the papers,fred

Re: Artifacts in Time Varying IIR Filters

Reply posted 6 years ago (01/04/2018)
Hi Dan,The bi-quadratic filter, contrary to its popular usage, is not a good candidate for very narrow bandwidth filters. By narrow bandwidth, I mean a large ratio...

Re: Spread Sinc (ssinc) filter

Reply posted 6 years ago (01/03/2018)
Another comment... the zero-packed CIC that produces multiple spectral copies which are suppressed by a second CIC  is reminiscent of a filter design technique...

Re: Spread Sinc (ssinc) filter

Reply posted 6 years ago (01/03/2018)
Hello all,I looked at the spectrum of one of the s-sinc filters: Once you see it, you know how the filter was designed. They are cascades of multiple CIC filters....

Re: FFT complexity

Reply posted 6 years ago (12/13/2017)
The (N/2)log2(N) is a count of the number of butterfly operations on the signal flow graph. The number of complex multiplies and sum and difference operations is...

Use this form to contact fred_harris

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address