<?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: LPC11C24 PWM problem in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592996#M30261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by stalisman on Tue Jan 31 11:30:16 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You generally set the width up om MAT3 and the cycle on MAT0,1 or 2.&amp;nbsp; Is that what you are trying to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:51:08 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:51:08Z</dc:date>
    <item>
      <title>LPC11C24 PWM problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592993#M30258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CasperH on Tue Jan 31 07:55:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a problem getting the PWM to work on PIO0_11 on the LPC11C24 controller. The PIO0_11 is on CT32B0 MAT3, if I choose MAT2 it works, but not on MAT3. I think my problem is that the PIO0_11 is also the JTAG_TDI. Does anyone know what to do to make MAT3 work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Casper&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592993#M30258</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 PWM problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592994#M30259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by RodColeman on Tue Jan 31 08:30:26 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CasperH&lt;/STRONG&gt;&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I'm having a problem getting the PWM to work on PIO0_11 on the LPC11C24 controller. The PIO0_11 is on CT32B0 MAT3, if I choose MAT2 it works, but not on MAT3. I think my problem is that the PIO0_11 is also the JTAG_TDI. Does anyone know what to do to make MAT3 work?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Casper&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Casper, I think that some of the driver (HAL Layer) files will refuse to configure the IOCON for IO or Timer function, unless JTAG functionality has been un-DEFINEd somewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a quick test, (if you do not use JTAG)&amp;nbsp; you could repeat the LPC_IOCON-&amp;gt;PIO0_11 = statement in your timer initialisation function, and see if it works like that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:51:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592994#M30259</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 PWM problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592995#M30260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Jan 31 08:43:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CasperH&lt;/STRONG&gt;&lt;BR /&gt;Does anyone know what to do to make MAT3 work?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's nothing special about this pin if you use SWD. So a valid PWM setting is working :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:51:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592995#M30260</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 PWM problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592996#M30261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by stalisman on Tue Jan 31 11:30:16 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You generally set the width up om MAT3 and the cycle on MAT0,1 or 2.&amp;nbsp; Is that what you are trying to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:51:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592996#M30261</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 PWM problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592997#M30262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CasperH on Wed Feb 01 00:57:43 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;init_timer32PWM( 0, 480000, 0x04 );
setMatch_timer32PWM( 0, 2, 240000 );
enable_timer32( 0 );&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This don't:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;init_timer32PWM( 0, 480000, 0x08 );
setMatch_timer32PWM( 0, 3, 240000 );
enable_timer32( 0 );&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: RodColeman&lt;/STRONG&gt;&lt;BR /&gt;Casper, I think that some of the driver (HAL Layer) files will refuse to configure the IOCON for IO or Timer function, unless JTAG functionality has been un-DEFINEd somewhere.&lt;BR /&gt;&lt;BR /&gt;As a quick test, (if you do not use JTAG)&amp;nbsp; you could repeat the LPC_IOCON-&amp;gt;PIO0_11 = statement in your timer initialisation function, and see if it works like that.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After my initialization of the PWM, the register for LPC_IOCON-&amp;gt;PIO0_11 is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FUNC&amp;nbsp;&amp;nbsp; 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MODE&amp;nbsp;&amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HYS&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADMODE 1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592997#M30262</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 PWM problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592998#M30263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Feb 01 01:33:45 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you understand how PWM is working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your init is setting MR3 as reset :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
LPC_TMR32B1-&amp;gt;MR3 = timer32_1_period;
LPC_TMR32B1-&amp;gt;MCR = 1&amp;lt;&amp;lt;10;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Reset on MR3 */
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;If you want to use MR3 as PWM you have to use another match register to reset PWM :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592998#M30263</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 PWM problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592999#M30264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CasperH on Wed Feb 01 03:19:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Do you understand how PWM is working?&lt;BR /&gt;&lt;BR /&gt;Your init is setting MR3 as reset :eek:&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
LPC_TMR32B1-&amp;gt;MR3 = timer32_1_period;
LPC_TMR32B1-&amp;gt;MCR = 1&amp;lt;&amp;lt;10;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Reset on MR3 */
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;If you want to use MR3 as PWM you have to use another match register to reset PWM :eek:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I trusted the driver too much, the driver it programmed to always reset on MR3, I've made it work with some adjustments &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to you all!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:51:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-PWM-problem/m-p/592999#M30264</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:51:10Z</dc:date>
    </item>
  </channel>
</rss>

