<?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: PMF not working on S12ZVM in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975831#M16846</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/dufour-thibaut@outlook.fr"&gt;dufour-thibaut@outlook.fr&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The charge pump does not power the LS drivers, these are ON out of reset if GDUF_GSUF = 1.&lt;/P&gt;&lt;P&gt;Do you see any GDU error flag?&lt;/P&gt;&lt;P&gt;Have you tried routing the PWM signals to GPIOs (in MODRR1) instead of the GDU and probe it?&lt;/P&gt;&lt;P&gt;Anyway, I sent some hands-on examples&amp;nbsp;to your email.&lt;/P&gt;&lt;P&gt;I hope this can help you.&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>Wed, 05 Feb 2020 11:34:10 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2020-02-05T11:34:10Z</dc:date>
    <item>
      <title>PMF not working on S12ZVM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975830#M16845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to use the GDU and PMF on a S12ZVMC64 to control a BLDC motor, firest I just try to get PWM signal on a TP, but I have nothing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As seen below, I configure GDU and PMF, on the&amp;nbsp;Gate of the Low-side transistor I have 10V, so the charge pump works but nothing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void GDU_init(void)&lt;BR /&gt;{&lt;BR /&gt; GDUE_GFDE = 1;&lt;BR /&gt; GDUCLK2_GCPCD = 2; &lt;BR /&gt; GDUE_GCPE = 1;&lt;BR /&gt; GDUDSLVL = 0x77; // desaturation level set at 1.4V for low-side and high-side drivers&lt;BR /&gt; GDUCTR = 0x13;&lt;BR /&gt; &lt;BR /&gt; GDUE_GWP = 1; //Set at the end of the initialization&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void PWM_init(void)&lt;BR /&gt;{&lt;BR /&gt; PMFCFG0_EDGEA = 1;&lt;BR /&gt; PMFCFG0_EDGEB = 1;&lt;BR /&gt; PMFCFG0_EDGEC = 1;&lt;BR /&gt; PMFCFG0_INDEPA = 0x0; // Complementary mode&lt;BR /&gt; PMFCFG0_INDEPB = 0x0; // Complementary mode&lt;BR /&gt; PMFCFG0_INDEPC = 0x0; // Complementary mode&lt;BR /&gt; &lt;BR /&gt; PMFMODA = 1250;&lt;BR /&gt; PMFVAL0 = 750;&lt;BR /&gt; PMFDTMA = 13;&lt;BR /&gt; PMFCFG2_REV = 1;&lt;BR /&gt; PMFENCA = 0x04;&lt;BR /&gt; PMFCFG3_VLMODE = 1;&lt;BR /&gt; PMFENCA_LDOKA = 1;&lt;BR /&gt; &lt;BR /&gt; PMFCFG1_ENCE = 1; // Enable commutation event&lt;BR /&gt; PMFOUTB = 0x2A; // Set return path pattern, high-side off, low-side on&lt;BR /&gt; PMFOUTC = 0x1C; &lt;BR /&gt; &lt;BR /&gt; PMFENCA_GLDOKA = 1;&lt;BR /&gt; PMFENCA_PWMENA = 1;&lt;BR /&gt; PMFCFG0_WP = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void main(void) /* PRQA S 1532 */&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;PWM_init();&lt;BR /&gt; GDU_init();&lt;/P&gt;&lt;P&gt;for(;;) &lt;BR /&gt; {&lt;BR /&gt; WatchDog_Clear(); /* feeds the dog */&lt;/P&gt;&lt;P&gt;PMFOUTC = 0x34;&lt;BR /&gt; PMFOUTC = 0x1C;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 13:39:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975830#M16845</guid>
      <dc:creator>dufour-thibaut</dc:creator>
      <dc:date>2020-02-03T13:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: PMF not working on S12ZVM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975831#M16846</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/dufour-thibaut@outlook.fr"&gt;dufour-thibaut@outlook.fr&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The charge pump does not power the LS drivers, these are ON out of reset if GDUF_GSUF = 1.&lt;/P&gt;&lt;P&gt;Do you see any GDU error flag?&lt;/P&gt;&lt;P&gt;Have you tried routing the PWM signals to GPIOs (in MODRR1) instead of the GDU and probe it?&lt;/P&gt;&lt;P&gt;Anyway, I sent some hands-on examples&amp;nbsp;to your email.&lt;/P&gt;&lt;P&gt;I hope this can help you.&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>Wed, 05 Feb 2020 11:34:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975831#M16846</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-05T11:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: PMF not working on S12ZVM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975832#M16847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielmartynek"&gt;danielmartynek&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Thank you for your answer, the only flag I have is&amp;nbsp;GSUF = 1 "High-side FET pre-drivers turned off and low-side FET pre-drivers are turned on", so no error flag ON.&lt;/P&gt;&lt;P&gt;Yes I have try it as in other topics, but for my application I have to use the GDU and these GPIOs are enabled with other applications.&lt;/P&gt;&lt;P&gt;I did not receive the example, you can try at &lt;A href="mailto:dufour-thibaut@outlook.fr"&gt;dufour-thibaut@outlook.fr&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you !!&lt;/P&gt;&lt;P&gt;Thibaut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975832#M16847</guid>
      <dc:creator>dufour-thibaut</dc:creator>
      <dc:date>2020-02-05T13:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: PMF not working on S12ZVM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975833#M16848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally find the reason why it did not work, I initialized the GLDOKA&amp;nbsp;bit too early, I just have to replace it at the end of the PMF_init and it works perfectly.&lt;/P&gt;&lt;P&gt;Thank you Daniel,&lt;/P&gt;&lt;P&gt;Thibaut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PMF-not-working-on-S12ZVM/m-p/975833#M16848</guid>
      <dc:creator>dufour-thibaut</dc:creator>
      <dc:date>2020-02-06T13:45:51Z</dc:date>
    </item>
  </channel>
</rss>

