<?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: LPC1768 QEI Max Capture speed in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1797354#M55261</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have checked the data sheet of LPC176x, but it does not list the max speed of QEI.&lt;/P&gt;
&lt;P&gt;For your case, what is PhaseA/PhaseB signal frequency which are from encoder?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 03:41:39 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2024-01-30T03:41:39Z</dc:date>
    <item>
      <title>LPC1768 QEI Max Capture speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1797102#M55254</link>
      <description>&lt;DIV&gt;QEI configuration code is shown below :&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CLKPWR_ConfigPPWR (CLKPWR_PCONP_PCQEI, ENABLE);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* As default, peripheral clock for QEI module&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;* is set to FCCLK / 2 */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// printf("\n qei_start");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CLKPWR_SetPCLKDiv(CLKPW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t;SPAN&gt;// Clear all Interrupt pending&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;QEIx-&amp;gt;QEICLR = QEI_INTCLR_BITMASK;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Set QEI configuration value corresponding to its setting up value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;QEIx-&amp;gt;QEICONF = ((QEI_CFGOPT_Type *)QEI_ConfigStruct)-&amp;gt;ulQEIConfig;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This configuration does not seem to work if we move encoder really fast...This code is setup to use 100MHZ as peripheral clock but it still fails to recognize the signals properly when we move it fast. In slow motion it captures all the count properly.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;LPC datasheet does not mention till what frequency QEI is capable of counting pulse. I have attached the logic analyzer capture of the signals which is troubling me.&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jan 2024 19:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1797102#M55254</guid>
      <dc:creator>hdhedhu10</dc:creator>
      <dc:date>2024-01-29T19:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 QEI Max Capture speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1797354#M55261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have checked the data sheet of LPC176x, but it does not list the max speed of QEI.&lt;/P&gt;
&lt;P&gt;For your case, what is PhaseA/PhaseB signal frequency which are from encoder?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 03:41:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1797354#M55261</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-01-30T03:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 QEI Max Capture speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1797406#M55263</link>
      <description>&lt;P&gt;Maximum frequency is 350Khz.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 05:40:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1797406#M55263</guid>
      <dc:creator>hdhedhu10</dc:creator>
      <dc:date>2024-01-30T05:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 QEI Max Capture speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1801365#M55333</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suppose that it is okay for the QEI counter counts both falling/rising edge of both phaseA/PhaseB signal(x4) even if the phaseA signal frequency is 350K.&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>Sun, 04 Feb 2024 08:03:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-QEI-Max-Capture-speed/m-p/1801365#M55333</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-02-04T08:03:14Z</dc:date>
    </item>
  </channel>
</rss>

