usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

USRP B210 External reference selection

GG
Guillermo Gancio
Thu, Apr 21, 2016 1:21 PM

Hello to all,

I'm using a USRP B210 Board and I need to use the external 10Mhz
reference, I'm using as base for my application (almost complete) the
rx_sample_c.c and by reading the Ettus manual cant figure out how to
select the external SMA reference, (I'm no expert in C code, just to
make things do what I need).

Any help will be appreciated.

Best regards,
Guillermo Gancio.<div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />

<table style="border-top: 1px solid #aaabb6;"> <tr> <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-open-tick-round-orange-v1.png" /></a></td> <td style="width: 470px; padding-top: 20px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color: #4453ea;">www.avast.com</a> </td> </tr> </table> <a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
Hello to all, I'm using a USRP B210 Board and I need to use the external 10Mhz reference, I'm using as base for my application (almost complete) the rx_sample_c.c and by reading the Ettus manual cant figure out how to select the external SMA reference, (I'm no expert in C code, just to make things do what I need). Any help will be appreciated. Best regards, Guillermo Gancio.<div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #aaabb6;"> <tr> <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-open-tick-round-orange-v1.png" /></a></td> <td style="width: 470px; padding-top: 20px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color: #4453ea;">www.avast.com</a> </td> </tr> </table> <a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
MM
Marcus Müller
Thu, Apr 21, 2016 3:39 PM

Hi Guillermo,

In general, you should only use the C API instead of the native C++ API
(UHD is C++) if you're really bound to using C; if you can choose, don't
use the C API but stick with UHD in its native language.

That being said, you'll find the documentation for the
uhd_usrp_set_clock_source method in [1]; use it like
uhd_usrp_set_clock_source(usrp_handle, "external", 0); // 0: first USRP.

Best regards,
Marcus

[1]
http://files.ettus.com/manual/usrp_8h.html#aa1ea9e74914bed971d8b11bfa33d410d

On 21.04.2016 15:21, Guillermo Gancio via USRP-users wrote:

Hello to all,

I'm using a USRP B210 Board and I need to use the external 10Mhz
reference, I'm using as base for my application (almost complete) the
rx_sample_c.c and by reading the Ettus manual cant figure out how to
select the external SMA reference, (I'm no expert in C code, just to
make things do what I need).

Any help will be appreciated.

Best regards,
Guillermo Gancio.<div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br />

<table style="border-top: 1px solid #aaabb6;"> <tr> <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-open-tick-round-orange-v1.png" /></a></td> <td style="width: 470px; padding-top: 20px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color: #4453ea;">www.avast.com</a> </td> </tr> </table> <a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>

USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Hi Guillermo, In general, you should only use the C API instead of the native C++ API (UHD is C++) if you're really bound to using C; if you can choose, don't use the C API but stick with UHD in its native language. That being said, you'll find the documentation for the uhd_usrp_set_clock_source method in [1]; use it like uhd_usrp_set_clock_source(usrp_handle, "external", 0); // 0: first USRP. Best regards, Marcus [1] http://files.ettus.com/manual/usrp_8h.html#aa1ea9e74914bed971d8b11bfa33d410d On 21.04.2016 15:21, Guillermo Gancio via USRP-users wrote: > Hello to all, > > I'm using a USRP B210 Board and I need to use the external 10Mhz > reference, I'm using as base for my application (almost complete) the > rx_sample_c.c and by reading the Ettus manual cant figure out how to > select the external SMA reference, (I'm no expert in C code, just to > make things do what I need). > > Any help will be appreciated. > > Best regards, > Guillermo Gancio.<div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> > <table style="border-top: 1px solid #aaabb6;"> > <tr> > <td style="width: 55px; padding-top: 18px;"><a > href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" > target="_blank"><img > src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-open-tick-round-orange-v1.png" > /></a></td> > <td style="width: 470px; padding-top: 20px; color: #41424e; > font-size: 13px; font-family: Arial, Helvetica, sans-serif; > line-height: 18px;">Libre de virus. <a > href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" > target="_blank" style="color: #4453ea;">www.avast.com</a> </td> > </tr> > </table> > <a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div> > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com