<?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>S32KのトピックRe: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
    <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1825544#M32808</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228790"&gt;@pratik_a&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems the components added to your project are okay, could this be an issue with the initialization of other modules apart from the GPT? Like the GPIO or the clocks? Could you confirm the example runs, and if the callback function is being stepped into?&lt;/P&gt;
&lt;P&gt;An&amp;nbsp;&lt;SPAN class="c5aZPb" data-enable-toggle-animation="true" data-extra-container-classes="ZLo7Eb" data-hover-hide-delay="1000" data-hover-open-delay="500" data-send-open-event="true" data-theme="0" data-width="250" data-ved="2ahUKEwiKzc3gq-2EAxVK_skDHQ-oBCIQmpgGegQIDxAD"&gt;&lt;SPAN class="JPfdse" data-bubble-link="" data-segment-text="Interrupt Service Routine"&gt;Interrupt Service Routine&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;(&lt;STRONG&gt;ISR&lt;/STRONG&gt;) is a function which runs when a hardware interrupt is triggered, the same way a Callback is a software implementation of this. An ISR needs to be installed with an interrupt vector (for example in the&amp;nbsp;Siul2_Icu_Ip_BlinkLed_S32K344 example,&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;SIUL_2_IRQn&lt;/EM&gt;&lt;/STRONG&gt;), and a Callback can be added into the interrupt routine.&lt;/P&gt;
&lt;P&gt;You can modify the notification/callback function which will be modified by your state engine in this case.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 23:30:25 GMT</pubDate>
    <dc:creator>Julián_AragónM</dc:creator>
    <dc:date>2024-03-11T23:30:25Z</dc:date>
    <item>
      <title>Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1822494#M32571</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to toggle the LEDs using an interrupt timer.&lt;/P&gt;&lt;P&gt;I have managed to toggle the LED using incremental count as seen in the link below,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Turn-on-the-GPIO-using-NXPs32k322/m-p/1822446#M32566" target="_blank"&gt;Solved: Re: Turn on the GPIO using NXPs32k322 - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to generate an interrupt every 10ms. Any help is appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratik&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 12:49:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1822494#M32571</guid>
      <dc:creator>pratik_a</dc:creator>
      <dc:date>2024-03-06T12:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1822775#M32586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228790"&gt;@pratik_a&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The RTD 4.0.0 package includes examples for the General Purpose Timer:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_1-1709769385296.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266859i986D119B70BB624F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_1-1709769385296.png" alt="Julin_AragnM_1-1709769385296.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After the initialization the channel will start counting, the notification will be generated and a 'while(1) loop' will run to blink a LED. You can use these examples as reference and modify the counter to change the period.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 23:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1822775#M32586</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-03-06T23:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1823288#M32626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tried the GPT example. I did all the necessary settings in the configuration tools. I'm posting my code below. Somehow it doesn't work, Kindly help.&lt;/P&gt;&lt;P&gt;@&lt;/P&gt;&lt;DIV&gt;/**&lt;/DIV&gt;&lt;DIV&gt;*&amp;nbsp; &amp;nbsp;@file main.c&lt;/DIV&gt;&lt;DIV&gt;*&lt;/DIV&gt;&lt;DIV&gt;*&amp;nbsp; &amp;nbsp;@addtogroup main_module main module documentation&lt;/DIV&gt;&lt;DIV&gt;*&amp;nbsp; &amp;nbsp;@{&lt;/DIV&gt;&lt;DIV&gt;*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* Including necessary configuration files. */&lt;/DIV&gt;&lt;DIV&gt;#include "Mcal.h"&lt;/DIV&gt;&lt;DIV&gt;#include "Mcu.h"&lt;/DIV&gt;&lt;DIV&gt;#include "Port.h"&lt;/DIV&gt;&lt;DIV&gt;#include "Dio.h"&lt;/DIV&gt;&lt;DIV&gt;#include "Gpt.h"&lt;/DIV&gt;&lt;DIV&gt;#include "Platform.h"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;static volatile uint8 toggleLed = 0U;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;void Gpt_PitNotification(void)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; toggleLed = 1U;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*void TestDelay(uint32 delay);&lt;/DIV&gt;&lt;DIV&gt;void TestDelay(uint32 delay)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; static volatile uint32 DelayTimer = 0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; while(DelayTimer&amp;lt;delay)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DelayTimer++;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; DelayTimer=0;&lt;/DIV&gt;&lt;DIV&gt;}*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* User includes */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; \brief The main function for the project.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; \details The startup initialization sequence is the following:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;* - startup asm routine&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;* - main()&lt;/DIV&gt;&lt;DIV&gt;*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;int main(void)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uint8 pinValue = STD_LOW;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Mcu_Init(&amp;amp;Mcu_Config_BOARD_InitPeripherals);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Initialize the clock tree and apply PLL as system clock */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Mcu_InitClock(McuClockSettingConfig_0);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#if (STD_OFF == MCU_NO_PLL)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;while ( MCU_PLL_LOCKED != Mcu_GetPllStatus() )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Busy wait until the System PLL is locked */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Mcu_DistributePllClock();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Apply a mode configuration */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Mcu_SetMode(McuModeSettingConf_0);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Initialize all pins using the Port driver */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Port_Init(NULL_PTR);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Initialize Platform driver */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Platform_Init(NULL_PTR);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; /* Initialize the high level configuration structure of Gpt driver */&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#if (STD_ON == GPT_PRECOMPILE_SUPPORT)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Gpt_Init(NULL_PTR);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#else&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Gpt_Init(&amp;amp;Gpt_Config_VS_0);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Start the Gpt timer */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Gpt_StartTimer(GptConf_GptChannelConfiguration_GptChannelConfiguration_0, 20000000U);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Enable the Gpt notification to get the event for toggling the LED periodically */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Gpt_EnableNotification(GptConf_GptChannelConfiguration_GptChannelConfiguration_0);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Dio_WriteChannel(83, STD_HIGH);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; for(;;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if (1U == toggleLed)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//count++;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinValue = (STD_LOW == pinValue) ? STD_HIGH : STD_LOW;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Dio_WriteChannel(85, pinValue);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;toggleLed = 0U;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; //Dio_WriteChannel(83, STD_HIGH);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; //Dio_WriteChannel(85, STD_HIGH);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//TestDelay(2000000);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Dio_WriteChannel(85, STD_LOW);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Dio_WriteChannel(83, STD_LOW);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//TestDelay(2000000);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/** @} */&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, can you guide me to where the&amp;nbsp;void Gpt_PitNotification(void) function is declared? I just want to confirm if it is timer interrupt callback function?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 11:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1823288#M32626</guid>
      <dc:creator>pratik_a</dc:creator>
      <dc:date>2024-03-07T11:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1823646#M32650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228790"&gt;@pratik_a&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;PitNotification should be declared in the pit configuration file. It is indeed a callback function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_0-1709847853749.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267118i61495A105556003E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_0-1709847853749.png" alt="Julin_AragnM_0-1709847853749.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_1-1709847860049.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267119i0BB332EF390489D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_1-1709847860049.png" alt="Julin_AragnM_1-1709847860049.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_2-1709847867425.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267120iFB54583CB4594232/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_2-1709847867425.png" alt="Julin_AragnM_2-1709847867425.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just to confirm, when debugging does the code step into the&amp;nbsp;&lt;SPAN&gt;Gpt_PitNotification function?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Julián&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 21:47:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1823646#M32650</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-03-07T21:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1824813#M32753</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have been wanting to implement the Autosar method for timer functionality. As per the example provided, I have included the necessary components please refer to image 1.png&lt;/P&gt;&lt;P&gt;I want to generate an interrupt every 1 millisecond.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you also confirm if the callback function is equivalent to ISR implementation in the code? I want to specifically implement an ISR routine which will be called every 1 millisecond, and my state engine will change its state accordingly.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratik&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 11:50:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1824813#M32753</guid>
      <dc:creator>pratik_a</dc:creator>
      <dc:date>2024-03-11T11:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1825544#M32808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228790"&gt;@pratik_a&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems the components added to your project are okay, could this be an issue with the initialization of other modules apart from the GPT? Like the GPIO or the clocks? Could you confirm the example runs, and if the callback function is being stepped into?&lt;/P&gt;
&lt;P&gt;An&amp;nbsp;&lt;SPAN class="c5aZPb" data-enable-toggle-animation="true" data-extra-container-classes="ZLo7Eb" data-hover-hide-delay="1000" data-hover-open-delay="500" data-send-open-event="true" data-theme="0" data-width="250" data-ved="2ahUKEwiKzc3gq-2EAxVK_skDHQ-oBCIQmpgGegQIDxAD"&gt;&lt;SPAN class="JPfdse" data-bubble-link="" data-segment-text="Interrupt Service Routine"&gt;Interrupt Service Routine&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;(&lt;STRONG&gt;ISR&lt;/STRONG&gt;) is a function which runs when a hardware interrupt is triggered, the same way a Callback is a software implementation of this. An ISR needs to be installed with an interrupt vector (for example in the&amp;nbsp;Siul2_Icu_Ip_BlinkLed_S32K344 example,&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;SIUL_2_IRQn&lt;/EM&gt;&lt;/STRONG&gt;), and a Callback can be added into the interrupt routine.&lt;/P&gt;
&lt;P&gt;You can modify the notification/callback function which will be modified by your state engine in this case.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 23:30:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1825544#M32808</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-03-11T23:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1826154#M32841</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have included the snapshots of the included module configs, please take a look and let me know if I'm missing out on something.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using the Segger Edu mini flasher so I'm unaware of how to debug with it. But I'm&lt;/SPAN&gt;&amp;nbsp;confident that the callback function is not called. As the LED connected at MSCR 83 glows which is independent of the callback function as seen in code above.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dio_WriteChannel(83, STD_HIGH);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the one included in the callback function never toggles.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you also confirm from the above code that my callback function is properly called upon and whether it is included in the interrupt vector?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pratik&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 11:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1826154#M32841</guid>
      <dc:creator>pratik_a</dc:creator>
      <dc:date>2024-03-12T11:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1827184#M32921</link>
      <description>Hi,&lt;BR /&gt;I'm still unable to make it work. Kindly help me with a way forward.&lt;BR /&gt;Regards,&lt;BR /&gt;Pratik</description>
      <pubDate>Wed, 13 Mar 2024 12:50:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1827184#M32921</guid>
      <dc:creator>pratik_a</dc:creator>
      <dc:date>2024-03-13T12:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1827722#M32937</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228790"&gt;@pratik_a&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please make sure the &lt;EM&gt;GptIsrEnable&lt;/EM&gt; and &lt;EM&gt;GptChannelIsUsed &lt;/EM&gt;options are enabled:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_0-1710370466472.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268212iC49EF09CAB0E955B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_0-1710370466472.png" alt="Julin_AragnM_0-1710370466472.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Define the Pit notification and the ISR handler is defined:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_1-1710370529881.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268213i2C58F3EC8AAE50CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_1-1710370529881.png" alt="Julin_AragnM_1-1710370529881.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_2-1710370616700.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268214i408280945EDCB168/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_2-1710370616700.png" alt="Julin_AragnM_2-1710370616700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 22:57:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1827722#M32937</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-03-13T22:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle LED using interrupt timer of 10ms with AUTOSAR</title>
      <link>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1828503#M33000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked...Thanks for your continuous help.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 13:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Toggle-LED-using-interrupt-timer-of-10ms-with-AUTOSAR/m-p/1828503#M33000</guid>
      <dc:creator>pratik_a</dc:creator>
      <dc:date>2024-03-14T13:10:44Z</dc:date>
    </item>
  </channel>
</rss>

