<?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: ADC module when S12ZVML STOP to WeakUP in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1364100#M18249</link>
    <description>&lt;P&gt;同是天涯汽车人，客气啥~&lt;/P&gt;</description>
    <pubDate>Sat, 30 Oct 2021 01:30:57 GMT</pubDate>
    <dc:creator>ArchieLuo</dc:creator>
    <dc:date>2021-10-30T01:30:57Z</dc:date>
    <item>
      <title>ADC module when S12ZVML STOP to WeakUP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1360674#M18231</link>
      <description>&lt;P&gt;&lt;FONT&gt;ADC 可以在 CPU 停止之前收集正确的值。停车和醒来后，ADC 模块收集的数字始终为 0.有人知道这是为什么吗？&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;期待您的帮助。&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ADC can collect the correct value before the CPU stops. After parking and waking up, the number collected by the ADC module is always 0. Does anyone know why?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 15:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1360674#M18231</guid>
      <dc:creator>SCort_li</dc:creator>
      <dc:date>2021-11-03T15:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: ADC module when S12ZVML STOP to WeakUP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1361157#M18236</link>
      <description>&lt;P&gt;我之前在做项目时也遇到过类似问题，后来解决了。&lt;/P&gt;&lt;P&gt;应该主要是进入睡眠前要注意ADC的状态，确保ADC处于不活动的状态。具体的，我记不太清。。。&lt;/P&gt;&lt;P&gt;以下贴一段代码，您可以参考以下。以下代码中有一部分是为了解决STOP状态下，芯片整体电流过大的。&lt;/P&gt;&lt;P&gt;void adc0_DeInit(void)&lt;BR /&gt;{&lt;BR /&gt;byte tmp_ADCxCTL_0 = ADC0CTL_0; // Save customer settings, these values will be restored afterwards&lt;BR /&gt;byte tmp_ADCxTIM = ADC0TIM;&lt;BR /&gt;byte tmp_ADCxSTS = ADC0STS;&lt;BR /&gt;ADC0CTL_0 = 0x00; // Disable ADC&lt;BR /&gt;ADC0TIM = 0x00; // ADC is set to maximum frequency&lt;BR /&gt;// Devicespecification of allowed frequency is ignored,&lt;BR /&gt;// the ADC conversion is stopped when reaching error state&lt;BR /&gt;// There is no conversion result generated.&lt;BR /&gt;ADC0CTL_0 = 0x88; // ADC is enabled, single access mode data bus, restart mode&lt;BR /&gt;ADC0CTL_0 = 0x88; // Re-do in order to guarantee ADC is ready for requests before Restart Event occurs&lt;BR /&gt;ADC0FLWCTL = 0x20; // ADC is restarted, RSTA bit is set: the first command of list 0 is loaded from memory. The command type does not matter, the conversion is immediately stopped&lt;BR /&gt;while(ADC0FLWCTL_RSTA == 1) {} // Wait for restart completion (within a few clock cycles)&lt;BR /&gt;ADC0FLWCTL = 0x40; // Start conversion (TRIG)&lt;BR /&gt;ADC0FLWCTL = 0x40; // The second TRIG immediately generates a TRIG_EIF, ERROR state is entered&lt;BR /&gt;while (ADC0EIF_TRIG_EIF ==0) {} // Wait for trigger error interrupt flag (within a few clock cycles)&lt;BR /&gt;ADC0CTL_0_ADC_SR = 1; // Execute ADC soft-reset (SR), ADC enters IDLE state&lt;BR /&gt;while (ADC0STS_READY == 0) {} // Wait for ADC soft-reset done (within a few clock cycles)&lt;BR /&gt;ADC0CTL_0 = 0x00; // ADC is disabled&lt;BR /&gt;ADC0TIM = tmp_ADCxTIM; //Restore previous customer settings&lt;BR /&gt;ADC0STS = tmp_ADCxSTS;&lt;BR /&gt;ADC0CTL_0 = tmp_ADCxCTL_0; // ADC0CTL_0 is the last one to be restored, in case ADC was enabled before...&lt;BR /&gt;// ADC0CTL_0 = 0;&lt;BR /&gt;// ADC0CTL_0_ADC_EN = 0;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 02:33:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1361157#M18236</guid>
      <dc:creator>ArchieLuo</dc:creator>
      <dc:date>2021-10-26T02:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: ADC module when S12ZVML STOP to WeakUP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1363824#M18247</link>
      <description>&lt;P&gt;感谢老铁的回复！&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 10:00:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1363824#M18247</guid>
      <dc:creator>SCort_li</dc:creator>
      <dc:date>2021-10-29T10:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: ADC module when S12ZVML STOP to WeakUP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1364100#M18249</link>
      <description>&lt;P&gt;同是天涯汽车人，客气啥~&lt;/P&gt;</description>
      <pubDate>Sat, 30 Oct 2021 01:30:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ADC-module-when-S12ZVML-STOP-to-WeakUP/m-p/1364100#M18249</guid>
      <dc:creator>ArchieLuo</dc:creator>
      <dc:date>2021-10-30T01:30:57Z</dc:date>
    </item>
  </channel>
</rss>

