<?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: LPIT0</title>
    <link>https://community.nxp.com/t5/S32K/LPIT0/m-p/1459942#M15518</link>
    <description>&lt;P&gt;You are welcome!&lt;BR /&gt;I am glad to hear that it works now.&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 10:19:56 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2022-05-18T10:19:56Z</dc:date>
    <item>
      <title>LPIT0</title>
      <link>https://community.nxp.com/t5/S32K/LPIT0/m-p/1458524#M15444</link>
      <description>&lt;P&gt;void Timer_0_Initilization(void)&lt;BR /&gt;{&lt;BR /&gt;status_t status;&lt;/P&gt;&lt;P&gt;lpit1_ChnConfig0.period =80000;&lt;/P&gt;&lt;P&gt;LPIT_DRV_Init(INST_LPIT_CONFIG_1, &amp;amp;lpit1_InitConfig);&lt;/P&gt;&lt;P&gt;status = LPIT_DRV_InitChannel(INST_LPIT_CONFIG_1, LPIT_CHANNEL, &amp;amp;lpit1_ChnConfig0);&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;/P&gt;&lt;P&gt;INT_SYS_InstallHandler(LPIT_Channel_IRQn, &amp;amp;LPIT_ISR, NULL);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void Timer_0_Start(void)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;LPIT_DRV_StartTimerChannels(INST_LPIT_CONFIG_1, (1 &amp;lt;&amp;lt; LPIT_CHANNEL));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;BR /&gt;void Timer_1_Initilization(unsigned int period_count)&lt;BR /&gt;{&lt;BR /&gt;status_t status;&lt;/P&gt;&lt;P&gt;lpit1_ChnConfig0.period =period_count;&lt;/P&gt;&lt;P&gt;LPIT_DRV_Init(INST_LPIT_CONFIG_1, &amp;amp;lpit1_InitConfig);&lt;/P&gt;&lt;P&gt;status = LPIT_DRV_InitChannel(INST_LPIT_CONFIG_1, LPIT_CHANNEL1, &amp;amp;lpit1_ChnConfig1);&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;/P&gt;&lt;P&gt;INT_SYS_InstallHandler(LPIT_Channel1_IRQn, &amp;amp;LPIT_ISR1, NULL);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void Timer_1_Start()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;LPIT_DRV_StartTimerChannels(INST_LPIT_CONFIG_1, (1 &amp;lt;&amp;lt; LPIT_CHANNEL1));&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;void Timer_2_Initilization(void)&lt;BR /&gt;{&lt;BR /&gt;status_t status;&lt;/P&gt;&lt;P&gt;LPIT_DRV_Init(INST_LPIT_CONFIG_1, &amp;amp;lpit1_InitConfig);&lt;/P&gt;&lt;P&gt;status = LPIT_DRV_InitChannel(INST_LPIT_CONFIG_1, LPIT_CHANNEL2, &amp;amp;lpit1_ChnConfig2);&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;/P&gt;&lt;P&gt;INT_SYS_InstallHandler(LPIT_Channel2_IRQn, &amp;amp;LPIT_ISR2, NULL);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void Timer_2_Start(void)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;LPIT_DRV_StartTimerChannels(INST_LPIT_CONFIG_1, (1 &amp;lt;&amp;lt; LPIT_CHANNEL2));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;BR /&gt;void Timer_3_Initilization(void)&lt;BR /&gt;{&lt;BR /&gt;status_t status;&lt;BR /&gt;LPIT_DRV_Init(INST_LPIT_CONFIG_1, &amp;amp;lpit1_InitConfig);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;status = LPIT_DRV_InitChannel(INST_LPIT_CONFIG_1, LPIT_CHANNEL3, &amp;amp;lpit1_ChnConfig3);&lt;BR /&gt;DEV_ASSERT(status == STATUS_SUCCESS);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;INT_SYS_InstallHandler(LPIT_Channel3_IRQn, &amp;amp;LPIT_ISR3, NULL);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void Timer_3_Start(void)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;LPIT_DRV_StartTimerChannels(INST_LPIT_CONFIG_1, (1 &amp;lt;&amp;lt; LPIT_CHANNEL3));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void Timer_Initialization(void)&lt;BR /&gt;{&lt;BR /&gt;Timer_0_Initilization();&lt;BR /&gt;Timer_1_Initilization(16000000);&lt;BR /&gt;Timer_2_Initilization();&lt;BR /&gt;Timer_3_Initilization();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Timer_Initialization();&lt;/P&gt;&lt;P&gt;Timer_3_Start();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if I do like this below its not working,&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Timer_Initialization();&lt;/P&gt;&lt;P&gt;Timer_0_Start();&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Timer_1_Start();&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Timer_2_Start();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like this I'm using its working fine but, In Timer_Initilization() function I have initialized Timer_3_Initilization(); last so if i call timer_3_start() its working in this same situation if i call&amp;nbsp; timer_0 or1,2_nitilization(); its not working... whatever i have initialized last its related start if i call only its&amp;nbsp; working. why?&lt;/P&gt;&lt;P&gt;I have attached timer configuration also&lt;/P&gt;&lt;P&gt;/* lPIT global configuration */&lt;BR /&gt;const lpit_user_config_t lpit1_InitConfig = {&lt;BR /&gt;.enableRunInDebug = false,&lt;BR /&gt;.enableRunInDoze = false&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* Channel configuration 0*/&lt;BR /&gt;lpit_user_channel_config_t lpit1_ChnConfig0 = {&lt;BR /&gt;.timerMode = LPIT_PERIODIC_COUNTER,&lt;BR /&gt;.periodUnits = LPIT_PERIOD_UNITS_COUNTS,&lt;BR /&gt;.period = 8000UL,&lt;BR /&gt;.triggerSource = LPIT_TRIGGER_SOURCE_INTERNAL,&lt;BR /&gt;.triggerSelect = 0U,&lt;BR /&gt;.enableReloadOnTrigger = false,&lt;BR /&gt;.enableStopOnInterrupt = false,&lt;BR /&gt;.enableStartOnTrigger = false,&lt;BR /&gt;.chainChannel = false,&lt;BR /&gt;.isInterruptEnabled = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* Channel configuration 1*/&lt;BR /&gt;lpit_user_channel_config_t lpit1_ChnConfig1 = {&lt;BR /&gt;.timerMode = LPIT_PERIODIC_COUNTER,&lt;BR /&gt;.periodUnits = LPIT_PERIOD_UNITS_COUNTS,&lt;BR /&gt;.period = 80000UL,&lt;BR /&gt;.triggerSource = LPIT_TRIGGER_SOURCE_INTERNAL,&lt;BR /&gt;.triggerSelect = 1U,&lt;BR /&gt;.enableReloadOnTrigger = false,&lt;BR /&gt;.enableStopOnInterrupt = false,&lt;BR /&gt;.enableStartOnTrigger = false,&lt;BR /&gt;.chainChannel = false,&lt;BR /&gt;.isInterruptEnabled = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* Channel configuration 2*/&lt;BR /&gt;lpit_user_channel_config_t lpit1_ChnConfig2 = {&lt;BR /&gt;.timerMode = LPIT_PERIODIC_COUNTER,&lt;BR /&gt;.periodUnits = LPIT_PERIOD_UNITS_COUNTS,&lt;BR /&gt;.period = 6400UL,&lt;BR /&gt;.triggerSource = LPIT_TRIGGER_SOURCE_INTERNAL,&lt;BR /&gt;.triggerSelect = 2U,&lt;BR /&gt;.enableReloadOnTrigger = false,&lt;BR /&gt;.enableStopOnInterrupt = false,&lt;BR /&gt;.enableStartOnTrigger = false,&lt;BR /&gt;.chainChannel = false,&lt;BR /&gt;.isInterruptEnabled = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* Channel configuration 3*/&lt;BR /&gt;lpit_user_channel_config_t lpit1_ChnConfig3 = {&lt;BR /&gt;.timerMode = LPIT_PERIODIC_COUNTER,&lt;BR /&gt;.periodUnits = LPIT_PERIOD_UNITS_COUNTS,&lt;BR /&gt;.period = 5600UL,&lt;BR /&gt;.triggerSource = LPIT_TRIGGER_SOURCE_INTERNAL,&lt;BR /&gt;.triggerSelect = 3U,&lt;BR /&gt;.enableReloadOnTrigger = false,&lt;BR /&gt;.enableStopOnInterrupt = false,&lt;BR /&gt;.enableStartOnTrigger = false,&lt;BR /&gt;.chainChannel = false,&lt;BR /&gt;.isInterruptEnabled = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;everyone is different channel , then it should work na.. otherwise I need to call timer initialize for every timer start how to avoid it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 09:12:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT0/m-p/1458524#M15444</guid>
      <dc:creator>Bhuvana</dc:creator>
      <dc:date>2022-05-16T09:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT0</title>
      <link>https://community.nxp.com/t5/S32K/LPIT0/m-p/1458601#M15450</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Bhuvana,&lt;/P&gt;
&lt;P&gt;I'm not sure if I understand your question.&lt;BR /&gt;Do you mean this works:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;int main()
{
Timer_Initialization();
Timer_3_Start();
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But below code not work:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;int main()
{
Timer_Initialization();
Timer_0_Start();
or
Timer_1_Start();
or
Timer_2_Start();
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Please refer to the description of &lt;STRONG&gt;LPIT_StartTimerChannels&lt;/STRONG&gt; to check whether the input parameters(mask) of &lt;STRONG&gt;LPIT_DRV_StartTimerChannels&lt;/STRONG&gt; match the description.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LPIT_DRV_StartTimerChannels.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179870iBD2AA8F779B9E599/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPIT_DRV_StartTimerChannels.png" alt="LPIT_DRV_StartTimerChannels.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&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>Mon, 16 May 2022 10:57:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT0/m-p/1458601#M15450</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2022-05-16T10:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT0</title>
      <link>https://community.nxp.com/t5/S32K/LPIT0/m-p/1458635#M15454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached my project file in this before while(1) Timer_3_Initilization(); is there so if I call Timer_3_Start(); its working but instead of Timer_3_Start() if I call&amp;nbsp;Timer_0_Start() why its not working. If I call&amp;nbsp;Timer_0_Initilization(); next line Timer_0_Start() that time its working.&lt;/P&gt;&lt;P&gt;so whatever I have Initialize finally that related timer start only working. how to avoid it?&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 11:43:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT0/m-p/1458635#M15454</guid>
      <dc:creator>Bhuvana</dc:creator>
      <dc:date>2022-05-16T11:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT0</title>
      <link>https://community.nxp.com/t5/S32K/LPIT0/m-p/1459713#M15512</link>
      <description>&lt;P&gt;You don't need to call&amp;nbsp;&lt;STRONG&gt;LPIT_DRV_Init&lt;/STRONG&gt; in each channel initializes function.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LPIT_DRV_Init.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/180080i494D22D4C63DA4A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPIT_DRV_Init.png" alt="LPIT_DRV_Init.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please check if each channel is able to run.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 05:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT0/m-p/1459713#M15512</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2022-05-18T05:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT0</title>
      <link>https://community.nxp.com/t5/S32K/LPIT0/m-p/1459820#M15515</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;Hi sir I have tried after removing LPIT_DRV_INIT() from every initialization now its working fine. Thanks for your guidance&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 07:52:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT0/m-p/1459820#M15515</guid>
      <dc:creator>Bhuvana</dc:creator>
      <dc:date>2022-05-18T07:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT0</title>
      <link>https://community.nxp.com/t5/S32K/LPIT0/m-p/1459942#M15518</link>
      <description>&lt;P&gt;You are welcome!&lt;BR /&gt;I am glad to hear that it works now.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 10:19:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT0/m-p/1459942#M15518</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2022-05-18T10:19:56Z</dc:date>
    </item>
  </channel>
</rss>

