<?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: LPC51U68 PWM channel Selection in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-PWM-channel-Selection/m-p/1059584#M40976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello prathap,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check our SDK examples, we have some PWM examples using SCTimer. There, you will find how you need to configure the pin and how to use the SCTimer module. You can download the SDK in &lt;A href="https://mcuxpresso.nxp.com/en/select" rel="nofollow noopener noreferrer" target="_blank"&gt;this link&lt;/A&gt; or install it directly from MCUXpresso IDE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question you need to configure the pin as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; uint32_t port0_pin8_config &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
    IOCON_PIO_FUNC2 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                               &lt;SPAN class="comment token"&gt;/* Pin is configured as SCT0_OUT1 */&lt;/SPAN&gt;
    IOCON_PIO_MODE_INACT &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                          &lt;SPAN class="comment token"&gt;/* No addition pin function */&lt;/SPAN&gt;
    IOCON_PIO_INV_DI &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                              &lt;SPAN class="comment token"&gt;/* Input function is not inverted */&lt;/SPAN&gt;
    IOCON_PIO_DIGITAL_EN &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                          &lt;SPAN class="comment token"&gt;/* Enables digital function */&lt;/SPAN&gt;
    IOCON_PIO_INPFILT_OFF &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                         &lt;SPAN class="comment token"&gt;/* Input filter disabled */&lt;/SPAN&gt;
    IOCON_PIO_OPENDRAIN_DI                          &lt;SPAN class="comment token"&gt;/* Open drain is disabled */&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;IOCON_PinMuxSet&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IOCON&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; PORT0_IDX&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; port0_pin8_config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* PORT0 PIN8 is configured as SCT0_OUT1 */&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored.&lt;/P&gt;&lt;P&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2020 15:31:10 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2020-05-25T15:31:10Z</dc:date>
    <item>
      <title>LPC51U68 PWM channel Selection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-PWM-channel-Selection/m-p/1059583#M40975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using LPC51U68 - 48 pin package in my project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here i am seeing PWM channel 1 in 3 different pins.&lt;/P&gt;&lt;P&gt;PIO0_1, PIO0_8, PIO0_19 these three pin shows PWM channel 1 but i need only PIO0_8 then how to configure and use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;prathap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 12:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-PWM-channel-Selection/m-p/1059583#M40975</guid>
      <dc:creator>prathap_ponnuch</dc:creator>
      <dc:date>2020-05-21T12:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 PWM channel Selection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-PWM-channel-Selection/m-p/1059584#M40976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello prathap,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check our SDK examples, we have some PWM examples using SCTimer. There, you will find how you need to configure the pin and how to use the SCTimer module. You can download the SDK in &lt;A href="https://mcuxpresso.nxp.com/en/select" rel="nofollow noopener noreferrer" target="_blank"&gt;this link&lt;/A&gt; or install it directly from MCUXpresso IDE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question you need to configure the pin as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; uint32_t port0_pin8_config &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
    IOCON_PIO_FUNC2 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                               &lt;SPAN class="comment token"&gt;/* Pin is configured as SCT0_OUT1 */&lt;/SPAN&gt;
    IOCON_PIO_MODE_INACT &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                          &lt;SPAN class="comment token"&gt;/* No addition pin function */&lt;/SPAN&gt;
    IOCON_PIO_INV_DI &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                              &lt;SPAN class="comment token"&gt;/* Input function is not inverted */&lt;/SPAN&gt;
    IOCON_PIO_DIGITAL_EN &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                          &lt;SPAN class="comment token"&gt;/* Enables digital function */&lt;/SPAN&gt;
    IOCON_PIO_INPFILT_OFF &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;                         &lt;SPAN class="comment token"&gt;/* Input filter disabled */&lt;/SPAN&gt;
    IOCON_PIO_OPENDRAIN_DI                          &lt;SPAN class="comment token"&gt;/* Open drain is disabled */&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;IOCON_PinMuxSet&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IOCON&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; PORT0_IDX&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; port0_pin8_config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* PORT0 PIN8 is configured as SCT0_OUT1 */&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored.&lt;/P&gt;&lt;P&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 15:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-PWM-channel-Selection/m-p/1059584#M40976</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-05-25T15:31:10Z</dc:date>
    </item>
  </channel>
</rss>

