<?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 MCF52259 - ADC calculations in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-ADC-calculations/m-p/203732#M9489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working on MCF52259 ADC module. I am using an filtering equation to conver the raw value scanned to filter value. But the filtering equation returns the value in float which should be sent to Master via a 16 bit register. I have the following doubts now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) can we declare float variables in micro controller programming?&lt;/P&gt;&lt;P&gt;2) How do i transfer the converted float value to master using 16 bit register?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sai bhargavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 18:35:10 GMT</pubDate>
    <dc:creator>saibhargavi</dc:creator>
    <dc:date>2010-05-28T18:35:10Z</dc:date>
    <item>
      <title>MCF52259 - ADC calculations</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-ADC-calculations/m-p/203732#M9489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working on MCF52259 ADC module. I am using an filtering equation to conver the raw value scanned to filter value. But the filtering equation returns the value in float which should be sent to Master via a 16 bit register. I have the following doubts now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) can we declare float variables in micro controller programming?&lt;/P&gt;&lt;P&gt;2) How do i transfer the converted float value to master using 16 bit register?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sai bhargavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 18:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-ADC-calculations/m-p/203732#M9489</guid>
      <dc:creator>saibhargavi</dc:creator>
      <dc:date>2010-05-28T18:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 - ADC calculations</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-ADC-calculations/m-p/203733#M9490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, floating point is supported.&lt;/P&gt;&lt;P&gt;As for the second question, I'm not sure what you mean. What exactly is Master and the 16-bit register? A variable of type float is 4 bytes in size. You should either split it in 2 16-bit chunks and transfer in 2 steps, or convert the float to a 16-bit type (loosing some precision in the process) and send the converted 16-bit value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 18:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-ADC-calculations/m-p/203733#M9490</guid>
      <dc:creator>scifi</dc:creator>
      <dc:date>2010-05-28T18:56:29Z</dc:date>
    </item>
  </channel>
</rss>

