discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Where is the output enabled of rx reference clock for


From: Martin Dvh
Subject: [Discuss-gnuradio] Where is the output enabled of rx reference clock for dbsrx
Date: Tue, 25 Oct 2005 02:44:51 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030823

Hi,
I want to enable sync input and output pins and are looking for where the these 
should be set.
In my search for examples, I looked for the place where the output is enabled for the 4Mhz reference clock, which is output on io[0] for some daughterboards, like the dbsrx.

But I can't seem to find where this output is enabled.


usrp_basic.cc:
The only place in the code which seems to set the output enables is in 
probe_rx_slots in usrp_basic.cc
This code uses the value of the oe field of the daughterboard eeprom to set the 
output enables.
usrp_basic_rx::probe_rx_slots (bool verbose)
{
  struct usrp_dboard_eeprom     eeprom;
  static int slot_id_map[2] = { SLOT_RX_A, SLOT_RX_B };
  static const char *slot_name[2] = { "RX d'board A", "RX d'board B" };

  for (int i = 0; i < 2; i++){
    int slot_id = slot_id_map [i];
    const char *msg = 0;
    usrp_dbeeprom_status_t s = usrp_read_dboard_eeprom (d_udh, slot_id, 
&eeprom);

    switch (s){
    case UDBE_OK:
      d_dbid[i] = eeprom.id;
      msg = usrp_dbid_to_string (eeprom.id).c_str ();
      set_adc_offset (2*i+0, eeprom.offset[0]);
      set_adc_offset (2*i+1, eeprom.offset[1]);
      _write_fpga_reg (slot_id_to_oe_reg(slot_id), (0xffff << 16) | eeprom.oe);
      break;

So I looked for the values in the eeprom and these are set with burn-dbs-eprom
Here oe seems to be set to 0 for the dbsrx

in burn-dbs-eprom the oe field of the daughterboard eeprom is set to 0 (no 
outputs, only inputs)
slot_info = {
    'RX_A': { 'i2c_addr' : 0x55, 'dbid' : usrp_dbid.DBS_RX, 'oe' : 0x0000 },
    'RX_B': { 'i2c_addr' : 0x57, 'dbid' : usrp_dbid.DBS_RX, 'oe' : 0x0000 }
    }

So I am confused.
Am I missing something?

Thanks in advance.

Greetings,
Martin





reply via email to

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