<?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: How to syncronize PWMs of different CPUs? in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/How-to-syncronize-PWMs-of-different-CPUs/m-p/427670#M552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, I have already had some result by myself and I'm testing your suggestions ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 12:33:42 GMT</pubDate>
    <dc:creator>Alberto_g</dc:creator>
    <dc:date>2015-10-14T12:33:42Z</dc:date>
    <item>
      <title>How to syncronize PWMs of different CPUs?</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/How-to-syncronize-PWMs-of-different-CPUs/m-p/427668#M550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, in a multiple motor drive with several MC56F84763, there's the need to syncronize PWMs.&lt;/P&gt;&lt;P&gt;The reference manual says that it is possible, via the crossbar switch, bring out the EXT_CLOCK signal, which is the master clock for the PWM peripheral.&lt;/P&gt;&lt;P&gt;I can't figure out how to initialize the crossbar to do so. Processor Expert doesn't help. Is there a document detailing this configuration?&lt;/P&gt;&lt;P&gt;There is also an EXT_SYNC signal, it is not clear to me if it can be periodically issued at any PWM cycle in proximity of the counter reload event.&lt;/P&gt;&lt;P&gt;Or should it be an one-off initialization signal?&lt;/P&gt;&lt;P&gt;Or I guess maybe it can be accomplished via software, with a periodic interrupt wich resets the PWM counter.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated, thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 07:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/How-to-syncronize-PWMs-of-different-CPUs/m-p/427668#M550</guid>
      <dc:creator>Alberto_g</dc:creator>
      <dc:date>2015-10-01T07:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to syncronize PWMs of different CPUs?</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/How-to-syncronize-PWMs-of-different-CPUs/m-p/427669#M551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Alberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, it is okay to synchronize on-chip eFlexPWM module with external PWM module of another mcu, but another mcu must generate the synchronization signal so that the eFlexPWM module can synchronize with the external signal.&lt;/P&gt;&lt;P&gt;For the MC56F84xxx processor, there is crossbar module, which can route the external synchronization signal to eFlexPWM signal module. Pls refer to the section 3.3.3.4 XBARA Outputs in the MC56F847xxRM.pdf, I copy it here:&lt;/P&gt;&lt;P&gt;XBAR_OUT24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMA0_EXT_SYNC PWMA0 Ext Synch&lt;/P&gt;&lt;P&gt;XBAR_OUT25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMA1_EXT_SYNC PWMA1 Ext Synch&lt;/P&gt;&lt;P&gt;XBAR_OUT26&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMA2_EXT_SYNC PWMA2 Ext Synch&lt;/P&gt;&lt;P&gt;XBAR_OUT27&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMA3_EXT_SYNC PWMA3 Ext Synch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, assume the eFlexPWMA is synchronized with another mcu, you can connect the PWM&amp;nbsp; synchronization from another mcu to the package pin from XB_IN2 to XB_IN10, for example connect the PWM synchronization to XB_IN2 pin(GPIOC2 or pin5 of MC56F84789). In the case, you should do the following setting :&lt;/P&gt;&lt;P&gt;1)setting XBAR_OUT24 and XBAR_OUT25 with XB_IN2&lt;/P&gt;&lt;P&gt;XBARA_SEL12=0x0202&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)setting XBAR_OUT26 and XBAR_OUT27 with XB_IN2&lt;/P&gt;&lt;P&gt;XBARA_SEL13=0x0202&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the eFlexPWMA module, if you want to synchronize the PWMA_SM0/PWMA_SM1/PWMA_SM2, you should set the INIT_SEL as 11 in&amp;nbsp; following register:&lt;/P&gt;&lt;P&gt;PWMA_SM0CTRL2/PWMA_SM1CTRL2/PWMA_SM3CTRL2.&lt;/P&gt;&lt;P&gt;It is okay.&lt;/P&gt;&lt;P&gt;Note you should set the SIM_GPSCL register so that the GPIOC2 pin can function as XB_IN2.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 03:52:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/How-to-syncronize-PWMs-of-different-CPUs/m-p/427669#M551</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2015-10-13T03:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to syncronize PWMs of different CPUs?</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/How-to-syncronize-PWMs-of-different-CPUs/m-p/427670#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, I have already had some result by myself and I'm testing your suggestions ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 12:33:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/How-to-syncronize-PWMs-of-different-CPUs/m-p/427670#M552</guid>
      <dc:creator>Alberto_g</dc:creator>
      <dc:date>2015-10-14T12:33:42Z</dc:date>
    </item>
  </channel>
</rss>

