<?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>CodeWarrior Development ToolsのトピックNeed help for configure ADC in K10</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976356#M7930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using K10 custom board , using codewarrior&amp;nbsp; 10.4 RTOS MQX 4.0. may get an example code for configure ADC and get the value?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2020 09:31:20 GMT</pubDate>
    <dc:creator>sarath_gs</dc:creator>
    <dc:date>2020-01-20T09:31:20Z</dc:date>
    <item>
      <title>Need help for configure ADC in K10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976356#M7930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using K10 custom board , using codewarrior&amp;nbsp; 10.4 RTOS MQX 4.0. may get an example code for configure ADC and get the value?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 09:31:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976356#M7930</guid>
      <dc:creator>sarath_gs</dc:creator>
      <dc:date>2020-01-20T09:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for configure ADC in K10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976357#M7931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the MQX ADC example code, the ADC example shows usage of the ADC driver sampling analog values from two ADC channels.&lt;/P&gt;&lt;P&gt;You can find this example after install MQX in the following path:&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_x\mqx\examples\adc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;have a nice day!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 18:19:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976357#M7931</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2020-01-20T18:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for configure ADC in K10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976358#M7932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you . Please check the below code is good on not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void ADC_Init(void)&lt;BR /&gt;{&lt;BR /&gt; /* SIM_SCGC6: ADC0=1 */&lt;BR /&gt; SIM_SCGC6 |= SIM_SCGC6_ADC0_MASK;&lt;BR /&gt; &lt;BR /&gt; /* PORTB_PCR3: ISF=0,MUX=0 */&lt;BR /&gt; PORTB_PCR3 &amp;amp;= (uint32_t)~(uint32_t)((PORT_PCR_ISF_MASK | PORT_PCR_MUX(0x07))); &lt;BR /&gt;ADC0_CFG1 = ADC_CFG1_ADIV(0x01) |&lt;BR /&gt; ADC_CFG1_ADLSMP_MASK |&lt;BR /&gt; ADC_CFG1_MODE(0x03) |&lt;BR /&gt; ADC_CFG1_ADICLK(0x00); &lt;BR /&gt; /* ADC0_CFG2: ADACKEN=0,ADHSC=0,ADLSTS=2 */&lt;BR /&gt; ADC0_CFG2 = (uint32_t)((ADC0_CFG2 &amp;amp; (uint32_t)~(uint32_t)(&lt;BR /&gt; ADC_CFG2_ADACKEN_MASK |&lt;BR /&gt; ADC_CFG2_ADHSC_MASK |&lt;BR /&gt; ADC_CFG2_ADLSTS(0x01)&lt;BR /&gt; )) | (uint32_t)(&lt;BR /&gt; ADC_CFG2_ADLSTS(0x02)&lt;BR /&gt; )); &lt;BR /&gt; /* ADC0_SC2: ??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,ADACT=0,ADTRG=0,ACFE=0,ACFGT=0,ACREN=0,DMAEN=0,REFSEL=0 */&lt;BR /&gt; ADC0_SC2 = ADC_SC2_REFSEL(0x00); &lt;BR /&gt; /* ADC0_SC3: ??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,CAL=0,CALF=1,??=0,??=0,ADCO=0,AVGE=0,AVGS=0 */&lt;BR /&gt; ADC0_SC3 = (ADC_SC3_CALF_MASK | ADC_SC3_AVGS(0x00)); &lt;BR /&gt;}&lt;BR /&gt;/******************************************************************************&lt;BR /&gt; .Purpose : For getting the ADC value from register&lt;BR /&gt; .Param : Pointer to buffer to get the value.&lt;BR /&gt; .Returns : NULL&lt;BR /&gt; .Note : &lt;BR /&gt;******************************************************************************/&lt;BR /&gt;void Get_ADCValue(uint_32 *iBuffer)&lt;BR /&gt;{&lt;BR /&gt; uint_32 iCount;&lt;BR /&gt; /*Getting the ADC value from register*/&lt;BR /&gt; ADC0_RA = ADC_R_D(0);&lt;BR /&gt; &lt;BR /&gt; iCount = ADC0_RA; &lt;BR /&gt; *iBuffer = iCount;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 04:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976358#M7932</guid>
      <dc:creator>sarath_gs</dc:creator>
      <dc:date>2020-01-21T04:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for configure ADC in K10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976359#M7933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are not using the MQX drivers, if you are using MQX I suggest you use the MQX drivers, please check the following document:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-333348"&gt;https://community.nxp.com/docs/DOC-333348&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the code, I cannot find a particular issue with the code, however it is necessary you test the application. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 17:47:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Need-help-for-configure-ADC-in-K10/m-p/976359#M7933</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2020-01-22T17:47:05Z</dc:date>
    </item>
  </channel>
</rss>

