<?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 Using LPIT instead of LPTMR for linstack timer callback in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Using-LPIT-instead-of-LPTMR-for-linstack-timer-callback/m-p/1735835#M27690</link>
    <description>&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I'm using a S32K118 evaluation board. I'm using the lin stack slave example and it works fine. It uses the LPTMR to call the&amp;nbsp;lin_lld_timeout_service(LI0) and besides it is used in the PORT IRQ for the autobaud rate function.&lt;/P&gt;&lt;P&gt;Now I need to use LPTMR for another timebase (I need a slow timer) and so I tried to replace it for lin stack with LPIT channel 0.&lt;/P&gt;&lt;P&gt;I adapded the get counter function and the&amp;nbsp;lin0TimerGetTimeIntervalCallback0, but it seems that it doesn't work. The autobaud rate does not complete successully.&lt;/P&gt;&lt;P&gt;Can you help me understanding why? Could you try to setup an example with LPIT for lin stack and share it here?&lt;/P&gt;&lt;P&gt;Please I would also like to understand what is the difference between External and Internal trigger for LPIT. (at the moment I still don't understand if it is a free running or if some trigger is triggering the LPIT).&lt;/P&gt;&lt;P&gt;Is it correct the idea to use the LPTMR to make a slow timebase (100ms) that works also in low power mode? Or should do I use the LPO_CLK?&lt;/P&gt;&lt;P&gt;Is the autobaud function necessary or can I avoid it?&lt;/P&gt;&lt;P&gt;Please let me know as soon as possible, in particular for LPIT usage.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Francesco Solito&lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2023 14:08:32 GMT</pubDate>
    <dc:creator>Francesco_Solito</dc:creator>
    <dc:date>2023-10-09T14:08:32Z</dc:date>
    <item>
      <title>Using LPIT instead of LPTMR for linstack timer callback</title>
      <link>https://community.nxp.com/t5/S32K/Using-LPIT-instead-of-LPTMR-for-linstack-timer-callback/m-p/1735835#M27690</link>
      <description>&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I'm using a S32K118 evaluation board. I'm using the lin stack slave example and it works fine. It uses the LPTMR to call the&amp;nbsp;lin_lld_timeout_service(LI0) and besides it is used in the PORT IRQ for the autobaud rate function.&lt;/P&gt;&lt;P&gt;Now I need to use LPTMR for another timebase (I need a slow timer) and so I tried to replace it for lin stack with LPIT channel 0.&lt;/P&gt;&lt;P&gt;I adapded the get counter function and the&amp;nbsp;lin0TimerGetTimeIntervalCallback0, but it seems that it doesn't work. The autobaud rate does not complete successully.&lt;/P&gt;&lt;P&gt;Can you help me understanding why? Could you try to setup an example with LPIT for lin stack and share it here?&lt;/P&gt;&lt;P&gt;Please I would also like to understand what is the difference between External and Internal trigger for LPIT. (at the moment I still don't understand if it is a free running or if some trigger is triggering the LPIT).&lt;/P&gt;&lt;P&gt;Is it correct the idea to use the LPTMR to make a slow timebase (100ms) that works also in low power mode? Or should do I use the LPO_CLK?&lt;/P&gt;&lt;P&gt;Is the autobaud function necessary or can I avoid it?&lt;/P&gt;&lt;P&gt;Please let me know as soon as possible, in particular for LPIT usage.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Francesco Solito&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 14:08:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-LPIT-instead-of-LPTMR-for-linstack-timer-callback/m-p/1735835#M27690</guid>
      <dc:creator>Francesco_Solito</dc:creator>
      <dc:date>2023-10-09T14:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using LPIT instead of LPTMR for linstack timer callback</title>
      <link>https://community.nxp.com/t5/S32K/Using-LPIT-instead-of-LPTMR-for-linstack-timer-callback/m-p/1740829#M27885</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Which SW package you're using and where you get the example of Lin stack as your describe?&lt;BR /&gt;Under MCAL layer and RTD package, we only provide examples along with the SW package that help you configure and use MCAL API for Lin. So I am not sure that we can help to implement your Lin stack&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 03:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-LPIT-instead-of-LPTMR-for-linstack-timer-callback/m-p/1740829#M27885</guid>
      <dc:creator>cuongnguyenphu</dc:creator>
      <dc:date>2023-10-17T03:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using LPIT instead of LPTMR for linstack timer callback</title>
      <link>https://community.nxp.com/t5/S32K/Using-LPIT-instead-of-LPTMR-for-linstack-timer-callback/m-p/1741216#M27901</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Fortunately I solved by myself, but to be honest I was expected to receive an example with LPIT instead of LPTMR, just to help me. Anyway it is no more necessary for me.&lt;/P&gt;&lt;P&gt;For the community, I write here how I solved:&lt;/P&gt;&lt;P&gt;I'm using SDK RTM 4.0.1 and I started from the lin stack slave example. The LPTMR counts upward, while LPIT counts downward. So when I understood this, I adapted the timeout callback according to the downward counting method and then the autobaud procedure complete successfully with LPIT, and then the LIN works fine.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 09:55:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-LPIT-instead-of-LPTMR-for-linstack-timer-callback/m-p/1741216#M27901</guid>
      <dc:creator>Francesco_Solito</dc:creator>
      <dc:date>2023-10-17T09:55:59Z</dc:date>
    </item>
  </channel>
</rss>

