<?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>Kinetis Microcontrollers中的主题 Re: ADC calibration register behavior on Kinetis K22</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726392#M44431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to omit description about glitch&amp;nbsp; 3-1 through 4-4, while it's almost same as glitch 1-1 through 2-4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, let's see glitch happening on Ch2;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.19&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ_KmAqKnOuWw8LrWjMWP63lfQFGzVmZmK144lDKupjxUk92NIReYaHtgJB6sQezZ6s0OPD_fAg_0lAsyjvyCBqyBnRWdHJ2mehcO9TBzjLkTyHr-tEdUl3BpJM&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520436691681&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A rapid voltage drop on Ch2 should be "Inetrval.I" described in&amp;nbsp;&lt;A href="https://os.mbed.com/media/uploads/GregC/an4373-cookbook_for_sar_adc.pdf"&gt;this document&lt;/A&gt;. According to the document. time constant for this voltage drop should be around 200ns, while &lt;A href="https://www.nxp.com/docs/en/data-sheet/K22P80M120SF7.pdf"&gt;Csh ≈ 8pF, Rsh &lt;SPAN&gt;≈&amp;nbsp;&lt;/SPAN&gt;2kΩ&lt;/A&gt;, and&amp;nbsp;C&lt;SPAN style="font-size: 11px;"&gt;IN&lt;/SPAN&gt;&amp;nbsp;= 100pF. However, I can estimate time constant of this voltage drop is never more than 50ns. Note that "time constant" represents a time to charge to 63.2% of final voltage while we are talking about RC time constant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 4&lt;/STRONG&gt;: Please make it clear from where this time constant comes. Isn't there a route that detours Rsh? I guess there is a path that outputs "some voltage",&amp;nbsp; as same reason as I asked in question 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cont'd to next post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2018 16:39:54 GMT</pubDate>
    <dc:creator>sekiriki</dc:creator>
    <dc:date>2018-03-07T16:39:54Z</dc:date>
    <item>
      <title>ADC calibration register behavior on Kinetis K22</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726387#M44426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm facing on a problem, that is, it's difficult to satisfy&amp;nbsp;the settling time required described in section 3.2.4 in &lt;A href="https://cache.nxp.com/docs/en/application-note/AN5250.pdf"&gt;this &lt;/A&gt;document, since the output impedance (R&lt;SPAN style="font-size: 12px;"&gt;IN&lt;/SPAN&gt;&amp;nbsp;in the document) of a sensor device I'm using was pretty higher than I'd expected. I know it's our hardware design problem and the best way is to reduce the impedance using op-amp or something like that, but I'm still looking for a workaround to give a relief to products that we'd already have shipped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While investigating this problem, I found an interesting symptom.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="NewFile5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29621iE5244AEA5F96EA01/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewFile5.png" alt="NewFile5.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="NewFile4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29958i710930971BCC4C89/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewFile4.png" alt="NewFile4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The left figure shows the input signal, and the right is also an input signal to K22 while ADC is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More interestingly,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="NewFile3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29959i006E36EB65C0076B/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewFile3.png" alt="NewFile3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="NewFile2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29960iFD32374119039D09/image-size/large?v=v2&amp;amp;px=999" role="button" title="NewFile2.png" alt="NewFile2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The left figure shows the signal when all values on calibration registers were default value (ADCx_CLP0 = 32,&amp;nbsp;&lt;SPAN&gt;ADCx_CLP1 = 64,&amp;nbsp;ADCx_CLP2 = 128...). It clearly shows that&amp;nbsp;&lt;/SPAN&gt;the charging current to S/H capacitor depends on the values written to ADC calibration register, and finally, I found I could minimize charging current by writing zeros to all calibration register except &lt;SPAN&gt;ADCx_&lt;/SPAN&gt;PG/MG remains 0x8000 (right figure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you let me know how K22 utilizes values written to calibration registers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Seki, Tsutomu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:19:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726387#M44426</guid>
      <dc:creator>sekiriki</dc:creator>
      <dc:date>2018-03-02T18:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: ADC calibration register behavior on Kinetis K22</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726388#M44427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Tsutomu,&lt;/P&gt;&lt;P&gt;You can set up ADC register so that ADC can match with high impedance input source.&lt;/P&gt;&lt;P&gt;1)ADLSMP bit with ADCx_CFG1[ADLSMP]=1&lt;/P&gt;&lt;P&gt;2)CFG2[ADLSTS]=00;&lt;/P&gt;&lt;P&gt;3)CFG2[ADHSC]=1&lt;/P&gt;&lt;P&gt;The total sample time will be 26 AQDCK clock cycles.&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;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/669iDE2CDF025D95F4A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 05:40:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726388#M44427</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2018-03-07T05:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: ADC calibration register behavior on Kinetis K22</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726389#M44428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;湘君,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN style="color: #222222; font-size: 14px;"&gt;Thank you for your reply, but I know that... We have 32kΩ R&lt;/SPAN&gt;&lt;SPAN style="font-size: 11px;"&gt;IN&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-size: 14px;"&gt; and 0.01μF C&lt;/SPAN&gt;&lt;SPAN style="font-size: 11px;"&gt;IN&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-size: 14px;"&gt;&amp;nbsp;on our production board. In this case, the time constant τ = 0.32ms and thus, to achieve sample time &amp;gt; 6.93&amp;nbsp;τ (for 10 bit conversion described&amp;nbsp;in &lt;A href="https://cache.nxp.com/docs/en/application-note/AN5250.pdf"&gt;this document&lt;/A&gt;), we need ADCK less than 11.7kHz, but it's not possible since we don't have such a slow clock source.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: 14px;"&gt;To visualize this problem, I've setup bread board as follows;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4763i5D51EA4EB5BE7361/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: 14px;"&gt;Here, ADC1 interleaves signal from signal generator ch1/2 (SG1/2) in the order ch1, ch1, ch2, ch2. The signal from SG2 is shared with ADC0/1. Please note that, R/C constants are different from out production board, because the purpose of this setup is not to &lt;STRONG&gt;reproduce&lt;/STRONG&gt; the problem, but &lt;STRONG&gt;visualize&lt;/STRONG&gt; the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: 14px;"&gt;Then, I'd setup ADCs as follows;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH style="width: 39%;"&gt;Register&lt;/TH&gt;&lt;TH style="width: 28%;"&gt;ADC1&lt;/TH&gt;&lt;TH style="width: 28%;"&gt;ADC0&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 39%;"&gt;ADCK&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;1MHz&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;←&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 39%;"&gt;ADLSTS&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;10 ADCK&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;&lt;SPAN&gt;←&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 39%;"&gt;ADTRG&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;&lt;SPAN&gt;H/W (PIT) @3200Hz&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;&lt;SPAN&gt;←&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 39%;"&gt;MODE&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;&lt;SPAN&gt;single-ended 16-bit&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;&lt;SPAN&gt;←&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 39%;"&gt;AVGS&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;&lt;SPAN&gt;4 samples&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;&lt;SPAN&gt;←&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 39%;"&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;CLPx&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;defaults&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;all zeros&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 39%;"&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;PG&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;33280 (default value)&lt;/TD&gt;&lt;TD style="width: 28%;"&gt;32768&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this setup, I could capture this waveform.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.2&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ91eADz0Iwa32F6xu8vCNaputyHxEkuTT-P3Ka3ZDuUWcd4QsDpmeoGS9G7jtrvaMRI0uFhZ7n-QaNXuzpyqeSgPbbd5mZU9iE_KYkVGkChi55BEExZrtooSew&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520434582169&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" /&gt;&lt;/P&gt;&lt;P&gt;I'd like to name first four set of glitches 1-1, 1-2, 1-3, 1-4 and second four sets 2-1, 2-2..., and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followings are details of them.&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 387px;"&gt;&lt;P&gt;1-1～1-4&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" height="240" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.3&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ8fPOQY-63hrYD11V7zO74QbXoOPNIMHpj_SeVxSKNfgv6y5M50hLYtgKYxkUIdhQ2E2khVBZdrDwtcAcM96q3dNjW1Knr0r216iz5OtAOiNDVv0N8z6eXmPNA&amp;amp;sz=w800-h480&amp;amp;ats=1520434582170&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" width="400" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 388px;"&gt;&lt;P&gt;2-2～2-4&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" height="240" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.4&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ988bf3HNAeZg9tgMnGqdo5ZTUeEiH6JsggVoZfVp4J8PCW86c0CxNJ0_C-1gEDTaYAuaNdkHQmGSsISLQyLNGUYrQ2222paZykcviaGEET3Aitnp5tqLy9Z8c&amp;amp;sz=w800-h480&amp;amp;ats=1520434582170&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" width="400" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 387px;"&gt;&lt;P&gt;3-1～3-4&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" height="240" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.5&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ-qyBBMbIZN2PjHaaZi6hfNFQgH9YQrF-CMZxoJBphIaIETTA_wTeIpnE9WcVgjr5dDozF5CzkPQn8y0rh8Ocr6UrvP9Ic_9-YyB7CtUFHFL2sDUTYlvFd7k40&amp;amp;sz=w800-h480&amp;amp;ats=1520434582170&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" width="400" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 388px;"&gt;&lt;P&gt;4-1～4-4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be filled later...&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cont'd to next post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:28:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726389#M44428</guid>
      <dc:creator>sekiriki</dc:creator>
      <dc:date>2018-03-07T15:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: ADC calibration register behavior on Kinetis K22</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726390#M44429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expanding glitch 1-1, you may able to see three discontinuities;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.6&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ_NETWc6zokqk9SKdlXs1d82an2l2LmCmvWpOIwRtv188SOq-qciK1kXg1Xa0i8mI3Yref73r-OqqYGRvmISCqu3XsFNs8d8c6EKhioUIPd-XP4OjIcrD8_jPI&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520436691676&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" /&gt;&lt;/P&gt;&lt;P&gt;first discontinuity at -13μs, second at 0&lt;SPAN&gt;μs, third at 19μs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I guess K22 has started sampling (gate ON) at&amp;nbsp;-13μs, and hold (gate OFF) at 0μs, run SAR until&amp;nbsp;19μs, and gate ON again at&amp;nbsp;19μs for next sample.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question 1&lt;/STRONG&gt;: According to &lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;section 34.4.4.5 "Sample time and total conversion time"&amp;nbsp;&lt;/SPAN&gt;in &lt;A href="https://www.nxp.com/docs/en/reference-manual/K22P121M120SF7RM.pdf"&gt;this document&lt;/A&gt;, sampling time should be 10 ADCK cycles, regardless to first or subsequent sampling. What is this &lt;STRONG&gt;3 extra&lt;/STRONG&gt; sampling clocks?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From expansion of glitch 1-2 and 1-3, you may also able to see &lt;STRONG&gt;2 extra&lt;/STRONG&gt; sampling clocks;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 48.6618%;"&gt;&lt;P&gt;1-2: second gate ON at&amp;nbsp;&lt;SPAN&gt;-12μs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" height="240" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.7&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ-bNbYXvZ3rPX-FAb6RpvgPjHz_qB0TWKA9s2lvBAi_pIXG_qAsAoX8QEPOnvBC8lW6ST53KS3KfRIH5mivd7EnzKxofxrH7B-_13bZb0n1OYgeZyeMK3yL-m8&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520436691677&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" width="400" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 48.6618%;"&gt;&lt;P&gt;1-2: third gate ON at&amp;nbsp;&lt;SPAN&gt;-12μs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" height="240" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.8&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ9vfdO0LDHKPEa4I9PQT6PM9JBSrwZGh2WUh4ZmizXARsb5anApBBYqNI2UFlSA5mR9LJBcAh6eKkztboLnTFBBYnybrASs5lEu_vjxjRIDG9lO1TWZWKaBDdY&amp;amp;sz=w800-h480&amp;amp;ats=1520436691678&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" width="400" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last one is glitch 1-4.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.9&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ_Wnv4T8_fMgicXqnaGS-Vr5mY3Z7YiooEjnca5AzQAMwF-tT6n3bIOHOKT4-LtnEH2lB_N9gE_fyR9uFf4klhPawpqbSeSDauKRIDr5gdxZh00_EcW1wYyVzo&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520436691678&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may able to see fourth&amp;nbsp;gate ON at&amp;nbsp;&lt;SPAN&gt;-12μs, and &lt;STRONG&gt;fifth&lt;/STRONG&gt; gate ON at&amp;nbsp;19μs, and gate OFF at 20μs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question 2&lt;/STRONG&gt;: Is fifth gate ON expected? If yes, please make it clear why it's needed, otherwise, this symptom should be a hardware bug. As far as I understood, this gate ON is not required, while fourth SAR has already be done for AVGS = 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cont'd to next post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:03:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726390#M44429</guid>
      <dc:creator>sekiriki</dc:creator>
      <dc:date>2018-03-07T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: ADC calibration register behavior on Kinetis K22</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726391#M44430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An another mysterious behavior comes with glitch 2-4.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.10&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ_l65zH1V25JBr_0W8IN2D8sJIX4cUV98lbxF1U2VII5KmcGqo-iqydx44MNY7T2Gz_hVwwDuACHooaAbi89h2mwDh-gqmFufLBmRvVbYT98V6L81u300hg7QM&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520436691679&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After fourth SAR of second set has finished, DMA updates MUXSEL using &lt;A href="https://www.nxp.com/docs/en/application-note/AN4590.pdf"&gt;this method&lt;/A&gt;. I suppose this has happened around 10.4&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;μs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 3&lt;/STRONG&gt;: At this moment, it seems &lt;STRONG&gt;current flows from Ch1 to Ch2&lt;/STRONG&gt;. Is this my optical illusion? I think it's not. Please clarify whether there is a moment that two gates (Ch1 and 2) are simultaneously opened or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:18:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726391#M44430</guid>
      <dc:creator>sekiriki</dc:creator>
      <dc:date>2018-03-07T16:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: ADC calibration register behavior on Kinetis K22</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726392#M44431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to omit description about glitch&amp;nbsp; 3-1 through 4-4, while it's almost same as glitch 1-1 through 2-4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, let's see glitch happening on Ch2;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.19&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ_KmAqKnOuWw8LrWjMWP63lfQFGzVmZmK144lDKupjxUk92NIReYaHtgJB6sQezZ6s0OPD_fAg_0lAsyjvyCBqyBnRWdHJ2mehcO9TBzjLkTyHr-tEdUl3BpJM&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520436691681&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A rapid voltage drop on Ch2 should be "Inetrval.I" described in&amp;nbsp;&lt;A href="https://os.mbed.com/media/uploads/GregC/an4373-cookbook_for_sar_adc.pdf"&gt;this document&lt;/A&gt;. According to the document. time constant for this voltage drop should be around 200ns, while &lt;A href="https://www.nxp.com/docs/en/data-sheet/K22P80M120SF7.pdf"&gt;Csh ≈ 8pF, Rsh &lt;SPAN&gt;≈&amp;nbsp;&lt;/SPAN&gt;2kΩ&lt;/A&gt;, and&amp;nbsp;C&lt;SPAN style="font-size: 11px;"&gt;IN&lt;/SPAN&gt;&amp;nbsp;= 100pF. However, I can estimate time constant of this voltage drop is never more than 50ns. Note that "time constant" represents a time to charge to 63.2% of final voltage while we are talking about RC time constant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 4&lt;/STRONG&gt;: Please make it clear from where this time constant comes. Isn't there a route that detours Rsh? I guess there is a path that outputs "some voltage",&amp;nbsp; as same reason as I asked in question 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cont'd to next post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:39:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726392#M44431</guid>
      <dc:creator>sekiriki</dc:creator>
      <dc:date>2018-03-07T16:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: ADC calibration register behavior on Kinetis K22</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726393#M44432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is clear that&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;"some voltage" is related to values written into ADC calibration register "CLPx."&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;IMG alt="" class="" height="240" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.20&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ-Q6Aa_iPbt5WJD8NdpG82JCux6j5XbQEkzzlf3y6wDb1uzaO3c2K89_hQacDLr12oFELcIyqZ2HSeGxF29C9r81R4eIjxTTgmNhO5xesrKIPVqrijnZNjeemA&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520436691682&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" width="400" /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;IMG alt="" class="" height="241" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=64a98b33b9&amp;amp;view=fimg&amp;amp;th=162001905116a8cf&amp;amp;attid=0.1.21&amp;amp;disp=emb&amp;amp;attbid=ANGjdJ8pVQM5udh5qrmhWutMLX6yTM7J3xrlESTRHrGQe__WcTPH_c85bE1oF2aa7cloce_4pbT1xdnXNkw0br0VjNexcVw7LNQ0_lW6sphjVLQ6Ja2GWTM3Heg6Usw&amp;amp;sz=s0-l75-ft&amp;amp;ats=1520436691682&amp;amp;rm=162001905116a8cf&amp;amp;zw&amp;amp;atsh=1" width="402" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The left waveform shows the response when CLPx registers of ADC1 are all default values, and right shows when ADC1 was calibrated. They are completely different! Please note that here,&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;CLPx registers of ADC0 are all zeros as I mentioned at first of first of the series of these posts.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;From these figures, I can say, we can minimize the distortion by writing all zeros to&amp;nbsp;CLPx registers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to write zeros to CLPx&amp;nbsp;registers, while K22 ADC calibration does not behaves as expected (I think it's a glitch, otherwise please give us an evidence), however, ADC results non-monotonic and/or missing code in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then, my final questions are;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question 5&lt;/STRONG&gt;: Please let me know, how K22 utilizes values written to calibration registers. I'ts an important information for us to compensate converted values offline. I can calibrate ADC using histogram method, but it is estimated to take more than 24H to calibrate precisely. I want to generate INL table using ADC calibration result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question 6&lt;/STRONG&gt;&lt;SPAN&gt;: Please let me know,&lt;SPAN&gt;&amp;nbsp;what is done on each ADCK cycles. It's also important for us to know theoretical response of ADC results through hardware averages for more precised&amp;nbsp;acquisition.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question 7&lt;/STRONG&gt;: Please let me know, what the "some voltage" is. Although I'm not sure, from observed waveform, I suppose it's related to 6 bits of MSBs of converted value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;関 力 (Seki, Tsutomu)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 17:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-calibration-register-behavior-on-Kinetis-K22/m-p/726393#M44432</guid>
      <dc:creator>sekiriki</dc:creator>
      <dc:date>2018-03-07T17:23:39Z</dc:date>
    </item>
  </channel>
</rss>

