<?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: PWM on MCF51JM128 in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PWM-on-MCF51JM128/m-p/151277#M3940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't see any code in the attachment, just an mcp file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run PWM on the 51JM128 and you can see the code in the StickOS skeleton project at the bottom of this page: &lt;A href="http://www.cpustick.com/downloads.htm" rel="nofollow" target="_blank"&gt;http://www.cpustick.com/downloads.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file you want to look at is sources/pin.c, and follow the 51JM128 #if''s -- sorry there's lots of noise in the file for other MCUs.&amp;nbsp; The routine pin_declare_internal() sets up the pin for PWM mode (either servo or analog output) and pin_set() sets it to a specific value (in microseconds or millivolts) -- search for PIN_PTE3 for one of the pins with PWM capability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 01:12:07 GMT</pubDate>
    <dc:creator>RichTestardi</dc:creator>
    <dc:date>2011-07-20T01:12:07Z</dc:date>
    <item>
      <title>PWM on MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PWM-on-MCF51JM128/m-p/151276#M3939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a simple PWM signal on my MCF51JM128. Ive already tested the device with timer overflows and output compare mode which work perfectly. However, as soon as I set TPMxCnSC to operate in PWM mode I get nothing out. Its driving me mad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone got some advice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 21:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PWM-on-MCF51JM128/m-p/151276#M3939</guid>
      <dc:creator>b_rad</dc:creator>
      <dc:date>2011-07-19T21:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: PWM on MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PWM-on-MCF51JM128/m-p/151277#M3940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't see any code in the attachment, just an mcp file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run PWM on the 51JM128 and you can see the code in the StickOS skeleton project at the bottom of this page: &lt;A href="http://www.cpustick.com/downloads.htm" rel="nofollow" target="_blank"&gt;http://www.cpustick.com/downloads.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file you want to look at is sources/pin.c, and follow the 51JM128 #if''s -- sorry there's lots of noise in the file for other MCUs.&amp;nbsp; The routine pin_declare_internal() sets up the pin for PWM mode (either servo or analog output) and pin_set() sets it to a specific value (in microseconds or millivolts) -- search for PIN_PTE3 for one of the pins with PWM capability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 01:12:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PWM-on-MCF51JM128/m-p/151277#M3940</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2011-07-20T01:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: PWM on MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PWM-on-MCF51JM128/m-p/151278#M3941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help Rich!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It turned out that I was setting up the registers in the incorrect order. I had followed the same procedure that I had been using in programming a GT16 chip which simply did not work on the JM128. All I had to do was re-order my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 14:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/PWM-on-MCF51JM128/m-p/151278#M3941</guid>
      <dc:creator>b_rad</dc:creator>
      <dc:date>2011-07-20T14:04:04Z</dc:date>
    </item>
  </channel>
</rss>

