<?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 ADC sample time varies whle using USB HID rpotocol in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-sample-time-varies-whle-using-USB-HID-rpotocol/m-p/308836#M13214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Kiel uvision for arm bare metal example project of&amp;nbsp; usb device with K20 72 Mhz.&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;I have configured hid to 1 endpoint to send adc &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;data to PC. hid binterval time is 1ms after every 1 ms the PC &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;sends in token to kinetis controller and controller sends 64 &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;bytes of adc data to pc. I have set adc on continuous &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;conversion in interupt mode if i do not connect controller to pc &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;the sample time of adc remains constant but when i connect &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;controller to pc the samples time varies about 10 usec. i want a &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;constant sample time of adc and usb communication in hid &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;mode together.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 10:56:37 GMT</pubDate>
    <dc:creator>kamransial</dc:creator>
    <dc:date>2014-04-02T10:56:37Z</dc:date>
    <item>
      <title>ADC sample time varies whle using USB HID rpotocol</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-sample-time-varies-whle-using-USB-HID-rpotocol/m-p/308836#M13214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Kiel uvision for arm bare metal example project of&amp;nbsp; usb device with K20 72 Mhz.&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;I have configured hid to 1 endpoint to send adc &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;data to PC. hid binterval time is 1ms after every 1 ms the PC &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;sends in token to kinetis controller and controller sends 64 &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;bytes of adc data to pc. I have set adc on continuous &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;conversion in interupt mode if i do not connect controller to pc &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;the sample time of adc remains constant but when i connect &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;controller to pc the samples time varies about 10 usec. i want a &lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5; color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 1.5em;"&gt;constant sample time of adc and usb communication in hid &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #f5f5f5;"&gt;mode together.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 10:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-sample-time-varies-whle-using-USB-HID-rpotocol/m-p/308836#M13214</guid>
      <dc:creator>kamransial</dc:creator>
      <dc:date>2014-04-02T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: ADC sample time varies whle using USB HID rpotocol</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-sample-time-varies-whle-using-USB-HID-rpotocol/m-p/308837#M13215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0 0 1.0pt 0;"&gt;Hi Kamran,&lt;/P&gt;&lt;P style="padding: 0 0 1.0pt 0;"&gt;&lt;/P&gt;&lt;P style="padding: 0 0 1.0pt 0;"&gt;Have you verified the ADC conversion time and the ISR duration? Have you checked the duration of the USB transmission function? On some USB tasks, the interrupts are disabled, and during such time, the ADC interrupts will not be serviced. So, you could try implementing DMA transfers for moving the ADC results to a memory buffer at the same time that the USB is transferring the data to the PC.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 16:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-sample-time-varies-whle-using-USB-HID-rpotocol/m-p/308837#M13215</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2014-04-08T16:30:44Z</dc:date>
    </item>
  </channel>
</rss>

