<?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 Need help about S12 ADC in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Need-help-about-S12-ADC/m-p/798269#M15689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Question1:e6181 workaround: &amp;nbsp;The ADC &amp;nbsp;should not be disabled before any flow control request (SEQA,TRIG,RSTA)is finished(all flow control bits are cleared).&lt;/P&gt;&lt;P&gt;so&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ADC0CTL_0_ADC_SR = 1;//execute ADC soft-reset(SR),ADC enters IDLE state&lt;BR /&gt; while(ADC0STS_READY == 0){}&lt;BR /&gt; ADC0CTL_0 = 0X00;//ADC is disabled&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ADC0CTL_0_ADC_SR = 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(ADC0STS_READY == 0){}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ADC0FLWCTL = 0X80;//need?&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(0 !=&amp;nbsp;&lt;SPAN&gt;ADC0FLWCTL &lt;/SPAN&gt;){}//need?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ADC0CTL_0 = 0X00;//ADC is disabled&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are both the programs correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Question2:ATD clock Frequency is 3MHz.10 bit resolution .Then one conversion time ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if CSL with 17&amp;nbsp;command entries,then how much time it will cost toally? more details see attachment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2018 07:45:24 GMT</pubDate>
    <dc:creator>fanziyu</dc:creator>
    <dc:date>2018-08-17T07:45:24Z</dc:date>
    <item>
      <title>Need help about S12 ADC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Need-help-about-S12-ADC/m-p/798269#M15689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Question1:e6181 workaround: &amp;nbsp;The ADC &amp;nbsp;should not be disabled before any flow control request (SEQA,TRIG,RSTA)is finished(all flow control bits are cleared).&lt;/P&gt;&lt;P&gt;so&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ADC0CTL_0_ADC_SR = 1;//execute ADC soft-reset(SR),ADC enters IDLE state&lt;BR /&gt; while(ADC0STS_READY == 0){}&lt;BR /&gt; ADC0CTL_0 = 0X00;//ADC is disabled&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ADC0CTL_0_ADC_SR = 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(ADC0STS_READY == 0){}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ADC0FLWCTL = 0X80;//need?&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(0 !=&amp;nbsp;&lt;SPAN&gt;ADC0FLWCTL &lt;/SPAN&gt;){}//need?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ADC0CTL_0 = 0X00;//ADC is disabled&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are both the programs correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Question2:ATD clock Frequency is 3MHz.10 bit resolution .Then one conversion time ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if CSL with 17&amp;nbsp;command entries,then how much time it will cost toally? more details see attachment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 07:45:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Need-help-about-S12-ADC/m-p/798269#M15689</guid>
      <dc:creator>fanziyu</dc:creator>
      <dc:date>2018-08-17T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help about S12 ADC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Need-help-about-S12-ADC/m-p/798270#M15690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;As the workaround for e6181 states,&lt;BR /&gt;“It is recommended to issue a Sequence Abort Request and to poll bit SEQA to be clear before ADC is disabled via bit ADCEN.”&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp; ADC0FLWCTL_SEQA = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Issue a Sequence Abort Request
&amp;nbsp; while(ADC0FLWCTL_SEQA){} // Wait until aborted
&amp;nbsp; ADC0CTL_0_ADC_EN = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Disable ADC&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conversion time was discussed in this thread:&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/469497" rel="nofollow noopener noreferrer" target="_blank"&gt;S12ZVLA ADC sampling time&lt;/A&gt;&amp;nbsp;&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>Tue, 21 Aug 2018 13:16:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Need-help-about-S12-ADC/m-p/798270#M15690</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-08-21T13:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help about S12 ADC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Need-help-about-S12-ADC/m-p/798271#M15691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thans for your help.Daniel.I wonder if adc is in idle status,i still have to issue a Sequence Abort Request?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ADC0CTL_0_ADC_SR = 1;//execute ADC soft-reset(SR),ADC enters IDLE state&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 05:00:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Need-help-about-S12-ADC/m-p/798271#M15691</guid>
      <dc:creator>fanziyu</dc:creator>
      <dc:date>2018-08-27T05:00:59Z</dc:date>
    </item>
  </channel>
</rss>

