<?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>topic Re: floating point in HC908QY4 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242699#M19613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Damian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the device you are using, I doubt that you will have sufficient resources for floating point calculations.&amp;nbsp; With a RAM capacity of 128 bytes, you will likely not be able to make the stack sufficiently large.&amp;nbsp; The 4K limit for flash memory might also be problematic for the floating point library functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These tiny devices were never intended to support floating point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your application, it may be feasible to alternatively use integer calculations for your processing.&amp;nbsp; Otherwise you will need to choose another MCU with considerably more RAM (and flash memory) resources.&amp;nbsp; This should be from the MC9S08 family, rather than the now obsolete MC908 family.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 02:15:00 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2013-02-01T02:15:00Z</dc:date>
    <item>
      <title>floating point in HC908QY4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242697#M19611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everythere... I'm using a QY4 to make a voltage/current mesurement, all the code is compiled in codewarrior 6.3 and made in C. The problem is when I multiply and divide to get the result in a floating point variable to show it in a LCD the program stops in the library RTSHC08.C in the sub-rutine _FMUL_Common instruction JSR _UNPACK_k_to_K; and the compiler sends this error:&lt;/P&gt;&lt;P&gt;Error: Attempt to push or pop with SP out of allowed range&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea??&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for my bad english. I read better than I write. jeje&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Damian&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 22:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242697#M19611</guid>
      <dc:creator>damiandesiderio</dc:creator>
      <dc:date>2013-01-30T22:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: floating point in HC908QY4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242698#M19612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is exact compiler message? Is this message really generated at compile time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try increasing stack size setting in PRM file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 05:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242698#M19612</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2013-01-31T05:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: floating point in HC908QY4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242699#M19613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Damian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the device you are using, I doubt that you will have sufficient resources for floating point calculations.&amp;nbsp; With a RAM capacity of 128 bytes, you will likely not be able to make the stack sufficiently large.&amp;nbsp; The 4K limit for flash memory might also be problematic for the floating point library functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These tiny devices were never intended to support floating point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your application, it may be feasible to alternatively use integer calculations for your processing.&amp;nbsp; Otherwise you will need to choose another MCU with considerably more RAM (and flash memory) resources.&amp;nbsp; This should be from the MC9S08 family, rather than the now obsolete MC908 family.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 02:15:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242699#M19613</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-02-01T02:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: floating point in HC908QY4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242700#M19614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is not a compiler message, it's a simulator message. I will try increase the stack size, I didn't know that I can that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 16:42:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242700#M19614</guid>
      <dc:creator>damiandesiderio</dc:creator>
      <dc:date>2013-02-01T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: floating point in HC908QY4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242701#M19615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The flash memory and the ram memory is enough, and the calculations are not too large, I think I will try increase the stack size.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 16:45:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/floating-point-in-HC908QY4/m-p/242701#M19615</guid>
      <dc:creator>damiandesiderio</dc:creator>
      <dc:date>2013-02-01T16:45:33Z</dc:date>
    </item>
  </channel>
</rss>

