<?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>S12 / MagniV Microcontrollers中的主题 Re: List based ADC architecture</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783361#M15541</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;Thank you for the reply .&lt;/P&gt;&lt;P&gt;Could you tel me , then why we are not loading the command settings directly in to the&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;STRONG&gt;ADCCMD_n&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;register&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; in the following code .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In the following sample code , i couldn't see any declaration using &lt;STRONG&gt;ADCCMD register&lt;/STRONG&gt; but array data is moved in to the &lt;SPAN style="color: #ff0000;"&gt;ADC0CBP_0 ,&amp;nbsp;ADC0CBP_1 ,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;ADC0CBP_2&lt;/SPAN&gt; registers respectively .&amp;nbsp;Why ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;volatile unsigned char adc0_cmdlist[1][4] = {0xC0,0xD0,0xA0,0x00};&lt;BR /&gt;....................................&lt;/P&gt;&lt;P&gt;void ADC_init(void)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; ADC0CBP_0 = (unsigned char)(((long)adc0_cmdlist) &amp;gt;&amp;gt; 16);&lt;BR /&gt; ADC0CBP_1 = (unsigned char)(((long)adc0_cmdlist) &amp;gt;&amp;gt; 8);&lt;BR /&gt; ADC0CBP_2 = (unsigned char)((long)adc0_cmdlist);&lt;/P&gt;&lt;P&gt;.....................................&lt;/P&gt;&lt;P&gt;}&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Aug 2018 18:26:45 GMT</pubDate>
    <dc:creator>basilmathew</dc:creator>
    <dc:date>2018-08-18T18:26:45Z</dc:date>
    <item>
      <title>List based ADC architecture</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783359#M15539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;Can somebody help me to know about the List based ADC architecture in a simple way ? or some link ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned int ADC_read(unsigned int channel)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;adc0_cmdlist[0][1] = 0xC0|channel; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; What does this line of code means ???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;ADC0FLWCTL_RSTA = 1;&amp;nbsp;// Restart Event&lt;BR /&gt;&amp;nbsp;while(0x00 == ADC0CONIF){} //wait until conversion is complete&lt;BR /&gt;&amp;nbsp;ADC0CONIF = ADC0CONIF;//clear flag&lt;BR /&gt;&amp;nbsp;return adc0_results[0];&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:06:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783359#M15539</guid>
      <dc:creator>basilmathew</dc:creator>
      <dc:date>2018-08-14T18:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: List based ADC architecture</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783360#M15540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Please refer to ADC Command Registers description (ADCCMD_n) in the reference manual of the MCU.&lt;BR /&gt;The cmdlist array contains a list of commands.&lt;BR /&gt;You may also take a look at:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-341061"&gt;Example S12ZVL ADC0 triggered by TIM0 OC updates PWM duty cycle&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your code, cmdlist is an array of chars, whereas in the example above, it is an array of long ints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 08:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783360#M15540</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-08-15T08:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: List based ADC architecture</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783361#M15541</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;Thank you for the reply .&lt;/P&gt;&lt;P&gt;Could you tel me , then why we are not loading the command settings directly in to the&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;STRONG&gt;ADCCMD_n&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;register&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; in the following code .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In the following sample code , i couldn't see any declaration using &lt;STRONG&gt;ADCCMD register&lt;/STRONG&gt; but array data is moved in to the &lt;SPAN style="color: #ff0000;"&gt;ADC0CBP_0 ,&amp;nbsp;ADC0CBP_1 ,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;ADC0CBP_2&lt;/SPAN&gt; registers respectively .&amp;nbsp;Why ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;volatile unsigned char adc0_cmdlist[1][4] = {0xC0,0xD0,0xA0,0x00};&lt;BR /&gt;....................................&lt;/P&gt;&lt;P&gt;void ADC_init(void)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; ADC0CBP_0 = (unsigned char)(((long)adc0_cmdlist) &amp;gt;&amp;gt; 16);&lt;BR /&gt; ADC0CBP_1 = (unsigned char)(((long)adc0_cmdlist) &amp;gt;&amp;gt; 8);&lt;BR /&gt; ADC0CBP_2 = (unsigned char)((long)adc0_cmdlist);&lt;/P&gt;&lt;P&gt;.....................................&lt;/P&gt;&lt;P&gt;}&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Aug 2018 18:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783361#M15541</guid>
      <dc:creator>basilmathew</dc:creator>
      <dc:date>2018-08-18T18:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: List based ADC architecture</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783362#M15542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The&amp;nbsp;ADCCMD_n registers are writable only if&amp;nbsp;ADCCTL_1[SMOD_ACC] is set.&lt;/P&gt;&lt;P&gt;And&amp;nbsp;&lt;SPAN&gt;SMOD_ACC bit is writable only in the Special mode of the MCU for debugging purposes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please take a look at&amp;nbsp;the description of the&amp;nbsp;SMOD_ACC bit in the RM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 19:49:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-based-ADC-architecture/m-p/783362#M15542</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-08-20T19:49:08Z</dc:date>
    </item>
  </channel>
</rss>

