<?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 Capture Qei position and send to usb in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Capture-Qei-position-and-send-to-usb/m-p/519705#M3303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AmirHejazi on Thu Jan 31 14:24:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to draw graphs of position of 2-phased QEI versus time, using LPC1768. it is important to draw transient state between ON &amp;amp; OFF (to find step response!). An ENCLK_Int interrupt occurs at the every transition of the encoder and the firmware sends the timer value to USB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written some codes. but FILE_Open, FILE_Write and FILE_Close are too slow to run in the QEI ISR, so i have send the data to a buffer and send them in batch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but i don't know how to do it! :-|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i buffer the data? should i use an auxiliary register?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i detect that number of bytes written in QEITIME(or auxilary Buffer) is 512?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should i pend the interrupt to send the data(buffer) to USB? (cause the usb functions are too slow)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:40:14 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:40:14Z</dc:date>
    <item>
      <title>Capture Qei position and send to usb</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Capture-Qei-position-and-send-to-usb/m-p/519705#M3303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AmirHejazi on Thu Jan 31 14:24:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to draw graphs of position of 2-phased QEI versus time, using LPC1768. it is important to draw transient state between ON &amp;amp; OFF (to find step response!). An ENCLK_Int interrupt occurs at the every transition of the encoder and the firmware sends the timer value to USB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written some codes. but FILE_Open, FILE_Write and FILE_Close are too slow to run in the QEI ISR, so i have send the data to a buffer and send them in batch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but i don't know how to do it! :-|&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i buffer the data? should i use an auxiliary register?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i detect that number of bytes written in QEITIME(or auxilary Buffer) is 512?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should i pend the interrupt to send the data(buffer) to USB? (cause the usb functions are too slow)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Capture-Qei-position-and-send-to-usb/m-p/519705#M3303</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:40:14Z</dc:date>
    </item>
  </channel>
</rss>

