<?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>Kinetis Microcontrollers中的主题 Re: Need help to initialize External Watchdog Monitor(EWM) with software interrupt.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417217#M23760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply and it helps us greatly to understand EWM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can make changes to the external circuit to generate static value as you said(&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;1 or 0, &lt;/SPAN&gt;not pulses). Can we now able to generate an software interrupt when EWM_in pin chnages its state&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(1 or 0, depending on the bit &lt;/SPAN&gt;EWM_CTRL[ASSIN]&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) without using EWM_out pin ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;can we generate software interrupt from EWM module?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Sujai&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 08:05:06 GMT</pubDate>
    <dc:creator>sujaigowda</dc:creator>
    <dc:date>2015-06-24T08:05:06Z</dc:date>
    <item>
      <title>Need help to initialize External Watchdog Monitor(EWM) with software interrupt.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417215#M23758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using EWM(external watchdog monitor) module on MK50DX256CLL10 controller for powerfail application.I have given &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;100ms pulses as input &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;to the EWM_in pin from external circuit. I&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt; need an interrupt if we misses the pulse in 100ms &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;time. I cannot use EWM_out pin because we are already using it for other applications, Is there anyway to get interrupt without using EWM_out. External circuit will not generate a pulse if powerfail occurs. I need interrupt when EWM_in misses the pulse(powerfail)&amp;nbsp; &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;It should be software interrupt without using EWM_out pin.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;we &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;need clarification weather we can generate interrupt in software &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;without using EWM_out pin. &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Appreciate your help in understanding EWM. Is there any initialization or sample code for this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.8000001907349px; font-family: arial, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.8000001907349px; font-family: arial, sans-serif;"&gt;SUJAI&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 09:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417215#M23758</guid>
      <dc:creator>sujaigowda</dc:creator>
      <dc:date>2015-06-20T09:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to initialize External Watchdog Monitor(EWM) with software interrupt.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417216#M23759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sujai Gowda:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;EWM_in&lt;/STRONG&gt; pin is not intended to work with pulses. That pin is used together with the EWM internal refresh mechanism. An external circuit should provide a static value to the pin when the hardware is working as expected (1 or 0, depending on the bit &lt;STRONG&gt;EWM_CTRL[ASSIN]&lt;/STRONG&gt;). Then you can configure the EWM to a 100 ms period and your application is responsible for servicing the EWM within that time. If the EWM is refreshed while the &lt;STRONG&gt;EWM_in&lt;/STRONG&gt; pin is asserted, then an interrupt is generated if enabled with &lt;STRONG&gt;EWM_CTRL[INTEN]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise if you really need to monitor 100 ms external pulses then I see 2 options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; Use the internal watchdog (WDOG instead of EWM) with a ~105 ms time-out. Connect the pulsing signal to an input pin configured as interrupt-on-edge and refresh the watchdog from the ISR. The inconvenience is that the MCU will reset if watchdog expires.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt; Set any timer (PIT, LPTMR) for a ~105 ms period. As in option (1) connect the pulsing signal to an interrupt pin and restart the timer from ISR. If timer is not restarted then its interrupt is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 14:38:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417216#M23759</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-06-23T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to initialize External Watchdog Monitor(EWM) with software interrupt.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417217#M23760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply and it helps us greatly to understand EWM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can make changes to the external circuit to generate static value as you said(&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;1 or 0, &lt;/SPAN&gt;not pulses). Can we now able to generate an software interrupt when EWM_in pin chnages its state&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(1 or 0, depending on the bit &lt;/SPAN&gt;EWM_CTRL[ASSIN]&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;) without using EWM_out pin ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;can we generate software interrupt from EWM module?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Sujai&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 08:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417217#M23760</guid>
      <dc:creator>sujaigowda</dc:creator>
      <dc:date>2015-06-24T08:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to initialize External Watchdog Monitor(EWM) with software interrupt.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417218#M23761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sujai Gowda:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, if you generate static value to the &lt;STRONG&gt;EWM_in&lt;/STRONG&gt; pin, you can generate an interrupt without using the &lt;STRONG&gt;EWM_out&lt;/STRONG&gt; pin. Just enable the interrupt using the bit &lt;STRONG&gt;EWM_CTRL[INTEN] = 1&lt;/STRONG&gt;. Please check the Reference Manual about this bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice the interrupt will not be triggered immediately when &lt;STRONG&gt;EWM_in&lt;/STRONG&gt; changes, but when the software tries to refresh the counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 02:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Need-help-to-initialize-External-Watchdog-Monitor-EWM-with/m-p/417218#M23761</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-06-30T02:56:12Z</dc:date>
    </item>
  </channel>
</rss>

