# Shifted samples from USRP1

**URL:** <https://www.ruby-forum.com/t/shifted-samples-from-usrp1/227882>\
**Category:** GNU Radio\
**Created:** [April 1, 2013, 8:20pm UTC](https://www.ruby-forum.com/t/shifted-samples-from-usrp1/227882 "2013-04-01T20:20:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruben\_U](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3d9bf3/32.png) [@Ruben\_U](https://www.ruby-forum.com/u/Ruben_U)\
**Post date:** [April 1, 2013, 8:20pm UTC](https://www.ruby-forum.com/t/shifted-samples-from-usrp1/227882/1 "2013-04-01T20:20:20Z")

</div>

Hi,

I’m using the USRP1 and the UHD driver together with gnuradio. Often,  
especially at high sample rates (8MHz), the spectrum observed in the  
fftsink becomes distorted after a while. It becomes almost mirrored.  
Typically it happens after a couple of “overruns”. I have tried finding  
out  
the reason for this and I suspect it is because the samples from the  
USRP1  
are shifted so that what the computer thinks is the I1 sample is  
actually  
the Q0 sample. (When the samples are interleaved like this: I0 Q0 I1 Q1  
I2  
Q2 I3 Q3 I4 Q4 I5 Q5 …)

I have tried modifying the FPGA image so that the FPGA sends a constant  
positive sine wave to the computer and the same things happens also in  
this  
case. This narrows down the problem quite a lot… I have also tried  
modifying “rx\_buffer.v” so that the I-channel is delayed one clock cycle  
more than the Q-channel. This causes the same distortion to be apparent  
immediately when starting the USRP.

I wonder if you guys have any ideas about what may cause this and how it  
can be fixed?

Ruben

(I’m using the git version of uhd and gnuradio as of today)
