<?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: LPC55S69 ctimer PWM</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420407#M48047</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How about using the code&lt;/P&gt;
&lt;P&gt;CTIMER_GetDefaultConfig(ctimer_config_t *config)&lt;/P&gt;
&lt;P&gt;config-&amp;gt;prescale=100;&lt;/P&gt;
&lt;P&gt;BTW, can you tell us the value of the two variables if you set up 1HZ PWM&lt;/P&gt;
&lt;P&gt;volatile uint32_t g_pwmPeriod = 0U;&lt;BR /&gt;volatile uint32_t g_pulsePeriod = 0U;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 08:41:02 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2022-02-28T08:41:02Z</dc:date>
    <item>
      <title>LPC55S69 ctimer PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420239#M48030</link>
      <description>&lt;P&gt;在CTIMER_GetPwmPeriodValue（2， 20， timerClock），把占空比恒定为20%，频率依次调为100HZ 10HZ 5HZ 2HZ时都能在示波器上检测到&lt;BR /&gt;相关波形，并且占空比正确。在频率降为1HZ的时候，相关波形不正确，示波器上显示占空比为60%。&lt;BR /&gt;请问在lpc55s69中定时器2不支持产生1hz频率的pwm波形吗？&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 05:56:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420239#M48030</guid>
      <dc:creator>wangyibin</dc:creator>
      <dc:date>2022-02-28T05:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ctimer PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420407#M48047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How about using the code&lt;/P&gt;
&lt;P&gt;CTIMER_GetDefaultConfig(ctimer_config_t *config)&lt;/P&gt;
&lt;P&gt;config-&amp;gt;prescale=100;&lt;/P&gt;
&lt;P&gt;BTW, can you tell us the value of the two variables if you set up 1HZ PWM&lt;/P&gt;
&lt;P&gt;volatile uint32_t g_pwmPeriod = 0U;&lt;BR /&gt;volatile uint32_t g_pulsePeriod = 0U;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 08:41:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420407#M48047</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-02-28T08:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ctimer PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420454#M48058</link>
      <description>&lt;P&gt;预分频值为7，g_pwmPeriod=47999999 g_pulsePeriod=4800000&lt;BR /&gt;把预分频值改为100后能够成功的在示波器上检测到波形，g_pwmPeriod=95999999，g_pulsePeriod=500654&lt;BR /&gt;在CTIMER_GetPwmPeriodValue(1, 30, timerClock);中的第二参数是那个占空比，我设置为30，但用示波器检测到的为25%&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 09:40:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420454#M48058</guid>
      <dc:creator>wangyibin</dc:creator>
      <dc:date>2022-02-28T09:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 ctimer PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420989#M48076</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have to say when you call the follwoing code&lt;/P&gt;
&lt;P&gt;CTIMER_GetPwmPeriodValue(20000, 20, timerClock);&lt;BR /&gt;CTIMER_SetupPwmPeriod(CTIMER, CTIMER_MAT_OUT, g_pwmPeriod, g_pulsePeriod, false);&lt;BR /&gt;//Can not use kCTIMER_Match_3, which is used to control PWM period&lt;/P&gt;
&lt;P&gt;CTIMER_GetPwmPeriodValue(20000, 40, timerClock);&lt;BR /&gt;CTIMER_SetupPwmPeriod(CTIMER, kCTIMER_Match_0, g_pwmPeriod, g_pulsePeriod, false);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when you configure multiple PWM channel and use the&amp;nbsp;status_t CTIMER_GetPwmPeriodValue(uint32_t pwmFreqHz, uint8_t dutyCyclePercent, uint32_t timerClock_Hz) to compute the variables g_pwmPeriod/g_pulsePeriod, the first parameter pwmFreqHz must be the same for multiple calling CTIMER_GetPwmPeriodValue(), only the duty cycle can be different. Otherwise, there is error.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 06:43:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-ctimer-PWM/m-p/1420989#M48076</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-03-01T06:43:52Z</dc:date>
    </item>
  </channel>
</rss>

