<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>CodeWarrior Development Tools中的主题 Re: VSPA NCO Formula &amp;amp; Parameter Mapping (LA12xx)</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/VSPA-NCO-Formula-amp-Parameter-Mapping-LA12xx/m-p/2358322#M9385</link>
    <description>&lt;P&gt;In fr1_fr2_test_tool there is the feature to configure NCO to send complex single tone at DAC sample rate with script send_single_tone.sh, for example,&lt;BR /&gt;./send_single_tone.sh 0 1000000 80 will send on antenna 0 with 1Mhz 80% scale single tone."&lt;BR /&gt;above command converts the 1MHz into the value to be set in NCO register, you can also see below description in in DFE_Ref_User_Guide.pdf,&lt;BR /&gt;Frequency factor =&lt;BR /&gt;4294967296*frequency/sampling_rate.&lt;BR /&gt;Frequency range from 1- 122880000Hz. Sampling rate=DCS sampling rate.&lt;BR /&gt;example: to send 1Mhz at sampling 491520000, freq_factor=4294967296*1000000/491520000 =&lt;BR /&gt;0x855555&lt;/P&gt;
&lt;P&gt;Regarding phase, default is starting from 0. Each NCO iteration generates 32 complex samples for example, then phase increase 32*phase_step automatically&lt;BR /&gt;phase_new = phase_old + 32*phase_step&lt;BR /&gt;the phase_step is your tone freq divided by sample_rate&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2026 07:34:48 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2026-04-29T07:34:48Z</dc:date>
    <item>
      <title>VSPA NCO Formula &amp; Parameter Mapping (LA12xx)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/VSPA-NCO-Formula-amp-Parameter-Mapping-LA12xx/m-p/2357118#M9382</link>
      <description>&lt;DIV&gt;I’m currently working with the VSPA processor and have a few technical questions about the NCO instruction.&amp;nbsp;&lt;SPAN&gt;This numerically controlled oscillator instruction is designed for complex sequence generation, as referenced in Chapter 4.21 of the LA12xx VSPA3 ISA reference manual.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have questions about the mathematical formula for NCO output described in the official document.&amp;nbsp;&lt;SPAN&gt;In the given formula, the initial phase variable (nco_phase) is placed within parentheses and multiplied by the frequency value (nco_freq).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For my application, I need to generate a signal following this standard complex exponential form:&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;2π × frequency × index + initial phase.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would like to confirm the precise mapping between this standard formula and the two configuration parameters: nco_phase and nco_freq.&amp;nbsp;&lt;SPAN&gt;Additionally, I need to know if a scaling factor is required to convert normalized floating-point values into valid 32-bit integer inputs for this processor.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your time and technical support.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Apr 2026 09:28:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/VSPA-NCO-Formula-amp-Parameter-Mapping-LA12xx/m-p/2357118#M9382</guid>
      <dc:creator>Fengsq</dc:creator>
      <dc:date>2026-04-28T09:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: VSPA NCO Formula &amp; Parameter Mapping (LA12xx)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/VSPA-NCO-Formula-amp-Parameter-Mapping-LA12xx/m-p/2358322#M9385</link>
      <description>&lt;P&gt;In fr1_fr2_test_tool there is the feature to configure NCO to send complex single tone at DAC sample rate with script send_single_tone.sh, for example,&lt;BR /&gt;./send_single_tone.sh 0 1000000 80 will send on antenna 0 with 1Mhz 80% scale single tone."&lt;BR /&gt;above command converts the 1MHz into the value to be set in NCO register, you can also see below description in in DFE_Ref_User_Guide.pdf,&lt;BR /&gt;Frequency factor =&lt;BR /&gt;4294967296*frequency/sampling_rate.&lt;BR /&gt;Frequency range from 1- 122880000Hz. Sampling rate=DCS sampling rate.&lt;BR /&gt;example: to send 1Mhz at sampling 491520000, freq_factor=4294967296*1000000/491520000 =&lt;BR /&gt;0x855555&lt;/P&gt;
&lt;P&gt;Regarding phase, default is starting from 0. Each NCO iteration generates 32 complex samples for example, then phase increase 32*phase_step automatically&lt;BR /&gt;phase_new = phase_old + 32*phase_step&lt;BR /&gt;the phase_step is your tone freq divided by sample_rate&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 07:34:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/VSPA-NCO-Formula-amp-Parameter-Mapping-LA12xx/m-p/2358322#M9385</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2026-04-29T07:34:48Z</dc:date>
    </item>
  </channel>
</rss>

