<?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>S32 SDKのトピックRe: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
    <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1506891#M2645</link>
    <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw digital filter part in reference manual but I don't know which clock&amp;nbsp; is selected in digital filter and also in the two cases the delay time is very small, I am using HSRUN mode and bus clock is 56MHz and LPO clock is 128KHz, I want to do much delay and also I want to know, which clock the digital filter use ?&lt;/P&gt;&lt;P&gt;and I want you to tell me the steps to configure this part because I just enable the digital filter to this pin only&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 14:41:28 GMT</pubDate>
    <dc:creator>RehabSoliman</dc:creator>
    <dc:date>2022-08-16T14:41:28Z</dc:date>
    <item>
      <title>using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1506718#M2643</link>
      <description>&lt;P&gt;if I use digital filter on external interrupt pin it overcome on the button bouncing&lt;/P&gt;&lt;P&gt;and I want to understand this part it is correct or not, in case not I want to Know a way to overcome on the button bouncing I am using FreeRTOS&amp;nbsp; and also ISR&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:21:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1506718#M2643</guid>
      <dc:creator>RehabSoliman</dc:creator>
      <dc:date>2022-08-16T09:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1506854#M2644</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204253"&gt;@RehabSoliman&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That depends on your signal conditions.&lt;BR /&gt;The Digital filter will introduce delay in your signal. Depending on the settings you select and the running environment, digital filtering can handle the signal bounce or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Example:&lt;BR /&gt;If your digital filter is clocked by the bus clock (PORT_DFCR:CS = 0) at 48 Mhz and you set the Filter Length to its max value (PORT_DFWR:FILT = 0x1F), then the de-bounce time will be 645.83 ns (If the clock frequency is 100% stable) so if the signal stabilization time is lower than that, then you won't have problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your digital filter is clocked by LPO, the frequency is much lower (As per the datasheet, the LPO clock can be within 113 - 139kHz) so the max de-bouncing time you will be between 274.33 - 223.02 us&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly take a look at chapters 12.6.4 External interrupts and 12.6.5 Digital filter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 14:04:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1506854#M2644</guid>
      <dc:creator>JRoberto</dc:creator>
      <dc:date>2022-08-16T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1506891#M2645</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw digital filter part in reference manual but I don't know which clock&amp;nbsp; is selected in digital filter and also in the two cases the delay time is very small, I am using HSRUN mode and bus clock is 56MHz and LPO clock is 128KHz, I want to do much delay and also I want to know, which clock the digital filter use ?&lt;/P&gt;&lt;P&gt;and I want you to tell me the steps to configure this part because I just enable the digital filter to this pin only&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 14:41:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1506891#M2645</guid>
      <dc:creator>RehabSoliman</dc:creator>
      <dc:date>2022-08-16T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1507527#M2649</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204253"&gt;@RehabSoliman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the Screenshots you sent me I can't tell if you're using SDK or RTD neither which specific S32K1xx you are setting up, so I'm not able to bring you any more specific answer but I believe this can help you.&lt;/P&gt;
&lt;P&gt;The clock selection is explained in the Reference Manual 12.5.8 Digital Filter Clock Register. (You just need to set the PORT_DFCR:CS to the desired source clock). If the max selectable delay with BUS_CLK is too short, you need to use LPO but keep in mind the clock is not precise.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can measure the LPO clock at CLKOUT pin. Here is a bare metal example where the Digital Filter is being used.&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-RTC-VLPS/ta-p/1119655" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-RTC-VLPS/ta-p/1119655&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The Digital Input Filter configuration steps are described in the Reference Manual 12.1.4.1 Digital input filter configuration sequence while using GPIO interrupt&lt;/P&gt;
&lt;P&gt;The ConfigTools does't have the option to change the Digital Filter settings other than enable or disable it so, this has to be done by code. You can take a look to the API documentation.&lt;/P&gt;
&lt;P&gt;If you want me to provide more information I'd need to know your development environment:&lt;BR /&gt;* IDE and its Version&lt;BR /&gt;* SDK or RTD and its version&lt;BR /&gt;* Which specific MCU you are using&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 13:18:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1507527#M2649</guid>
      <dc:creator>JRoberto</dc:creator>
      <dc:date>2022-08-17T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1507541#M2650</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IDE and its Version : S32K design studio 3.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;SDK : S32K142 EVB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;could you&amp;nbsp;provide me&amp;nbsp; more information ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 13:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1507541#M2650</guid>
      <dc:creator>RehabSoliman</dc:creator>
      <dc:date>2022-08-17T13:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1507562#M2651</link>
      <description>&lt;P&gt;Thank you for reply.&lt;/P&gt;
&lt;P&gt;So the development environment is:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IDE&lt;/STRONG&gt;: S32 DS for S32 Platform Version: 3.4&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Target:&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;S32K142 EVB&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SDK or RTD&lt;/STRONG&gt;: ?&amp;nbsp; Version: ?&lt;/P&gt;
&lt;P&gt;I still need the SDK or RTD information because the functions change from version to version.&lt;/P&gt;
&lt;P&gt;Could you please provide me this information?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 15:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1507562#M2651</guid>
      <dc:creator>JRoberto</dc:creator>
      <dc:date>2022-08-17T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1507573#M2652</link>
      <description>&lt;P&gt;thanks for your reply&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SDK or RTD&lt;/STRONG&gt;&lt;SPAN&gt;: ?&amp;nbsp; Version: ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it is S32SDK_S32K1XX_RTM_4.0.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 15:31:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1507573#M2652</guid>
      <dc:creator>RehabSoliman</dc:creator>
      <dc:date>2022-08-17T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1508314#M2654</link>
      <description>&lt;P&gt;[9:04 AM] Josue Roberto Gonzalez&lt;/P&gt;&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204253"&gt;@RehabSoliman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The RTM documentation states that the Pins driver provides the following function below to configure the digital filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Function Name: PINS_DRV_ConfigDigitalFilter
Description  : This function configures digital filter for port with given 
               configuration:
               Note: Updating the filter configuration must be done only 
               after all filters are disabled.
Parameters   :    
             * PORT_Type *const base -&amp;gt; (This is the Port base pointer 
              (PORTA, PORTB, PORTC, etc.))
             * const port_digital_filter_config_t *const config -&amp;gt; The 
               digital filter configuration struct
Returns: void&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This are the steps to use it.&lt;BR /&gt;* Create a configuration strucure of type port_digital_filter_config_t&lt;BR /&gt;* Set the desired values into your configuration structure&lt;BR /&gt;* Call PINS_DRV_ConfigDigitalFilter function making sure that the Digital filter is disabled. (It can be before the PINS_DRV_Init function gets called)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  port_digital_filter_config_t PTE_DigFltr_Config;
  PTE_DigFltr_Config.clock = 1U;
  PTE_DigFltr_Config.width = 0x1F;

  PINS_DRV_ConfigDigitalFilter (PORTE, &amp;amp;PTE_DigFltr_Config);
  error = PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this information is helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 14:15:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1508314#M2654</guid>
      <dc:creator>JRoberto</dc:creator>
      <dc:date>2022-08-18T14:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: using digital filter on external interrupt pin it overcomes on the button bouncing</title>
      <link>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1509046#M2656</link>
      <description>&lt;P&gt;thanks for your response&lt;/P&gt;&lt;P&gt;I will configure this part based on what you say&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 06:26:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/using-digital-filter-on-external-interrupt-pin-it-overcomes-on/m-p/1509046#M2656</guid>
      <dc:creator>RehabSoliman</dc:creator>
      <dc:date>2022-08-21T06:26:40Z</dc:date>
    </item>
  </channel>
</rss>

