<?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 stop mode problem in s12zvl32 using LIN frame in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/stop-mode-problem-in-s12zvl32-using-LIN-frame/m-p/607422#M13133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear sir ,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is very urgent as our team is stuck in stop mode . in our project we&lt;/P&gt;&lt;P&gt;required stop mode current is 100uA. we are unable to achieve this please&lt;/P&gt;&lt;P&gt;suggest all the application detail are give below.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.we are using s12zvl32 controller it is LIN based application we have to&lt;/P&gt;&lt;P&gt;achieve 100uA of current when sleep command is&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;received from LIN master or LIN time out condition .presently i have&lt;/P&gt;&lt;P&gt;implemented below condition but this condition when i send sleep command it&lt;/P&gt;&lt;P&gt;is taking 8 mA and on wake up 15mA , but when it goes 1 time sleep it took&lt;/P&gt;&lt;P&gt;2mA ,and it not going sleep in time out.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ((SLEEP_MODE == lin_lld_get_state()) &amp;amp; (~cpu_stop_mode_flg))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HallSensorOFF();//hall sensor supply through uCPIN&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Set enter stop mode flag */&lt;/P&gt;&lt;P&gt;cpu_stop_mode_flg = 1;&lt;/P&gt;&lt;P&gt;/* Enable wakeup feature of LIN Physical*/&lt;/P&gt;&lt;P&gt;LP0CR_LPWUE = 1;&lt;/P&gt;&lt;P&gt;asm(andcc #0x6f);&lt;/P&gt;&lt;P&gt;/* Enable Active Edge Detect Circuit in stop mode*/&lt;/P&gt;&lt;P&gt;psci-&amp;gt;sciacr1.byte |= SCIACR1_RXEDGIE_MASK;&lt;/P&gt;&lt;P&gt;asm(stop);&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(IDLE == lin_lld_get_state())&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (cpu_stop_mode_flg)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/* Clear stop mode flag */&lt;/P&gt;&lt;P&gt;cpu_stop_mode_flg = 0;&lt;/P&gt;&lt;P&gt;/* Disable Active Edge Detect Circuit in stop mode*/&lt;/P&gt;&lt;P&gt;psci-&amp;gt;sciacr1.byte &amp;amp;= ~SCIACR1_RXEDGIE_MASK;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HallSensorON();//hall sensor supply through uCPIN&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here i am also attaching my clock setting file and lin setting file .LIN&lt;/P&gt;&lt;P&gt;stack we are using FSL LIN 2.x Stack Package 4.5.7.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;PWM67.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;LIN_INT.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;CPU.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;ADC.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;TIMER_INT.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2016 10:26:03 GMT</pubDate>
    <dc:creator>deepakchandra</dc:creator>
    <dc:date>2016-10-05T10:26:03Z</dc:date>
    <item>
      <title>stop mode problem in s12zvl32 using LIN frame</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/stop-mode-problem-in-s12zvl32-using-LIN-frame/m-p/607422#M13133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear sir ,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is very urgent as our team is stuck in stop mode . in our project we&lt;/P&gt;&lt;P&gt;required stop mode current is 100uA. we are unable to achieve this please&lt;/P&gt;&lt;P&gt;suggest all the application detail are give below.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.we are using s12zvl32 controller it is LIN based application we have to&lt;/P&gt;&lt;P&gt;achieve 100uA of current when sleep command is&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;received from LIN master or LIN time out condition .presently i have&lt;/P&gt;&lt;P&gt;implemented below condition but this condition when i send sleep command it&lt;/P&gt;&lt;P&gt;is taking 8 mA and on wake up 15mA , but when it goes 1 time sleep it took&lt;/P&gt;&lt;P&gt;2mA ,and it not going sleep in time out.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ((SLEEP_MODE == lin_lld_get_state()) &amp;amp; (~cpu_stop_mode_flg))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HallSensorOFF();//hall sensor supply through uCPIN&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Set enter stop mode flag */&lt;/P&gt;&lt;P&gt;cpu_stop_mode_flg = 1;&lt;/P&gt;&lt;P&gt;/* Enable wakeup feature of LIN Physical*/&lt;/P&gt;&lt;P&gt;LP0CR_LPWUE = 1;&lt;/P&gt;&lt;P&gt;asm(andcc #0x6f);&lt;/P&gt;&lt;P&gt;/* Enable Active Edge Detect Circuit in stop mode*/&lt;/P&gt;&lt;P&gt;psci-&amp;gt;sciacr1.byte |= SCIACR1_RXEDGIE_MASK;&lt;/P&gt;&lt;P&gt;asm(stop);&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(IDLE == lin_lld_get_state())&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (cpu_stop_mode_flg)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/* Clear stop mode flag */&lt;/P&gt;&lt;P&gt;cpu_stop_mode_flg = 0;&lt;/P&gt;&lt;P&gt;/* Disable Active Edge Detect Circuit in stop mode*/&lt;/P&gt;&lt;P&gt;psci-&amp;gt;sciacr1.byte &amp;amp;= ~SCIACR1_RXEDGIE_MASK;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HallSensorON();//hall sensor supply through uCPIN&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here i am also attaching my clock setting file and lin setting file .LIN&lt;/P&gt;&lt;P&gt;stack we are using FSL LIN 2.x Stack Package 4.5.7.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;PWM67.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;LIN_INT.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;CPU.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;ADC.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338580"&gt;TIMER_INT.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 10:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/stop-mode-problem-in-s12zvl32-using-LIN-frame/m-p/607422#M13133</guid>
      <dc:creator>deepakchandra</dc:creator>
      <dc:date>2016-10-05T10:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: stop mode problem in s12zvl32 using LIN frame</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/stop-mode-problem-in-s12zvl32-using-LIN-frame/m-p/607423#M13134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;I suppose that content of your thread is the same as here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/435988"&gt;https://community.nxp.com/thread/435988&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I would like to recommend continue the discussion there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 07:51:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/stop-mode-problem-in-s12zvl32-using-LIN-frame/m-p/607423#M13134</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-10-12T07:51:01Z</dc:date>
    </item>
  </channel>
</rss>

