<?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: ctimer match value and prescale  value for 25 clock pulse</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/ctimer-match-value-and-prescale-value-for-25-clock-pulse/m-p/1608740#M51788</link>
    <description>&lt;P&gt;Hello, I suggest reviewing the SDK there has an example with the CTimer and I think that could be helpful the example has a LED toggle. I recommend not using a printf if you want to use a little time base.&lt;/P&gt;
&lt;P&gt;Example documentation.&lt;BR /&gt;&lt;EM&gt;The CTimer Example project is to demonstrate usage of the KSDK ctimer driver.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;In this example, the match feature of the CTimer is used to toggle the output level.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 21:41:07 GMT</pubDate>
    <dc:creator>Pavel_Hernandez</dc:creator>
    <dc:date>2023-03-02T21:41:07Z</dc:date>
    <item>
      <title>ctimer match value and prescale  value for 25 clock pulse</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ctimer-match-value-and-prescale-value-for-25-clock-pulse/m-p/1607666#M51768</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hi&amp;nbsp; everyone i am using lpc54so18 evk board&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need generate 25 clock pulse for encoder input so i am developing&amp;nbsp; SSI protocol with gpio toggle so i am facing issue with ctimer i need to how to set match value and prescale for 250kz frequency and match value for 25 times interrupt generation so please help any one&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;PRINTF("SSI INTERFACE USING GPIO\r\n");&lt;BR /&gt;srcClock_Hz = CTIMER_CLK_FREQ;&lt;BR /&gt;PRINTF("CTIMER_CLK_FREQ %d\r\n",CTIMER_CLK_FREQ);&lt;BR /&gt;CTIMER_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt;config.prescale = CTIMER_CLK_FREQ /1000 - 1 ;// 1ms tick&lt;/P&gt;&lt;P&gt;// timerClock = srcClock_Hz / (config.prescale+1);&lt;/P&gt;&lt;P&gt;//PRINTF("timerclock %d\r\n",timerClock);&lt;/P&gt;&lt;P&gt;CTIMER_Init(CTIMER, &amp;amp;config);&lt;BR /&gt;matchConfig.enableCounterReset = true;&lt;BR /&gt;matchConfig.enableCounterStop = false;&lt;BR /&gt;matchConfig.matchValue = 25;//timerClock/480;//timerClock/2; //timerClock/0.024;//CTIMER_CLK_FREQ;//CTIMER_CLK_FREQ/4000000;&lt;BR /&gt;PRINTF("matchValue %d\r\n",matchConfig.matchValue);&lt;BR /&gt;matchConfig.outControl = kCTIMER_Output_Toggle;&lt;BR /&gt;matchConfig.outPinInitState = true;&lt;BR /&gt;matchConfig.enableInterrupt = true;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 12:10:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ctimer-match-value-and-prescale-value-for-25-clock-pulse/m-p/1607666#M51768</guid>
      <dc:creator>sachinn434</dc:creator>
      <dc:date>2023-03-01T12:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: ctimer match value and prescale  value for 25 clock pulse</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ctimer-match-value-and-prescale-value-for-25-clock-pulse/m-p/1608740#M51788</link>
      <description>&lt;P&gt;Hello, I suggest reviewing the SDK there has an example with the CTimer and I think that could be helpful the example has a LED toggle. I recommend not using a printf if you want to use a little time base.&lt;/P&gt;
&lt;P&gt;Example documentation.&lt;BR /&gt;&lt;EM&gt;The CTimer Example project is to demonstrate usage of the KSDK ctimer driver.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;In this example, the match feature of the CTimer is used to toggle the output level.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 21:41:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ctimer-match-value-and-prescale-value-for-25-clock-pulse/m-p/1608740#M51788</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2023-03-02T21:41:07Z</dc:date>
    </item>
  </channel>
</rss>

