<?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 Re: Sleep Mode and Wake Up On S12ZVML in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794885#M15647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Interrupt on a falling edge on PS5 can be configured as:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;DDRS_DDRS5 = 0; /* PS5, input */
PPSS_PPSS5 = 0; /* PS5. Pull-up device selected, falling edge selected */
PERS_PERS5 = 1; /* PS5, Pull device enabled */
PIES_PIES5 = 1; /* PS5, Interrupt enabled */&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To put the MCU into stop mode use:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;asm ANDCC #0x7f; /* Clear S bit, enable STOP instruction */
asm STOP;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And clear the interrupt flag in the PortS_ISR after wakeup:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;interrupt VectorNumber_Vports void PortS_ISR(void){

 PIFS_PIFS5 = 1; /* Clear the PS5 interrupt flag */

}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&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 Jun 2018 13:11:28 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2018-06-19T13:11:28Z</dc:date>
    <item>
      <title>Sleep Mode and Wake Up On S12ZVML</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794884#M15646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using S12ZVML MCU.&lt;/P&gt;&lt;P&gt;I want to put the MCU in Sleep Mode and perform Wake up through a GPIO.&lt;/P&gt;&lt;P&gt;GPIO meaning the wake up functionality through either PORT AD or PORT S (/SCK0 or /SS0)&lt;/P&gt;&lt;P&gt;Will the /IRQ or /XIRQ interrupt occur beacuse of the prescence of active edge on the 1 of the above said GPIO pin beacuse of which wake up procedure will be initiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please provide me with a sample code as to how to perform the same.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 10:51:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794884#M15646</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2018-06-19T10:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Mode and Wake Up On S12ZVML</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794885#M15647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Interrupt on a falling edge on PS5 can be configured as:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;DDRS_DDRS5 = 0; /* PS5, input */
PPSS_PPSS5 = 0; /* PS5. Pull-up device selected, falling edge selected */
PERS_PERS5 = 1; /* PS5, Pull device enabled */
PIES_PIES5 = 1; /* PS5, Interrupt enabled */&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To put the MCU into stop mode use:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;asm ANDCC #0x7f; /* Clear S bit, enable STOP instruction */
asm STOP;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And clear the interrupt flag in the PortS_ISR after wakeup:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;interrupt VectorNumber_Vports void PortS_ISR(void){

 PIFS_PIFS5 = 1; /* Clear the PS5 interrupt flag */

}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&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 Jun 2018 13:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794885#M15647</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-06-19T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Mode and Wake Up On S12ZVML</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794886#M15648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielmartynek"&gt;danielmartynek&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I have one doubt .&lt;/P&gt;&lt;P&gt;Here you have used PS5 which also has serial Interface functionality as the pin is used as /SS0.&lt;/P&gt;&lt;P&gt;Is it OK to use that pin for keywake up as well as serial IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 13:37:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794886#M15648</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2018-06-19T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Mode and Wake Up On S12ZVML</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794887#M15649</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 also have some other queries to be resolved:&lt;/P&gt;&lt;P&gt;1. In Full Stop mode since the oscillator is stopped and clocks are switched off, internal peripherals like timer and ADC wont work,but watchdog will run. Is this understanding correct.&lt;/P&gt;&lt;P&gt;2.In Full Stop mode what is the MCU behaviour if it receives other interrupt requests(other than wake up)&lt;/P&gt;&lt;P&gt;3.What is the MCU behaviour after it leaves the stop mode. Does it start the execution where it last left or does it start from the init sequence.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 06:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794887#M15649</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2018-06-20T06:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Mode and Wake Up On S12ZVML</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794888#M15650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the KWU function can be used with the general-purpose or related peripheral functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. COP can be active in Full-Stop Mode if the clock source of the&amp;nbsp;counter is ACLK, as described in Section 8.1.3.3, RM r2.11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Any interrupt that can occur in Stop mode will bring the MCU from Stop mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. It starts with the execution of the ISR and the subsequent instructions after the STOP instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:19:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sleep-Mode-and-Wake-Up-On-S12ZVML/m-p/794888#M15650</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-06-20T13:19:41Z</dc:date>
    </item>
  </channel>
</rss>

