<?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>8-bit Microcontrollers中的主题 HCS08 trying to output 100kHz PWM signal</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163097#M10015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hey guys,&lt;/DIV&gt;&lt;DIV&gt;I'm using a HCS08 microcontroller (Codewarrior 5.7.0) and my trouble is concerning the PWM output.&lt;/DIV&gt;&lt;DIV&gt;I want to output a 100kHz signal on pin PTF4. Does anyone have any sample code or know how to go about programming this using C code (not assembly).&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-Chris&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2007 09:58:28 GMT</pubDate>
    <dc:creator>Venom2000</dc:creator>
    <dc:date>2007-11-12T09:58:28Z</dc:date>
    <item>
      <title>HCS08 trying to output 100kHz PWM signal</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163097#M10015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hey guys,&lt;/DIV&gt;&lt;DIV&gt;I'm using a HCS08 microcontroller (Codewarrior 5.7.0) and my trouble is concerning the PWM output.&lt;/DIV&gt;&lt;DIV&gt;I want to output a 100kHz signal on pin PTF4. Does anyone have any sample code or know how to go about programming this using C code (not assembly).&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-Chris&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 09:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163097#M10015</guid>
      <dc:creator>Venom2000</dc:creator>
      <dc:date>2007-11-12T09:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 trying to output 100kHz PWM signal</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163098#M10016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Chris,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Welcome to the forum.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;There is a trade off between the frequency of a PWM output, and the PWM resolution that can be achieved, and this will depend on the bus frequency you are using.&amp;nbsp; For example, with a 10MHz bus frequency and a PWM frequency of 100kHz, the maximum PWM resolution would be limited to 100 pulse width values.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;To say you require the output to occur at PTF4 is meaningless unless you also state the specific MCU type.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 11:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163098#M10016</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-11-12T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 trying to output 100kHz PWM signal</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163099#M10017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the quick replay bigmac.&lt;/DIV&gt;&lt;DIV&gt;As you can tell I'm very new to this chip and the Codewarrior software.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The MCU I'm using is the HCS908AW. Supposedly the bus speed is 20MHz but I am unsure of how to verify this. I'd prefer to leave the bus speed as high as possible and have the output pin PTF4 at 100kHz (10us time period).&lt;/DIV&gt;&lt;DIV&gt;So far I haven't been able to modify the period or the frequency. I'm using the Device Initialization plugin to change the bean parameters.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again for your help,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-Chris&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 11:53:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163099#M10017</guid>
      <dc:creator>Venom2000</dc:creator>
      <dc:date>2007-11-12T11:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 trying to output 100kHz PWM signal</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163100#M10018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Chris,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Attached is some sample code from one of our development kits.&amp;nbsp;&amp;nbsp;In the sample code,&amp;nbsp;we&amp;nbsp;use PE and the 9S08AW16 to generate a DAC output using the PWM.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hopefully, it will help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/8045_vp32aw16_demo2.zip" rel="nofollow" target="_self"&gt;VP32AW16_Demo2.zip&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-27&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:14 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 22:43:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163100#M10018</guid>
      <dc:creator>Witztronics</dc:creator>
      <dc:date>2007-11-12T22:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 trying to output 100kHz PWM signal</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163101#M10019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks a lot guys, I now have the PWM working.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 12:56:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-trying-to-output-100kHz-PWM-signal/m-p/163101#M10019</guid>
      <dc:creator>Venom2000</dc:creator>
      <dc:date>2007-11-29T12:56:44Z</dc:date>
    </item>
  </channel>
</rss>

