<?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 S12G ADC SYNC in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-ADC-SYNC/m-p/1081205#M17332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;Is there a way with the&amp;nbsp;S12G128 to sync or trigger an ADC sample &amp;amp; conversion from the start of the PWM period?&lt;/P&gt;&lt;P&gt;PWM Frequence is 20k&lt;/P&gt;&lt;P&gt;I use HalfBridge to control a brush DC by PWM and &lt;STRONG&gt;need measure the current&lt;/STRONG&gt; ,the current sense is a square wave(20k) .&lt;/P&gt;&lt;P&gt;Is there a clever way to solve the problem ? it is too late for me to change the chip.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2020 12:15:41 GMT</pubDate>
    <dc:creator>fanziyu</dc:creator>
    <dc:date>2020-05-13T12:15:41Z</dc:date>
    <item>
      <title>S12G ADC SYNC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-ADC-SYNC/m-p/1081205#M17332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks!&lt;/P&gt;&lt;P&gt;Is there a way with the&amp;nbsp;S12G128 to sync or trigger an ADC sample &amp;amp; conversion from the start of the PWM period?&lt;/P&gt;&lt;P&gt;PWM Frequence is 20k&lt;/P&gt;&lt;P&gt;I use HalfBridge to control a brush DC by PWM and &lt;STRONG&gt;need measure the current&lt;/STRONG&gt; ,the current sense is a square wave(20k) .&lt;/P&gt;&lt;P&gt;Is there a clever way to solve the problem ? it is too late for me to change the chip.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 12:15:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-ADC-SYNC/m-p/1081205#M17332</guid>
      <dc:creator>fanziyu</dc:creator>
      <dc:date>2020-05-13T12:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: S12G ADC SYNC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-ADC-SYNC/m-p/1081206#M17333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE&gt;Yes, there is internal HW connection between PW0 and ETRIG0, PWM1 and ETRIG1, etc ...   Please check chapter 2.6.4 ADC External Triggers ETRIG3-0 in reference manual (page 254,255). If PWM is enabled, ETRIG will be driven by PWM (internally or trough pin).  Since PWM outputs in 16-Bit Mode are PWM1, PWM3, PWM5 and PWM7, only two internal links 
ETRIG1 and ERIG3) could be used of ADC triggering.  I would like to recommend in your case external link from PWM outputs into some of remaining 
port AD inputs (ETRIGSEL=0, ETRIGCH[3:0] refers to appropriate PAD input). For more details please see Table 11-5. External Trigger Channel Select Coding (page 427).   Best regards,
Ladislav&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 07:50:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-ADC-SYNC/m-p/1081206#M17333</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2020-05-14T07:50:34Z</dc:date>
    </item>
  </channel>
</rss>

