<?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: DECIMAL NUMBER ARITHMATIC in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170339#M5681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;You will need to learn the "C" programming language, but yes it is.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2008 09:16:17 GMT</pubDate>
    <dc:creator>JimDon</dc:creator>
    <dc:date>2008-07-04T09:16:17Z</dc:date>
    <item>
      <title>DECIMAL NUMBER ARITHMATIC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170336#M5678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to this and am trying to do arithmetic on a decimal number in the following format:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;XXX.XXXXXX&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The arithmetic will include squaring, taking the square root, dividing and addition and subtraction.&amp;nbsp; What is the best way to go about this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:45:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170336#M5678</guid>
      <dc:creator>tballer</dc:creator>
      <dc:date>2008-07-04T03:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: DECIMAL NUMBER ARITHMATIC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170337#M5679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Depends on what you consider "best".&lt;BR /&gt;&lt;BR /&gt;The easiest way it to use doubles.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170337#M5679</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-07-04T03:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: DECIMAL NUMBER ARITHMATIC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170338#M5680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Is it easy then to square a number, lets say 128.3434434, and put it in memory in a 16 bit microcontroller?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 05:18:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170338#M5680</guid>
      <dc:creator>tballer</dc:creator>
      <dc:date>2008-07-04T05:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: DECIMAL NUMBER ARITHMATIC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170339#M5681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;You will need to learn the "C" programming language, but yes it is.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 09:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170339#M5681</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-07-04T09:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: DECIMAL NUMBER ARITHMATIC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170340#M5682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Using a C compiler for the specific MCU you use will enable you to have variables of float types and supportes also math (multiplication / division / root, even some trigonometry). Also when having variables and a C language enviroment is no problme 'store results' in memory.... However all these ends up with a lot of&amp;nbsp; code size increase, since float math nedds a lot of code to be implemented, but this should be no major problem if you have decent FLASH memory (eg 64 K or more...). Also, MCUs support integer math internally and up to multiplication / division, so doing a sqrt or a sine is also time consuming compared to sipler 8 / 16 bits math.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What's the need for doing such math ?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 14:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170340#M5682</guid>
      <dc:creator>nikosxan</dc:creator>
      <dc:date>2008-07-05T14:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: DECIMAL NUMBER ARITHMATIC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170341#M5683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;...Cont...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you really need do complex math (as float numbers support, sin / cosine, sqrt etc)&amp;nbsp; the only way to go is use a high level language (mostly C for microcontroller, but also Basic or even pascal could be found)...&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 14:43:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DECIMAL-NUMBER-ARITHMATIC/m-p/170341#M5683</guid>
      <dc:creator>nikosxan</dc:creator>
      <dc:date>2008-07-05T14:43:06Z</dc:date>
    </item>
  </channel>
</rss>

