<?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のトピックLPC546xx: PWM output on CTx_MAT3</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-PWM-output-on-CTx-MAT3/m-p/1424028#M48131</link>
    <description>&lt;P&gt;I'd like to output a PWM signal from CT4_MAT3 pin. I read a small not on User Manual:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: It is recommended to use match channel&amp;nbsp;3 to set the PWM cycle.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is it recommended or mandatory, and why?&lt;/P&gt;&lt;P&gt;I tried to use MAT3 for PWM output and MAT0 for PWM cycle, like this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;CTIMER_SetupPwm(CTIMER4,
	kCTIMER_Match_0,		// pwmPeriodChannel
	kCTIMER_Match_3,		// matchChannel
        50,
        10000,
        12000000,
        0);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but at first it didn't work. Then I noticed this instruction in CTIMER_SetupPwm:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;reg |= CTIMER_MCR_MR3R_MASK;&lt;/LI-CODE&gt;&lt;P&gt;that says to reset the timer counter on MR3. After replacing with:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;reg |= CTIMER_MCR_MR0R_MASK;&lt;/LI-CODE&gt;&lt;P&gt;I was able to generate my PWM output from CT4_MAT3.&lt;/P&gt;&lt;P&gt;Is it ok? Why there's such a limitation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 16:22:57 GMT</pubDate>
    <dc:creator>giusloq</dc:creator>
    <dc:date>2022-03-07T16:22:57Z</dc:date>
    <item>
      <title>LPC546xx: PWM output on CTx_MAT3</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-PWM-output-on-CTx-MAT3/m-p/1424028#M48131</link>
      <description>&lt;P&gt;I'd like to output a PWM signal from CT4_MAT3 pin. I read a small not on User Manual:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: It is recommended to use match channel&amp;nbsp;3 to set the PWM cycle.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is it recommended or mandatory, and why?&lt;/P&gt;&lt;P&gt;I tried to use MAT3 for PWM output and MAT0 for PWM cycle, like this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;CTIMER_SetupPwm(CTIMER4,
	kCTIMER_Match_0,		// pwmPeriodChannel
	kCTIMER_Match_3,		// matchChannel
        50,
        10000,
        12000000,
        0);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but at first it didn't work. Then I noticed this instruction in CTIMER_SetupPwm:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;reg |= CTIMER_MCR_MR3R_MASK;&lt;/LI-CODE&gt;&lt;P&gt;that says to reset the timer counter on MR3. After replacing with:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;reg |= CTIMER_MCR_MR0R_MASK;&lt;/LI-CODE&gt;&lt;P&gt;I was able to generate my PWM output from CT4_MAT3.&lt;/P&gt;&lt;P&gt;Is it ok? Why there's such a limitation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:22:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-PWM-output-on-CTx-MAT3/m-p/1424028#M48131</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2022-03-07T16:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx: PWM output on CTx_MAT3</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-PWM-output-on-CTx-MAT3/m-p/1424947#M48146</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Yes, you can .&lt;/P&gt;
&lt;P&gt;I think this note is come from old parts, because old products,&amp;nbsp; the match 3 is not routed to output pin,&amp;nbsp; it&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can not output PWM, so recommend it as&amp;nbsp;&lt;EM&gt;PWM cycle.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;While MATCH3 pin out with lpc546xx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 03:46:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-PWM-output-on-CTx-MAT3/m-p/1424947#M48146</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-03-09T03:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx: PWM output on CTx_MAT3</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-PWM-output-on-CTx-MAT3/m-p/1425133#M48148</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Yes, you can .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ok, but NXP should fix the user manual (removing the note) and fix the SDK code, that is much more important.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 09:04:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-PWM-output-on-CTx-MAT3/m-p/1425133#M48148</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2022-03-09T09:04:09Z</dc:date>
    </item>
  </channel>
</rss>

