<?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>Other NXP ProductsのトピックFFT implementation on FRDM k64F</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/FFT-implementation-on-FRDM-k64F/m-p/1585183#M16461</link>
    <description>&lt;P&gt;Hi, i am trying to implement fft on frdm k64f. I am using the complex.h to work on complex numbers. I have also used the newlibNano of NXP MCU expresso compiler. But still my code is slow. If anyone can recommend any FFT library or how to speed up FFT code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(1) {&lt;/P&gt;&lt;P&gt;r1p=0;&lt;BR /&gt;//i1p=0;&lt;BR /&gt;r2p=0;&lt;BR /&gt;//i2p=0;&lt;/P&gt;&lt;P&gt;GPIO_PortToggle(BOARD_INITPINS_ptc2_GPIO, 1u &amp;lt;&amp;lt; BOARD_INITPINS_ptc2_PIN);&lt;BR /&gt;for (n = 0; n&amp;lt;((N/2)-1);n++)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;//Index for even and odd&lt;BR /&gt;eveind = 2*n;&lt;BR /&gt;oddind=(2*n)+1;&lt;/P&gt;&lt;P&gt;//Input for sin and cos&lt;BR /&gt;ang= -((2*pi*k*n)/(N/2))*I;&lt;/P&gt;&lt;P&gt;expc=cexp(ang);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Even Part&lt;BR /&gt;r1[0]= r1p +(x[eveind]*expc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;r1p=r1[0];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;//Odd Part&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;r2[0]= r2p +(x[oddind]*expc);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;r2p=r2[0];&lt;BR /&gt;//i2p=i1[0];&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//Calculation for multiplication with odd part&lt;/P&gt;&lt;P&gt;//Calculation for e&lt;BR /&gt;angm=-((2*pi*k)/(N))*I;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//COnverting back to the rectangular form&lt;BR /&gt;r2_[0]= r2[0]*cexpf(angm);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Adding odd and even parts of even and odd parts&lt;BR /&gt;rfft=(r1[0]+r2_[0])/(N/2);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;//Amp of fft final answer&lt;/P&gt;&lt;P&gt;magfft=cabsf(rfft);&lt;/P&gt;&lt;P&gt;//Toggle GPIO&lt;BR /&gt;GPIO_PortToggle(BOARD_INITPINS_ptc2_GPIO, 1u &amp;lt;&amp;lt; BOARD_INITPINS_ptc2_PIN);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 03:58:58 GMT</pubDate>
    <dc:creator>abdurrehman98</dc:creator>
    <dc:date>2023-01-19T03:58:58Z</dc:date>
    <item>
      <title>FFT implementation on FRDM k64F</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/FFT-implementation-on-FRDM-k64F/m-p/1585183#M16461</link>
      <description>&lt;P&gt;Hi, i am trying to implement fft on frdm k64f. I am using the complex.h to work on complex numbers. I have also used the newlibNano of NXP MCU expresso compiler. But still my code is slow. If anyone can recommend any FFT library or how to speed up FFT code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(1) {&lt;/P&gt;&lt;P&gt;r1p=0;&lt;BR /&gt;//i1p=0;&lt;BR /&gt;r2p=0;&lt;BR /&gt;//i2p=0;&lt;/P&gt;&lt;P&gt;GPIO_PortToggle(BOARD_INITPINS_ptc2_GPIO, 1u &amp;lt;&amp;lt; BOARD_INITPINS_ptc2_PIN);&lt;BR /&gt;for (n = 0; n&amp;lt;((N/2)-1);n++)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;//Index for even and odd&lt;BR /&gt;eveind = 2*n;&lt;BR /&gt;oddind=(2*n)+1;&lt;/P&gt;&lt;P&gt;//Input for sin and cos&lt;BR /&gt;ang= -((2*pi*k*n)/(N/2))*I;&lt;/P&gt;&lt;P&gt;expc=cexp(ang);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Even Part&lt;BR /&gt;r1[0]= r1p +(x[eveind]*expc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;r1p=r1[0];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;//Odd Part&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;r2[0]= r2p +(x[oddind]*expc);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;r2p=r2[0];&lt;BR /&gt;//i2p=i1[0];&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//Calculation for multiplication with odd part&lt;/P&gt;&lt;P&gt;//Calculation for e&lt;BR /&gt;angm=-((2*pi*k)/(N))*I;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//COnverting back to the rectangular form&lt;BR /&gt;r2_[0]= r2[0]*cexpf(angm);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Adding odd and even parts of even and odd parts&lt;BR /&gt;rfft=(r1[0]+r2_[0])/(N/2);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;//Amp of fft final answer&lt;/P&gt;&lt;P&gt;magfft=cabsf(rfft);&lt;/P&gt;&lt;P&gt;//Toggle GPIO&lt;BR /&gt;GPIO_PortToggle(BOARD_INITPINS_ptc2_GPIO, 1u &amp;lt;&amp;lt; BOARD_INITPINS_ptc2_PIN);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 03:58:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/FFT-implementation-on-FRDM-k64F/m-p/1585183#M16461</guid>
      <dc:creator>abdurrehman98</dc:creator>
      <dc:date>2023-01-19T03:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: FFT implementation on FRDM k64F</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/FFT-implementation-on-FRDM-k64F/m-p/1586206#M16489</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207473"&gt;@abdurrehman98&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;There are some Application notes that can help you, check that&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4255.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4255.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN2115.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN2115.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN13496.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN13496.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Sources-library-for-AN4255-FFT-Based-Algorithm-for-Metering/m-p/364330" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Sources-library-for-AN4255-FFT-Based-Algorithm-for-Metering/m-p/364330&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;"&gt;I hope this will help you&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;"&gt;Have a good day&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;Best Regards&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Montserrat; font-size: 12.0pt;" lang="es-MX"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 18:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/FFT-implementation-on-FRDM-k64F/m-p/1586206#M16489</guid>
      <dc:creator>CarlosGarabito</dc:creator>
      <dc:date>2023-01-20T18:26:38Z</dc:date>
    </item>
  </channel>
</rss>

