discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Re: usrp1 harmonic issue


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Re: usrp1 harmonic issue
Date: Wed, 1 Apr 2009 07:25:49 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Apr 01, 2009 at 07:32:04AM +0000, feldmaus wrote:
> Eric Blossom <eb <at> comsec.com> writes:
> 
> > To disable automatic ADC control on all ADC's:
> > 
> >   u.set_dc_offset_cl_enable(0x0, 0xf)
> > 
> > Then set the offset that you want for each ADC using:
> > 
> >   u.set_adc_offset(0, offset0)
> >   u.set_adc_offset(1, offset1)
> >   u.set_adc_offset(2, offset2)
> >   u.set_adc_offset(3, offset3)
> > 
> And if i only want to diable the automatic dc offset loop at
> ADC_0 and ADC_1, then:
> u.set_dc_offset_cl_enable(0x3, 0x3)
> 
> Is this correct ???

No, you'd want

  u.set_dc_offet_cl_enable(0x0, 0x3)

The mask specifies which of the bits will be touched.  value is the
value you want for those bits.  This allows us to do an atomic
read/modify/write.

If reg is a register in the FPGA, mask and value work like this:

  reg = (reg & ~mask) | (value & mask);

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]