discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Daughter board driver


From: Sriharsha Puranik
Subject: [Discuss-gnuradio] Daughter board driver
Date: Sun, 6 Nov 2011 19:52:49 -0500

Hi all,

I am writing a UHD driver for a new daughter board. I am having some problem regarding the GPIO/ATR register settings. I am able to use the daughter board with USRP1, but not with USRP2. With USRP2, I think, uhd_fft.py just shows noise. 

In the receiver class (inherited from rx_dboard_base), I am setting these registers like this - 

    #define TX_EN          (1 << 6)

    this->get_iface()->set_clock_enabled(dboard_iface::UNIT_RX, true);
    this->get_iface()->set_gpio_out(dboard_iface::UNIT_RX, TX_EN );
    this->get_iface()->set_gpio_ddr(dboard_iface::UNIT_RX, TX_EN );


    //setup the rx atr (this does not change with antenna)
    this->get_iface()->set_atr_reg(dboard_iface::UNIT_RX, dboard_iface::ATR_REG_IDLE,        0);
    this->get_iface()->set_atr_reg(dboard_iface::UNIT_RX, dboard_iface::ATR_REG_FULL_DUPLEX, TX_EN);

    this->get_iface()->set_pin_ctrl(dboard_iface::UNIT_RX, TX_EN);

But, USRP1 also works when I comment this piece of code. Can some one help me out with this?

I dont know much about the GPIO and ATR registers. Can some one point me to some documents?

Thanks,
Sriharsha Puranik.

reply via email to

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