<?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>Model-Based Design Toolbox (MBDT)中的主题 Re: Question about etimer_mpc574x_config</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907896#M3243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/260068845@qq.com"&gt;260068845@qq.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula is MOT_CLK/Prescaler/Requested_Frequency = (COMP1+COMP2), where the MOT_CLK is 80MHz.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get 200Hz, 80Mhz/128/200 = 3125.&lt;/P&gt;&lt;P&gt;By dividing the 3125 result in half for COMPA and COMPB you get on the PA a 50% duty cycle PWM signal. So it doesn't mater which value you set for COMPA and COMPB&amp;nbsp; as long as their sum is 3125 result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2019 12:57:27 GMT</pubDate>
    <dc:creator>mariuslucianand</dc:creator>
    <dc:date>2019-05-13T12:57:27Z</dc:date>
    <item>
      <title>Question about etimer_mpc574x_config</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907893#M3240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, engineer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I want to use the etimer_mpc574x_config module in the MPC5744P's MBD toolbox to generate a 500us interrupt cycle, which is a 200Hz cycle. Then I can execute my code in a timed interrupt, but I don't know how to configure it. Is there a reference design or documentation assistance? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 13:09:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907893#M3240</guid>
      <dc:creator>260068845</dc:creator>
      <dc:date>2019-05-10T13:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question about etimer_mpc574x_config</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907894#M3241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/260068845@qq.com"&gt;260068845@qq.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, basically you want to disable the default step interrupt and have an etimer interrupt every 200Hz (btw, 200Hz is 5ms not 500us). An easier approach is to use the PIT timer, the one used for the step timer function.&lt;/P&gt;&lt;P&gt;However, I have attached a model that uses the eTimer to provide an interrupt every 200Hz that toggles the PA1 pin (scope channel 2 - in the image attached). On the PA0&amp;nbsp; there is the OFLAG output of the eTimer that is changed whenever the COMP1 and COMP2 registers are swapped together. If you need to trigger the signals every 2kHz, you need to compute other values for the Primary counter input source (Prescaler) and the comparator initial values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="j-img-centered" height="431" src="https://lh3.googleusercontent.com/rDPdOmnk3kpwDvFJCsagOR80vW-8Q2nxyn_xz8bxwZAGG1hf51yOe-f78chXXx-Iup5cFqGvcwuIalmlyyAGEAGq3p8wLfVm92zoB4mhCkUjTAAhuj-XDKqdXmSYgFA67ek0VOYKCGnE2BoPipktuC0fz1d0jKIsWlK7dYaeBRQAongj3aVoK1jB2fC9Gb42PlLhuvQGbafo2ZDkwekxQDSLPEzUXK5RohRplhgDC_PUIaugMs3fE1D9NW646RsC4QGcGByHgfjYd-5VnT3KcxvRGkMBq1fbIy6EmXEPeUQrPzZhSrJfC6Rfhndm5g0OaCUhzAopWcuVrFqnfpPuQlqXRn4aCFVQcPS4l23BtLPnzqdN9-TBrllumyF0viOf1ADIowco0a2842klWsRq5wgrDf6v3aT8CYcpd7f0oVcqK_62M9I6FDcGSr3h96ukLEMPAQCBIRZCNC9_NIniblLEqqwkL0hUAT_fTR_gWWOmDNOVJxbn_1HHaJHGn_jB7EWxAk2cCy2QvQrBaGjUB5EmE9hm9ZJ5wp-ybcXKnG2f4DPTvN2z_I3jhGpJqG6dZu0cL8fMwsuSQb28HM_svduwF2_jZKOOs7KaFlcjgsUrfflEphYGTvweYg3vpegngdi1tonQv91w1Z7AZGgq8IRvBIoX6I7m=w1508-h1131-no" style="display: block; margin-left: auto; margin-right: auto;" width="575" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 09:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907894#M3241</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-05-13T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question about etimer_mpc574x_config</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907895#M3242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, 200HZ is indeed 5ms. In addition, I want to know how I can determine the clock frequency through COMP1 and COMP2. If I want to generate a specific clock cycle, is there any calculation formula or technical documentation for reference? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 11:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907895#M3242</guid>
      <dc:creator>260068845</dc:creator>
      <dc:date>2019-05-13T11:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Question about etimer_mpc574x_config</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907896#M3243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/260068845@qq.com"&gt;260068845@qq.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula is MOT_CLK/Prescaler/Requested_Frequency = (COMP1+COMP2), where the MOT_CLK is 80MHz.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get 200Hz, 80Mhz/128/200 = 3125.&lt;/P&gt;&lt;P&gt;By dividing the 3125 result in half for COMPA and COMPB you get on the PA a 50% duty cycle PWM signal. So it doesn't mater which value you set for COMPA and COMPB&amp;nbsp; as long as their sum is 3125 result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 12:57:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907896#M3243</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-05-13T12:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Question about etimer_mpc574x_config</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907897#M3244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,Marius&lt;/P&gt;&lt;P&gt;I am a liitle confused to the MOT_CLK, here is 160 max frequency.&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/112893iC9F70848DB52A082/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How to configure the&amp;nbsp;&lt;SPAN&gt;MOT_CLK to 80Mhz?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hao&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 03:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907897#M3244</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-08-14T03:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about etimer_mpc574x_config</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907898#M3245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/haoxue1027@qq.com"&gt;haoxue1027@qq.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The clock for the MPC5744P has already been set to 80 MHz. The eTimer, CTU, FlexPWM use the MOTC_CLOCK source which is aready set to 80.&lt;/P&gt;&lt;P&gt;MBDT does not provide a block to change the clocks (mainly because there are some restrictions related to peripherals requirements)so there is a bit more complicated process to do so. If you want to modify the clocks, please have a look not his thread&amp;nbsp;&lt;A href="https://community.nxp.com/thread/517780"&gt;Clock Configuration of MPC5744P using MBD&amp;nbsp;&lt;/A&gt;. But you have to be very careful when doing that!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 06:25:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907898#M3245</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-08-14T06:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Question about etimer_mpc574x_config</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907899#M3246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,Marius&lt;/P&gt;&lt;P&gt;The clock for the MPC5744P in the MBD module&amp;nbsp;&amp;nbsp;has already been set to 80 MHz.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I cannot configurate it in the module, If I want to change it to any value else, I must modify the code.&lt;/P&gt;&lt;P&gt;I got it&amp;nbsp; , Thank you very much.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-etimer-mpc574x-config/m-p/907899#M3246</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-08-14T11:30:49Z</dc:date>
    </item>
  </channel>
</rss>

