<?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: Connect Servo HCS08 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Connect-Servo-HCS08/m-p/168108#M5045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear MOSREJLS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions a bit vague!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you mean a RC model servo or a DC motor that you wish to use as a servo?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you mean a RC servo then the servo pin may be driven directly from the PWM (pulse-width-modulated) output of a micro if it is operating at 5V.&amp;nbsp; A 3V micro may require a level shifter to 5V (a single transistor hopefully).&lt;/P&gt;&lt;P&gt;The main problem is software - programming the PWM to produce a 20ms period waveform with a high-time of between 1 to 2 ms (from memory).&amp;nbsp; Do a search on the web for a description of how RC servos work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you mean a DC-motor then its much more complicated and well beyond what could be described here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 11:03:41 GMT</pubDate>
    <dc:creator>pgo</dc:creator>
    <dc:date>2010-01-19T11:03:41Z</dc:date>
    <item>
      <title>Connect Servo HCS08</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Connect-Servo-HCS08/m-p/168106#M5043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I connect a servo to the HCS08 microcontroller? I have to make the servo move using the POT but I can't even get started because I don't know how to physsically connect it&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 09:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Connect-Servo-HCS08/m-p/168106#M5043</guid>
      <dc:creator>MOSREJLS</dc:creator>
      <dc:date>2010-01-18T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Servo HCS08</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Connect-Servo-HCS08/m-p/168107#M5044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thats more of a hardware question than a compiler question...&lt;/P&gt;&lt;P&gt;But basically you need to connect a MOSFET or transistor to a pin on the MCU, and drive the MCU's pin with a pulsewidth modulator to controll the speed of the motor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if you want the motor to run in both directions you need to use more transistors ( or MOSFETS) in an H bridge configuration and 1 or 2 more I/O&amp;nbsp; pins to select the direction of said H Bridge and the PWM pin is used to determine the speed of the motor in the selected direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 23:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Connect-Servo-HCS08/m-p/168107#M5044</guid>
      <dc:creator>Vasilakes</dc:creator>
      <dc:date>2010-01-18T23:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Servo HCS08</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Connect-Servo-HCS08/m-p/168108#M5045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear MOSREJLS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions a bit vague!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you mean a RC model servo or a DC motor that you wish to use as a servo?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you mean a RC servo then the servo pin may be driven directly from the PWM (pulse-width-modulated) output of a micro if it is operating at 5V.&amp;nbsp; A 3V micro may require a level shifter to 5V (a single transistor hopefully).&lt;/P&gt;&lt;P&gt;The main problem is software - programming the PWM to produce a 20ms period waveform with a high-time of between 1 to 2 ms (from memory).&amp;nbsp; Do a search on the web for a description of how RC servos work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you mean a DC-motor then its much more complicated and well beyond what could be described here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:03:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Connect-Servo-HCS08/m-p/168108#M5045</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2010-01-19T11:03:41Z</dc:date>
    </item>
  </channel>
</rss>

