<?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>S12 / MagniV MicrocontrollersのトピックRe: Problem in Wake-up In MM912</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-in-Wake-up-In-MM912/m-p/704863#M14610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have just tried your code and it works.&lt;/P&gt;&lt;P&gt;I measure input current to see if the MCU wakes up.&lt;/P&gt;&lt;P&gt;After wake-up, the MCU goes to interrupt vector 6, Vd2di_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2017 15:18:43 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2017-09-19T15:18:43Z</dc:date>
    <item>
      <title>Problem in Wake-up In MM912</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-in-Wake-up-In-MM912/m-p/704862#M14609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" data-id="46843" data-ts="2017-09-14T07:27:47.743+0000" style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px; padding: 5px 100px 5px 0px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;unfortunately I'm stack on Stop mode and the Wake up in MM912G634&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;for going in stop it is enough&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;asm ANDCC #0x6F;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;asm&amp;nbsp;&lt;/SPAN&gt;NOP;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;asm (STOP);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;According to datasheet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;For wake-up from STOP the basic flow is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;1. Analog die detects a wake-up condition, e.g. on a switch input or start bit of a LIN message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;2. Analog die exits Voltage Regulator low power mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;3. Analog die asserts the interrupt signal D2DINT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;4. CPU starts clock generation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;5. CPU enters interrupt handler routine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;.6. CPU services interrupt and acknowledges the source on the analog die.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;i can change the state of L3 L5 and L6 (from state1 to state0) as a wake up condition and before going to stop mode &amp;nbsp;IRQ has been enabled by :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;D2DCTL1 &amp;nbsp;= 0x8F; &amp;nbsp;// IRQ enable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;D2DCTL0 = 0x80;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;i think by this configuration and changing L3 , L5 or L6, MCU should exit from Stop mode but i couldn't exit from stop mode. it should be noted that BDM is Connected but i use oscilloscope for reading pin A.6 that i expected after exiting Stop mode start as a puls&lt;/SPAN&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #646464; border: 0px; font-weight: inherit; font-size: 11px;"&gt;this is part of my code:&lt;/DIV&gt;&lt;DIV class="" style="color: #646464; border: 0px; font-weight: inherit; font-size: 11px;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;void interrupt 7 RTIServiceRoutin(void)&lt;BR /&gt;{&lt;BR /&gt;CPMUFLG_RTIF=CLEAR;&lt;BR /&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (1==PORTA_PA6)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PORTA_PA6=0;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;else &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PORTA_PA6=1;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;} &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;void main(void) {&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;DDRA_DDRA6=1;&lt;BR /&gt;D2DCTL1 = 0x8F; // IRQ enable, max timeout&lt;BR /&gt; D2DCTL0 = 0x80; // D2D enable, 4Bit, D2DCLK=BUS&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;B_MCR =0x01;&lt;/P&gt;asm ANDCC #0x2F;&lt;BR /&gt; asm NOP;&lt;BR /&gt; asm (STOP);&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #646464; border: 0px; font-weight: inherit; font-size: 11px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #646464; border: 0px; font-weight: inherit; font-size: 11px;"&gt;// at this point i change the state of L3&lt;/DIV&gt;&lt;DIV class="" style="color: #646464; border: 0px; font-weight: inherit; font-size: 11px;"&gt;&lt;BR /&gt; __asm CLI;&lt;/DIV&gt;&lt;DIV class="" style="color: #646464; border: 0px; font-weight: inherit; font-size: 11px;"&gt;}&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 06:20:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-in-Wake-up-In-MM912/m-p/704862#M14609</guid>
      <dc:creator>alirezabazm</dc:creator>
      <dc:date>2017-09-16T06:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Wake-up In MM912</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-in-Wake-up-In-MM912/m-p/704863#M14610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have just tried your code and it works.&lt;/P&gt;&lt;P&gt;I measure input current to see if the MCU wakes up.&lt;/P&gt;&lt;P&gt;After wake-up, the MCU goes to interrupt vector 6, Vd2di_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 15:18:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-in-Wake-up-In-MM912/m-p/704863#M14610</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-09-19T15:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Wake-up In MM912</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-in-Wake-up-In-MM912/m-p/704864#M14611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could you introduce your method to enter the STOP mode and wake up?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;When I test the "STOP" mode, the MCU just like running as reset after I pressed the button to wake up the device . The device always stay in low-power mode finally!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I will&amp;nbsp;appreciate it if you could help me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Guofeng Lai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 09:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-in-Wake-up-In-MM912/m-p/704864#M14611</guid>
      <dc:creator>guofeng</dc:creator>
      <dc:date>2017-11-02T09:15:28Z</dc:date>
    </item>
  </channel>
</rss>

