<?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: S12ZVM ADC timing and data consistency</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519043#M18829</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204539"&gt;@lill1990&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As per the EOL_IF description, this bit is set by the binary coded conversion command type select bits CMD_SEL[1:0] for “end of list” type of commands and after such a command has been processed &lt;STRONG&gt;and the &lt;/STRONG&gt;&lt;STRONG&gt;related data has been stored RAM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you share the whole ADC configuration?&lt;/P&gt;&lt;P&gt;Or a test project so that I can reproduce the error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 06:34:38 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2022-09-08T06:34:38Z</dc:date>
    <item>
      <title>S12ZVM ADC timing and data consistency</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1518375#M18827</link>
      <description>&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;I have a code &lt;SPAN&gt;fragment&amp;nbsp;&lt;/SPAN&gt;as below in my application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*****************************************************************/&lt;/P&gt;&lt;P&gt;ADC0FLWCTL_RSTA = 1u;&lt;/P&gt;&lt;P&gt;while (ADC0CONIF_1_EOL_IF == 0u)&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;//_asm("NOP");&lt;BR /&gt;Variable1= ADCResult[0];&amp;nbsp; /*read data from RVL*/&lt;BR /&gt;Variable2= ADCResult[1];&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*****************************************************************/&lt;/P&gt;&lt;P&gt;When the loop is exited(all ADC commands were completed, EOL_IF was set), I could get valid Variable1, however, the&amp;nbsp;Variable2 was mostly invalid.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I inserted a&amp;nbsp; "NOP" to the loop, then I could get all data.&lt;/P&gt;&lt;P&gt;I suspect it is caused by ADC timing and data consistency, but I don't have a clear understanding about that.&lt;/P&gt;&lt;P&gt;Could you tell me the probably reason behind this ?&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:35:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1518375#M18827</guid>
      <dc:creator>lill1990</dc:creator>
      <dc:date>2022-09-07T09:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVM ADC timing and data consistency</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519043#M18829</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204539"&gt;@lill1990&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As per the EOL_IF description, this bit is set by the binary coded conversion command type select bits CMD_SEL[1:0] for “end of list” type of commands and after such a command has been processed &lt;STRONG&gt;and the &lt;/STRONG&gt;&lt;STRONG&gt;related data has been stored RAM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you share the whole ADC configuration?&lt;/P&gt;&lt;P&gt;Or a test project so that I can reproduce the error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 06:34:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519043#M18829</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-09-08T06:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVM ADC timing and data consistency</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519094#M18830</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;Thanks very much for your reply.&lt;/P&gt;&lt;P&gt;I attached the code and hope it is helpful for you.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 07:24:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519094#M18830</guid>
      <dc:creator>lill1990</dc:creator>
      <dc:date>2022-09-08T07:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVM ADC timing and data consistency</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519210#M18831</link>
      <description>&lt;P&gt;Thank you for the code.&lt;/P&gt;
&lt;P&gt;I see you use the max specified BUS_CLK freq (50MHz) and ADCCLK freq (8.33MHz).&lt;/P&gt;
&lt;P&gt;Which PLL mode do you use?&lt;/P&gt;
&lt;P&gt;Are you sure the BUS_CLK = 50MHz?&lt;/P&gt;
&lt;P&gt;Can you scope the clock at ECLK?&lt;/P&gt;
&lt;P&gt;Is PLL modulation enabled (CPMUPLL)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519210#M18831</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-09-08T09:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVM ADC timing and data consistency</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519735#M18832</link>
      <description>&lt;P&gt;Hello Daniel.&lt;/P&gt;&lt;P&gt;IRC is used in my application and I am sure the clock is correct.&lt;/P&gt;&lt;P&gt;PLL frequency modulation is off.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 06:00:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519735#M18832</guid>
      <dc:creator>lill1990</dc:creator>
      <dc:date>2022-09-09T06:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVM ADC timing and data consistency</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519969#M18836</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204539"&gt;@lill1990&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I will need to test it.&lt;BR /&gt;What is the part number of the MCU (mask-set)?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;From the code, I see that you measure the VSUP only if VSUP &amp;lt; 4.5V&lt;BR /&gt;Have you tested it under normal conditions when VSUP =~12V.&lt;/P&gt;
&lt;P&gt;Since the measurement takes place at low supply voltage, is the BUS_CLK (ADC_CLK) stabilized at the time of the measurement?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 11:40:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1519969#M18836</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-09-09T11:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVM ADC timing and data consistency</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1520059#M18837</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;The MCU is MC9S12ZVML31, mask set 1N14N.&lt;/P&gt;&lt;P&gt;Yes, the code is used in the initialization to ensure the VSUP is &amp;gt;=4.5 before starting GDU.&lt;/P&gt;&lt;P&gt;The VSUP was stable as 12V, I reset MCU to test this function via debugger.&lt;/P&gt;&lt;P&gt;I tried to add a breakpoint into the while{ADC0CONIF_1_EOL_IF == 0u} loop, then continue running, every thing was OK. I think the ADC completed the conversation during the break.&lt;/P&gt;&lt;P&gt;But if no any break before EOL flag was set by HW, the behavior I described in this question will appear.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 14:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1520059#M18837</guid>
      <dc:creator>lill1990</dc:creator>
      <dc:date>2022-09-09T14:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVM ADC timing and data consistency</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1525120#M18857</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204539"&gt;@lill1990&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm sorry for the delay, I was out of office for a few days and could not test it earlier.&lt;/P&gt;
&lt;P&gt;I'm not able to reproduce the issue with the test code attached.&lt;/P&gt;
&lt;P&gt;Can you run the test project on your side?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:36:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVM-ADC-timing-and-data-consistency/m-p/1525120#M18857</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-09-20T14:36:35Z</dc:date>
    </item>
  </channel>
</rss>

