<?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のトピックRe: Flash memory</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-memory/m-p/218458#M19030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to be a split thread.&amp;nbsp; The original thread may be found &lt;A __default_attr="68542" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/68542" jivemacro="thread" title="here"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 23:23:41 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2010-08-17T23:23:41Z</dc:date>
    <item>
      <title>Flash memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-memory/m-p/218457#M19029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could anyone show me by example how to save 1 byte data into flash memory and get it back to the variable? I create a variable POWEROFF, and I give 1 to this variable in the main routine. I need to save the content of POWEROFF to a (any)location in flash memory before the MCU is disconnected from power. Then I need to get this data back into this variable when MCU is connected to power again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use those supporting routines in ROM, such as RDVRRNG, PRGRNGE and ERARNGE. So far I am getting no where. I hope someone can show me an example in assembly code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INCLUDE 'derivative.inc'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; MC68HC908QY4A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;poweroff&amp;nbsp;&amp;nbsp;&amp;nbsp; ds&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mainLoop:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda &amp;nbsp;#$1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta &amp;nbsp;poweroff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bra&amp;nbsp; mainLoop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 00:33:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-memory/m-p/218457#M19029</guid>
      <dc:creator>aurora</dc:creator>
      <dc:date>2010-08-17T00:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Flash memory</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-memory/m-p/218458#M19030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to be a split thread.&amp;nbsp; The original thread may be found &lt;A __default_attr="68542" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/68542" jivemacro="thread" title="here"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 23:23:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Flash-memory/m-p/218458#M19030</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-08-17T23:23:41Z</dc:date>
    </item>
  </channel>
</rss>

