<?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: S32K1 GPIO input, falling-edge interrupt with digitalfilter, but entering IRQHandler after init in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K1-GPIO-input-falling-edge-interrupt-with-digitalfilter-but/m-p/1567369#M19350</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Leon,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you followed the order mentioned in the chapter "&lt;EM&gt;Digital input filter configuration sequence while using GPIO interrupt&lt;/EM&gt;"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Digital input filter configuration sequence while using GPIO interrupt.png" style="width: 896px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/203738i6A04C3F14BE3FF46/image-size/large?v=v2&amp;amp;px=999" role="button" title="Digital input filter configuration sequence while using GPIO interrupt.png" alt="Digital input filter configuration sequence while using GPIO interrupt.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Digital input filter configuration sequence while using GPIO interrupt.png&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If the problem persists, please tell me the part number of S32K1, SDK or RTD version number you are using.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 08:22:44 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2022-12-09T08:22:44Z</dc:date>
    <item>
      <title>S32K1 GPIO input, falling-edge interrupt with digitalfilter, but entering IRQHandler after init</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-GPIO-input-falling-edge-interrupt-with-digitalfilter-but/m-p/1567198#M19349</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm using the S32K1 MCU, and I define an input pin to detect the signal falling edge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;pin_mux.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;FONT size="3"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.base = PORTC,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.pinPortIdx = 8U,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.driveSelect = PORT_HIGH_DRIVE_STRENGTH,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.passiveFilter = false,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.mux = PORT_MUX_AS_GPIO,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.pinLock = false,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.intConfig = PORT_INT_FALLING_EDGE,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.clearIntFlag = false,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.gpioBase = PTC,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.direction = GPIO_INPUT_DIRECTION,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.digitalFilter = true,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;.initValue = 1U,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;},&lt;/FONT&gt;&lt;/LI-SPOILER&gt; &lt;LI-SPOILER&gt;&lt;P&gt;const port_digital_filter_config_t PTC_filter_Paras={&lt;BR /&gt;.clock = PORT_DIGITAL_FILTER_LPO_CLOCK,&lt;BR /&gt;.width = 5U,&lt;BR /&gt;};&lt;BR /&gt;#define PTC_Filter_Conf ((port_digital_filter_config_t*)&amp;amp;PTC_filter_Paras)&lt;/P&gt;&lt;P&gt;static inline void Set_Pin_Interrupt_Filter(void){&lt;BR /&gt;PINS_DRV_ConfigDigitalFilter(PORTA, PTA_Filter_Conf);&lt;BR /&gt;PINS_DRV_ConfigDigitalFilter(PORTC, PTC_Filter_Conf);&lt;BR /&gt;}&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;LI-SPOILER&gt;void PORTC_IRQHandler(void){&lt;BR /&gt;FLT_OVP_VBUS_Handler();//Check the PTC8 interrupt enabled or not&lt;BR /&gt;PINS_DRV_ClearPortIntFlagCmd(PORTC);&lt;BR /&gt;}&lt;/LI-SPOILER&gt;&lt;P&gt;I add a breakpoint&amp;nbsp; inside the&amp;nbsp;PORTC_IRQHandler.&lt;/P&gt;&lt;P&gt;After the pins and pins filter initialized, and then&amp;nbsp;PORTC_IRQHandler() triggered, but I used &lt;SPAN&gt;oscilloscope to&amp;nbsp;&lt;/SPAN&gt;measure the input signal is always high, no falling edge exited.&lt;/P&gt;&lt;P&gt;In the same time, The register data:&lt;/P&gt;&lt;P&gt;PORTC/ISFR,0x4004B0A0,0x00000&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;00&lt;/P&gt;&lt;P&gt;PTC/PDIR,0x400FF090,0x00024&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;30&lt;/P&gt;&lt;P&gt;The PTC8/PDIR is High but&amp;nbsp;PORTC8/ISFR is High, it's not expected action, how to set this pin?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 03:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-GPIO-input-falling-edge-interrupt-with-digitalfilter-but/m-p/1567198#M19349</guid>
      <dc:creator>Leon_Hsieh</dc:creator>
      <dc:date>2022-12-09T03:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K1 GPIO input, falling-edge interrupt with digitalfilter, but entering IRQHandler after init</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-GPIO-input-falling-edge-interrupt-with-digitalfilter-but/m-p/1567369#M19350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Leon,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you followed the order mentioned in the chapter "&lt;EM&gt;Digital input filter configuration sequence while using GPIO interrupt&lt;/EM&gt;"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Digital input filter configuration sequence while using GPIO interrupt.png" style="width: 896px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/203738i6A04C3F14BE3FF46/image-size/large?v=v2&amp;amp;px=999" role="button" title="Digital input filter configuration sequence while using GPIO interrupt.png" alt="Digital input filter configuration sequence while using GPIO interrupt.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Digital input filter configuration sequence while using GPIO interrupt.png&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If the problem persists, please tell me the part number of S32K1, SDK or RTD version number you are using.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 08:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-GPIO-input-falling-edge-interrupt-with-digitalfilter-but/m-p/1567369#M19350</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2022-12-09T08:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: S32K1 GPIO input, falling-edge interrupt with digitalfilter, but entering IRQHandler after init</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-GPIO-input-falling-edge-interrupt-with-digitalfilter-but/m-p/1567993#M19383</link>
      <description>&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;I am using S32K148 and SDK4.0.2.&lt;/P&gt;&lt;P&gt;I was following the guidelines Chap. 12.1.4.1 and changed some initial pin configurations and the pin initializing processes from s32ds auto-code-gen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pin_settings_config_t g_pin_mux_InitConfigArr[NUM_OF_CONFIGURED_PINS]={
{
.base = PORTC,
.pinPortIdx = 8U,
.pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,
.driveSelect = PORT_HIGH_DRIVE_STRENGTH,//PORT_LOW_DRIVE_STRENGTH,
.passiveFilter = false,
.mux = PORT_MUX_AS_GPIO,
.pinLock = false,
.intConfig = PORT_DMA_INT_DISABLED,//not using PORT_INT_FALLING_EDGE initialized when .digitalFilter = true
.clearIntFlag = false,
.gpioBase = PTC,
.direction = GPIO_INPUT_DIRECTION,
.digitalFilter = true,
.initValue = 1U,
},
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;status_t Config_GPIO_Module(void)
{
	status_t st;
	st = PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);
	Set_Pin_Interrupt_Filter();
	PINS_SetPinIntSel(PORTC, 8U, PORT_INT_FALLING_EDGE);
	return st;
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;status_t Config_IRQ_System(void){
	INT_SYS_EnableIRQ(PORTC_IRQn);//PTC8 for FLT OV
	INT_SYS_SetPriority(PORTC_IRQn, 7);
}&lt;/LI-CODE&gt;&lt;P&gt;After Config_GPIO_Module() initialized, and then do Config_IRQ_System() initialized. After the processes and then the PTC8 is normally worked and raising the interrupt flag when the falling-edge siganl existed. And now it's worked as what I need.&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 06:47:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-GPIO-input-falling-edge-interrupt-with-digitalfilter-but/m-p/1567993#M19383</guid>
      <dc:creator>Leon_Hsieh</dc:creator>
      <dc:date>2022-12-12T06:47:55Z</dc:date>
    </item>
  </channel>
</rss>

