<?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 How to controll results? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438866#M4065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have to compute some values like current and resistance by software. I mean, I set a particular voltage from 0V to 3.3V ( so from 0 to 65534, for 16 bit) by software on a Digital to Analog Converter, then I want to compute the current, so I define the resistance (for example for 1 ohm resistance, I will write R= 19858, considering 16 bit, i Don't know if it is right) and then I compute the current I= voltage/R; Now, first of all, I don't know if it is possible to compute the current in this way, please, let me know how can I do. The second problem is that I want to verify this result, I mean, i want to veify if the current is right&amp;nbsp; and I want to see the value of I (the current), on arduino I used the serial port and I wrote printf ("current", I); and i could see the result, is&amp;nbsp; there a way to see the results on KDS? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 16:19:26 GMT</pubDate>
    <dc:creator>piergiusepperan</dc:creator>
    <dc:date>2015-10-28T16:19:26Z</dc:date>
    <item>
      <title>How to controll results?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438866#M4065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have to compute some values like current and resistance by software. I mean, I set a particular voltage from 0V to 3.3V ( so from 0 to 65534, for 16 bit) by software on a Digital to Analog Converter, then I want to compute the current, so I define the resistance (for example for 1 ohm resistance, I will write R= 19858, considering 16 bit, i Don't know if it is right) and then I compute the current I= voltage/R; Now, first of all, I don't know if it is possible to compute the current in this way, please, let me know how can I do. The second problem is that I want to verify this result, I mean, i want to veify if the current is right&amp;nbsp; and I want to see the value of I (the current), on arduino I used the serial port and I wrote printf ("current", I); and i could see the result, is&amp;nbsp; there a way to see the results on KDS? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 16:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438866#M4065</guid>
      <dc:creator>piergiusepperan</dc:creator>
      <dc:date>2015-10-28T16:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to controll results?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438867#M4066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think your solution of calculating current is OK.&lt;/P&gt;&lt;P&gt;regarding how to see result with KDS, i suggest you use printf. here is an article for this topic,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104349"&gt;How to use printf() to print string to Console and UART in KDS2.0&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this help you?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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, 03 Nov 2015 06:56:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438867#M4066</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-11-03T06:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to controll results?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438868#M4067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Your calculation is a bit confusing (for me)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here ist my way to solve that problem (if you can use float-values):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;float R = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // [Ohm]&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;int16_t U_raw = acd_get_result();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // replace with your function&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;float U = (float)U_raw&amp;nbsp; * ( 3.3 / 2^16 );&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // [Volt] (or replace (3.3/2^16) with 0.00005)&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;float I = U / R;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // [Ampere]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 10:02:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438868#M4067</guid>
      <dc:creator>petertoenz</dc:creator>
      <dc:date>2015-11-05T10:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to controll results?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438869#M4068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter, I already did like you sugested and It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 17:12:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-controll-results/m-p/438869#M4068</guid>
      <dc:creator>piergiusepperan</dc:creator>
      <dc:date>2015-11-05T17:12:52Z</dc:date>
    </item>
  </channel>
</rss>

