<?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: LPC546xx: SCTimer/PWM clocking</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1425753#M48156</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I agree with you, if you set up CLKMODE=0x0 , the system clock is selected as tick for the SCTimer counter, the system clock is the CPU clock as the following fig rather than SCT_IN7 clock. So if you select the CLKMODE=0x0, you can NOT change the SCT clock with changing the SCTCLKDIV value.&lt;/P&gt;
&lt;P&gt;There is a remark that the SCT clock maximum frequency is 100MHz, pls refer to 16.3 Basic configuration in UM10912.pdf&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1646880162617.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172984iCF209D6A26677108/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1646880162617.png" alt="xiangjun_rong_0-1646880162617.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_1-1646880407555.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172986i31144C8AEC7BAD79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_1-1646880407555.png" alt="xiangjun_rong_1-1646880407555.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 02:52:54 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2022-03-10T02:52:54Z</dc:date>
    <item>
      <title>LPC546xx: SCTimer/PWM clocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1425147#M48149</link>
      <description>&lt;P&gt;I can't understand the clocking system of SCTimer/PWM module in LPC546XX MCUs.&lt;/P&gt;&lt;P&gt;CLKMODE=0x0 selects system clock for SCTimer counter clocking. Is this clock divided by&amp;nbsp;SCTCLKDIV or not?&lt;/P&gt;&lt;P&gt;For example, if I have a system clock of 220MHz (on&amp;nbsp;LPC54628) and&amp;nbsp;SCTCLKDIV=1 (divide by 2), what is the SCTimer counting clock frequency? 220MHz or 110MHz? It seems to me it is always 220MHz, so it doesn't depend on&amp;nbsp;SCTCLKDIV.&lt;/P&gt;&lt;P&gt;It is strange, because&amp;nbsp;CLOCK_GetSctClkFreq() returns 110MHz, but I think its 220MHz.&lt;/P&gt;&lt;P&gt;When&amp;nbsp;SCTCLKDIV is used? Only if I use CLKMODE=0x2 or 0x3 and CLKSEL=0xE or 0xF (Input 7 as the clock)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also read another note:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Remark&lt;/STRONG&gt;: The maximum frequency for the SCTimer/PWM clock is 100 MHz.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If I have a system clock of 220MHz, couldn't I use CLKMODE=0x0 (counter clocked by system clock, &lt;EM&gt;apparently&lt;/EM&gt; without divider)?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 09:17:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1425147#M48149</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2022-03-09T09:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx: SCTimer/PWM clocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1425753#M48156</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I agree with you, if you set up CLKMODE=0x0 , the system clock is selected as tick for the SCTimer counter, the system clock is the CPU clock as the following fig rather than SCT_IN7 clock. So if you select the CLKMODE=0x0, you can NOT change the SCT clock with changing the SCTCLKDIV value.&lt;/P&gt;
&lt;P&gt;There is a remark that the SCT clock maximum frequency is 100MHz, pls refer to 16.3 Basic configuration in UM10912.pdf&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1646880162617.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172984iCF209D6A26677108/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1646880162617.png" alt="xiangjun_rong_0-1646880162617.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_1-1646880407555.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172986i31144C8AEC7BAD79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_1-1646880407555.png" alt="xiangjun_rong_1-1646880407555.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 02:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1425753#M48156</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-03-10T02:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx: SCTimer/PWM clocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1425936#M48163</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;So if you select the CLKMODE=0x0, you can NOT change the SCT clock with changing the SCTCLKDIV value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Ok, so SCT will be clocked with 220MHz (in my case).&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;There is a remark that the SCT clock maximum frequency is 100MHz, pls refer to 16.3 Basic configuration in UM10912.pdf&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, this is exactly the note I read. What I don't understand and it isn't clear, does this limitation of 100MHz valid with CLKMODE=0x0 (system clock)? I suspect this limitation is valid only for clocks coming from the inputs (CLKMODE=0x2/0x3), but not for system clock (CLKMODE=0x0).&lt;/P&gt;&lt;P&gt;Otherwise, with a system clock of 220MHz (or 180MHz or 120MHz), I wouldn't be able to use CLKMODE=0x0.&lt;/P&gt;&lt;P&gt;Could you confirm?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:55:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1425936#M48163</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2022-03-10T07:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx: SCTimer/PWM clocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1426024#M48167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The limitation of 100Mhz clock frequency is for the SCT itself, in other words, if you use the system clock as tick, you have to reduce the system clock to 100MHz, even if the cpu can reach up to 220MHz.&lt;/P&gt;
&lt;P&gt;If you do want to run the cpu in 220MHz, I suggest you use the SCT_IN7 as tick input clock for SCT.&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;</description>
      <pubDate>Thu, 10 Mar 2022 09:24:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1426024#M48167</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-03-10T09:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx: SCTimer/PWM clocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1426701#M48180</link>
      <description>&lt;P&gt;Are you sure? I'm sorry, but I have some doubts yet for two reasons.&lt;/P&gt;&lt;P&gt;The first: there are many SDK examples for LPC54628 EVB that configure SCTimer to use system clock (CLKMODE=0x0), that is configured at 220MHz. Considering the limitation of 100MHz, these examples are all wrong, but they works on the board.&lt;/P&gt;&lt;P&gt;The second: I found &lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC54xx-The-maximum-frequency-for-the-SCTimer-PWM-clock-is-100/td-p/1391628" target="_blank" rel="noopener"&gt;another thread&lt;/A&gt; on this forum with a similar argument. The answer from another NXP guy (ZhangJennie) is different from yours:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;There are two type of input for SCT,&amp;nbsp;the the 100MHz clock limitation is only valid for the clock source inputted from external pads (SCT_IN7), if you use system clock as the SCTimer/PWM clock source, the system clock frequency can be greater than 100MHz.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 07:48:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1426701#M48180</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2022-03-11T07:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx: SCTimer/PWM clocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1426719#M48181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have checked the code sctimer_pwm_with_duty_cycle_change, as you have said, it uses 220mhz system clock to generate 24Khz PWM signals, it appears that the example works fine.&lt;/P&gt;
&lt;P&gt;I will confirm&amp;nbsp; with Jennie if the system clock can reach up to 220MHz when the system clock functions as a tick.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 08:04:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1426719#M48181</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-03-11T08:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx: SCTimer/PWM clocking</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1426793#M48186</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;I confirmed with Jennie, the 100MHz clock restriction is only for SCT_IN7 clock input source or the&amp;nbsp; external pin input clock source of SCT module, if the SCT uses system clock as tick, it can reach up to 220mhz.&lt;/P&gt;
&lt;P&gt;Sorry.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 09:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SCTimer-PWM-clocking/m-p/1426793#M48186</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-03-11T09:34:34Z</dc:date>
    </item>
  </channel>
</rss>

