<?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: Push Button Bounce in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469414#M3728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David and Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t know if using PE I can configure PORTxPCRn register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application I’m using two PortA inputs PTA1 &amp;amp; PTA2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve yours suggestion  and I tried to use Pins1:PinSetting option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was no improvement in SW bouncing reduction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m attaching my configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that my configuration is wrong, using debugger I have seen that “PFE” remains low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that using assembly can solve the problem but I don’t know how to do this (I have hardware experience).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any recommendations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using low pass filter (RC) at input solves the problem but I prefer software solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2016 21:41:42 GMT</pubDate>
    <dc:creator>shauldorf</dc:creator>
    <dc:date>2016-01-08T21:41:42Z</dc:date>
    <item>
      <title>Push Button Bounce</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469412#M3726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m using FRDM-K64F with push button as a source for external interrupt.&lt;/P&gt;&lt;P&gt;How switch bounce can be cleaned using KDS3.0 + KSDK1.2.0 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 20:24:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469412#M3726</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-01-06T20:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Push Button Bounce</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469413#M3727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaul,&lt;/P&gt;&lt;P&gt;Try enabling the PFE bit in the PORTx_PCRn register:&lt;/P&gt;&lt;P&gt;PFE = Passive Filter Enable&lt;/P&gt;&lt;P&gt;Passive filter configuration is valid in all digital pin muxing modes.&lt;/P&gt;&lt;P&gt;0 Passive input filter is disabled on the corresponding pin.&lt;/P&gt;&lt;P&gt;1 Passive input filter is enabled on the corresponding pin, if the pin is configured as a digital input. Refer&lt;/P&gt;&lt;P&gt;to the device data sheet for filter characteristics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 21:25:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469413#M3727</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-01-07T21:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Push Button Bounce</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469414#M3728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David and Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t know if using PE I can configure PORTxPCRn register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application I’m using two PortA inputs PTA1 &amp;amp; PTA2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve yours suggestion  and I tried to use Pins1:PinSetting option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was no improvement in SW bouncing reduction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m attaching my configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that my configuration is wrong, using debugger I have seen that “PFE” remains low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that using assembly can solve the problem but I don’t know how to do this (I have hardware experience).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any recommendations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using low pass filter (RC) at input solves the problem but I prefer software solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 21:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469414#M3728</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-01-08T21:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Push Button Bounce</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469415#M3729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shauk,&lt;/P&gt;&lt;P&gt;Two suggestions....use an interrupt on the PTA1/2 GPIO pins and in the interrupt have a delay loop.&amp;nbsp; After delay loop if the signal is still asserted, then assume debounced and proceed.&amp;nbsp; If signal was de-asserted then take not action.&amp;nbsp; Positive is simple to implement.&amp;nbsp; Negative it wastes time during debounce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other suggestion for K64 is to use a PORT D pin that has a digital filter capability and you can use hardware to do your debouncing.&lt;/P&gt;&lt;P&gt;Chapter 10 tells you that only PORT D pins have digital filter capability.&lt;/P&gt;&lt;P&gt;Chapter 11 has the "Digital Filter" registers for PORTD (PORTD_[DFER&amp;amp;DFCR&amp;amp;DFWR] to configure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fsl_port_hal.h has the MACRO's to access this stuff.&amp;nbsp; Ex:&amp;nbsp; static inline void PORT_HAL_SetDigitalFilterWidth(PORT_Type * base, uint8_t width)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 23:15:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469415#M3729</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-01-08T23:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Push Button Bounce</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469416#M3730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David&lt;/P&gt;&lt;P&gt;Thanks :smileyhappy: &lt;/P&gt;&lt;P&gt;Your guidance was excellent.&lt;/P&gt;&lt;P&gt;Two solutions have been tested and are working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 21:59:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Push-Button-Bounce/m-p/469416#M3730</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2016-01-10T21:59:15Z</dc:date>
    </item>
  </channel>
</rss>

