<?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>8-bit MicrocontrollersのトピックCan you give me a C code routine for the MC9S08DZ60 controller to run in STOP2 mode?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-you-give-me-a-C-code-routine-for-the-MC9S08DZ60-controller/m-p/1888231#M23908</link>
    <description>&lt;P&gt;Hello! I am currently writing a C code about the MC9S08DZ60 controller running in STOP2 mode! Mainly, after power on, it enters STOP2 mode, and then wakes up and lights up the LED small light through the external button of the IRQ pin! But I don't know how to get started. I looked at the low-power documentation of AN3387, but it's all assembly code, and I only know C language! So I would like to request a case study of C language programming from you! Thank you!&lt;/P&gt;</description>
    <pubDate>Sun, 16 Jun 2024 09:36:51 GMT</pubDate>
    <dc:creator>wangbengang</dc:creator>
    <dc:date>2024-06-16T09:36:51Z</dc:date>
    <item>
      <title>Can you give me a C code routine for the MC9S08DZ60 controller to run in STOP2 mode?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-you-give-me-a-C-code-routine-for-the-MC9S08DZ60-controller/m-p/1888231#M23908</link>
      <description>&lt;P&gt;Hello! I am currently writing a C code about the MC9S08DZ60 controller running in STOP2 mode! Mainly, after power on, it enters STOP2 mode, and then wakes up and lights up the LED small light through the external button of the IRQ pin! But I don't know how to get started. I looked at the low-power documentation of AN3387, but it's all assembly code, and I only know C language! So I would like to request a case study of C language programming from you! Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 09:36:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-you-give-me-a-C-code-routine-for-the-MC9S08DZ60-controller/m-p/1888231#M23908</guid>
      <dc:creator>wangbengang</dc:creator>
      <dc:date>2024-06-16T09:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can you give me a C code routine for the MC9S08DZ60 controller to run in STOP2 mode?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-you-give-me-a-C-code-routine-for-the-MC9S08DZ60-controller/m-p/1893870#M23912</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217149"&gt;@wangbengang&lt;/a&gt;&amp;nbsp;, &lt;BR /&gt;I recommend you in order to have a better understanding of what is happening you can check register by register why is the value on the example code, you can use the MC9S08DZ60 Data sheet in order to do so.&lt;BR /&gt;For example, taking the first line &lt;EM&gt;IRQSCinit: equ $10&lt;/EM&gt;, you can go to the IRQSC register and see what that value does.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pablo_Ramos_0-1719349013995.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285713i9BE0A0BE39AE6867/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pablo_Ramos_0-1719349013995.png" alt="Pablo_Ramos_0-1719349013995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pablo_Ramos_1-1719349020789.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/285714i20AF55CA5086BB4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pablo_Ramos_1-1719349020789.png" alt="Pablo_Ramos_1-1719349020789.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With this you can see that this line do is enable IRQ pin function as the comment in the application note says.&lt;/P&gt;
&lt;P&gt;Also, to know what asm instruction do, you can &lt;EM&gt;see section 7.5 HCS08 Instruction Set Summary of the MC9S08DZ60 Data sheet&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 20:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-you-give-me-a-C-code-routine-for-the-MC9S08DZ60-controller/m-p/1893870#M23912</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2024-06-25T20:58:42Z</dc:date>
    </item>
  </channel>
</rss>

