<?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 Re: Eqadc  8 bits ADC Resolution in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643242#M6447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand well you want to change resolution to 8-bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be done by choosing Conversion Command Format for Alternate Configurations, it the such one having 0x08-0x0F on LSB place.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18159iEAC990B635456F9C/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance 0x08 choose Alternate configuration 1 that is related to ADC_ACR1 register&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18111i4286DB70DAF6664F/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would recommend to see following example code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105723"&gt;Example MPC5674F eQADC+eDMA Single_Scan CW210&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using there header file called eQADC_macros_MONACO.h which you possibly simplify you configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance mentioned example uses following command queue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;// Conversion Command Queue 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;uint32_t CQueue_0[] =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( CHANNEL(0)&amp;nbsp; | B0 | MESSAGE_TAG(RFIFO0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( CHANNEL(1)&amp;nbsp; | B1 | MESSAGE_TAG(RFIFO0) | EOQ )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you case it would like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;// Conversion Command Queue 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;uint32_t CQueue_0[] =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( ALT_CONFIG_SEL(ALT_CONF_1) | CHANNEL(0)&amp;nbsp; | MESSAGE_TAG(RFIFO0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( ALT_CONFIG_SEL(ALT_CONF_1) | CHANNEL(1)&amp;nbsp; | MESSAGE_TAG(RFIFO0) | EOQ ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not all necessary changes but I hope it helps a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One yet note about result format (as it be possibly confusing) - it is basically placed in the middle of result register like in this examples :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18252i25F03F83F2CD696C/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Apr 2017 13:42:12 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2017-04-26T13:42:12Z</dc:date>
    <item>
      <title>Eqadc  8 bits ADC Resolution</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643241#M6446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the configuration of the EQADC in the micro MPC5634 as I can change the resolution of the ADC to 8 bits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EQADC.CFPR[0].R = 0x80040C00; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Conversion command: convert channel 12---&amp;gt;0C// 16 bits */&lt;BR /&gt; EQADC.CFCR[0].R = 0x0410; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* with ADC0, set EOQ, and send result to RFIFO 0 */ &lt;BR /&gt; &lt;BR /&gt; while (EQADC.FISR[0].B.RFDF != 1){} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Wait for RFIFO 0's Drain Flag to set */&lt;BR /&gt; Tps = EQADC.RFPR[0].R; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* ADC result */ &lt;BR /&gt; &lt;BR /&gt; TpsMv = (uint32_t)((5000*Tps)/0x3FFC); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* ADC result in milivolts */&lt;BR /&gt; &lt;BR /&gt; EQADC.FISR[0].R = 0x10020000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 17:47:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643241#M6446</guid>
      <dc:creator>jorgeramon</dc:creator>
      <dc:date>2017-04-25T17:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Eqadc  8 bits ADC Resolution</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643242#M6447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand well you want to change resolution to 8-bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be done by choosing Conversion Command Format for Alternate Configurations, it the such one having 0x08-0x0F on LSB place.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18159iEAC990B635456F9C/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance 0x08 choose Alternate configuration 1 that is related to ADC_ACR1 register&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18111i4286DB70DAF6664F/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would recommend to see following example code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105723"&gt;Example MPC5674F eQADC+eDMA Single_Scan CW210&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using there header file called eQADC_macros_MONACO.h which you possibly simplify you configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance mentioned example uses following command queue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;// Conversion Command Queue 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;uint32_t CQueue_0[] =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( CHANNEL(0)&amp;nbsp; | B0 | MESSAGE_TAG(RFIFO0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( CHANNEL(1)&amp;nbsp; | B1 | MESSAGE_TAG(RFIFO0) | EOQ )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you case it would like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;// Conversion Command Queue 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;uint32_t CQueue_0[] =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( ALT_CONFIG_SEL(ALT_CONF_1) | CHANNEL(0)&amp;nbsp; | MESSAGE_TAG(RFIFO0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( ALT_CONFIG_SEL(ALT_CONF_1) | CHANNEL(1)&amp;nbsp; | MESSAGE_TAG(RFIFO0) | EOQ ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not all necessary changes but I hope it helps a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One yet note about result format (as it be possibly confusing) - it is basically placed in the middle of result register like in this examples :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18252i25F03F83F2CD696C/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 13:42:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643242#M6447</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-04-26T13:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Eqadc  8 bits ADC Resolution</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643243#M6448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for answering&lt;/P&gt;&lt;P&gt;I change it in &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; Alternate configuration&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x08&amp;nbsp;&lt;/SPAN&gt;but the values I get remain the same as 14 bits as the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14250i28A78F9476367011/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the code as well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14307i45A66364E8613B64/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14320i9E9E7BCA01658377/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14308i397967291F07BE78/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does not change to 8bit&lt;/P&gt;&lt;P&gt;It is better a resolution of 14 bits as the one I get or 8 bits is for the calculation of the times of injection of a motor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 18:13:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643243#M6448</guid>
      <dc:creator>jorgeramon</dc:creator>
      <dc:date>2017-04-27T18:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Eqadc  8 bits ADC Resolution</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643244#M6449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is needed to mask results as I depicted by red color. otherwise you have just 14-bit result but never 14-bit accuracy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason for choosing 10/8bit is shorter conversion time by one/two adc cycles.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14245iDC27B96D49728688/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 08:37:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/643244#M6449</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-04-28T08:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Eqadc  8 bits ADC Resolution</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/1302473#M18595</link>
      <description>&lt;P&gt;What is the resolution of eQADC in standart configuration?&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 13:09:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/1302473#M18595</guid>
      <dc:creator>berat24</dc:creator>
      <dc:date>2021-07-05T13:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Eqadc  8 bits ADC Resolution</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/1303891#M18607</link>
      <description>&lt;P&gt;No, 12-bit is a standard configuration.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 10:21:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Eqadc-8-bits-ADC-Resolution/m-p/1303891#M18607</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-07-07T10:21:16Z</dc:date>
    </item>
  </channel>
</rss>

