<?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のトピックAbout S12Z ADC sample time and interrupt</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-S12Z-ADC-sample-time-and-interrupt/m-p/1026939#M17077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.ADC saple time &lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103824i113A5A55A5C4E51E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the above figure as the example ,8-bit data,4 cycle sampling , the adc min sampling time=?&lt;/P&gt;&lt;P&gt;the adc sampling time =adc clock/12 or 13? if is 13,why?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.ADC Interrupt&lt;/P&gt;&lt;P&gt;If I want trigger the adc interrupt by timer0,every 50ms sample the data 100times by AN3,how to do it ?&lt;/P&gt;&lt;P&gt;The INTFLG[3:0] is to configure the interrupt flag number(1~15),the interrupt flag number is defined by myself? If I want to sample the AN3,can I set the interrupe flag number is 1 or 2,...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2020 07:03:01 GMT</pubDate>
    <dc:creator>jx1207</dc:creator>
    <dc:date>2020-03-13T07:03:01Z</dc:date>
    <item>
      <title>About S12Z ADC sample time and interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-S12Z-ADC-sample-time-and-interrupt/m-p/1026939#M17077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.ADC saple time &lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103824i113A5A55A5C4E51E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the above figure as the example ,8-bit data,4 cycle sampling , the adc min sampling time=?&lt;/P&gt;&lt;P&gt;the adc sampling time =adc clock/12 or 13? if is 13,why?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.ADC Interrupt&lt;/P&gt;&lt;P&gt;If I want trigger the adc interrupt by timer0,every 50ms sample the data 100times by AN3,how to do it ?&lt;/P&gt;&lt;P&gt;The INTFLG[3:0] is to configure the interrupt flag number(1~15),the interrupt flag number is defined by myself? If I want to sample the AN3,can I set the interrupe flag number is 1 or 2,...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 07:03:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-S12Z-ADC-sample-time-and-interrupt/m-p/1026939#M17077</guid>
      <dc:creator>jx1207</dc:creator>
      <dc:date>2020-03-13T07:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: About S12Z ADC sample time and interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-S12Z-ADC-sample-time-and-interrupt/m-p/1026940#M17078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jx1207@126.com"&gt;jx1207@126.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;1.&lt;BR /&gt;You didn’t specify the MagniV device.&lt;BR /&gt;Let’s take S12ZVL.&lt;BR /&gt;The ATD conversion time is specified in Table C-1, S12ZVL RM rev2.48&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Figure 28-10 example:&lt;BR /&gt;Sample time: 4 ATD clock cycles&lt;BR /&gt;Hold time: 12 ATD clock cycles&lt;BR /&gt;Conversion time: 16 ATD clock cycles.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103557i17F42320497CF12E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.&lt;BR /&gt;Please have 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;It uses TIM0 Output Capture on Ch2 to trigger an ADC sequence periodically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the description of the ADC command registers in the RM.&lt;BR /&gt;In ADCCMD_1[CH_SEL[5:0]] you can select AN3.&lt;BR /&gt;In ADCCMD_0[INTFLG_SEL[3:0]] you can select which interrupt flag is set in the ADCIFH/L register&lt;BR /&gt;at the end of this conversion.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103588iDEA88D4C3F68165E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2020 18:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-S12Z-ADC-sample-time-and-interrupt/m-p/1026940#M17078</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-15T18:55:33Z</dc:date>
    </item>
  </channel>
</rss>

