<?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 Software Development KitのトピックDoes ADC_16_DRV_GetAutoCalibrationParam calibrate the ADC?</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Does-ADC-16-DRV-GetAutoCalibrationParam-calibrate-the-ADC/m-p/450988#M3115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the KSDK 1.2, I initialize and calibrate an ADC channel by drivers I found in the component list:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="46044_46044.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120442iDD684F5094C7C874/image-size/large?v=v2&amp;amp;px=999" role="button" title="46044_46044.jpg" alt="46044_46044.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="drivers.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61176iADC200F3C50DAA79/image-size/large?v=v2&amp;amp;px=999" role="button" title="drivers.jpg" alt="drivers.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas; color: black;"&gt;&amp;nbsp; ADC16_DRV_Init (0, &amp;amp;ADC0_CalConvConfig); &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;//set ADC to s/w trigger mode for calibration&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp; ADC16_DRV_GetAutoCalibrationParam(0, &amp;amp;ADC0_CalConfig); &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;//calibrate ADC0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp; ADC16_DRV_SetCalibrationParam(0, &amp;amp;ADC0_CalConfig);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;… but there is no mention of this function in the API Reference Manual. I have been told this function actually calibrates the ADCs. Is it really this easy? I can’t determine certainly from setting breakpoints if any of the offset, gain or calibration register values actually changed from those that are already in them (from previously issuing this command). Is there any documentation on these driver calls and parameter structure?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 14:47:25 GMT</pubDate>
    <dc:creator>georgeleszko</dc:creator>
    <dc:date>2015-07-02T14:47:25Z</dc:date>
    <item>
      <title>Does ADC_16_DRV_GetAutoCalibrationParam calibrate the ADC?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Does-ADC-16-DRV-GetAutoCalibrationParam-calibrate-the-ADC/m-p/450988#M3115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the KSDK 1.2, I initialize and calibrate an ADC channel by drivers I found in the component list:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="46044_46044.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120442iDD684F5094C7C874/image-size/large?v=v2&amp;amp;px=999" role="button" title="46044_46044.jpg" alt="46044_46044.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="drivers.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61176iADC200F3C50DAA79/image-size/large?v=v2&amp;amp;px=999" role="button" title="drivers.jpg" alt="drivers.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas; color: black;"&gt;&amp;nbsp; ADC16_DRV_Init (0, &amp;amp;ADC0_CalConvConfig); &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;//set ADC to s/w trigger mode for calibration&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp; ADC16_DRV_GetAutoCalibrationParam(0, &amp;amp;ADC0_CalConfig); &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;//calibrate ADC0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp; ADC16_DRV_SetCalibrationParam(0, &amp;amp;ADC0_CalConfig);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;… but there is no mention of this function in the API Reference Manual. I have been told this function actually calibrates the ADCs. Is it really this easy? I can’t determine certainly from setting breakpoints if any of the offset, gain or calibration register values actually changed from those that are already in them (from previously issuing this command). Is there any documentation on these driver calls and parameter structure?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 14:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Does-ADC-16-DRV-GetAutoCalibrationParam-calibrate-the-ADC/m-p/450988#M3115</guid>
      <dc:creator>georgeleszko</dc:creator>
      <dc:date>2015-07-02T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Does ADC_16_DRV_GetAutoCalibrationParam calibrate the ADC?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Does-ADC-16-DRV-GetAutoCalibrationParam-calibrate-the-ADC/m-p/450989#M3116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, this function is not documented in the API Reference Manual but you can see the description about this function in the file fsl_adc16_driver.c. The function description is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14358693532399467 jive_text_macro" data-renderedposition="92_8_1232_144" jivemacro_uid="_14358693532399467" modifiedtitle="true"&gt;&lt;P&gt;/*Function Name : ADC16_DRV_SetCalibrationParam&lt;/P&gt;&lt;P&gt; * Description&amp;nbsp; : Set the calibration parameters for ADC module. These&lt;/P&gt;&lt;P&gt; * parameters can be fetched by launching the process of auto calibration&lt;/P&gt;&lt;P&gt; * or to use some predefined values that filled in the structure of&lt;/P&gt;&lt;P&gt; * "adc16_calibration_param_t". For higher precision,&amp;nbsp; it is recommended to&lt;/P&gt;&lt;P&gt; * execute the process of calibration before initializing the ADC module.&lt;/P&gt;&lt;P&gt; * Since this API may be called before the initialization, it enables the ADC&lt;/P&gt;&lt;P&gt; * clock internally.&lt;/P&gt;&lt;P&gt; */&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you need to call the function ADC16_DRV_GetAutoCalibrationParam before ADC16_DRV_SetCalibrationParam. Its description is above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14358694332703557 jive_text_macro" data-renderedposition="299_8_1232_128" jivemacro_uid="_14358694332703557" modifiedtitle="true"&gt;&lt;P&gt;/* Function Name : ADC16_DRV_GetAutoCalibrationParam&lt;/P&gt;&lt;P&gt; * Description&amp;nbsp;&amp;nbsp; : Execute the the process of auto calibration and fetch&lt;/P&gt;&lt;P&gt; * the calibration parameters that would be kept in "adc16_calibration_param_t"&lt;/P&gt;&lt;P&gt; * type variable. When executing the process of auto calibration, the ADC&lt;/P&gt;&lt;P&gt; * has been configured internally to work in the situation with highest&lt;/P&gt;&lt;P&gt; * precision. Since this API may be called before the initialization, it enables&lt;/P&gt;&lt;P&gt; * the ADC clock internally.&lt;/P&gt;&lt;P&gt; */&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can calibrate your ADC just by calling the below code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14358696198529351 jive_text_macro" data-renderedposition="490_8_1232_80" jivemacro_uid="_14358696198529351"&gt;&lt;P&gt;#define ADC_INSTANCE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0)&lt;/P&gt;&lt;P&gt;adc16_calibration_param_t userCalConfig;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADC16_DRV_GetAutoCalibrationParam(ADC_INSTANCE, &amp;amp;userCalConfig);&lt;/P&gt;&lt;P class="line"&gt;ADC16_DRV_SetCalibrationParam(ADC_INSTANCE, &amp;amp;userCalConfig);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this information is useful or if I can do anything else for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl Orlando.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;​/* If this post answers your question please click over the &lt;EM&gt;​Correct answer&lt;/EM&gt; button. */&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 20:41:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Does-ADC-16-DRV-GetAutoCalibrationParam-calibrate-the-ADC/m-p/450989#M3116</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-02T20:41:28Z</dc:date>
    </item>
  </channel>
</rss>

