<?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: sample code for PID controller in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/sample-code-for-PID-controller/m-p/165296#M4807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using MCF51CN128 microcontroller.&lt;/P&gt;&lt;P&gt;i want ot impliment PID controller using this microcontroller.&lt;/P&gt;&lt;P&gt;my feedback is current (DC) and using is current i vl control voltage. do you have any idea? please tell me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Jan 2012 20:19:52 GMT</pubDate>
    <dc:creator>Thyristercontro</dc:creator>
    <dc:date>2012-01-28T20:19:52Z</dc:date>
    <item>
      <title>sample code for PID controller</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/sample-code-for-PID-controller/m-p/165294#M4805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello everyone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm working on MC9S08QD2 8-bit and 8-pin microcontroller, so i have to implement PID control for output current in my application. so can anyone tell me how to calculate Kp,Ki and Kd values. and if anyone provide me the sample code for PID control, i wll be so much thankfull. and also if any application notes and reference for PID for this microcontroller is there , please send the link , i will download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so if anyone know please send me as early as possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 14:29:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/sample-code-for-PID-controller/m-p/165294#M4805</guid>
      <dc:creator>koka</dc:creator>
      <dc:date>2010-01-05T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: sample code for PID controller</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/sample-code-for-PID-controller/m-p/165295#M4806</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;there are plenty of application notes out there on how to implement PID compensation.&lt;/P&gt;&lt;P&gt;E.g. Freescale offers AN1215 for download. &lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN1215.pdf?fsrch=1" rel="nofollow" target="_blank"&gt;Get it here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For more, just use Google.&lt;/P&gt;&lt;P&gt;If you really want to &lt;EM&gt;calculate&lt;/EM&gt; Kp, Ki, Kd, you need to get into control theory, set up the closed loop equation for your particular application (which implies having a suitable model of the response characteristic of each component), define your requirements for speed, accuracy and stability range of your control and then go from there.&lt;/P&gt;&lt;P&gt;You might be better off&amp;nbsp; by simply setting up a lab experiment and find suitable values by trial and error. Start with P (keep D and I set to zero first).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 21:42:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/sample-code-for-PID-controller/m-p/165295#M4806</guid>
      <dc:creator>Kopone</dc:creator>
      <dc:date>2010-01-26T21:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: sample code for PID controller</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/sample-code-for-PID-controller/m-p/165296#M4807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using MCF51CN128 microcontroller.&lt;/P&gt;&lt;P&gt;i want ot impliment PID controller using this microcontroller.&lt;/P&gt;&lt;P&gt;my feedback is current (DC) and using is current i vl control voltage. do you have any idea? please tell me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2012 20:19:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/sample-code-for-PID-controller/m-p/165296#M4807</guid>
      <dc:creator>Thyristercontro</dc:creator>
      <dc:date>2012-01-28T20:19:52Z</dc:date>
    </item>
  </channel>
</rss>

