<?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: &amp;quot;Fault Safety Mode&amp;quot; on LPC553x in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1518485#M50087</link>
    <description>&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;thanks for looking in to this.&lt;/P&gt;&lt;P&gt;The external Fault signal triggers an interrupt, where I have to clear the FFLAG-bits manually to avoid constant re-triggering the interrupt.&lt;BR /&gt;So the FFLAG-bits are cleared again after the Fault occurs, while the FFPIN-bit is set as long as I pull the external Fault input pin to GND.&lt;/P&gt;&lt;P&gt;In the interrupt handler I also disable the PWM outputs by clearing the according bits in the OUTEN-register.&lt;BR /&gt;After a short delay (5 seconds) the SW tries to enable the PWM outputs again to attempt a restart, and it actually succeeds even though the FFPIN is still set and the FSAFE-function is enabled in the FCTRL-register.&lt;/P&gt;&lt;P&gt;Regarding the FSAFE-function the RM states in chapter 43.8.54 on page 1893&lt;BR /&gt;"0001b - Safe mode. PWM outputs disabled by this fault are not enabled until FSTS[FFLAGx] is clear &lt;STRONG&gt;and&lt;/STRONG&gt; FSTS[FFPINx] is clear..."&lt;/P&gt;&lt;P&gt;This doesn't seem to be the case in my test, since I can enable the PWM outputs even though FSTS[FFPINx] is still set.&lt;/P&gt;&lt;P&gt;BR. Jörn&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 11:25:28 GMT</pubDate>
    <dc:creator>JPE</dc:creator>
    <dc:date>2022-09-07T11:25:28Z</dc:date>
    <item>
      <title>"Fault Safety Mode" on LPC553x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1517842#M50078</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm currently working on a motor control project, where the PWM outputs have to be disabled after a trigger from one of the "Fault" inputs (as described in the LPC553x Reference Manual in chapter 43.3.2.12 "Fault Protection").&lt;/P&gt;&lt;P&gt;According to the RM and the LPC5534.h header file, it should be possible to configure a Fault input to a "Safe mode" by setting the according "FSAFEx"-bit in the FCTRL-register.&lt;BR /&gt;Quote: "PWM outputs disabled by this fault are not enabled until FSTS[FFLAGx] is clear and FSTS[FFPINx] is clear..."&lt;/P&gt;&lt;P&gt;However, when I test this feature on my hardware, the PWMs can be enabled, even though the Fault input pin is still in its "Active" state and the according FSTS[FFPINx] bit is still set (checked via FreeMaster).&lt;/P&gt;&lt;P&gt;Am I misunderstanding the correct setting for the functionality or could there be an issue in my LPC5534?&lt;/P&gt;&lt;P&gt;BR. Jörn&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 15:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1517842#M50078</guid>
      <dc:creator>JPE</dc:creator>
      <dc:date>2022-09-06T15:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: "Fault Safety Mode" on LPC553x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1518411#M50085</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What about the value with FFLAG? And&amp;nbsp; what about&amp;nbsp;&lt;SPAN class="markedContent"&gt;&lt;SPAN&gt;Fault Disable Mapping Register?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="markedContent"&gt;&lt;SPAN&gt;About PWM Fault, recommend you check the figure 228 in UM:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1662544205067.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/192838iECDA2D1FA4428243/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1662544205067.png" alt="Alice_Yang_0-1662544205067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:50:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1518411#M50085</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-09-07T09:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: "Fault Safety Mode" on LPC553x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1518485#M50087</link>
      <description>&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;thanks for looking in to this.&lt;/P&gt;&lt;P&gt;The external Fault signal triggers an interrupt, where I have to clear the FFLAG-bits manually to avoid constant re-triggering the interrupt.&lt;BR /&gt;So the FFLAG-bits are cleared again after the Fault occurs, while the FFPIN-bit is set as long as I pull the external Fault input pin to GND.&lt;/P&gt;&lt;P&gt;In the interrupt handler I also disable the PWM outputs by clearing the according bits in the OUTEN-register.&lt;BR /&gt;After a short delay (5 seconds) the SW tries to enable the PWM outputs again to attempt a restart, and it actually succeeds even though the FFPIN is still set and the FSAFE-function is enabled in the FCTRL-register.&lt;/P&gt;&lt;P&gt;Regarding the FSAFE-function the RM states in chapter 43.8.54 on page 1893&lt;BR /&gt;"0001b - Safe mode. PWM outputs disabled by this fault are not enabled until FSTS[FFLAGx] is clear &lt;STRONG&gt;and&lt;/STRONG&gt; FSTS[FFPINx] is clear..."&lt;/P&gt;&lt;P&gt;This doesn't seem to be the case in my test, since I can enable the PWM outputs even though FSTS[FFPINx] is still set.&lt;/P&gt;&lt;P&gt;BR. Jörn&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 11:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1518485#M50087</guid>
      <dc:creator>JPE</dc:creator>
      <dc:date>2022-09-07T11:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Fault Safety Mode" on LPC553x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1519126#M50093</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Jörn,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;SPAN class="markedContent"&gt;0001b - Safe mode. PWM outputs disabled by this fault are not enabled until&lt;STRONG&gt; FSTS[FFLAGx] is&lt;/STRONG&gt;&lt;BR role="presentation" /&gt;&lt;STRONG&gt;clear and FSTS[FFPINx] is clear&lt;/STRONG&gt; at the start of a half cycle or full cycle depending on the states&lt;BR role="presentation" /&gt;of FSTS[FHALF] and FSTS[FFULL]. &lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;" the FSAFE bits used to select the safety mode during manual fault clearing. "&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In my understanding, in safe mode, we need clear&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class="markedContent"&gt;&lt;STRONG&gt;FSTS[FFLAGx]&amp;nbsp; and&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;FSTS[FFPINx] ,&lt;/STRONG&gt; then we can use FAULT function.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;BTW, is there PWM output before config FSAFE, I meaning the FAULT can disable PWM output ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 07:54:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1519126#M50093</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-09-08T07:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: "Fault Safety Mode" on LPC553x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1519245#M50097</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;the Fault function is working and the PWMs are disabled when the Fault occurs on the input pin, however, I'm not 100% sure, if it's the Fault function that turns off the PWM or my code in the ISR, that disables the outputs manually by clearing the OUTEN-bits.&lt;/P&gt;&lt;P&gt;The FSTS[FFLAG]-bit is cleared by writing one to it, but the FSTS[FFPIN] flag follows the level on the input pin and is not cleared before the pin goes high again.&lt;/P&gt;&lt;P&gt;But&amp;nbsp;the&amp;nbsp;FSTS[FFPIN] flag state doesn't make any difference regarding the enabling of the PWM outputs, even though the FSAFE-bits in the FCTRL-register is set.&lt;BR /&gt;This looks to me as if the FSAFE-functionality is not working correctly.&lt;/P&gt;&lt;P&gt;BR. Jörn&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 10:06:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1519245#M50097</guid>
      <dc:creator>JPE</dc:creator>
      <dc:date>2022-09-08T10:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: "Fault Safety Mode" on LPC553x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1519941#M50105</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How about first disable the ISR function to confirm PWM FAULT function work well on your side.&lt;/P&gt;
&lt;P&gt;Do you use LPCXpresso55s36-evk board? You can send your project to me and tell me the reproduce steps, I can help to check it on my side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 09:58:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1519941#M50105</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-09-09T09:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: "Fault Safety Mode" on LPC553x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1520015#M50107</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;I disabled the "Fault" interrupt and observed, that the PWM outputs were NOT disabled, even though both according FFPIN- and FFLAG-bits were set in the FSTS register.&lt;/P&gt;&lt;P&gt;So I found out, that the DISMAP-bit for the Fault input I was testing was not set, and therefore the link between the Fault input and the PWM outputs were missing.&lt;/P&gt;&lt;P&gt;After correcting this, the code works as expected and according to the Reference Manual.&lt;/P&gt;&lt;P&gt;Thanks for pointing me in to the correct direction.&lt;/P&gt;&lt;P&gt;BR. Jörn&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:32:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1520015#M50107</guid>
      <dc:creator>JPE</dc:creator>
      <dc:date>2022-09-09T13:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: "Fault Safety Mode" on LPC553x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1521570#M50133</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;OK, welcome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 02:44:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Fault-Safety-Mode-quot-on-LPC553x/m-p/1521570#M50133</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-09-14T02:44:56Z</dc:date>
    </item>
  </channel>
</rss>

