<?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 digital to analog converter in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/digital-to-analog-converter/m-p/126951#M429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I´m&amp;nbsp; using the DAC on the mc9s12e64 the first time and I´m woundering about the both 8 bit left and right oriented data register DACD. What´s the advantage of this??&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Thomas&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2006 15:46:20 GMT</pubDate>
    <dc:creator>ThomasH</dc:creator>
    <dc:date>2006-08-17T15:46:20Z</dc:date>
    <item>
      <title>digital to analog converter</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/digital-to-analog-converter/m-p/126951#M429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I´m&amp;nbsp; using the DAC on the mc9s12e64 the first time and I´m woundering about the both 8 bit left and right oriented data register DACD. What´s the advantage of this??&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Thomas&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 15:46:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/digital-to-analog-converter/m-p/126951#M429</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2006-08-17T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: digital to analog converter</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/digital-to-analog-converter/m-p/126952#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;When trying to do computation rapidly on real-world quantities, it is often helpful to look at integers as fractions of&amp;nbsp;a "full scale" value.&amp;nbsp; This has the nice feature that multiplication of two quantities less than 1 will always give a result less than 1.&amp;nbsp; So to scale a quantity, you just do a multiply and take the most significant bits.&amp;nbsp; No shifting involved, just word operations.&lt;/P&gt;&lt;P&gt;Its real easy in assembler, but a little awkward in C, so hiding it in some function written in assembly may be a good idea.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like a fractional arithmetic class in C++ would make this easy, but I'm not aware of one.&amp;nbsp; (I haven't had occasion to look.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 00:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/digital-to-analog-converter/m-p/126952#M430</guid>
      <dc:creator>SteveRussell</dc:creator>
      <dc:date>2006-08-18T00:25:28Z</dc:date>
    </item>
  </channel>
</rss>

