<?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>Kinetis MicrocontrollersのトピックRe: K20 FLOATING COPROCESSOR</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FLOATING-COPROCESSOR/m-p/515571#M32604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in addition, only the part number with "F" has floating point module. for example K22F can support FP but K20 can't.&lt;/P&gt;&lt;P&gt;with K22F, we can set floating support as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60471i2E1A80C38098AD1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 09:49:40 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2016-06-14T09:49:40Z</dc:date>
    <item>
      <title>K20 FLOATING COPROCESSOR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FLOATING-COPROCESSOR/m-p/515569#M32602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm not certain if K20 has a floating coprocessor .&lt;/P&gt;&lt;P&gt;I've the following line in the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ad_result2_word=(float)DAC2_prev*((float)result_1/(float)result_2);&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;ad_result2_word,DAC2_prev are uint32_t and result_1,result_2 are uint16_t&lt;/P&gt;&lt;P&gt;when I single step through the code I can verify the result as correct however when I let it run for awhile and stop it the result are bogus values.&lt;/P&gt;&lt;P&gt;I'm using KDS for the project .&lt;/P&gt;&lt;P&gt;I'M NOT SURE IF I'M DOING THIS MULTIPICATION CORRECTLY OR IF KDS IS USING SOME FLOATING LIBRARY OR EVEN IF K20 HAS A FPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;P&gt;248-778-6396&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:08:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FLOATING-COPROCESSOR/m-p/515569#M32602</guid>
      <dc:creator>kooroshhajiani</dc:creator>
      <dc:date>2016-06-06T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FLOATING COPROCESSOR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FLOATING-COPROCESSOR/m-p/515570#M32603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;The part has to have a 'K20F' start to the P/N to be a 'single precision float hardware' part&lt;/LI&gt;&lt;LI&gt;The 'floating instruction decode' has to be enabled in the system control register: 0xE000ED88 CPACR RW - Coprocessor Access Control Register&lt;/LI&gt;&lt;LI&gt;The compiler has to be 'told' you are using a 'float point capable' part so that it will insert float-instructions where it can, rather than library-routine access.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;BUT 'ideally' the library-routines and the hardware would *ALWAYS* return the same values, the only DIFFERENCE should be the execution time + code size for the library (and of course the actual instruction stream, which you should look at to SEE the 'float' instructions to 'know what you get').&amp;nbsp; That is to say, you should look elsewhere for 'bogus values' coming out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FLOATING-COPROCESSOR/m-p/515570#M32603</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-06-06T19:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FLOATING COPROCESSOR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FLOATING-COPROCESSOR/m-p/515571#M32604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in addition, only the part number with "F" has floating point module. for example K22F can support FP but K20 can't.&lt;/P&gt;&lt;P&gt;with K22F, we can set floating support as&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60471i2E1A80C38098AD1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 09:49:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FLOATING-COPROCESSOR/m-p/515571#M32604</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-06-14T09:49:40Z</dc:date>
    </item>
  </channel>
</rss>

