<?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 as a GPIO on the 56F8345 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155273#M4634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Cowboy&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You want your PWM to work as an output (GP O), you can&amp;nbsp;write (0) ZERO to the corresponding PWM_UPDATE_VALUE_REG to turn OFF the output or to turn the output ON, you have to load 32767 in the PWM register.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have used this for other controllers and only the concern is the speed of updation of this value. If your application is not time critical, you can put some software delay after you give an UPDATE_VALUE command.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can try out this.&lt;/DIV&gt;&lt;DIV&gt;It really works quite well.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Devendra&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2007 19:06:08 GMT</pubDate>
    <dc:creator>Devendra</dc:creator>
    <dc:date>2007-10-15T19:06:08Z</dc:date>
    <item>
      <title>PWM as a GPIO on the 56F8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155269#M4630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi&lt;/DIV&gt;&lt;DIV&gt;I'm struggling to get my PWM to work as a GPIO (or an output for that matter). I want to drive 2 leds on each port as debug leds.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've set the PMOUT register to software control and enable the PAD_EN&lt;/DIV&gt;&lt;DIV&gt;I've set the PMCFG register to Independent.&lt;/DIV&gt;&lt;DIV&gt;When i write to the PMOUT register to set or clear OUTx bits all six channels go on and stay on.&lt;/DIV&gt;&lt;DIV&gt;the only way I get a response from my PWM is when I set TOP or BOTTOM NEG bits in the PMCFG register&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any Ideas are welcome&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Alban Edit: changed P/N is subject line.&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-10-15&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;11:37 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 15:40:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155269#M4630</guid>
      <dc:creator>Cowboy</dc:creator>
      <dc:date>2007-10-15T15:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: PWM as a GPIO on the 8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155270#M4631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello and Welcome to the forum Cowboy,&lt;BR /&gt;&lt;BR /&gt;Are you sure the 8345 is a 16-bit product ?&lt;BR /&gt;Please reply indicating the full part number as I suspect it is either a Power or ColdFire...&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 16:12:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155270#M4631</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-10-15T16:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: PWM as a GPIO on the 8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155271#M4632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Alban&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;From the MC56F8300 user manual on freescale's website they say that the 56F8300 16-bit hybrid controllers&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My part number that I'm using&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MC56F8345MFGE&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 17:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155271#M4632</guid>
      <dc:creator>Cowboy</dc:creator>
      <dc:date>2007-10-15T17:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: PWM as a GPIO on the 56F8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155272#M4633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Cowboy,&lt;BR /&gt;This is indeed the right place for these.&lt;BR /&gt;The partial part number midlead me towards the MPC8xxxx series. I update the post subject so readers see it's the 56F series.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 17:36:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155272#M4633</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-10-15T17:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: PWM as a GPIO on the 56F8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155273#M4634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Cowboy&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You want your PWM to work as an output (GP O), you can&amp;nbsp;write (0) ZERO to the corresponding PWM_UPDATE_VALUE_REG to turn OFF the output or to turn the output ON, you have to load 32767 in the PWM register.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have used this for other controllers and only the concern is the speed of updation of this value. If your application is not time critical, you can put some software delay after you give an UPDATE_VALUE command.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can try out this.&lt;/DIV&gt;&lt;DIV&gt;It really works quite well.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Devendra&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 19:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155273#M4634</guid>
      <dc:creator>Devendra</dc:creator>
      <dc:date>2007-10-15T19:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: PWM as a GPIO on the 56F8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155274#M4635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P align="left"&gt;Hi Devendra&lt;/P&gt;&lt;P align="left"&gt;This is the only registers that I have&lt;/P&gt;&lt;P align="left"&gt;See Attachments for more info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;PMCTL Control Register Read/Write&lt;/FONT&gt; &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.1&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;PMFCTL Fault Control Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.2&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;PMFSA Fault Status &amp;amp; Acknowledge Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.3&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&amp;nbsp;PMOUT Output Control Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.4&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&amp;nbsp;PMCNT Counter Register &lt;I&gt;&lt;FONT face="Arial" size="1"&gt;Read-Only&lt;/FONT&gt;&lt;/I&gt; &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.5&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;PWMCM Counter Modulo Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.6&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&amp;nbsp;PWMVAL0-5 Value Register 0-5 Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.7&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&amp;nbsp;PMDEADTM Deadtime Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.8&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&amp;nbsp;PMDISMAP1 Disable Mapping Register 1 Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.9&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&amp;nbsp;PMDISMAP2 Disable Mapping Register 2 Read/Write&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&amp;nbsp;PMCFG Configure Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.10&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;PMCCR Channel Control Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.11&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;PMPORT Port Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.12&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT face="Arial" size="1"&gt;&amp;nbsp;PMICCR Internal Correction Control Register Read/Write &lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Section 11.10.13&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;B&gt;&lt;FONT color="#0000ff" face="Arial" size="1"&gt;Thanx&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 20:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155274#M4635</guid>
      <dc:creator>Cowboy</dc:creator>
      <dc:date>2007-10-15T20:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: PWM as a GPIO on the 56F8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155275#M4636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Here are some more info&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 20:47:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155275#M4636</guid>
      <dc:creator>Cowboy</dc:creator>
      <dc:date>2007-10-15T20:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: PWM as a GPIO on the 56F8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155276#M4637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;You can put Maximum value in PWMVAL(0..5 as per your output used)&amp;nbsp;register to set 100% duty of PWM (Output continuously ON) and put 0 in PWMVAL to turn OFF the output.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am also using PWM output, acting as an Output like this. Hope this helps.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 17:26:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155276#M4637</guid>
      <dc:creator>Devendra</dc:creator>
      <dc:date>2007-10-30T17:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: PWM as a GPIO on the 56F8345</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155277#M4638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Maximum value for PWMVAL is 32767 and Minimum is 0.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 17:27:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-as-a-GPIO-on-the-56F8345/m-p/155277#M4638</guid>
      <dc:creator>Devendra</dc:creator>
      <dc:date>2007-10-30T17:27:55Z</dc:date>
    </item>
  </channel>
</rss>

