# Transmitter Output Level

**URL:** <https://discourse.myriadrf.org/t/transmitter-output-level/4808>\
**Category:** System Development\
**Created:** [7 June 2019 05:17 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808 "2019-06-07T05:17:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [7 June 2019 05:17 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/1 "2019-06-07T05:17:31Z")

</div>

Hello,  
We are getting a strange spectrum when trying to generate a single tone:  
Settings: CGEN 200MHz.  
DIQ1 BB interface sending single tone at full scale (12 bits)

TSG test:

 ![IMG_20190607_124630%20(Small)](https://canada1.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/d/d9bd5cd89f6723d35551fe74e79397129dee2259.jpeg)

CGEN set to 200MHz. Default TSG is TSPclk/8 (TSPclk = CGEN by default) so single tone should be at 200MHz/8 = 25MHz but in this case it is at 12.5MHz.  
Output set to maximum gain.

1. When sending a signal from FPGA:  

2. Modifying txpad gain to -30dB  

Please advise,  
Regards,

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [10 June 2019 03:36 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/2 "2019-06-10T03:36:22Z")

</div>

Hello @Zack,  
Sorry to bother you again, looking forward to your help in fixing this problem.  
Regards,

---

<div class="post-metadata">

**Author:** ![Zack](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/zack/32/89_2.png) [@Zack](https://discourse.myriadrf.org/u/Zack)\
**Post date:** [10 June 2019 06:44 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/3 "2019-06-10T06:44:04Z")

</div>

> [@EnthuMan](#):
>
> CGEN set to 200MHz. Default TSG is TSPclk/8 (TSPclk = CGEN by default) so single tone should be at 200MHz/8 = 25MHz but in this case it is at 12.5MHz.

It looks like interpolation by 2 is engaged. In this case, as I wrote some time ago, tone frequency should be 200MHz/8/2 = 12.5MHz - this is what you correctly get.

> [@EnthuMan](#):
>
> When sending a signal from FPGA:

It looks like you send the same sample to channel I as well as channel Q.

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [10 June 2019 07:19 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/4 "2019-06-10T07:19:22Z")

</div>

Hello @Zack,  
For the spectrum, I am not sure why it would be an issue to send the same data on both I and Q.  
I changed the data to I and Q = zeros and the spectrum is as follows:

 ![IMG_20190610_124532%20(Small)](https://canada1.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/9/992984620802c970eb67ea6ab01db0847c7aabec.jpeg)  
I will work towards sending the correct Q, but did this to get a quick idea.  
Does this look correct?  
Regards,

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [10 June 2019 10:41 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/5 "2019-06-10T10:41:52Z")

</div>

Hello @Zack,  
Modified the design to produce both I and Q (sine and cosine) and getting the following output for a 6MHz tone.

 ![IMG_20190610_160827%20(Small)](https://canada1.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/7/75adb483ce726077f251831e109c97ae3cb0dfd6.jpeg)  
Please advise.

---

<div class="post-metadata">

**Author:** ![Zack](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/zack/32/89_2.png) [@Zack](https://discourse.myriadrf.org/u/Zack)\
**Post date:** [10 June 2019 11:00 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/6 "2019-06-10T11:00:01Z")

</div>

Hi @EnthuMan,

It looks like you have timing issues at the interface. And I still think that you provide the same sample to both I and Q channels, while your wanted and image signals are the same. If sampling is OK, then you should get something similar as in your first picture in this thread.

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [10 June 2019 11:04 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/7 "2019-06-10T11:04:08Z")

</div>

Hello @Zack,  
Please advise on how to fix it. Will checking it at digital loopback level help or is a it a problem between the read and write clocks of the TxFIFO?

---

<div class="post-metadata">

**Author:** ![EnthuMan](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EnthuMan](https://discourse.myriadrf.org/u/EnthuMan)\
**Post date:** [11 June 2019 03:50 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/8 "2019-06-11T03:50:20Z")

</div>

Hello @Zack,  
Is the read clock of the TxFIFO in digital loopback mode dependent on the interpolation setting?  
Is the write clock of the RxFIFO dependent on the decimation setting int he digital loopback mode?  
What would be very helpful also are all the settings needed for to properly configure digital loopback.  
We are trying at our end but getting all kinds of data.  
Thanks,

---

<div class="post-metadata">

**Author:** ![Zack](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/zack/32/89_2.png) [@Zack](https://discourse.myriadrf.org/u/Zack)\
**Post date:** [11 June 2019 05:00 UTC](https://discourse.myriadrf.org/t/transmitter-output-level/4808/9 "2019-06-11T05:00:46Z")

</div>

> [@EnthuMan](#):
>
> Is the read clock of the TxFIFO in digital loopback mode dependent on the interpolation setting?

No.

> [@EnthuMan](#):
>
> Is the write clock of the RxFIFO dependent on the decimation setting int he digital loopback mode?

No.

BB data loopback at LML port (assuming LML1 is BB2RF; LML2 is RF2BB. Assuming default values at startup):

1. Set all the required TSP and LML registers as per your application;
2. Set RX\_MUX(0x002A[11:10]) = 01b;
3. Set RXWRCLK\_MUX(0x002A[1:0]) = 00b.
