<?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: How do I calculate page Number ?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204063#M16933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anders,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that the sector size for the 'DZ is 768 bytes, rather than 512 bytes.&amp;nbsp; But this probably doesn't affect the basic issue, only the calculation of the start of each flash sector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&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>Wed, 21 Dec 2011 13:04:58 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2011-12-21T13:04:58Z</dc:date>
    <item>
      <title>How do I calculate page Number ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204058#M16928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am writing an application where I write to Flash, I am using the MC9S08GT60, and have a routine to Erase a page. But how do I calculate the page number ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to erase any memory&amp;nbsp; location from $182c to $f7ff, and also from $1080 to $17ff&amp;nbsp; (I have an application at address $f800 -&amp;gt;), I understand a page is 512 bytes long do I simply divide by 512 to get the page? So $1080 would be in page 8?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 22:05:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204058#M16928</guid>
      <dc:creator>ND</dc:creator>
      <dc:date>2011-05-06T22:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate page Number ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204059#M16929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the flash page size is 512 bytes for most 9S08 devices, but there are also a few exceptions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process of erasing a page does not usually require the calculation of a page number - the process requires to write any value to an &lt;U&gt;address&lt;/U&gt; within the page to be erased.&amp;nbsp; If the page erase function you are using requires the entry of a page number, rather than an address, any offset requirements would be determined by the function itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&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>Mon, 09 May 2011 11:12:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204059#M16929</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-05-09T11:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate page Number ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204060#M16930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PPAGE 0 starts at 0x2180 and ends at 0x3BFF,&lt;/P&gt;&lt;P&gt;0x2180 is not on a 512 byte&amp;nbsp; page boundary.&lt;/P&gt;&lt;P&gt;How is a Page Erase command handled if attempted on address 0x2180?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will it work,&lt;/P&gt;&lt;P&gt;or is there a conflict with the RAM ending on 0x217F?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anders J&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:12:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204060#M16930</guid>
      <dc:creator>AndersJ</dc:creator>
      <dc:date>2011-12-16T14:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate page Number ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204061#M16931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anders,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not clear to which device you refer - presumably not the 'GB60.&amp;nbsp; Using the 'GB60 example, this has RAM that extends to 0x107F, with flash memory from 0x1080 upwards.&amp;nbsp; The first flash sector has the theoretical range 0x1000 to 0x11FF, but only 384 of the 512 bytes are accessible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would not expect conflict with RAM provided the address written to during the erase process is 0x1080, or above.&amp;nbsp; There is also a similar situation where the high page registers overlap a flash sector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&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, 20 Dec 2011 00:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204061#M16931</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-12-20T00:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate page Number ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204062#M16932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Mac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry for being unclear.&lt;/P&gt;&lt;P&gt;I am referring to the DZ128, which has RAM up to 0x217F.&lt;/P&gt;&lt;P&gt;Assuming your reasoning applies to the DZ128 as well, believe you have answered my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Anders J&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 03:45:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204062#M16932</guid>
      <dc:creator>AndersJ</dc:creator>
      <dc:date>2011-12-20T03:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate page Number ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204063#M16933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anders,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that the sector size for the 'DZ is 768 bytes, rather than 512 bytes.&amp;nbsp; But this probably doesn't affect the basic issue, only the calculation of the start of each flash sector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&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>Wed, 21 Dec 2011 13:04:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-do-I-calculate-page-Number/m-p/204063#M16933</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-12-21T13:04:58Z</dc:date>
    </item>
  </channel>
</rss>

