<?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>LPC MicrocontrollersのトピックRe: How to configure P0.10 as Match-Output?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-configure-P0-10-as-Match-Output/m-p/1089766#M41797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Lee,&lt;/P&gt;&lt;P&gt;I just briefly check your code, I think your CTimer16 configuration is okay. But I do not know if the pin configuration is okay.&lt;/P&gt;&lt;P&gt;Pls check that you should Enable the IOCON bit before you call the iocon_set_mux(PWM0_IOCON, PWM0_MODE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96699i802B6ADC172D7B5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Secondly, after you run the code, then set a break point, and check the Timer counter register TMR16B0TC and check if it is counting.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96621i77F8E9DE05585F14/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If it is counting, I think the PWM signal should appear on the pin.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2020 04:02:21 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2020-07-27T04:02:21Z</dc:date>
    <item>
      <title>How to configure P0.10 as Match-Output?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-configure-P0-10-as-Match-Output/m-p/1089765#M41796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I am using LPC1114FBD48. I want to use pin 29 (P0.10) as a PWM output. However, it is not output by PWM but always outputs "HIGH" status. I need help with what is the problem.&lt;/P&gt;&lt;P&gt;Let me briefly list the code I tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference, if I program another PWM output pin in the same order as the code below, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enum {&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PWM0_PORT = 0,&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PWM0_PIN = 10,&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PWM0_MASK = 0b1 &amp;lt;&amp;lt; 10,&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PWM0_IOCON = IOCON_PIO0_10,&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PWM0_MODE = 0x3|(0x1 &amp;lt;&amp;lt; 3)&amp;nbsp;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// configuration code&lt;/P&gt;&lt;P&gt;Chip_TIMER_Init(LPC_TIMER16_0);&lt;/P&gt;&lt;P&gt;iocon_set_mux(PWM0_IOCON, PWM0_MODE);&lt;/P&gt;&lt;P&gt;Chip_TIMER_PrescaleSet(LPC_TIMER16_0, 47);&lt;/P&gt;&lt;P&gt;LPC_TIMER16_0-&amp;gt;PWMC = 1&amp;lt;&amp;lt;0 | 1&amp;lt;&amp;lt;2;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt; &lt;/SPAN&gt;// M0,M2 to PWM&lt;/P&gt;&lt;P&gt;LPC_TIMER16_0-&amp;gt;MR[3] = 1999;&lt;/P&gt;&lt;P&gt;LPC_TIMER16_0-&amp;gt;MCR = 0b010000000000;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt; &lt;/SPAN&gt;// M3 is used to set PWM Cycle&lt;/P&gt;&lt;P&gt;Chip_TIMER_Enable(LPC_TIMER16_0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// code to output pwm pulse.&lt;/P&gt;&lt;P&gt;LPC_TIMER16_0-&amp;gt;MR[2] = 1000;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jul 2020 02:21:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-configure-P0-10-as-Match-Output/m-p/1089765#M41796</guid>
      <dc:creator>leejungwoo</dc:creator>
      <dc:date>2020-07-26T02:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure P0.10 as Match-Output?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-configure-P0-10-as-Match-Output/m-p/1089766#M41797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Lee,&lt;/P&gt;&lt;P&gt;I just briefly check your code, I think your CTimer16 configuration is okay. But I do not know if the pin configuration is okay.&lt;/P&gt;&lt;P&gt;Pls check that you should Enable the IOCON bit before you call the iocon_set_mux(PWM0_IOCON, PWM0_MODE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96699i802B6ADC172D7B5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Secondly, after you run the code, then set a break point, and check the Timer counter register TMR16B0TC and check if it is counting.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96621i77F8E9DE05585F14/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If it is counting, I think the PWM signal should appear on the pin.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 04:02:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-configure-P0-10-as-Match-Output/m-p/1089766#M41797</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-07-27T04:02:21Z</dc:date>
    </item>
  </channel>
</rss>

